Function at 0x41c91c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov byte [ebp - 5], 1
cmp byte [ebx + 4], 0
jne 0x41c93f
mov byte [ebp - 5], 0
jmp 0x41cdb2
call fcn.0042c58c
test al, al
je 0x41c96b
cmp esi, 0x201
je 0x41c960
cmp esi, 0x203
je 0x41c960
cmp esi, 0x100
jne 0x41c96b
mov eax, dword [ebx + 0x22c]
call fcn.0041bd4c
cmp byte [ebx + 5], 0
je 0x41ca61
cmp esi, 0x201
je 0x41c985
cmp esi, 0x203
jne 0x41c9f3
mov eax, dword [ebp + 8]
call fcn.00406114
movsx edx, ax
lea ecx, [ebp - 0xd]
movsx eax, word [ebp + 8]
call fcn.00410c9c
mov edx, dword [ebx + 0x208]
mov eax, dword [ebp - 0xd]
cmp edx, eax
jg 0x41ca61
add edx, dword [ebx + 0x210]
cmp eax, edx
jge 0x41ca61
mov eax, dword [ebp - 9]
cmp eax, dword [ebx + 0x20c]
jl 0x41ca61
mov eax, dword [ebx + 0x20c]
add eax, dword [ebx + 0x218]
cmp eax, dword [ebp - 9]
jle 0x41ca61
mov byte [ebx + 7], 1
call fcn.0042c4c0
push eax
call sub.user32.dll_SetCapture
jmp 0x41cdb2
cmp esi, 0x202
jne 0x41ca61
cmp byte [ebx + 7], 0
je 0x41ca61
mov eax, dword [ebp + 8]
call fcn.00406114
movsx edx, ax
lea ecx, [ebp - 0xd]
movsx eax, word [ebp + 8]
call fcn.00410c9c
mov edx, dword [ebx + 0x208]
mov eax, dword [ebp - 0xd]
cmp edx, eax
jg 0x41ca61
add edx, dword [ebx + 0x210]
cmp eax, edx
jge 0x41ca61
mov eax, dword [ebp - 9]
cmp eax, dword [ebx + 0x20c]
jl 0x41ca61
mov eax, dword [ebx + 0x20c]
add eax, dword [ebx + 0x218]
cmp eax, dword [ebp - 9]
jle 0x41ca61
call sub.user32.dll_ReleaseCapture
mov byte [ebx + 7], 0
mov al, byte [ebx + 6]
xor al, 1
mov byte [ebx + 6], al
jmp 0x41cdb2
cmp byte [ebx + 6], 0
je 0x41ca70
mov byte [ebp - 5], 0
jmp 0x41cdb2
cmp dword [0x46f5ac], 0
je 0x41caac
mov eax, dword [0x46f5ac]
cmp ebx, dword [eax + 0x40]
jne 0x41caac
mov eax, dword [0x46f5ac]
mov edx, dword [eax]
call dword [edx + 8]
test al, al
je 0x41caac
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, esi
mov eax, dword [0x46f5ac]
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x41cdb2
mov eax, esi
cmp eax, 0x100
jge 0x41cac9
sub eax, 3
je 0x41caff
sub eax, 2
je 0x41caff
sub eax, 0x17
je 0x41cb1c
jmp 0x41cdae
add eax, 0xffffff00
sub eax, 2
jb 0x41cb6d
add eax, 0xfffffffe
sub eax, 2
jb 0x41cb6d
add eax, 0xffffff06
sub eax, 0xe
jb 0x41cc9f
sub eax, 7
je 0x41cda2
jmp 0x41cdae
lea ecx, [ebp - 0x1c]
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.00410c9c
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0041ce20
jmp 0x41cdae
cmp dword [0x46f5ac], 0
je 0x41cdae
mov eax, dword [0x46f5ac]
cmp ebx, dword [eax + 0x40]
jne 0x41cdae
mov eax, dword [0x46f5ac]
mov edx, dword [eax]
call dword [edx + 8]
test al, al
je 0x41cdae
cmp dword [ebp + 0xc], 0
je 0x41cb5e
mov eax, dword [0x46f5ac]
mov edx, dword [eax]
call dword [edx + 0x34]
jmp 0x41cdae
mov eax, dword [0x46f5ac]
mov edx, dword [eax]
call dword [edx + 0x38]
jmp 0x41cdae
cmp dword [0x46f5ac], 0
je 0x41cba9
mov eax, dword [0x46f5ac]
cmp ebx, dword [eax + 0x40]
jne 0x41cba9
mov eax, dword [0x46f5ac]
mov edx, dword [eax]
call dword [edx + 8]
test al, al
je 0x41cba9
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, esi
mov eax, dword [0x46f5ac]
mov edi, dword [eax]
call dword [edi + 0x28]
test al, al
jne 0x41cdb2
cmp esi, 0x100
jne 0x41cc08
cmp dword [0x46f5ac], 0
je 0x41cbca
mov eax, dword [0x46f5ac]
mov eax, dword [eax + 8]
add eax, 0xfffffff6
sub eax, 2
jb 0x41cc08
mov eax, dword [ebx + 0x240]
call fcn.00404bbc
dec eax
test eax, eax
jl 0x41cc08
inc eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebx + 0x240]
mov ecx, dword [ebp - 0x14]
mov edi, dword [edx + ecx*4]
mov edx, dword [edi + 0xc]
cmp edx, dword [ebp + 0xc]
jne 0x41cc02
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x44]
jmp 0x41cdb2
inc dword [ebp - 0x14]
dec eax
jne 0x41cbe2
cmp esi, 0x100
jne 0x41cdae
cmp byte [ebx + 0x265], 0
jne 0x41cc26
mov byte [ebp - 5], 0
jmp 0x41cdb2
mov eax, dword [ebp + 0xc]
sub eax, 9
je 0x41cc7b
add eax, 0xffffffe4
sub eax, 2
jb 0x41cc5d
sub eax, 2
jae 0x41cdae
cmp dword [0x46f5ac], 0
je 0x41cdae
mov dl, 1
mov eax, ebx
call fcn.0041db38
mov byte [ebp - 5], al
jmp 0x41cdb2
cmp dword [0x46f5ac], 0
je 0x41cdae
xor edx, edx
mov eax, ebx
call fcn.0041db38
mov byte [ebp - 5], al
jmp 0x41cdb2
push 0x10
call sub.user32.dll_GetKeyState
movsx eax, ax
test ah, 0x80
setne al
mov edx, eax
xor dl, 1
mov eax, ebx
call fcn.0041db38
mov byte [ebp - 5], al
jmp 0x41cdb2
cmp byte [ebx + 0x266], 0
jne 0x41ccb1
mov byte [ebp - 5], 0
jmp 0x41cdb2
mov eax, dword [ebp + 8]
call fcn.00406114
movsx edx, ax
lea ecx, [ebp - 0xd]
movsx eax, word [ebp + 8]
call fcn.00410c9c
mov eax, dword [ebx + 0x208]
sub dword [ebp - 0xd], eax
mov eax, dword [ebx + 0x20c]
sub dword [ebp - 9], eax
cmp byte [ebx + 5], 0
je 0x41cce9
mov eax, dword [ebx + 0x218]
sub dword [ebp - 9], eax
cmp dword [0x46f5ac], 0
je 0x41cd29
mov eax, dword [0x46f5ac]
cmp ebx, dword [eax + 0x40]
jne 0x41cd29
mov eax, dword [0x46f5ac]
mov edx, dword [eax]
call dword [edx + 8]
test al, al
je 0x41cd29
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xd]
mov edx, esi
mov eax, dword [0x46f5ac]
mov edi, dword [eax]
call dword [edi + 0x2c]
test al, al
jne 0x41cdb2
lea edx, [ebp - 0xd]
mov eax, ebx
call fcn.0041cdc0
mov edi, eax
test edi, edi
je 0x41cd5e
mov eax, edi
mov edx, dword [eax]
call dword [edx + 8]
test al, al
je 0x41cd5e
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xd]
mov edx, esi
mov eax, edi
mov edi, dword [eax]
call dword [edi + 0x2c]
test al, al
jne 0x41cdb2
jmp 0x41cd8a
cmp esi, 0x201
jne 0x41cd8a
cmp dword [0x46f5ac], 0
je 0x41cd8a
mov eax, dword [0x46f5ac]
cmp ebx, dword [eax + 0x40]
jne 0x41cd8a
mov eax, dword [0x46f5ac]
mov edx, dword [eax]
call dword [edx + 0x38]
xor eax, eax
mov dword [0x46f5ac], eax
sub esi, 0x200
jne 0x41cdae
lea edx, [ebp - 0xd]
mov eax, ebx
call fcn.0041ce20
mov byte [ebp - 5], 0
jmp 0x41cdb2
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
je 0x41cdae
mov byte [ebx + 7], 0
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8