Function at 0x41c370
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 0x18], eax
mov esi, edx
cmp edi, 0x201
je 0x41c396
cmp edi, 0x204
jne 0x41c39d
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ebx, dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, edi
mov byte [ebp - 1], 0
sub eax, 0x201
je 0x41c5d2
sub eax, 1
je 0x41c5c3
sub eax, 2
jne 0x41c40c
mov eax, dword [esi + 0x20]
test al, 2
je 0x41c40c
test al, 0x10
je 0x41c5b0
mov ecx, dword [esi + 0xc8]
mov eax, dword [esi + 0x68]
mov dword [esi + 0x64], ecx
cmp ecx, eax
jge 0x41c3e6
mov dword [esi + 0x64], eax
jmp 0x41c3e8
mov eax, ecx
inc eax
mov dword [ebp - 0x70], 1
mov dword [esi + 0x6c], eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x70]
push eax
push 0
push 0x120c
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
call ebx
mov ebx, dword [ebp + 0x10]
test byte [esi + 0x20], 2
jne 0x41c927
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x58]
mov ecx, esi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 3
call fcn.0041ee70
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x4c]
and eax, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
and eax, 4
and edx, 0x20
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], edx
je 0x41c474
cmp edi, 0x201
jne 0x41c474
mov ecx, dword [ebp - 0x48]
mov edx, ecx
mov eax, dword [ecx]
mov ecx, esi
shr eax, 2
not al
and al, 1
movzx eax, al
push eax
call fcn.0041ea60
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x24], ecx
test edx, edx
jne 0x41c8b5
cmp edi, 0x201
je 0x41c496
cmp edi, 0x204
jne 0x41c8b5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x41c4ce
push 0
push 0
push 0x41c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x44]
mov dword [esi + 0xf4], 0xffffffff
mov dword [esi + 0xf8], 0xffffffff
mov dword [esi + 0x118], 0xffffffff
mov eax, dword [ebp - 0x4c]
mov edx, eax
and edx, 0x10
mov dword [ebp - 0x1c], edx
je 0x41c579
mov eax, dword [ebp - 0x48]
xor ebx, ebx
test byte [esi + 0x2c], 1
mov dword [esi + 0x70], eax
je 0x41c54f
test byte [eax], 2
jne 0x41c54f
cmp byte [ebp - 1], bl
jne 0x41c54f
lea edx, [ebp - 0xf0]
push edx
mov edx, dword [eax + 0x20]
push ecx
push ecx
mov ecx, esi
call fcn.0041eb40
test al, al
je 0x41c54f
mov ecx, dword [ebp - 0xf0]
mov ebx, 1
mov eax, dword [ebp + 0x10]
test cl, 4
je 0x41c534
cmp eax, dword [ebp - 0xbc]
jl 0x41c534
xor edx, edx
cmp eax, dword [ebp - 0xb4]
cmovl ebx, edx
and ecx, 0x18
cmp cl, 0x18
jne 0x41c54f
cmp eax, dword [ebp - 0x9c]
jl 0x41c54f
xor ecx, ecx
cmp eax, dword [ebp - 0x94]
cmovl ebx, ecx
mov edx, dword [ebp - 0x48]
xor eax, eax
cmp edi, 0x204
mov ecx, esi
sete al
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
call fcn.0041f280
test ebx, ebx
mov ebx, dword [ebp + 0x10]
je 0x41c8b2
mov eax, dword [ebp - 0x4c]
xor dl, dl
mov byte [ebp - 2], 0
or ecx, 0xffffffff
mov byte [ebp - 0x14], 0
mov byte [ebp + 0x13], dl
test al, 0xf
jne 0x41c833
cmp byte [ebp - 1], dl
jne 0x41c833
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x41c635
mov eax, dword [eax + 0x20]
mov dword [ebp - 8], eax
jmp 0x41c63c
mov dword [esi + 0x64], 0
mov dword [esi + 0x6c], 0
jmp 0x41c40a
test byte [esi + 0x20], 2
je 0x41c40c
jmp 0x41c40a
mov ecx, dword [esi + 0x20]
mov ebx, dword [ebp + 0x10]
test cl, 0x20
je 0x41c40f
mov edx, dword [esi + 0x64]
lea eax, [edx - 8]
cmp ebx, eax
jl 0x41c40f
lea eax, [edx + 8]
cmp ebx, eax
jge 0x41c40f
push dword [ebp - 0x18]
or ecx, 2
mov byte [ebp - 1], 1
mov dword [esi + 0x20], ecx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], edx
call dword [sym.imp.USER32.dll_SetCapture]
push 0
push 0x64
push 1
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_SetTimer]
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
jmp 0x41c419
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x41c64b
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
jmp 0x41c652
mov dword [ebp - 0xc], 0xffffffff
mov edx, dword [esi + 0x19c]
mov eax, ebx
mov ecx, dword [esi + 0x1a0]
sub eax, edx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
sub eax, ecx
mov dword [ebp - 0x38], eax
lea eax, [edx + ebx]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
add eax, ecx
push 2
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_MapWindowPoints]
push dword [esi]
call dword [sym.imp.USER32.dll_SetCapture]
xor eax, eax
mov dword [ebp - 0x10], eax
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x41c70f
mov eax, dword [ebp - 0x58]
add eax, 0xfffffe00
cmp eax, 5
ja case.0x41c6bb.515
jmp dword [eax*4 + 0x41c9a4]
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x10], eax
jmp 0x41c715
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x3c]
jl 0x41c6ea
cmp eax, dword [ebp - 0x34]
jge 0x41c6ea
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x38]
jl 0x41c6ea
cmp eax, dword [ebp - 0x30]
jl 0x41c715
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
setne dl
jmp 0x41c731
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x41c715
call dword [sym.imp.USER32.dll_WaitMessage]
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41c72f
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi]
je 0x41c698
xor dl, dl
mov ecx, dword [ebp - 8]
cmp ecx, 0xffffffff
jne 0x41c73d
xor ecx, ecx
jmp 0x41c751
mov eax, dword [esi + 0xd0]
cmp ecx, dword [eax]
jae 0x41c927
mov eax, dword [eax + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
cmp eax, 0xffffffff
je 0x41c782
cmp eax, dword [esi + 0x98]
jae 0x41c927
mov edi, dword [ebp - 0xc]
mov eax, dword [esi + 0x90]
mov eax, dword [eax + edi*4]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x41c927
test dl, dl
je 0x41c7a6
cmp dword [ebp - 0x1c], 0
mov byte [ebp - 2], 1
je 0x41c830
test byte [esi + 0x2c], 1
je 0x41c830
mov ecx, dword [ecx + 0x20]
jmp 0x41c833
cmp edi, 0x201
jne 0x41c7b9
cmp dword [ebp - 0x10], 0x202
je 0x41c7ca
jmp 0x41c830
cmp edi, 0x204
jne 0x41c830
cmp dword [ebp - 0x10], 0x205
jne 0x41c830
cmp dword [ebp - 0x1c], 0
je 0x41c7e5
mov eax, dword [ebp - 0x14]
mov ecx, 1
test byte [esi + 0x2c], 1
movzx eax, al
cmovne eax, ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [esi]
lea edx, [ebp - 0x20]
call fcn.00422260
cmp dword [ebp - 0x20], ebx
jne 0x41c81e
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x1c], eax
jne 0x41c81e
mov ecx, dword [ebp + 0xc]
xor edx, edx
push ecx
mov ecx, dword [ebp - 0x24]
cmp edi, 0x201
push ecx
push dword [ebp - 8]
setne dl
mov ecx, esi
push eax
push ebx
add edx, 0xd
call fcn.0041de40
cmp edi, 0x204
sete dl
cmp byte [ebp - 0x14], 0
mov byte [ebp + 0x13], dl
jne 0x41c88e
or ecx, 0xffffffff
cmp dword [ebp - 0x28], 0
jne 0x41c879
cmp dword [ebp - 0x2c], 0
jne 0x41c879
lea eax, [ebp + 0xc]
mov edx, ecx
push eax
lea eax, [ebp + 8]
push eax
push 4
push ecx
mov ecx, esi
call fcn.0041f050
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x80]
push eax
push 1
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0041edc0
test al, al
je 0x41c879
push 0
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp byte [ebp - 2], 0
je 0x41c88b
push dword [ebp + 0x14]
mov edx, ebx
mov ecx, esi
call fcn.004219c0
mov dl, byte [ebp + 0x13]
test dl, dl
je 0x41c927
mov esi, dword [esi]
call dword [sym.imp.USER32.dll_GetMessagePos]
push eax
push esi
push 0x7b
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 8]
or eax, 0xffffffff
cmp edi, 0x201
je 0x41c973
cmp edi, 0x204
je 0x41c973
cmp edi, 0x202
je 0x41c93f
cmp edi, 0x205
je 0x41c93f
cmp edi, 0x203
jne 0x41c930
mov eax, 0xf
mov ecx, dword [ebp + 0x14]
test edx, edx
jne 0x41c927
cmp eax, 0xffffffff
je 0x41c927
push dword [esi + 0x8c]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp + 0xc]
push edx
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x40]
push ecx
push eax
push dword [esi]
mov eax, dword [esi + 0x88]
mov dword [ebp - 0x40], ebx
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp edi, 0x206
jne 0x41c8ed
mov eax, 0x10
jmp 0x41c8ed
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x41c967
cmp dword [esi + 0x80], ebx
jne 0x41c967
mov edi, dword [ebp + 0x14]
cmp dword [esi + 0x84], edi
jne 0x41c967
xor eax, eax
cmp ecx, 0x201
setne al
add eax, 0xd
mov dword [esi + 0x7c], 0
jmp 0x41c8ed
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x41c98c
cmp ecx, edi
je 0x41c98c
xor eax, eax
cmp ecx, 0x201
setne al
add eax, 0xd
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ecx
jmp 0x41c8f0