Function at 0x4a7cc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, 0x105
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [esi + 4]
cmp edi, eax
ja 0x4a7f81
je 0x4a7e99
cmp edi, 0xa8
ja 0x4a7d39
cmp edi, 0xa7
jae 0x4a7d1c
cmp edi, 0x7b
je 0x4a7d70
cmp edi, 0xa0
jbe 0x4a7f70
cmp edi, 0xa2
jbe 0x4a7d1c
lea eax, [edi - 0xa4]
cmp eax, 1
ja 0x4a7f70
push dword [esi]
movsx ecx, word [esi + 0xe]
movsx edx, word [esi + 0xc]
push ecx
push edx
push edi
lea ecx, [ebx + 0x350]
call fcn.004d7505
jmp 0x4a7f68
sub edi, 0x100
je 0x4a7e15
sub edi, 4
jne 0x4a7f70
mov ecx, dword [ebx + 0x44c]
test ecx, ecx
je 0x4a7d70
push dword [esi + 0xc]
push dword [esi + 8]
push ebx
call fcn.0051440a
test eax, eax
je 0x4a7d70
xor eax, eax
inc eax
jmp 0x4a7f78
mov eax, dword [0x5c9420]
xor edi, edi
inc edi
test eax, eax
jne 0x4a7d8d
mov ecx, 0x5c9420
call fcn.00437ea5
mov eax, edi
mov dword [0x5c9420], eax
cmp dword [0x5c95c4], 0
jne 0x4a7dd3
test eax, eax
jne 0x4a7dab
mov ecx, 0x5c9420
call fcn.00437ea5
mov eax, edi
mov dword [0x5c9420], eax
cmp dword [0x5c95c0], 0
jne 0x4a7dd3
test eax, eax
jne 0x4a7dc8
mov ecx, 0x5c9420
call fcn.00437ea5
mov dword [0x5c9420], edi
mov dword [0x5c95c0], edi
call fcn.00457b0d
call fcn.00473a7e
test eax, eax
je 0x4a7df6
cmp dword [esi + 8], 0x12
jne 0x4a7df6
xor edi, edi
push edi
push edi
push 0x10
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4a7d68
push 0
push dword [esi + 8]
lea ecx, [ebx + 0x350]
call fcn.004d7223
test eax, eax
je 0x4a7f70
mov eax, edi
jmp 0x4a7f78
push esi
call fcn.004d5b2f
xor edi, edi
test eax, eax
jne 0x4a7e38
push edi
push dword [esi + 8]
lea ecx, [ebx + 0x350]
call fcn.004d7223
test eax, eax
jne 0x4a7d68
cmp dword [esi + 8], 0x1b
jne 0x4a7f70
cmp dword [ebx + 0x420], edi
je 0x4a7e56
push ebx
lea ecx, [ebx + 0x408]
call fcn.00522a1f
mov ecx, dword [ebx + 0x318]
test ecx, ecx
je 0x4a7e6f
cmp dword [ecx + 8], edi
je 0x4a7e6f
cmp dword [ecx + 4], edi
je 0x4a7e6f
call fcn.004bc2c3
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00414da9
push eax
push 0x597aa8
call fcn.00409c20
pop ecx
pop ecx
test eax, eax
je 0x4a7f70
push edi
push edi
push 0x1f
jmp 0x4a7de8
mov ecx, dword [ebx + 0x44c]
test ecx, ecx
je 0x4a7eb7
push dword [esi + 0xc]
push dword [esi + 8]
push ebx
call fcn.00514545
test eax, eax
jne 0x4a7d68
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
push 0x10
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetKeyState]
push dword [ebx + 0x20]
cwde
mov dword [ebp - 0x10], eax
call sub.IMM32.dll_ImmGetContext
xor edi, edi
mov dword [ebp - 8], eax
test eax, eax
je 0x4a7ef1
push eax
call sub.IMM32.dll_ImmGetOpenStatus
mov dword [ebp - 4], 1
test eax, eax
jne 0x4a7ef4
mov dword [ebp - 4], edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a7f04
push eax
push dword [ebx + 0x20]
call sub.IMM32.dll_ImmReleaseContext
cmp dword [ebx + 0x3fc], edi
je 0x4a7f63
cmp dword [esi + 8], 0x12
je 0x4a7f2c
cmp dword [esi + 8], 0x79
jne 0x4a7f63
mov eax, 0x8000
test dword [ebp - 0xc], eax
jne 0x4a7f63
test dword [ebp - 0x10], eax
jne 0x4a7f63
cmp dword [ebp - 4], edi
jne 0x4a7f63
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.00414da9
mov ecx, dword [ebx + 0x3fc]
cmp ecx, eax
jne 0x4a7f46
mov ecx, ebx
jmp 0x4a7f59
cmp dword [esi + 8], 0x12
je 0x4a7f59
test dword [esi + 0xc], 0x20000000
jne 0x4a7d68
call fcn.00411971
jmp 0x4a7d68
call fcn.00473a7e
test eax, eax
jne 0x4a7d68
push esi
mov ecx, ebx
call fcn.00502279
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp edi, 0x200
je 0x4a8037
cmp edi, 0x201
je 0x4a7fd0
cmp edi, 0x203
jbe 0x4a7f70
cmp edi, 0x205
jbe 0x4a7fd0
cmp edi, 0x206
jbe 0x4a7f70
cmp edi, 0x208
jbe 0x4a7fd0
cmp edi, 0x20a
jne 0x4a7f70
push dword [esi + 0xc]
lea ecx, [ebx + 0x350]
push dword [esi + 8]
call fcn.004d7c61
jmp 0x4a7f68
movsx eax, word [esi + 0xc]
push dword [esi]
mov dword [ebp - 0x14], eax
movsx eax, word [esi + 0xe]
mov dword [ebp - 0x10], eax
call fcn.00414da9
mov edi, eax
test edi, edi
je 0x4a8004
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a8004
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esi]
lea ecx, [ebx + 0x350]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [esi + 4]
call fcn.004d7505
test eax, eax
jne 0x4a7d68
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4a7f70
jmp 0x4a7d68
movsx eax, word [esi + 0xc]
push dword [esi]
mov dword [ebp - 0x14], eax
movsx eax, word [esi + 0xe]
mov dword [ebp - 0x10], eax
call fcn.00414da9
test eax, eax
je 0x4a805d
lea ecx, [ebp - 0x14]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 0x10]
lea ecx, [ebx + 0x350]
push dword [ebp - 0x14]
call fcn.004d7b6f
jmp 0x4a7f68