Function at 0x4a691f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0x105
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, dword [edi + 4]
cmp esi, eax
ja 0x4a6b95
je 0x4a6abe
cmp esi, 0xa8
ja 0x4a6998
cmp esi, 0xa7
jae 0x4a697b
cmp esi, 0x7b
je 0x4a69cc
cmp esi, 0xa0
jbe 0x4a6a2d
cmp esi, 0xa2
jbe 0x4a697b
lea eax, [esi - 0xa4]
cmp eax, 1
ja 0x4a6a2d
push dword [edi]
movsx ecx, word [edi + 0xe]
movsx edx, word [edi + 0xc]
push ecx
push edx
push esi
lea ecx, [ebx + 0x350]
call fcn.004d04ed
jmp 0x4a6a29
sub esi, 0x100
je 0x4a6a3e
sub esi, 4
jne 0x4a6a2d
mov ecx, dword [ebx + 0x44c]
test ecx, ecx
je 0x4a69cc
push dword [edi + 0xc]
push dword [edi + 8]
push ebx
call fcn.005062f3
test eax, eax
je 0x4a69cc
xor eax, eax
inc eax
jmp 0x4a6a35
call fcn.0042d846
xor esi, esi
cmp dword [eax + 0x1a4], esi
jne 0x4a69fc
call fcn.0042d846
cmp dword [eax + 0x1a0], esi
jne 0x4a69fc
call fcn.0042d846
mov dword [eax + 0x1a0], 1
call fcn.0045d48f
call fcn.00476a67
test eax, eax
je 0x4a6a1a
cmp dword [edi + 8], 0x12
jne 0x4a6a1a
push esi
push esi
push 0x10
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4a69c7
push esi
push dword [edi + 8]
lea ecx, [ebx + 0x350]
call fcn.004d0260
test eax, eax
jne 0x4a69c7
push edi
mov ecx, ebx
call fcn.004f7126
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.004cef50
xor esi, esi
test eax, eax
jne 0x4a6a61
push esi
push dword [edi + 8]
lea ecx, [ebx + 0x350]
call fcn.004d0260
test eax, eax
jne 0x4a69c7
cmp dword [edi + 8], 0x1b
jne 0x4a6a2d
cmp dword [ebx + 0x420], esi
je 0x4a6a7b
push ebx
lea ecx, [ebx + 0x408]
call fcn.00513020
mov ecx, dword [ebx + 0x318]
test ecx, ecx
je 0x4a6a94
cmp dword [ecx + 8], esi
je 0x4a6a94
cmp dword [ecx + 4], esi
je 0x4a6a94
call fcn.004b89b9
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0041f6be
push eax
push 0x5b3aa0
call fcn.004183ed
pop ecx
pop ecx
test eax, eax
je 0x4a6a2d
push esi
push esi
push 0x1f
jmp 0x4a6a0f
mov ecx, dword [ebx + 0x44c]
test ecx, ecx
je 0x4a6adc
push dword [edi + 0xc]
push dword [edi + 8]
push ebx
call fcn.00506444
test eax, eax
jne 0x4a69c7
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
shr eax, 0xf
and eax, 1
push 0x10
mov dword [ebp - 8], eax
call esi
push dword [ebx + 0x20]
shr eax, 0xf
and eax, 1
mov dword [ebp - 0xc], eax
call sub.IMM32.dll_ImmGetContext
xor esi, esi
mov dword [ebp - 4], eax
test eax, eax
je 0x4a6b1e
push eax
call sub.IMM32.dll_ImmGetOpenStatus
mov dword [ebp + 8], 1
test eax, eax
jne 0x4a6b21
mov dword [ebp + 8], esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a6b31
push eax
push dword [ebx + 0x20]
call sub.IMM32.dll_ImmReleaseContext
cmp dword [ebx + 0x3fc], esi
je 0x4a6b8b
cmp dword [edi + 8], 0x12
je 0x4a6b54
cmp dword [edi + 8], 0x79
jne 0x4a6b8b
cmp dword [ebp - 8], esi
jne 0x4a6b8b
cmp dword [ebp - 0xc], esi
jne 0x4a6b8b
cmp dword [ebp + 8], esi
jne 0x4a6b8b
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0041f6be
mov ecx, dword [ebx + 0x3fc]
cmp ecx, eax
jne 0x4a6b6e
mov ecx, ebx
jmp 0x4a6b81
cmp dword [edi + 8], 0x12
je 0x4a6b81
test dword [edi + 0xc], 0x20000000
jne 0x4a69c7
call fcn.0041d0f1
jmp 0x4a69c7
call fcn.00476a67
jmp 0x4a6a29
cmp esi, 0x200
je 0x4a6c5c
cmp esi, 0x201
je 0x4a6bf3
cmp esi, 0x203
jbe 0x4a6a2d
cmp esi, 0x205
jbe 0x4a6bf3
cmp esi, 0x206
jbe 0x4a6a2d
cmp esi, 0x208
jbe 0x4a6bf3
cmp esi, 0x20a
jne 0x4a6a2d
push dword [edi + 0xc]
lea ecx, [ebx + 0x350]
push dword [edi + 8]
call fcn.004d0ba5
jmp 0x4a6a29
movsx eax, word [edi + 0xc]
push dword [edi]
mov dword [ebp - 0x10], eax
movsx eax, word [edi + 0xe]
mov dword [ebp - 0xc], eax
call fcn.0041f6be
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp + 8], eax
test eax, eax
je 0x4a6c2d
push dword [edi]
call esi
test eax, eax
je 0x4a6c2d
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [edi]
lea ecx, [ebx + 0x350]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [edi + 4]
call fcn.004d04ed
test eax, eax
jne 0x4a69c7
push dword [edi]
call esi
test eax, eax
jne 0x4a6a2d
jmp 0x4a69c7
movsx eax, word [edi + 0xc]
push dword [edi]
mov dword [ebp - 0x10], eax
movsx eax, word [edi + 0xe]
mov dword [ebp - 0xc], eax
call fcn.0041f6be
test eax, eax
je 0x4a6c82
lea ecx, [ebp - 0x10]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 0xc]
lea ecx, [ebx + 0x350]
push dword [ebp - 0x10]
call fcn.004d0abd
jmp 0x4a6a29