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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 0x5c
xor ecx, ecx
mov edx, 0xc
call fcn.00403664
mov eax, dword [ebp - 4]
call fcn.0049cc14
xor eax, eax
push ebp
push 0x4a10ad
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4a1055
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 - 0xd], 0
test bl, bl
je 0x4a09ca
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x2c], eax
movsx eax, word [ebp - 0x2c]
mov dword [ebp - 0x34], eax
movsx eax, word [ebp - 0x2a]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x15]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
call fcn.0049c718
mov eax, dword [ebp - 0x11]
push eax
lea eax, [ebp - 0xd]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
mov ecx, dword [ebp - 0x15]
movzx edx, byte [0x4a10bc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 4]
call fcn.004a0084
test al, al
je 0x4a09c4
call fcn.00404690
call fcn.00404690
jmp 0x4a10b4
mov byte [ebp - 0xd], 0
jmp 0x4a09fa
cmp byte [ebp + 0x10], 0
je 0x4a09fa
movzx edx, byte [ebp + 0xc]
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.004a00f0
mov eax, dword [ebp - 4]
call fcn.004a0084
test al, al
je 0x4a09fa
call fcn.00404690
call fcn.00404690
jmp 0x4a10b4
call sub.user32.dll_GetActiveWindow
mov dword [ebp - 0xc], eax
jmp 0x4a1030
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x70]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x4a0a26
call sub.user32.dll_WaitMessage
jmp 0x4a1030
mov eax, dword [ebp - 0x6c]
sub eax, 0x201
je 0x4a0a39
sub eax, 3
jne 0x4a0b42
movsx eax, word [ebp - 0x64]
mov dword [ebp - 0x3c], eax
movsx eax, word [ebp - 0x62]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x15], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x11], eax
lea eax, [ebp - 0x15]
push eax
mov eax, dword [ebp - 0x70]
push eax
call sub.user32.dll_ClientToScreen
lea eax, [ebp - 0x15]
mov dl, 1
call fcn.0045822c
mov ebx, eax
mov eax, ebx
mov edx, dword [0x497ef8]
call fcn.00403ebc
test al, al
je 0x4a0a93
mov edx, dword [ebx + 0x25c]
mov eax, dword [ebp - 4]
call fcn.0049cb50
test al, al
jne 0x4a0b42
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x4a0ae5
mov eax, dword [ebp - 4]
cmp ebx, dword [eax + 0xc8]
jne 0x4a0ae5
lea ecx, [ebp - 0x7c]
lea edx, [ebp - 0x15]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
call fcn.004597f4
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea eax, [ebp - 0x8c]
push eax
call sub.user32.dll_PtInRect
test eax, eax
jne 0x4a0af4
call fcn.00404690
call fcn.00404690
jmp 0x4a10b4
cmp dword [ebp - 0x6c], 0x201
jne 0x4a0b42
push ebp
lea eax, [ebp - 0x15]
mov dl, 1
call fcn.004a054c
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xac], 0
je 0x4a0b33
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x4a0b33
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x1c]
test byte [eax + 0x64], 0x10
je 0x4a0b42
call fcn.00404690
call fcn.00404690
jmp 0x4a10b4
push 3
mov esi, dword [ebp - 0x6c]
push esi
push esi
push 0
lea eax, [ebp - 0x70]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x4a1030
mov eax, dword [ebp - 0x6c]
cmp eax, 0x113
jg 0x4a0b8d
je 0x4a0d2c
sub eax, 0x4d
je case.0x4a0da9.518
sub eax, 0x2e
je case.0x4a0da9.518
add eax, 0xffffff7b
sub eax, 0xa
jb 0x4a0bab
jmp 0x4a0fc5
sub eax, 0x118
je case.0x4a0da9.518
add eax, 0xffffff18
sub eax, 0xb
jb 0x4a0d91
jmp 0x4a0fc5
mov eax, dword [0x4f6ecc]
mov eax, dword [eax]
call fcn.0047a280
push 1
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4a0bd9
cmp byte [ebp + 8], 0
je 0x4a0bd5
push 2
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4a0bd9
xor eax, eax
jmp 0x4a0bdb
mov al, 1
mov byte [ebp - 0x1e], al
mov eax, dword [ebp - 0x6c]
sub eax, 0x100
je 0x4a0c00
sub eax, 2
je 0x4a0c74
sub eax, 2
je 0x4a0c00
sub eax, 2
je 0x4a0c74
jmp case.0x4a0da9.518
cmp dword [ebp - 0x68], 0xe5
jne 0x4a0c15
mov eax, dword [ebp - 0x70]
push eax
call sub.imm32.dll_ImmGetVirtualKey
mov dword [ebp - 0x68], eax
cmp byte [ebp - 0x1e], 0
je 0x4a0c25
cmp dword [ebp - 0x68], 0x70
jne case.0x4a0da9.518
movzx eax, word [ebp - 0x68]
mov word [ebp - 0x20], ax
push ebp
mov eax, dword [ebp - 0x64]
call fcn.0046e4ac
push eax
push ebp
call fcn.004a0530
pop ecx
lea edx, [ebp - 0x20]
pop ecx
call fcn.004a0650
pop ecx
test al, al
je 0x4a0c5b
call fcn.00404690
call fcn.00404690
jmp 0x4a10b4
cmp word [ebp - 0x20], 0
je case.0x4a0da9.518
lea eax, [ebp - 0x70]
push eax
call sub.user32.dll_TranslateMessage
jmp case.0x4a0da9.518
cmp byte [ebp - 0x1e], 0
jne case.0x4a0da9.518
push ebp
call fcn.004a0530
pop ecx
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x1d]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0xac]
movzx ecx, word [ebp - 0x68]
mov eax, dword [ebp - 0x1c]
call fcn.0049fb74
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4a0d00
mov eax, dword [ebp - 0x68]
sub eax, 0x20
je 0x4a0cb9
sub eax, 0xd
jne 0x4a0cf4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x4a0cf4
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 4]
jne 0x4a0cf4
call sub.user32.dll_GetActiveWindow
test eax, eax
je 0x4a0cf4
call sub.user32.dll_GetActiveWindow
mov edx, eax
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
call fcn.004a00d8
call fcn.00404690
call fcn.00404690
jmp 0x4a10b4
push 0
call sub.user32.dll_MessageBeep
jmp case.0x4a0da9.518
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.0049d698
mov eax, dword [ebp - 0x1c]
call fcn.004a0254
cmp byte [ebp - 0x1d], 0
je case.0x4a0da9.518
mov dl, 1
mov eax, dword [ebp - 0x1c]
call fcn.004a00f0
jmp case.0x4a0da9.518
mov eax, dword [ebp - 0x70]
call fcn.00456714
mov ebx, eax
test ebx, ebx
je 0x4a0d83
mov eax, ebx
mov edx, dword [0x497ef8]
call fcn.00403ebc
test al, al
je 0x4a0d83
cmp dword [ebp - 0x68], 0x2328
jl 0x4a0d83
cmp dword [ebp - 0x68], 0x232b
jg 0x4a0d83
cmp dword [ebx + 0x25c], 0
je case.0x4a0da9.518
mov edx, dword [ebp - 0x68]
sub edx, 0x2328
mov eax, dword [ebx + 0x25c]
call fcn.004a088c
jmp case.0x4a0da9.518
lea eax, [ebp - 0x70]
push eax
call sub.user32.dll_DispatchMessageA
jmp case.0x4a0da9.518
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffe00
cmp eax, 0xa
ja case.0x4a0da9.518
movzx eax, byte [eax + 0x4a0db0]
jmp dword [eax*4 + 0x4a0dbb]
mov eax, dword [ebp - 0x5c]
cmp eax, dword [0x54d174]
jne 0x4a0de5
mov eax, dword [ebp - 0x58]
cmp eax, dword [0x54d178]
je 0x4a0dfe
mov eax, dword [ebp - 0x5c]
mov dword [0x54d174], eax
mov eax, dword [ebp - 0x58]
mov dword [0x54d178], eax
push ebp
call fcn.004a06f4
pop ecx
push ebp
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.004a05a4
pop ecx
test al, al
je case.0x4a0da9.518
lea ecx, [ebp - 0x15]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x28]
call fcn.0049c718
mov ecx, dword [ebp - 0x11]
mov edx, dword [ebp - 0x15]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp case.0x4a0da9.518
push ebp
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.004a05a4
pop ecx
test al, al
je case.0x4a0da9.518
lea ecx, [ebp - 0x15]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x28]
call fcn.0049c718
mov eax, dword [ebp - 0x11]
push eax
movsx edx, word [ebp - 0x66]
mov ecx, dword [ebp - 0x15]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp case.0x4a0da9.518
cmp dword [ebp - 0x6c], 0x204
setne al
or al, byte [ebp + 8]
je case.0x4a0da9.518
mov eax, dword [0x4f6ecc]
mov eax, dword [eax]
call fcn.0047a280
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
and byte [eax + 0xb3], 0xef
push ebp
lea eax, [ebp - 0x5c]
mov dl, 1
call fcn.004a054c
pop ecx
push ebp
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.004a05a4
pop ecx
test al, al
je case.0x4a0da9.518
cmp dword [ebp - 0x6c], 0x203
je 0x4a0ed2
movzx eax, byte [0x4a10bc]
mov byte [ebp - 0x21], al
jmp 0x4a0edc
movzx eax, byte [0x4a10c0]
mov byte [ebp - 0x21], al
lea ecx, [ebp - 0x15]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x28]
call fcn.0049c718
mov eax, dword [ebp - 0x11]
push eax
lea eax, [ebp - 0xd]
push eax
mov ecx, dword [ebp - 0x15]
movzx edx, byte [ebp - 0x21]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x34]
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x40], eax
movsx eax, word [ebp - 0x40]
mov dword [ebp - 0x48], eax
movsx eax, word [ebp - 0x3e]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x48]
mov dword [0x54d174], eax
mov eax, dword [ebp - 0x44]
mov dword [0x54d178], eax
jmp case.0x4a0da9.518
cmp dword [ebp - 0x6c], 0x202
sete al
or al, byte [ebp + 8]
je case.0x4a0da9.518
push ebp
lea eax, [ebp - 0x5c]
xor edx, edx
call fcn.004a054c
pop ecx
push ebp
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.004a05a4
pop ecx
test al, al
jne 0x4a0fa2
cmp dword [ebp - 0x1c], 0
je 0x4a0f7b
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 4]
jne case.0x4a0da9.518
mov eax, dword [ebp - 4]
cmp byte [eax + 0x71], 0
je case.0x4a0da9.518
mov eax, dword [ebp - 4]
test byte [eax + 0xb3], 0x10
jne 0x4a0f96
call fcn.00404690
call fcn.00404690
jmp 0x4a10b4
mov eax, dword [ebp - 4]
and byte [eax + 0xb3], 0xef
jmp case.0x4a0da9.518
lea ecx, [ebp - 0x15]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x28]
call fcn.0049c718
movzx eax, byte [ebp - 0xd]
push eax
mov ecx, dword [ebp - 0x11]
mov edx, dword [ebp - 0x15]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp case.0x4a0da9.518
lea eax, [ebp - 0x70]
push eax
call sub.user32.dll_DispatchMessageA
push ebp
call fcn.004a0618
pop ecx
test al, al
jne 0x4a0fe8
call fcn.00404690
call fcn.00404690
jmp 0x4a10b4
cmp dword [0x54d174], 0x80000000
jne 0x4a1029
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
movsx eax, word [ebp - 0x4c]
mov dword [ebp - 0x54], eax
movsx eax, word [ebp - 0x4a]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x54]
mov dword [0x54d174], eax
mov eax, dword [ebp - 0x50]
mov dword [0x54d178], eax
push ebp
call fcn.004a06f4
pop ecx
push ebp
call fcn.004a07e8
pop ecx
push ebp
call fcn.004a0618
pop ecx
test al, al
jne 0x4a0a07
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a105c
mov eax, dword [ebp - 4]
call fcn.0049fe08
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc