Function at 0x489b60
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5089cb
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x54b708]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
push edi
mov eax, dword [0x54b708]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x489bab
lea eax, [esi + 0xc]
jmp 0x489bad
xor eax, eax
push eax
lea ecx, [esp + 0xb8]
call fcn.004a68e5
lea eax, [esp + 0x1c]
mov dword [esp + 0x320], 0
mov ecx, dword [esi + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
push 1
push eax
push ecx
lea ebx, [esi + 0xc]
call fcn.0045cc50
add esp, 8
push eax
call fcn.0045d280
add esp, 8
cmp byte [esi + 0x151], 0
mov edi, eax
mov dword [esp + 0x2c], edi
je 0x489c20
mov edx, dword [esi + 0x2c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [esi + 0x151], 0
cmp byte [esi + 0xa4], 0
jne 0x489c72
test edi, edi
je 0x489c32
add edi, 8
jmp 0x489c34
xor edi, edi
movzx edx, byte [esi + 0xa2]
push edx
movzx edx, byte [esi + 0xa1]
mov ecx, dword [esi + 0x14c]
mov eax, dword [ecx]
push edx
movzx edx, byte [esi + 0xa0]
mov eax, dword [eax + 0x24]
push edx
mov edx, dword [esp + 0x34]
push 1
push edx
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push edx
push edi
call eax
jmp 0x489cba
test edi, edi
je 0x489c7b
lea eax, [edi + 8]
jmp 0x489c7d
xor eax, eax
push eax
mov eax, esi
call fcn.0044a3d0
test edi, edi
je 0x489c8e
add edi, 8
jmp 0x489c90
xor edi, edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x14c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
push edi
call edx
mov ecx, dword [esi + 0x2c]
lea eax, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x489cea
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
sub dword [esp + 0x14], eax
sub dword [esp + 0x18], ecx
jmp 0x489cf7
mov eax, 0xffff8001
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0x2c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1200
push edx
call ebx
xor edi, edi
test eax, eax
mov dword [esp + 0x44], eax
jle 0x489e85
jmp 0x489d26
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 0x2c]
lea ecx, [esp + 0x88]
push ecx
push edi
push 0x120b
lea eax, [esp + 0x118]
push edx
mov dword [esp + 0x98], 0x86
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa8], 0xff
call ebx
mov ecx, dword [esi + 0x2c]
lea eax, [esp + 0x30]
push eax
push edi
push 0x1207
push ecx
call ebx
mov eax, dword [esp + 0x44]
add eax, 0xffffffff
cmp dword [esp + 0xa8], eax
jne 0x489d8d
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], eax
jge 0x489d8d
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0xb8]
lea ecx, [esi + 0xc]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x48], 0x64
mov dword [esp + 0x60], edx
mov dword [esp + 0x54], 1
jne 0x489db7
mov dword [esp + 0x5c], ebx
jmp 0x489dbe
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x5c], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x6c], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x13c]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x54], edi
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x489e29
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setl al
xor ebx, ebx
test al, al
setne bl
mov byte [esi + 0x151], 1
add ebx, 1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x489e3a
add eax, 8
mov dword [esp + 0x40], eax
jmp 0x489e42
mov dword [esp + 0x40], 0
mov ecx, dword [esi + 0x14c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esi + 0xa8]
push eax
lea eax, [esp + 0x110]
push eax
mov eax, dword [esp + 0x44]
push ebx
push eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x5c]
push eax
call edx
add edi, 1
cmp edi, dword [esp + 0x44]
jl 0x489d20
cmp byte [esi + 0x182], 0
mov esi, dword [esp + 0x2c]
jne 0x489ed2
test esi, esi
je 0x489e9b
lea edx, [esi + 8]
jmp 0x489e9d
xor edx, edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
sub ecx, dword [esp + 0x1c]
test edx, edx
je 0x489eb4
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
mov eax, dword [esp + 0xcc]
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
test esi, esi
je 0x489ee1
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
lea ecx, [esi + 4]
call eax
lea ecx, [esp + 0xb4]
mov dword [esp + 0x320], 0xffffffff
call fcn.004a6939
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.004b8e16
mov esp, ebp
pop ebp
ret