Function at 0x4a47ee
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor ecx, ecx
mov eax, 0x105
inc ecx
mov dword [ebp - 4], ecx
mov esi, dword [edi + 4]
cmp esi, eax
ja 0x4a4a9c
je 0x4a49b4
cmp esi, 0xa8
ja 0x4a486c
cmp esi, 0xa7
jae 0x4a484f
cmp esi, 0x7b
je 0x4a48a0
cmp esi, 0xa0
jbe 0x4a4913
cmp esi, 0xa2
jbe 0x4a484f
lea eax, [esi - 0xa4]
cmp eax, ecx
ja 0x4a4913
push dword [edi]
movsx ecx, word [edi + 0xe]
movsx edx, word [edi + 0xc]
push ecx
push edx
push esi
lea ecx, [ebx + 0x134]
call fcn.004cfed3
jmp 0x4a490f
sub esi, 0x100
je 0x4a4924
sub esi, 4
jne 0x4a4913
mov ecx, dword [ebx + 0x230]
test ecx, ecx
je 0x4a48a0
push dword [edi + 0xc]
push dword [edi + 8]
push ebx
call fcn.00505e11
test eax, eax
je 0x4a48a0
xor eax, eax
inc eax
jmp 0x4a491b
call fcn.0042d3a9
xor esi, esi
cmp dword [eax + 0x1a4], esi
jne 0x4a48d0
call fcn.0042d3a9
cmp dword [eax + 0x1a0], esi
jne 0x4a48d0
call fcn.0042d3a9
mov dword [eax + 0x1a0], 1
call fcn.0045cfdb
mov eax, dword [0x5f8580]
test eax, eax
je 0x4a4900
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a4900
cmp dword [edi + 8], 0x12
jne 0x4a4900
mov eax, dword [0x5f8580]
push esi
push esi
push 0x10
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4a489b
push esi
push dword [edi + 8]
lea ecx, [ebx + 0x134]
call fcn.004cfc46
test eax, eax
jne 0x4a489b
push edi
mov ecx, ebx
call fcn.0047d082
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.004ce938
test eax, eax
jne 0x4a4948
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
lea ecx, [ebx + 0x134]
call fcn.004cfc46
test eax, eax
jne 0x4a489b
cmp dword [edi + 8], 0x1b
jne 0x4a49a3
xor esi, esi
cmp dword [ebx + 0x204], esi
je 0x4a4964
push ebx
lea ecx, [ebx + 0x1ec]
call fcn.00512b46
mov ecx, dword [ebx + 0x3f0]
test ecx, ecx
je 0x4a497d
cmp dword [ecx + 8], esi
je 0x4a497d
cmp dword [ecx + 4], esi
je 0x4a497d
call fcn.004b8380
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0041e757
push eax
push 0x5b0a98
call fcn.00417dfc
pop ecx
pop ecx
test eax, eax
je 0x4a49a3
push esi
push esi
push 0x1f
jmp 0x4a48f5
cmp dword [ebp - 4], 0
jne 0x4a4913
xor eax, eax
jmp 0x4a491b
mov ecx, dword [ebx + 0x230]
test ecx, ecx
je 0x4a49d2
push dword [edi + 0xc]
push dword [edi + 8]
push ebx
call fcn.00505f62
test eax, eax
jne 0x4a489b
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
shr eax, 0xf
and eax, 1
push 0x10
mov dword [ebp - 0xc], eax
call esi
push dword [ebx + 0x20]
shr eax, 0xf
and eax, 1
mov dword [ebp - 0x10], eax
call sub.IMM32.dll_ImmGetContext
xor esi, esi
mov dword [ebp - 8], eax
test eax, eax
je 0x4a4a14
push eax
call sub.IMM32.dll_ImmGetOpenStatus
mov dword [ebp + 8], 1
test eax, eax
jne 0x4a4a17
mov dword [ebp + 8], esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a4a27
push eax
push dword [ebx + 0x20]
call sub.IMM32.dll_ImmReleaseContext
cmp dword [ebx + 0x1e0], esi
je 0x4a4a81
cmp dword [edi + 8], 0x12
je 0x4a4a4a
cmp dword [edi + 8], 0x79
jne 0x4a4a81
cmp dword [ebp - 0xc], esi
jne 0x4a4a81
cmp dword [ebp - 0x10], esi
jne 0x4a4a81
cmp dword [ebp + 8], esi
jne 0x4a4a81
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0041e757
mov ecx, dword [ebx + 0x1e0]
cmp ecx, eax
jne 0x4a4a64
mov ecx, ebx
jmp 0x4a4a77
cmp dword [edi + 8], 0x12
je 0x4a4a77
test dword [edi + 0xc], 0x20000000
jne 0x4a489b
call fcn.00423108
jmp 0x4a489b
mov eax, dword [0x5f8580]
test eax, eax
je 0x4a4913
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x4a490f
cmp esi, 0x200
je 0x4a4b63
cmp esi, 0x201
je 0x4a4afa
cmp esi, 0x203
jbe 0x4a4913
cmp esi, 0x205
jbe 0x4a4afa
cmp esi, 0x206
jbe 0x4a4913
cmp esi, 0x208
jbe 0x4a4afa
cmp esi, 0x20a
jne 0x4a4913
push dword [edi + 0xc]
lea ecx, [ebx + 0x134]
push dword [edi + 8]
call fcn.004d058b
jmp 0x4a490f
movsx eax, word [edi + 0xc]
push dword [edi]
mov dword [ebp - 0x14], eax
movsx eax, word [edi + 0xe]
mov dword [ebp - 0x10], eax
call fcn.0041e757
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp + 8], eax
test eax, eax
je 0x4a4b34
push dword [edi]
call esi
test eax, eax
je 0x4a4b34
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [edi]
lea ecx, [ebx + 0x134]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [edi + 4]
call fcn.004cfed3
test eax, eax
jne 0x4a489b
push dword [edi]
call esi
test eax, eax
jne 0x4a4913
jmp 0x4a489b
movsx eax, word [edi + 0xc]
push dword [edi]
mov dword [ebp - 0x14], eax
movsx eax, word [edi + 0xe]
mov dword [ebp - 0x10], eax
call fcn.0041e757
test eax, eax
je 0x4a4b89
lea ecx, [ebp - 0x14]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 0x10]
lea ecx, [ebx + 0x134]
push dword [ebp - 0x14]
call fcn.004d04a3
jmp 0x4a490f