Function at 0x489acc
Capabilities:
Log keystrokes via input method manager
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
lea esi, [ebp - 0x40]
mov eax, dword [ebp - 4]
add eax, 0x5c
xor ecx, ecx
mov edx, 0xc
call fcn.00402fac
mov eax, dword [ebp - 4]
call fcn.00485980
xor eax, eax
push ebp
push 0x489bc1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x489b69
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov byte [ebp - 9], 0
test bl, bl
je 0x489515
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.004075dc
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x12]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
call fcn.00485484
mov eax, dword [ebp - 0xe]
push eax
lea eax, [ebp - 9]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
mov ecx, dword [ebp - 0x12]
mov dl, byte [0x489bd0]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x48950f
call fcn.00403e28
call fcn.00403e28
jmp 0x489bc8
mov byte [ebp - 9], 0
jmp 0x489541
cmp byte [ebp + 0x10], 0
je 0x489541
mov dl, byte [ebp + 0xc]
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.00488dd8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x489541
call fcn.00403e28
call fcn.00403e28
jmp 0x489bc8
mov byte [ebp - 0xa], 1
jmp 0x489b44
cmp byte [ebp - 0xa], 0
jne 0x489555
call sub.user32.dll_WaitMessage
mov byte [ebp - 0xa], 0
jmp 0x489b23
mov eax, dword [esi + 4]
sub eax, 0x201
je 0x489571
sub eax, 3
jne 0x489664
lea edx, [ebp - 0x12]
mov eax, dword [esi + 0xc]
call fcn.004075dc
lea eax, [ebp - 0x12]
push eax
mov eax, dword [esi]
push eax
call sub.user32.dll_ClientToScreen
lea eax, [ebp - 0x12]
mov dl, 1
call fcn.00439cb0
mov ebx, eax
mov eax, ebx
mov edx, dword [0x481690]
call fcn.00403734
test al, al
je 0x4895bb
mov edx, dword [ebx + 0x214]
mov eax, dword [ebp - 4]
call fcn.004858b4
test al, al
jne 0x489664
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x489607
mov eax, dword [ebp - 4]
cmp ebx, dword [eax + 0xc8]
jne 0x489607
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x12]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
call fcn.0043af48
push dword [ebp - 0x44]
push dword [ebp - 0x48]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_PtInRect
test eax, eax
jne 0x489616
call fcn.00403e28
call fcn.00403e28
jmp 0x489bc8
cmp dword [esi + 4], 0x201
jne 0x489664
push ebp
lea eax, [ebp - 0x12]
mov dl, 1
call fcn.004890e8
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xac], 0
je 0x489655
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x489655
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x1c]
test byte [eax + 0x64], 0x10
je 0x489664
call fcn.00403e28
call fcn.00403e28
jmp 0x489bc8
push 3
push 0
push 0
push 0
push esi
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x489b23
mov eax, dword [esi + 4]
cmp eax, 0x113
jg 0x4896ab
je 0x489841
sub eax, 0x4d
je case.0x4898b9.512
sub eax, 0x2e
je case.0x4898b9.512
add eax, 0xffffff7b
sub eax, 9
jb 0x4896c9
jmp 0x489ac6
sub eax, 0x118
je case.0x4898b9.512
add eax, 0xffffff18
sub eax, 0xb
jb 0x4898a2
jmp 0x489ac6
mov eax, dword [0x4adb14]
mov eax, dword [eax]
call fcn.0045bb2c
push 1
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4896f7
cmp byte [ebp + 8], 0
je 0x4896f3
push 2
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4896f7
xor eax, eax
jmp 0x4896f9
mov al, 1
mov byte [ebp - 0x1a], al
mov eax, dword [esi + 4]
sub eax, 0x100
je 0x48971a
sub eax, 2
je 0x48978a
sub eax, 2
je 0x48971a
sub eax, 2
je 0x48978a
jmp case.0x4898b9.512
cmp dword [esi + 8], 0xe5
jne 0x48972e
mov eax, dword [esi]
push eax
call sub.imm32.dll_ImmGetVirtualKey
mov dword [esi + 8], eax
cmp byte [ebp - 0x1a], 0
je 0x48973e
cmp dword [esi + 8], 0x70
jne case.0x4898b9.512
mov ax, word [esi + 8]
mov word [ebp - 0x1c], ax
push ebp
mov eax, dword [esi + 0xc]
call fcn.00451e9c
push eax
push ebp
call fcn.004890cc
pop ecx
lea edx, [ebp - 0x1c]
pop ecx
call fcn.004891c8
pop ecx
test al, al
je 0x489774
call fcn.00403e28
call fcn.00403e28
jmp 0x489bc8
cmp word [ebp - 0x1c], 0
je case.0x4898b9.512
push esi
call sub.user32.dll_TranslateMessage
jmp case.0x4898b9.512
cmp byte [ebp - 0x1a], 0
jne case.0x4898b9.512
push ebp
call fcn.004890cc
pop ecx
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x19]
push eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xac]
mov eax, dword [ebp - 0x18]
call fcn.0048887c
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x489815
mov eax, dword [esi + 8]
sub eax, 0x20
je 0x4897ce
sub eax, 0xd
jne 0x489809
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x489809
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 4]
jne 0x489809
call sub.user32.dll_GetActiveWindow
test eax, eax
je 0x489809
call sub.user32.dll_GetActiveWindow
mov edx, eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 4]
call fcn.00488dc0
call fcn.00403e28
call fcn.00403e28
jmp 0x489bc8
push 0
call sub.user32.dll_MessageBeep
jmp case.0x4898b9.512
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.004863dc
mov eax, dword [ebp - 0x18]
call fcn.00488f3c
cmp byte [ebp - 0x19], 0
je case.0x4898b9.512
mov dl, 1
mov eax, dword [ebp - 0x18]
call fcn.00488dd8
jmp case.0x4898b9.512
mov eax, dword [esi]
call fcn.004382e4
mov ebx, eax
test ebx, ebx
je 0x489897
mov eax, ebx
mov edx, dword [0x481690]
call fcn.00403734
test al, al
je 0x489897
cmp dword [esi + 8], 0x2328
jl 0x489897
cmp dword [esi + 8], 0x232b
jg 0x489897
cmp dword [ebx + 0x214], 0
je case.0x4898b9.512
mov edx, dword [esi + 8]
sub edx, 0x2328
mov eax, dword [ebx + 0x214]
call fcn.004893e4
jmp case.0x4898b9.512
push esi
call sub.user32.dll_DispatchMessageA
jmp case.0x4898b9.512
mov eax, dword [esi + 4]
add eax, 0xfffffe00
cmp eax, 0xa
ja case.0x4898b9.512
mov al, byte [eax + 0x4898c0]
jmp dword [eax*4 + 0x4898cb]
mov eax, dword [esi + 0x14]
cmp eax, dword [0x4af168]
jne 0x4898f5
mov eax, dword [esi + 0x18]
cmp eax, dword [0x4af16c]
je 0x48990e
mov eax, dword [esi + 0x14]
mov dword [0x4af168], eax
mov eax, dword [esi + 0x18]
mov dword [0x4af16c], eax
push ebp
call fcn.00489264
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.0048913c
pop ecx
test al, al
je case.0x4898b9.512
lea ecx, [ebp - 0x12]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.00485484
mov ecx, dword [ebp - 0xe]
mov edx, dword [ebp - 0x12]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp case.0x4898b9.512
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.0048913c
pop ecx
test al, al
je case.0x4898b9.512
lea ecx, [ebp - 0x12]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.00485484
mov eax, dword [ebp - 0xe]
push eax
movsx edx, word [esi + 0xa]
mov ecx, dword [ebp - 0x12]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp case.0x4898b9.512
cmp dword [esi + 4], 0x204
setne al
or al, byte [ebp + 8]
je case.0x4898b9.512
mov eax, dword [0x4adb14]
mov eax, dword [eax]
call fcn.0045bb2c
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
and byte [eax + 0xb3], 0xef
push ebp
lea eax, [esi + 0x14]
mov dl, 1
call fcn.004890e8
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.0048913c
pop ecx
test al, al
je case.0x4898b9.512
cmp dword [esi + 4], 0x203
je 0x4899e0
mov al, byte [0x489bd0]
mov byte [ebp - 0x1d], al
jmp 0x4899e8
mov al, byte [0x489bd4]
mov byte [ebp - 0x1d], al
lea ecx, [ebp - 0x12]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.00485484
mov eax, dword [ebp - 0xe]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 0x12]
mov dl, byte [ebp - 0x1d]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x34]
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.004075dc
mov eax, dword [ebp - 0x48]
mov dword [0x4af168], eax
mov eax, dword [ebp - 0x44]
mov dword [0x4af16c], eax
jmp case.0x4898b9.512
cmp dword [esi + 4], 0x202
sete al
or al, byte [ebp + 8]
je case.0x4898b9.512
push ebp
lea eax, [esi + 0x14]
xor edx, edx
call fcn.004890e8
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.0048913c
pop ecx
test al, al
jne 0x489aa4
cmp dword [ebp - 0x18], 0
je 0x489a7d
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 4]
jne case.0x4898b9.512
mov eax, dword [ebp - 4]
cmp byte [eax + 0x71], 0
je case.0x4898b9.512
mov eax, dword [ebp - 4]
test byte [eax + 0xb3], 0x10
jne 0x489a98
call fcn.00403e28
call fcn.00403e28
jmp 0x489bc8
mov eax, dword [ebp - 4]
and byte [eax + 0xb3], 0xef
jmp case.0x4898b9.512
lea ecx, [ebp - 0x12]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.00485484
mov al, byte [ebp - 9]
push eax
mov ecx, dword [ebp - 0xe]
mov edx, dword [ebp - 0x12]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp case.0x4898b9.512
push esi
call sub.user32.dll_DispatchMessageA
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x489ae4
call fcn.00403e28
call fcn.00403e28
jmp 0x489bc8
cmp dword [0x4af168], 0x80000000
jne 0x489b1c
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.004075dc
mov eax, dword [ebp - 0x48]
mov dword [0x4af168], eax
mov eax, dword [ebp - 0x44]
mov dword [0x4af16c], eax
push ebp
call fcn.00489264
pop ecx
push ebp
call fcn.00489358
pop ecx
push ebp
call fcn.004891b0
pop ecx
test al, al
je 0x489b44
push 0
push 0
push 0
push 0
push esi
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x48955e
push ebp
call fcn.004891b0
pop ecx
test al, al
jne 0x48954a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489b70
mov eax, dword [ebp - 4]
call fcn.00488b04
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc