制作日記

こういうの作った方が、逃げにくいじゃない

p2stateno

あれは初期値が-1なのと、異常系の実装漏れが原因やで

ステート奪う処理を実行した後、初期値は異常系として以降のステート移動処理を飛ばしてるんだけど
本来は奪ったステートの復旧処理しないといけないのに、それが抜けてる
初期値だから明示的に-1を指定する必要すらなくて、noneだけで良い

p1statenoなんかも初期値が-1だから、同様にステート移動が発生しない
-2を指定すると-2に移動しようとして、警告メッセージが出る

このあたり

00443F61 8B8694000000 mov eax, [esi+00000094h]
00443F67 85C0 test eax, eax
00443F69 746C jz 00443FD7h
00443F6B 8B8DE80B0000 mov ecx, [ebp+00000BE8h]
00443F71 898BEC0B0000 mov [ebx+00000BECh], ecx
00443F77 8B5508 mov edx, [ebp+08h]
00443F7A 8993F00B0000 mov [ebx+00000BF0h], edx
00443F80 8B8564090000 mov eax, [ebp+00000964h]
00443F86 8D8B68090000 lea ecx, [ebx+00000968h]
00443F8C 898364090000 mov [ebx+00000964h], eax
00443F92 51 push ecx
00443F93 E86803FDFF call 00414300h
00443F98 8B85EC0B0000 mov eax, [ebp+00000BECh]
00443F9E 83C404 add esp, 04h
00443FA1 85C0 test eax, eax
00443FA3 7412 jz 00443FB7h
00443FA5 8983EC0B0000 mov [ebx+00000BECh], eax
00443FAB 8B95F00B0000 mov edx, [ebp+00000BF0h]
00443FB1 8993F00B0000 mov [ebx+00000BF0h], edx

* Referenced by an (U)nconditional or (C)onditional Jump or (c)all at Address:
| 00443FA3(C)
|
00443FB7 8B85C0130000 mov eax, [ebp+000013C0h]
00443FBD 85C0 test eax, eax
00443FBF 7510 jnz 00443FD1h
00443FC1 8B85BC130000 mov eax, [ebp+000013BCh]
00443FC7 8B08 mov ecx, [eax]
00443FC9 898BC0130000 mov [ebx+000013C0h], ecx
00443FCF EB06 jmp 00443FD7h

* Referenced by an (U)nconditional or (C)onditional Jump or (c)all at Address:
| 00443FBF(C)
|
00443FD1 8983C0130000 mov [ebx+000013C0h], eax

* Referenced by an (U)nconditional or (C)onditional Jump or (c)all at Address:
| 00443F69(C), 00443FCF(U)
|
00443FD7 8BBE90000000 mov edi, [esi+00000090h]
00443FDD 83FFFF cmp edi, FFFFFFFFh
00443FE0 0F8487000000 je 0044406Dh
00443FE6 85FF test edi, edi
00443FE8 C744245001000000 mov dword ptr [esp+50h], 00000001h
00443FF0 743B jz 0044402Dh
00443FF2 8B83EC0B0000 mov eax, [ebx+00000BECh]
00443FF8 6A00 push 00h
00443FFA 85C0 test eax, eax
00443FFC 57 push edi
00443FFD 7517 jnz 00444016h
00443FFF 8B93E80B0000 mov edx, [ebx+00000BE8h]
00444005 8B02 mov eax, [edx]
00444007 50 push eax
00444008 E8E350FCFF call 004090F0h
0044400D 83C40C add esp, 0Ch
00444010 85C0 test eax, eax
00444012 7519 jnz 0044402Dh
00444014 EB0F jmp 00444025h

* Referenced by an (U)nconditional or (C)onditional Jump or (c)all at Address:
| 00443FFD(C)
|
00444016 8B08 mov ecx, [eax]
00444018 51 push ecx
00444019 E8D250FCFF call 004090F0h
0044401E 83C40C add esp, 0Ch
00444021 85C0 test eax, eax
00444023 7508 jnz 0044402Dh

* Referenced by an (U)nconditional or (C)onditional Jump or (c)all at Address:
| 00444014(U)
|
00444025 C744245000000000 mov dword ptr [esp+50h], 00000000h

* Referenced by an (U)nconditional or (C)onditional Jump or (c)all at Address:
| 00443FF0(C), 00444012(C), 00444023(C)
|
0044402D 8B442450 mov eax, [esp+50h]
00444031 8B93F40B0000 mov edx, [ebx+00000BF4h]
00444037 85C0 test eax, eax
00444039 8993F80B0000 mov [ebx+00000BF8h], edx
0044403F 89BBF40B0000 mov [ebx+00000BF4h], edi
00444045 C783FC0D000000000000 mov dword ptr [ebx+00000DFCh], 00000000h
0044404F 7512 jnz 00444063h
00444051 8BC2 mov eax, edx
00444053 50 push eax
00444054 57 push edi

* Possible string reference 4AA060h "changed to invalid state %i (from state %i)\n"
|
00444055 6860A04A00 push 004AA060h
0044405A 53 push ebx
0044405B E8D015FDFF call 00415630h
00444060 83C410 add esp, 10h

* Referenced by an (U)nconditional or (C)onditional Jump or (c)all at Address:
| 0044404F(C)
|
00444063 C7830C0E000000000000 mov dword ptr [ebx+00000E0Ch], 00000000h

* Referenced by an (U)nconditional or (C)onditional Jump or (c)all at Address:
| 00443FE0(C)
|
0044406D 8B442410 mov eax, [esp+10h]
00444071 8B8E98000000 mov ecx, [esi+00000098h]
00444077 894818 mov [eax+18h], ecx
0044407A 8B960C010000 mov edx, [esi+0000010Ch]
00444080 89500C mov [eax+0Ch], edx
00444083 8B8E10010000 mov ecx, [esi+00000110h]
00444089 894810 mov [eax+10h], ecx
0044408C 8B9614010000 mov edx, [esi+00000114h]
00444092 895014 mov [eax+14h], edx
00444095 E93E010000 jmp 004441D8h

コメントの投稿

非公開コメント

プロフィール

Author:drab
霊夢改変キャラ
「12 3 ! {V} [_]」
公開中
L霊夢でもl_reimuでも好きなように読んでください

最新記事
最新コメント
月別アーカイブ
カテゴリ
検索フォーム
RSSリンクの表示
リンク