Function at 0x40b364
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f210e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx + 0xc]
mov byte [ebp - 0x10], dl
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp - 0x3c]
call fcn.0040b930
test eax, eax
jle 0x40b608
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
test ecx, ecx
jl 0x40b608
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
test edx, edx
jl 0x40b608
movsx eax, byte [ebp - 0x10]
cmp eax, 0x20
je 0x40b3ee
movsx ecx, byte [ebp - 0x10]
push ecx
call fcn.004a9c5d
add esp, 4
test eax, eax
je 0x40b608
mov ecx, dword [ebp - 0x3c]
add ecx, 0x94
call fcn.00407cb0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40b419
push 0
push 0x1f4
push 0xc8
mov ecx, dword [ebp - 0x3c]
call fcn.0040d470
cmp dword [ebp - 0x24], 0
jne 0x40b48d
push 1
mov dl, byte [ebp - 0x10]
push edx
lea ecx, [ebp - 0x34]
call fcn.004cc080
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 1
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x94
call fcn.004cc45f
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
push eax
call fcn.0040b970
mov byte [ebp - 0x30], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004d37cb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004d37cb
mov ecx, dword [ebp - 0x30]
and ecx, 0xff
test ecx, ecx
je 0x40b49f
mov dl, byte [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x94
call fcn.004d3bce
lea ecx, [ebp - 0x1c]
call fcn.00404dc0
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x3c]
call fcn.0040ac15
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], 0xffffffff
push 2
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x3c]
call fcn.0040d600
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], 0
jne 0x40b4ec
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d37cb
jmp 0x40b608
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jne 0x40b4fb
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x3c]
call dword [edx + 0xd4]
mov ecx, dword [ebp - 0x3c]
add ecx, 0x94
call fcn.00406320
push eax
lea ecx, [ebp - 0x1c]
call fcn.00447470
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x94
call fcn.00447470
push eax
call fcn.0040b950
add esp, 0xc
test eax, eax
jne 0x40b558
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
jmp 0x40b570
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jne 0x40b570
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x28]
jne 0x40b501
cmp dword [ebp - 0x2c], 0xffffffff
je 0x40b5d2
mov dword [ebp - 0x20], 0
jmp 0x40b590
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jge 0x40b5d2
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x2c]
je 0x40b5b2
push 3
push 0
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.004cd5bb
jmp 0x40b5d0
push 3
push 3
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.004cd5bb
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.0040d640
jmp 0x40b587
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x40b5e6
mov ecx, dword [ebp - 0x3c]
add ecx, 0x94
call fcn.004d3756
push 1
mov ecx, dword [ebp - 0x3c]
call fcn.00407f60
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d37cb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8