Function at 0x425660
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a583
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push ecx
mov dword [ebp - 0x10], esp
mov esi, esp
push eax
call dword [sym.imp.ENGINE.DLL_char____cdecl_StringDuplicate_char_const__]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
add esp, 4
mov dword [esi], eax
push ecx
push edx
call fcn.004239e0
xor ecx, ecx
add esp, 0xc
cmp eax, ecx
jne 0x4256bc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
mov dword [0x435ff0], eax
mov dword [0x435ff4], eax
mov eax, dword [0x44300c]
mov dword [eax + 4], ecx
mov edx, dword [0x44300c]
mov dword [edx + 8], ecx
mov eax, dword [0x435ff0]
cmp eax, ecx
je 0x4260e6
mov ebx, dword [sym.imp.USER32.DLL_ShowWindow]
mov esi, dword [sym.imp.ENGINE.DLL_void___cdecl_CPrintF_char_const__]
mov edi, dword [sym.imp.ENGINE.DLL_char____cdecl_Translate_char___long_int_]
push 0x4430bc
mov ecx, 0x442ff8
call dword [sym.imp.ENGINE.DLL_public:_int___thiscall_CTString::operator_char_const__const]
test eax, eax
je 0x4260e6
push 1
push 0
push 0
lea eax, [ebp - 0x30]
push 0
push eax
call dword [sym.imp.USER32.DLL_PeekMessageA]
test eax, eax
je 0x425fad
xor esi, esi
mov edi, 1
jmp 0x425743
mov ebx, dword [sym.imp.USER32.DLL_ShowWindow]
mov edi, 1
xor esi, esi
mov eax, dword [ebp - 0x2c]
cmp eax, 0x200
jb 0x425754
cmp eax, 0x209
jbe 0x425785
cmp eax, 0x100
jne 0x425767
cmp dword [ebp - 0x28], 0x79
je 0x4259db
jmp 0x42576e
cmp eax, 0x104
je 0x425785
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.USER32.DLL_TranslateMessage]
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.USER32.DLL_DispatchMessageA]
mov eax, dword [ebp - 0x2c]
cmp eax, 0x112
jne 0x4258da
mov ecx, dword [ebp - 0x28]
and ecx, 0xfffffff0
sub ecx, 0xf020
je 0x425862
sub ecx, 0x10
je 0x425816
sub ecx, 0xf0
jne 0x425a05
cmp dword [0x4372b0], esi
jne 0x425a05
mov eax, dword [0x436004]
mov dword [0x4372b0], edi
cmp eax, esi
mov dword [0x443018], edi
push edi
je 0x425859
mov eax, dword [0x4372b4]
push eax
call ebx
mov ecx, dword [0x436004]
mov edx, dword [0x443028]
mov eax, dword [0x43600c]
push ecx
mov ecx, dword [0x436008]
push edx
mov edx, dword [0x44302c]
push eax
mov eax, dword [0x443030]
push ecx
push edx
push eax
call fcn.004268a0
add esp, 0x18
jmp 0x4258d7
cmp dword [0x4372b0], esi
jne 0x425a05
mov edx, dword [0x443028]
mov eax, dword [0x43600c]
mov ecx, dword [0x436008]
push edi
push edx
mov edx, dword [0x44302c]
push eax
mov eax, dword [0x443030]
push ecx
push edx
push eax
mov dword [0x4372b0], edi
mov dword [0x443018], edi
call fcn.004268a0
add esp, 0x18
push edi
mov ecx, dword [0x4372b4]
push ecx
jmp 0x4258d5
cmp dword [0x4372b0], esi
jne 0x425a05
mov eax, dword [0x436000]
mov dword [0x4372b0], edi
cmp eax, esi
mov dword [0x443018], edi
je 0x4258aa
mov edx, dword [sym.imp.ENGINE.DLL_class_CNetworkLibrary___pNetwork]
mov ecx, dword [edx]
call dword [sym.imp.ENGINE.DLL_public:_int___thiscall_CNetworkLibrary::IsPaused_void_]
test eax, eax
jne 0x4258aa
cmp dword [0x442c34], edi
jne 0x4258aa
mov eax, dword [sym.imp.ENGINE.DLL_class_CNetworkLibrary___pNetwork]
mov ecx, dword [eax]
call dword [sym.imp.ENGINE.DLL_public:_void___thiscall_CNetworkLibrary::TogglePause_void_]
cmp dword [0x436004], esi
je 0x4258cd
mov ecx, dword [sym.imp.ENGINE.DLL_class_CGfxLibrary___pGfx]
push 9
mov ecx, dword [ecx]
call dword [sym.imp.ENGINE.DLL_public:_int___thiscall_CGfxLibrary::ResetDisplayMode_enum_GfxAPIType_]
mov edx, dword [0x4372b4]
push 6
push edx
jmp 0x4258d5
mov eax, dword [0x4372b4]
push 6
push eax
call ebx
mov eax, dword [ebp - 0x2c]
cmp eax, 0x104
jne 0x425936
cmp dword [ebp - 0x28], 0xd
jne 0x425a05
mov ecx, dword [0x4372b4]
push ecx
call dword [sym.imp.USER32.DLL_IsIconic]
test eax, eax
jne 0x425933
mov ecx, dword [0x436004]
mov eax, dword [0x443028]
xor edx, edx
cmp ecx, esi
mov ecx, dword [0x43600c]
sete dl
push edx
mov edx, dword [0x436008]
push eax
mov eax, dword [0x44302c]
push ecx
mov ecx, dword [0x443030]
push edx
push eax
push ecx
call fcn.004268a0
add esp, 0x18
mov eax, dword [ebp - 0x2c]
cmp eax, 0x12
je 0x425940
cmp eax, 0x10
jne 0x42594c
mov dword [0x435ff0], esi
mov dword [0x435ff4], esi
mov ecx, dword [ebp - 0x28]
cmp eax, 6
jne 0x425970
cmp cx, si
je 0x425998
mov edx, ecx
shr edx, 0x10
jne 0x425998
cmp cx, di
je 0x425990
cmp cx, 2
je 0x425990
jmp 0x425a05
cmp eax, 0x1f
je 0x425998
cmp eax, 8
je 0x425998
cmp eax, 0x1c
jne 0x42598b
cmp ecx, esi
je 0x425998
mov dword [0x443018], edi
jmp 0x4259d4
cmp eax, 7
jne 0x4259d4
mov dword [0x443018], edi
jmp 0x4259d4
cmp dword [0x4372b0], esi
jne 0x4259d4
cmp dword [0x435ff0], esi
je 0x4259d4
cmp dword [0x436004], esi
je 0x4259c4
push esi
push 0xf020
push 0x112
push esi
call dword [sym.imp.USER32.DLL_PostMessageA]
jmp 0x4259d1
mov eax, dword [sym.imp.ENGINE.DLL_class_CInput___pInput]
mov ecx, dword [eax]
call dword [sym.imp.ENGINE.DLL_public:_void___thiscall_CInput::DisableInput_void_]
mov eax, dword [ebp - 0x2c]
cmp eax, 0x100
jne 0x425a05
cmp dword [ebp - 0x28], 0x1b
jne 0x425a05
mov ecx, dword [0x442c34]
cmp ecx, 4
je 0x4259f1
cmp ecx, 5
jne 0x425a05
mov ecx, dword [0x44300c]
mov edx, dword [ecx]
call dword [edx + 0x60]
mov eax, dword [ebp - 0x2c]
mov dword [0x442c34], esi
mov ecx, dword [0x44300c]
cmp dword [ecx + 4], 5
jne 0x425a2c
cmp eax, 0x100
jne 0x425a2c
cmp dword [ebp - 0x28], 0x1b
jne 0x425a2c
xor eax, eax
mov dword [ecx + 4], esi
mov ecx, dword [0x44300c]
mov dword [ebp - 0x2c], eax
cmp dword [0x442c34], esi
jne 0x425a44
mov ecx, dword [ecx + 4]
cmp ecx, esi
je 0x425a40
cmp ecx, 3
jne 0x425a44
mov edx, edi
jmp 0x425a46
xor edx, edx
cmp eax, 0x100
jne 0x425a69
cmp dword [ebp - 0x28], 0x1b
jne 0x425a69
mov ecx, dword [0x44300c]
mov ecx, dword [ecx + 8]
cmp ecx, esi
je 0x425a65
cmp ecx, 4
jne 0x425a69
mov ecx, edi
jmp 0x425a6b
xor ecx, ecx
cmp dword [0x443010], esi
jne 0x425aaf
cmp edx, esi
jne 0x425a7b
cmp ecx, esi
je 0x425acf
mov ecx, dword [0x44300c]
mov eax, dword [ecx + 4]
cmp eax, edi
je 0x425a8d
cmp eax, 2
jne 0x425a9a
mov dword [ecx + 4], 3
mov dword [0x443058], esi
push 0x4430c0
mov dword [ebp - 0x2c], esi
call fcn.004085d0
mov eax, dword [ebp - 0x2c]
add esp, 4
jmp 0x425ac7
cmp edx, esi
je 0x425ac7
cmp ecx, esi
je 0x425ac7
mov edx, dword [0x442c6c]
cmp dword [edx + 0x10], esi
jne 0x425ac7
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [0x443010], esi
jne 0x425afa
mov ecx, dword [0x44300c]
mov ecx, dword [ecx + 4]
cmp ecx, esi
je 0x425ae1
cmp ecx, 3
jne 0x425afa
call fcn.00408880
test eax, eax
jne 0x425af7
push 0x4430c4
call fcn.004085d0
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [0x443040], esi
je 0x425b18
push str.save
mov dword [0x443040], esi
call fcn.004085d0
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp dword [0x443044], esi
je 0x425b36
push str.load
mov dword [0x443044], esi
call fcn.004085d0
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp dword [0x443048], esi
je 0x425b54
push str.controls
mov dword [0x443048], esi
call fcn.004085d0
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp dword [0x44304c], esi
je 0x425b72
push str.hiscore
mov dword [0x44304c], esi
call fcn.004085d0
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp dword [0x443058], esi
jne 0x425c66
cmp eax, 0x100
jne 0x425bc4
mov edx, dword [0x44300c]
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp - 0x30]
mov eax, dword [edx]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
call dword [eax + 0x24]
mov eax, dword [0x44300c]
cmp dword [eax + 4], 1
je 0x425c10
mov edx, dword [eax]
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp - 0x30]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call dword [edx + 0x38]
jmp 0x425c10
cmp eax, 0x101
jne 0x425bee
cmp dword [ebp - 0x28], 0xd
jne 0x425c66
mov ecx, dword [0x44300c]
cmp dword [ecx + 4], 5
jne 0x425c66
mov dword [ecx + 4], 0
jmp 0x425c10
cmp eax, 0x102
jne 0x425c13
mov eax, dword [0x44300c]
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp - 0x30]
mov edx, dword [eax]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call dword [edx + 0x28]
mov eax, dword [ebp - 0x2c]
cmp eax, 0x201
je 0x425c3d
cmp eax, 0x204
je 0x425c3d
cmp eax, 0x203
je 0x425c3d
cmp eax, 0x206
je 0x425c3d
cmp eax, 0x202
je 0x425c3d
cmp eax, 0x205
jne 0x425c66
mov ecx, dword [0x44300c]
cmp dword [ecx + 4], 1
je 0x425c66
mov eax, dword [ecx]
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp - 0x30]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x44300c]
call dword [eax + 0x38]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [0x443010]
xor ebx, ebx
cmp ecx, ebx
je 0x425d1d
mov ecx, dword [sym.imp.ENGINE.DLL_class_CInput___pInput]
mov edx, dword [ecx]
cmp dword [edx + 4], ebx
jne 0x425d1d
cmp eax, 0x100
jne 0x425c94
mov eax, dword [ebp - 0x28]
push eax
jmp 0x425d12
cmp eax, 0x201
je 0x425d10
cmp eax, 0x203
je 0x425d10
cmp eax, 0x204
je 0x425d0c
cmp eax, 0x206
je 0x425d0c
cmp eax, 0x200
jne 0x425cd0
mov eax, dword [ebp - 0x24]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
push ecx
push eax
call fcn.0040d680
add esp, 8
jmp 0x425d1a
cmp eax, 0x20a
jne 0x425cec
mov ecx, dword [ebp - 0x28]
shr ecx, 0x10
cmp cx, bx
jle 0x425ce6
push 0xb
jmp 0x425d12
jge 0x425d1d
push 0xa
jmp 0x425d12
cmp eax, 0x102
jne 0x425d1d
sub esp, 0x1c
mov ecx, 7
lea esi, [ebp - 0x30]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0040d650
add esp, 0x1c
jmp 0x425d1a
push 2
jmp 0x425d12
push 1
call fcn.0040d5c0
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [0x443050], ebx
jne 0x425d56
cmp eax, 0x100
jne 0x425dbb
mov edx, dword [ebp - 0x28]
push ebx
push edx
call dword [sym.imp.USER32.DLL_MapVirtualKeyA]
cmp eax, 0x29
je 0x425d56
mov eax, dword [ebp - 0x28]
cmp eax, 0x70
je 0x425d56
cmp eax, 0x1b
jne 0x425dbb
cmp dword [0x443058], 3
jne 0x425dbb
cmp dword [0x442ed0], ebx
jne 0x425dbb
mov eax, dword [0x443058]
mov edx, 3
cmp eax, edx
mov dword [0x443050], ebx
jne 0x425d78
mov dword [0x443058], ebx
mov ecx, dword [0x44300c]
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x425d98
cmp eax, edx
je 0x425d98
cmp eax, 1
je 0x425d93
cmp eax, 2
jne 0x425dbb
mov dword [ecx + 4], edx
jmp 0x425dbb
push ebx
mov dword [ecx + 4], 2
call dword [sym.imp.ENGINE.DLL_void___cdecl_IFeel_StopEffect_char__]
mov eax, dword [0x443010]
add esp, 4
cmp eax, ebx
je 0x425dbb
push ebx
call fcn.00408830
add esp, 4
push 0x436c30
call dword [sym.imp.ENGINE.DLL_char____cdecl_StringDuplicate_char_const__]
add esp, 4
mov dword [ebp + 0x14], eax
mov ecx, dword [sym.imp.ENGINE.DLL_class_CShell___pShell]
lea eax, [ebp + 0x14]
push eax
mov dword [ebp - 4], ebx
mov ecx, dword [ecx]
call dword [sym.imp.ENGINE.DLL_public:_long_int___thiscall_CShell::GetINDEX_class_CTString_const__]
test eax, eax
je 0x425df9
mov edx, dword [0x44300c]
cmp dword [edx + 4], ebx
sete al
test al, al
je 0x425df9
mov bl, 1
jmp 0x425dfb
xor bl, bl
mov eax, dword [ebp + 0x14]
mov esi, dword [sym.imp.ENGINE.DLL_void___cdecl_FreeMemory_void__]
or edi, 0xffffffff
push eax
mov dword [ebp - 4], edi
call esi
add esp, 4
test bl, bl
je 0x425e5c
push str.con_bTalk
call dword [sym.imp.ENGINE.DLL_char____cdecl_StringDuplicate_char_const__]
add esp, 4
mov dword [ebp + 8], eax
mov edx, dword [sym.imp.ENGINE.DLL_class_CShell___pShell]
xor ebx, ebx
lea ecx, [ebp + 8]
push ebx
push ecx
mov ecx, dword [edx]
mov dword [ebp - 4], 1
call dword [sym.imp.ENGINE.DLL_public:_void___thiscall_CShell::SetINDEX_class_CTString_const___long_int_]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
push eax
call esi
mov ecx, dword [0x44300c]
add esp, 4
mov dword [ecx + 4], 5
jmp 0x425e5e
xor ebx, ebx
mov eax, dword [ebp - 0x2c]
cmp eax, 0x100
jne 0x425e81
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x13
jne 0x425eb7
mov edx, dword [sym.imp.ENGINE.DLL_class_CNetworkLibrary___pNetwork]
mov ecx, dword [edx]
call dword [sym.imp.ENGINE.DLL_public:_void___thiscall_CNetworkLibrary::TogglePause_void_]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
cmp eax, 0x111
jne 0x425eb7
cmp ecx, 0x3e9
jne 0x425eb7
mov eax, dword [ebp - 0x24]
push eax
call fcn.00425180
add esp, 4
push ebx
push 0xf120
push 0x112
push ebx
call dword [sym.imp.USER32.DLL_PostMessageA]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov edx, dword [0x442c34]
cmp edx, 4
je 0x425ecb
cmp edx, 5
jne 0x425f84
cmp eax, 0x100
jne 0x425ede
cmp ecx, 0x1b
jne 0x425ede
mov esi, 1
jmp 0x425eec
xor esi, esi
cmp eax, 0x100
jne 0x425f06
cmp ecx, 0x70
je 0x425eff
push ebx
push ecx
call dword [sym.imp.USER32.DLL_MapVirtualKeyA]
mov ecx, dword [ebp - 0x28]
cmp eax, 0x29
mov eax, dword [ebp - 0x2c]
jne 0x425f06
mov edx, 1
jmp 0x425f08
xor edx, edx
cmp eax, 0x100
jne 0x425f1d
cmp ecx, 0x20
je 0x425f2f
cmp ecx, 0xd
je 0x425f2f
xor eax, eax
jmp 0x425f34
cmp eax, 0x201
je 0x425f2f
cmp eax, 0x204
je 0x425f2f
xor eax, eax
jmp 0x425f34
mov eax, 1
cmp esi, ebx
je 0x425f51
mov ecx, dword [0x44300c]
mov edx, dword [ecx]
call dword [edx + 0x60]
mov dword [0x436028], ebx
mov dword [0x442c34], ebx
jmp 0x425f84
cmp eax, ebx
je 0x425f84
cmp edx, ebx
jne 0x425f84
cmp dword [0x443010], ebx
jne 0x425f84
cmp dword [0x443014], ebx
jne 0x425f84
mov ecx, dword [0x44300c]
cmp dword [ecx + 4], ebx
jne 0x425f84
mov eax, dword [ecx]
call dword [eax + 0x60]
mov dword [0x442c34], ebx
call fcn.00422f10
push 1
push ebx
push ebx
lea ecx, [ebp - 0x30]
push ebx
push ecx
call dword [sym.imp.USER32.DLL_PeekMessageA]
test eax, eax
jne 0x425736
mov ebx, dword [sym.imp.USER32.DLL_ShowWindow]
mov esi, dword [sym.imp.ENGINE.DLL_void___cdecl_CPrintF_char_const__]
mov edi, dword [sym.imp.ENGINE.DLL_char____cdecl_Translate_char___long_int_]
mov edx, dword [0x44300c]
mov dword [0x4372b0], 0
mov eax, dword [edx + 8]
test eax, eax
je 0x425ff7
cmp eax, 4
je 0x425ff7
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
mov edx, dword [0x4372b4]
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.USER32.DLL_ScreenToClient]
mov edx, dword [ebp - 0x10]
mov ecx, dword [0x44300c]
push edx
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 0x34]
mov eax, dword [0x443058]
cmp eax, 1
jne 0x426032
mov eax, dword [0x442fe8]
push eax
push 4
push str.ETRS_____Executing_addon:__s_n
call edi
add esp, 8
push eax
call esi
add esp, 8
mov dword [0x443050], 1
mov dword [0x443058], 2
jmp 0x4260b3
cmp eax, 2
jne 0x4260b3
mov ecx, dword [0x44300c]
cmp dword [ecx + 4], 1
jne 0x4260b3
push 0x4370f4
call dword [sym.imp.ENGINE.DLL_char____cdecl_StringDuplicate_char_const__]
add esp, 4
mov dword [ebp + 0x10], eax
mov edx, dword [0x442fe8]
lea eax, [ebp + 0x10]
push edx
push 0x436c68
push eax
mov dword [ebp - 4], 2
call dword [sym.imp.ENGINE.DLL_public:_long_int___cdecl_CTString::PrintF_char_const__]
mov edx, dword [sym.imp.ENGINE.DLL_class_CShell___pShell]
add esp, 0xc
lea ecx, [ebp + 0x10]
push ecx
mov ecx, dword [edx]
call dword [sym.imp.ENGINE.DLL_public:_void___thiscall_CShell::Execute_class_CTString_const__]
push 4
push str.ETRSAddon_done__press_Escape_to_close_console_n
call edi
add esp, 8
push eax
call esi
mov eax, dword [ebp + 0x10]
mov dword [0x443058], 3
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.ENGINE.DLL_void___cdecl_FreeMemory_void__]
add esp, 8
call fcn.00422ca0
call fcn.00422d50
mov ecx, dword [0x44300c]
mov edx, dword [0x443010]
mov dword [ecx + 0xf58], edx
call fcn.00424e70
call fcn.00422dc0
mov eax, dword [0x435ff0]
test eax, eax
jne 0x4256fb
mov eax, dword [sym.imp.ENGINE.DLL_class_CInput___pInput]
mov ecx, dword [eax]
call dword [sym.imp.ENGINE.DLL_public:_void___thiscall_CInput::DisableInput_void_]
mov ecx, dword [0x44300c]
mov edx, dword [ecx]
call dword [edx + 0x60]
mov eax, dword [0x435ff4]
test eax, eax
je 0x426120
push 0x4430c8
mov ecx, 0x442ff8
call dword [sym.imp.ENGINE.DLL_public:_int___thiscall_CTString::operator_char_const__const]
test eax, eax
je 0x426120
call fcn.004254c0
call fcn.00424ad0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret