Function at 0x417965
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
xor ebx, ebx
mov edi, ecx
inc ebx
mov ecx, 0x105
mov dword [ebp - 4], ebx
cmp eax, ecx
ja 0x417bdb
je 0x417af1
cmp eax, 0xa8
ja 0x4179de
cmp eax, 0xa7
jae 0x4179c4
cmp eax, 0x7b
je 0x417a08
cmp eax, 0xa0
jbe 0x417a4e
cmp eax, 0xa2
jbe 0x4179c4
lea ecx, [eax - 0xa4]
cmp ecx, ebx
ja 0x417a4e
push dword [esi]
movsx edx, word [esi + 0xe]
movsx ecx, word [esi + 0xc]
push edx
push ecx
push eax
lea ecx, [edi + 0xfc]
call fcn.0041c267
jmp 0x417a4a
sub eax, 0x100
je 0x417a5d
sub eax, 4
jne 0x417a4e
mov ecx, dword [edi + 0x1f8]
test ecx, ecx
je 0x417a08
push dword [esi + 0xc]
push dword [esi + 8]
push edi
call fcn.0046b067
test eax, eax
je 0x417a08
mov eax, ebx
jmp 0x417a56
mov eax, dword [0x569044]
test eax, eax
je 0x417a3a
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x417a3a
cmp dword [esi + 8], 0x12
jne 0x417a3a
mov eax, dword [0x569044]
push 0
push 0
push 0x10
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x417a04
push 0
push dword [esi + 8]
lea ecx, [edi + 0xfc]
call fcn.0041bfc1
test eax, eax
jne 0x417a04
push esi
mov ecx, edi
call fcn.00466ae0
pop edi
pop esi
pop ebx
leave
ret 4
push esi
call fcn.0041b86b
test eax, eax
jne 0x417a7d
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
lea ecx, [edi + 0xfc]
call fcn.0041bfc1
test eax, eax
jne 0x417a04
xor ebx, ebx
cmp dword [esi + 8], 0x1b
jne 0x417ae1
cmp dword [edi + 0x1cc], ebx
je 0x417a99
push edi
lea ecx, [edi + 0x1b4]
call fcn.0046ddba
mov ecx, dword [edi + 0x3b8]
cmp ecx, ebx
je 0x417ab2
cmp dword [ecx + 8], ebx
je 0x417ab2
cmp dword [ecx + 4], ebx
je 0x417ab2
call fcn.0046dc5a
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0040d887
push eax
push 0x52aed8
call fcn.00410d14
pop ecx
pop ecx
cmp eax, ebx
je 0x417ae1
push ebx
push ebx
push 0x1f
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x417bb3
cmp dword [ebp - 4], ebx
jne 0x417a4e
xor eax, eax
jmp 0x417a56
mov ecx, dword [edi + 0x1f8]
test ecx, ecx
je 0x417b0f
push dword [esi + 0xc]
push dword [esi + 8]
push edi
call fcn.0046a74b
test eax, eax
jne 0x417a04
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call ebx
push 0x10
shr eax, 0xf
and eax, 1
mov dword [ebp - 0xc], eax
call ebx
push dword [edi + 0x20]
movzx ebx, ax
shr ebx, 0xf
and ebx, 1
call sub.IMM32.dll_ImmGetContext
mov dword [ebp + 8], eax
test eax, eax
je 0x417b51
push eax
call sub.IMM32.dll_ImmGetOpenStatus
test eax, eax
je 0x417b51
mov dword [ebp - 8], 1
jmp 0x417b55
and dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x417b66
push dword [ebp + 8]
push dword [edi + 0x20]
call sub.IMM32.dll_ImmReleaseContext
xor ecx, ecx
cmp dword [edi + 0x1a8], ecx
je 0x417bbb
mov eax, dword [esi + 8]
cmp eax, 0x12
je 0x417b8b
cmp eax, 0x79
jne 0x417bbb
cmp dword [ebp - 0xc], ecx
jne 0x417bbb
cmp ebx, ecx
jne 0x417bbb
cmp dword [ebp - 8], ecx
jne 0x417bbb
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0040d887
mov ecx, dword [edi + 0x1a8]
cmp ecx, eax
jne 0x417ba5
mov ecx, edi
jmp 0x417bae
test dword [esi + 0xc], 0x20000000
jne 0x417bb3
call fcn.00409279
xor eax, eax
inc eax
jmp 0x417a56
mov eax, dword [0x569044]
cmp eax, ecx
je 0x417a4e
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x417a4e
jmp 0x417bb3
cmp eax, 0x200
je 0x417c9b
cmp eax, 0x201
je 0x417c32
cmp eax, 0x203
jbe 0x417a4e
cmp eax, 0x205
jbe 0x417c32
cmp eax, 0x206
jbe 0x417a4e
cmp eax, 0x208
jbe 0x417c32
cmp eax, 0x20a
jne 0x417a4e
push dword [esi + 0xc]
lea ecx, [edi + 0xfc]
push dword [esi + 8]
call fcn.0041c741
jmp 0x417a4a
movsx eax, word [esi + 0xc]
push dword [esi]
mov dword [ebp - 0x10], eax
movsx eax, word [esi + 0xe]
mov dword [ebp - 0xc], eax
call fcn.0040d887
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp + 8], eax
test eax, eax
je 0x417c6c
push dword [esi]
call ebx
test eax, eax
je 0x417c6c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esi]
lea ecx, [edi + 0xfc]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [esi + 4]
call fcn.0041c267
test eax, eax
jne 0x417bb3
push dword [esi]
call ebx
test eax, eax
jne 0x417a4e
jmp 0x417bb3
movsx eax, word [esi + 0xc]
push dword [esi]
mov dword [ebp - 0x10], eax
movsx eax, word [esi + 0xe]
mov dword [ebp - 0xc], eax
call fcn.0040d887
test eax, eax
je 0x417cc1
lea ecx, [ebp - 0x10]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 0xc]
lea ecx, [edi + 0xfc]
push dword [ebp - 0x10]
call fcn.0041c68b
jmp 0x417a4a