Function at 0x4950d9
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 0x49534f
je 0x495278
cmp esi, 0xa8
ja 0x495152
cmp esi, 0xa7
jae 0x495135
cmp esi, 0x7b
je 0x495186
cmp esi, 0xa0
jbe 0x4951e7
cmp esi, 0xa2
jbe 0x495135
lea eax, [esi - 0xa4]
cmp eax, 1
ja 0x4951e7
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.004beec1
jmp 0x4951e3
sub esi, 0x100
je 0x4951f8
sub esi, 4
jne 0x4951e7
mov ecx, dword [ebx + 0x44c]
test ecx, ecx
je 0x495186
push dword [edi + 0xc]
push dword [edi + 8]
push ebx
call fcn.004f50c0
test eax, eax
je 0x495186
xor eax, eax
inc eax
jmp 0x4951ef
call fcn.0041c1d6
xor esi, esi
cmp dword [eax + 0x1a4], esi
jne 0x4951b6
call fcn.0041c1d6
cmp dword [eax + 0x1a0], esi
jne 0x4951b6
call fcn.0041c1d6
mov dword [eax + 0x1a0], 1
call fcn.0044c143
call fcn.00465470
test eax, eax
je 0x4951d4
cmp dword [edi + 8], 0x12
jne 0x4951d4
push esi
push esi
push 0x10
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x495181
push esi
push dword [edi + 8]
lea ecx, [ebx + 0x350]
call fcn.004bec34
test eax, eax
jne 0x495181
push edi
mov ecx, ebx
call fcn.004e5ec6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.004bd926
xor esi, esi
test eax, eax
jne 0x49521b
push esi
push dword [edi + 8]
lea ecx, [ebx + 0x350]
call fcn.004bec34
test eax, eax
jne 0x495181
cmp dword [edi + 8], 0x1b
jne 0x4951e7
cmp dword [ebx + 0x420], esi
je 0x495235
push ebx
lea ecx, [ebx + 0x408]
call fcn.00501e69
mov ecx, dword [ebx + 0x318]
test ecx, ecx
je 0x49524e
cmp dword [ecx + 8], esi
je 0x49524e
cmp dword [ecx + 4], esi
je 0x49524e
call fcn.004a723f
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0040f6a3
push eax
push 0x571dc8
call fcn.00405d23
pop ecx
pop ecx
test eax, eax
je 0x4951e7
push esi
push esi
push 0x1f
jmp 0x4951c9
mov ecx, dword [ebx + 0x44c]
test ecx, ecx
je 0x495296
push dword [edi + 0xc]
push dword [edi + 8]
push ebx
call fcn.004f5211
test eax, eax
jne 0x495181
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 0x4952d8
push eax
call sub.IMM32.dll_ImmGetOpenStatus
mov dword [ebp + 8], 1
test eax, eax
jne 0x4952db
mov dword [ebp + 8], esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x4952eb
push eax
push dword [ebx + 0x20]
call sub.IMM32.dll_ImmReleaseContext
cmp dword [ebx + 0x3fc], esi
je 0x495345
cmp dword [edi + 8], 0x12
je 0x49530e
cmp dword [edi + 8], 0x79
jne 0x495345
cmp dword [ebp - 8], esi
jne 0x495345
cmp dword [ebp - 0xc], esi
jne 0x495345
cmp dword [ebp + 8], esi
jne 0x495345
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0040f6a3
mov ecx, dword [ebx + 0x3fc]
cmp ecx, eax
jne 0x495328
mov ecx, ebx
jmp 0x49533b
cmp dword [edi + 8], 0x12
je 0x49533b
test dword [edi + 0xc], 0x20000000
jne 0x495181
call fcn.0040d059
jmp 0x495181
call fcn.00465470
jmp 0x4951e3
cmp esi, 0x200
je 0x495416
cmp esi, 0x201
je 0x4953ad
cmp esi, 0x203
jbe 0x4951e7
cmp esi, 0x205
jbe 0x4953ad
cmp esi, 0x206
jbe 0x4951e7
cmp esi, 0x208
jbe 0x4953ad
cmp esi, 0x20a
jne 0x4951e7
push dword [edi + 0xc]
lea ecx, [ebx + 0x350]
push dword [edi + 8]
call fcn.004bf579
jmp 0x4951e3
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.0040f6a3
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp + 8], eax
test eax, eax
je 0x4953e7
push dword [edi]
call esi
test eax, eax
je 0x4953e7
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.004beec1
test eax, eax
jne 0x495181
push dword [edi]
call esi
test eax, eax
jne 0x4951e7
jmp 0x495181
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.0040f6a3
test eax, eax
je 0x49543c
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.004bf491
jmp 0x4951e3