Function at 0x10041647
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x10041665
push 0
call fcn.100439ad
pop ecx
jmp 0x100418d1
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
test eax, eax
je 0x100416b2
push 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
jmp 0x100418d1
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x10041733
push 9
pop eax
test eax, eax
je 0x10041733
mov dword [ebp - 0x1c], 1
jmp 0x10041737
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x1004174c
mov dword [ebp - 0x60], 1
jmp 0x10041750
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x9c], eax
mov eax, 0xc6a37d7c
cmp eax, 0xd6b59229
je 0x1004177b
mov dword [ebp - 0x24], 1
jmp 0x1004177f
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0x5ff4
jge 0x10041791
mov dword [ebp - 0x68], 1
jmp 0x10041795
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffff
jb 0x100417b4
mov dword [ebp - 0x3c], 1
jmp 0x100417b8
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x3c]
jge 0x100417c9
mov dword [ebp - 0x14], 1
jmp 0x100417cd
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x14]
jg 0x100417e0
mov dword [ebp - 0x34], 1
jmp 0x100417e4
and dword [ebp - 0x34], 0
imul eax, dword [ebp - 0x34], 0xfffffff9
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
jne 0x100417f8
mov dword [ebp - 0xc], 1
jmp 0x100417fc
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x10041821
mov dword [ebp - 0x2c], 1
jmp 0x10041825
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x2c], eax
jne 0x10041838
mov dword [ebp - 0x18], 1
jmp 0x1004183c
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jl 0x1004184f
mov dword [ebp - 0x20], 1
jmp 0x10041853
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
sub eax, 0x5c025c9
mov ecx, dword [ebp - 8]
imul eax, dword [ecx]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x1004187b
mov dword [ebp - 0x10], 1
jmp 0x1004187f
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp - 0x10], 0xf767
jle 0x10041899
mov dword [ebp - 0x30], 1
jmp 0x1004189d
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0x13222c7e
jg 0x100418af
mov dword [ebp - 0x38], 1
jmp 0x100418b3
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0xffffffff
jg 0x100418c2
mov dword [ebp - 0x40], 1
jmp 0x100418c6
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret