Function at 0x489444
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, 0x56ecf4
call fcn.0051f140
sub esp, 0x70
push ebx
push esi
mov esi, ecx
push edi
push 1
cmp dword [esi + 0xaf1fc], 0
lea eax, [esi + 0xaf1fc]
pop ebx
jne 0x48946a
mov dword [eax], ebx
cmp dword [esi + 0xaf200], 0
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esi + 0xaf200]
jne 0x489b2b
mov dword [eax], ebx
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0xaf5f4]
call edi
mov eax, dword [ebp - 0x20]
push ebx
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push eax
call fcn.00477cc3
mov ecx, eax
call fcn.004f52d6
mov ecx, dword [0x5cb748]
sub ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x28]
sub ecx, eax
sub ecx, 0x8c
push ecx
push 0
lea ecx, [esi + 0xaf5d4]
call sub.MFC42.DLL_CWnd::MoveWindow
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x20]
call edi
push ebx
push str.Slider0
push dword [ebp - 0x28]
lea ecx, [esi + 0xaf5d4]
push dword [ebp - 0x2c]
call fcn.0049c475
mov ebx, 0x12c
lea ecx, [esi + 0xaf5d4]
push ebx
call fcn.0049c43e
push ebx
lea ecx, [esi + 0xaf5d4]
call fcn.0049c44d
mov ebx, dword [sym.imp.graphic.dll_public:_static_int___cdecl_CMyBitmap::GetScreenWidth_void_]
push 1
push 0x10
push 0x10
push 4
call ebx
sub eax, 0x28
lea ecx, [esi + 0xaf434]
push eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 1
push 0x10
push 0x10
push 4
call ebx
sub eax, 0x14
lea ebx, [esi + 0xaf504]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CWnd::MoveWindow
push 0
push 0
push str.Button01
lea ecx, [esi + 0xaf434]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0047885d
push 0
push 0
push str.Button02
mov ecx, ebx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0047885d
push esi
push 0xad
lea ecx, [esi + 0xabcd4]
call sub.MFC42.DLL_CDialog::Create
push esi
push 0x9e
lea ecx, [esi + 0x8d220]
call sub.MFC42.DLL_CDialog::Create
mov eax, dword [esi + 0xaf35c]
test eax, eax
je 0x4895a4
mov eax, dword [eax + 4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push eax
push 0x30
push dword [esi + 0x8d984]
call ebx
push esi
push 0x14b
lea ecx, [esi + 0xaaed4]
call sub.MFC42.DLL_CDialog::Create
push esi
push 0x13e
lea ecx, [esi + 0xaa384]
call sub.MFC42.DLL_CDialog::Create
push esi
push 0x13d
lea ecx, [esi + 0xaa0d8]
call sub.MFC42.DLL_CDialog::Create
push esi
push 0x14d
lea ecx, [esi + 0x922d0]
call sub.MFC42.DLL_CDialog::Create
push esi
push 0x14c
lea ecx, [esi + 0xa96e8]
call sub.MFC42.DLL_CDialog::Create
push esi
push 0x14e
lea ecx, [esi + 0x8e1a8]
call sub.MFC42.DLL_CDialog::Create
push esi
push pe_nt_image_headers32
lea ecx, [esi + 0x91bc4]
call sub.MFC42.DLL_CDialog::Create
push esi
push 0x12a
lea ecx, [esi + 0xaaa88]
call sub.MFC42.DLL_CDialog::Create
push esi
push 0x12b
lea ecx, [esi + 0xab25c]
call sub.MFC42.DLL_CDialog::Create
push esi
push 0x125
lea ecx, [esi + 0xaa714]
call sub.MFC42.DLL_CDialog::Create
push esi
push 0x12e
lea ecx, [esi + 0xab958]
call sub.MFC42.DLL_CDialog::Create
push esi
push 0x134
lea ecx, [esi + 0xab500]
call sub.MFC42.DLL_CDialog::Create
push esi
lea ecx, [esi + 0x790]
push 0x82
call sub.MFC42.DLL_CDialog::Create
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x7b0]
call edi
push 1
push 0x8d
call dword [sym.imp.graphic.dll_public:_static_int___cdecl_CMyBitmap::GetScreenWidth_void_]
push eax
call dword [sym.imp.graphic.dll_public:_static_int___cdecl_CMyBitmap::GetScreenHeight_void_]
sub eax, 0x8d
lea ecx, [esi + 0x790]
push eax
push 0
call sub.MFC42.DLL_CWnd::MoveWindow
push esi
push 0x127
lea ecx, [esi + 0xa9cd8]
call sub.MFC42.DLL_CDialog::Create
mov eax, dword [esi + 0xaf288]
cmp eax, 2
je 0x4896e8
cmp eax, 3
jne 0x4896f5
push 1
lea ecx, [esi + 0x2754c]
call fcn.00467baa
mov eax, dword [esi + 0xaf35c]
test eax, eax
je 0x489702
mov eax, dword [eax + 4]
push 1
push eax
push 0x30
push dword [esi + 0xae9a0]
call ebx
mov eax, dword [esi + 0xaf35c]
test eax, eax
je 0x48971c
mov eax, dword [eax + 4]
push 1
push eax
push 0x30
push dword [esi + 0x3a1d0]
call ebx
mov eax, dword [esi + 0xaf35c]
test eax, eax
je 0x489736
mov eax, dword [eax + 4]
push 1
push eax
push 0x30
push dword [esi + 0x8685c]
call ebx
mov eax, dword [esi + 0xaf35c]
test eax, eax
je 0x489750
mov eax, dword [eax + 4]
push 1
push eax
push 0x30
push dword [esi + 0x36c70]
call ebx
mov eax, dword [esi + 0xaf35c]
test eax, eax
je 0x48976a
mov eax, dword [eax + 4]
push 1
push eax
push 0x30
push dword [esi + 0x36d30]
call ebx
mov eax, dword [esi + 0xaf35c]
test eax, eax
je 0x489784
mov eax, dword [eax + 4]
push 1
push eax
push 0x30
push dword [esi + 0x26fa8]
call ebx
mov eax, dword [esi + 0xaf35c]
test eax, eax
je 0x48979e
mov eax, dword [eax + 4]
push 1
push eax
push 0x30
push dword [esi + 0x4f2a8]
call ebx
mov eax, dword [esi + 0xaf35c]
test eax, eax
je 0x4897b8
mov eax, dword [eax + 4]
push 1
push eax
push 0x30
push dword [esi + 0x549b4]
call ebx
mov eax, dword [esi + 0xaf35c]
test eax, eax
je 0x4897d2
mov eax, dword [eax + 4]
push 1
push eax
push 0x30
push dword [esi + 0x4c3dc]
call ebx
mov eax, dword [esi + 0xaf35c]
test eax, eax
je 0x4897ec
mov eax, dword [eax + 4]
push 1
push eax
push 0x30
push dword [esi + 0x5680c]
call ebx
mov eax, dword [esi + 0xaf35c]
test eax, eax
je 0x489806
mov eax, dword [eax + 4]
push 1
push eax
push 0x30
push dword [esi + 0x572a0]
call ebx
mov eax, dword [esi + 0xaf35c]
test eax, eax
je 0x489820
mov eax, dword [eax + 4]
push 1
push eax
push 0x30
push dword [esi + 0x4e798]
call ebx
mov eax, dword [esi + 0xaf35c]
test eax, eax
je 0x48983a
mov eax, dword [eax + 4]
push 1
push eax
push 0x30
push dword [esi + 0x4eadc]
call ebx
call dword [sym.imp.GraphicData.dll_GameDataSetQuery]
mov edx, dword [eax]
push str.English
mov ecx, eax
call dword [edx + 0x34]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x4898f1
xor ebx, ebx
lea ecx, [esi + 0xae980]
push ebx
call fcn.0047d197
push ebx
lea ecx, [esi + 0x3a1b0]
call fcn.0047d197
push ebx
lea ecx, [esi + 0x8683c]
call fcn.0047d197
push ebx
lea ecx, [esi + 0x36c50]
call fcn.0047b235
push ebx
lea ecx, [esi + 0x36d10]
call fcn.0047d197
push ebx
lea ecx, [esi + 0x26f88]
call fcn.0047d197
push ebx
lea ecx, [esi + 0x4f288]
call fcn.0047d197
push ebx
lea ecx, [esi + 0x54994]
call fcn.0047d197
push ebx
lea ecx, [esi + 0x4c3bc]
call fcn.0047d197
push ebx
lea ecx, [esi + 0x567ec]
call fcn.0047d197
push ebx
lea ecx, [esi + 0x57280]
call fcn.0047d197
jmp 0x4898f3
xor ebx, ebx
push 0x64
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
pop eax
mov dword [ebp - 0x70], ebx
mov ebx, dword [sym.imp.graphic.dll_public:_static_int___cdecl_CMyBitmap::GetScreenWidth_void_]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 0x5a
call ebx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0x5a
call ebx
mov dword [ebp - 0x5c], eax
mov eax, 0x8d
xor ecx, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 0x57a314
push 1
lea eax, [ebp - 0x7c]
push 6
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
lea eax, [ebp - 0x14]
push 1
neg eax
sbb eax, eax
and eax, dword [ebp - 0x10]
push eax
push dword [esi + 0x7b0]
call dword [sym.imp.USER32.dll_SetWindowRgn]
push 5
lea ecx, [esi + 0x790]
call sub.MFC42.DLL_CWnd::ShowWindow
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x20]
call edi
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x8c390]
call edi
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
push 0x14
pop ebx
mov dword [esi + 0xaf21c], ecx
sub eax, ebx
mov dword [esi + 0xaf220], eax
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x8c7d0]
call edi
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
sub eax, ebx
mov dword [esi + 0xaf224], ecx
mov dword [esi + 0xaf228], eax
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x8c680]
call edi
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x28]
sub eax, ebx
sub ecx, dword [ebp - 0x2c]
mov dword [esi + 0xaf22c], ecx
mov dword [esi + 0xaf230], eax
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x8c728]
call edi
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
sub eax, ebx
mov dword [esi + 0xaf234], ecx
mov dword [esi + 0xaf238], eax
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x8c878]
call edi
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
sub eax, ebx
mov dword [esi + 0xaf23c], ecx
mov dword [esi + 0xaf240], eax
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x8c920]
call edi
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
sub eax, ebx
mov dword [esi + 0xaf244], ecx
mov dword [esi + 0xaf248], eax
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x8c44c]
call edi
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
sub eax, ebx
mov dword [esi + 0xaf24c], ecx
mov dword [esi + 0xaf250], eax
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x8c508]
call edi
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
sub eax, ebx
mov dword [esi + 0xaf254], ecx
mov dword [esi + 0xaf258], eax
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x8c5c4]
call edi
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
sub eax, ebx
mov dword [esi + 0xaf25c], ecx
mov dword [esi + 0xaf260], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x489076
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [0x5d8f50], eax
je 0x489b0f
lea eax, [esi + 0x790]
mov dword [0x5d91b8], esi
mov dword [0x5d91b4], eax
mov dword [ebp - 0x14], 0x57a300
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
or dword [ebp - 4], 0xffffffff
jmp 0x489b36
lea ecx, [esi + 0x32c10]
call fcn.0042e165
lea eax, [ebp - 0x4c]
xor ebx, ebx
push eax
mov dword [esi + 0xaf344], ebx
mov dword [esi + 0xaf320], ebx
push dword [esi + 0x8c728]
call edi
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 8
push eax
push 0x5d93d8
mov dword [ebp - 0x18], ecx
call sub.MSVCRT.dll_memcpy
lea edi, [esi + 0x6dd1c]
add esp, 0xc
cmp edi, ebx
je 0x489b96
cmp dword [edi + 0x20], ebx
je 0x489b96
push dword [esi + 0x6dd3c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x489b96
push ebx
mov ecx, edi
call sub.MFC42.DLL_CWnd::ShowWindow
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetFocus
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret