Function at 0x4005b908
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4005bf93
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4005b970
inc ebx
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb0]
mov edx, esi
call fcn.4001951c
mov edi, eax
mov edx, dword [ebp - 8]
mov eax, dword [edi + 4]
call dword [edi]
test al, al
je 0x4005b96c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4005bfa8
inc esi
dec ebx
jne 0x4005b941
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.4005b7bc
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
mov eax, ebx
cmp eax, 0x53
jg 0x4005ba32
je 0x4005beb6
cmp eax, 0x11
jg 0x4005b9f0
je 0x4005bcdb
cmp eax, 0x10
ja case.0x4005b9a5.1
jmp dword [eax*4 + 0x4005b9ac]
cmp eax, 0x1c
jg 0x4005ba1b
je 0x4005bbac
sub eax, 0x14
je 0x4005bb63
sub eax, 2
je 0x4005bcbf
sub eax, 4
je 0x4005bf34
jmp case.0x4005b9a5.1
sub eax, 0x1d
je 0x4005bf5a
sub eax, 0x1a
je 0x4005bb78
jmp case.0x4005b9a5.1
cmp eax, 0xb017
jg 0x4005ba88
je 0x4005bd2d
cmp eax, 0xb000
jg 0x4005ba6f
je 0x4005bdc6
sub eax, 0x112
je 0x4005baca
add eax, 0xffffffe0
sub eax, 7
jb 0x4005bc93
sub eax, 0x1e1
je 0x4005bf6d
jmp case.0x4005b9a5.1
sub eax, 0xb001
je 0x4005be3f
sub eax, 0x15
je 0x4005bd0b
jmp case.0x4005b9a5.1
cmp eax, 0xb020
jg 0x4005baae
je 0x4005bed0
sub eax, 0xb01a
je 0x4005be78
sub eax, 5
je 0x4005beb6
jmp case.0x4005b9a5.1
sub eax, 0xb031
je 0x4005bf09
add eax, 0xfffffff2
sub eax, 2
jb 0x4005bcea
jmp case.0x4005b9a5.1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
and eax, 0xfff0
sub eax, 0xf020
je 0x4005bae5
sub eax, 0x100
je 0x4005baf2
jmp 0x4005baff
mov eax, dword [ebp - 4]
call fcn.4005bfcc
jmp 0x4005bf89
mov eax, dword [ebp - 4]
call fcn.4005c0ac
jmp 0x4005bf89
push ebp
call fcn.4005b880
pop ecx
jmp 0x4005bf89
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 1
jne 0x4005bf89
mov byte [0x4009aca8], 1
jmp 0x4005bf89
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4005bf89
call fcn.40058a40
jmp 0x4005bf89
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.4005177c
test eax, eax
je 0x4005bb57
push ebp
call fcn.4005b8bc
pop ecx
jmp 0x4005bf89
push ebp
call fcn.4005b880
pop ecx
jmp 0x4005bf89
mov eax, dword [ebp - 8]
mov dword [eax], 0x27
push ebp
call fcn.4005b880
pop ecx
jmp 0x4005bf89
mov eax, dword [ebp - 4]
call fcn.4005bfb0
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
jmp 0x4005bf89
push 0
push 0
push 0xb01a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetPropA
push ebp
call fcn.4005b880
pop ecx
jmp 0x4005bf89
push ebp
call fcn.4005b880
pop ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 1
sbb eax, eax
inc eax
mov edx, dword [ebp - 4]
mov byte [edx + 0xa5], al
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x4005bbf1
mov eax, dword [ebp - 4]
call fcn.4005b4cc
push 0
push 0
push 0xb000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetPropA
jmp 0x4005bf89
mov eax, dword [ebp - 4]
call fcn.4005b46c
push 0
push 0
push 0xb001
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetPropA
jmp 0x4005bf89
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x4005bc56
cmp byte [0x40094610], 0
jne 0x4005bc4a
mov eax, dword [ebp - 4]
call fcn.4005b4cc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4005bc4a
call fcn.40051a04
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xb4], edx
push ebp
call fcn.4005b880
pop ecx
jmp 0x4005bf89
push ebp
call fcn.4005b880
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb4], 0
jne 0x4005bc86
cmp byte [0x40094610], 0
jne 0x4005bc86
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.40051940
mov edx, dword [ebp - 4]
mov dword [edx + 0xb4], eax
mov eax, dword [ebp - 4]
call fcn.4005b474
jmp 0x4005bf89
mov esi, dword [ebp - 8]
mov esi, dword [esi + 8]
push esi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 8]
add ebx, 0xbc00
push ebx
mov eax, dword [ebp - 8]
push esi
call sub.user32.dll_GetWindowPlacement
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
jmp 0x4005bf89
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x4005bf89
call fcn.4000ecd0
call fcn.40004abc
jmp 0x4005bf89
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 1
jmp 0x4005bf89
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 8]
mov eax, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.4005de8c
and eax, 0x7f
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
jmp 0x4005bf89
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.4005c458
test al, al
je 0x4005bf89
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 1
jmp 0x4005bf89
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4005bf89
mov ebx, eax
mov eax, ebx
call fcn.40046f70
test eax, eax
je 0x4005bf89
mov eax, ebx
call fcn.40046f70
push eax
call sub.user32.dll_GetIconInfo
test eax, eax
je 0x4005bf89
mov eax, ebx
call fcn.40046f70
push eax
call sub.user32.dll_GetKeyState
test eax, eax
je 0x4005bf89
mov byte [0x400945f8], 0
call sub.user32.dll_BeginPaint
mov esi, eax
mov eax, ebx
call fcn.40046f70
push eax
call sub.user32.dll_InsertMenuItemA
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 4]
mov edx, 0x112
mov eax, ebx
call fcn.400402f0
push esi
call sub.user32.dll_InsertMenuItemA
mov byte [0x400945f8], 1
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 1
jmp 0x4005bf89
mov eax, dword [ebp - 4]
cmp word [eax + 0x13a], 0
je 0x4005bde5
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x13c]
call dword [ebx + 0x138]
mov eax, dword [0x4009ac98]
cmp dword [eax + 0x44], 0
je 0x4005be33
mov eax, dword [0x4009ac98]
call fcn.4005e52c
test al, al
je 0x4005be33
mov eax, dword [0x4009ac98]
mov eax, dword [eax + 0x44]
call fcn.40046f70
push eax
call sub.user32.dll_GetIconInfo
test eax, eax
jne 0x4005be33
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.40046f70
cmp eax, dword [0x4009acc0]
je 0x4005be33
mov eax, dword [0x4009acc0]
push eax
call sub.user32.dll_InsertMenuItemA
xor eax, eax
mov dword [0x4009acc0], eax
jmp 0x4005bf89
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_DefMDIChildProcA
mov dword [0x4009acc0], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x132], 0
je 0x4005bf89
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x134]
call dword [ebx + 0x130]
jmp 0x4005bf89
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.4005177c
test eax, eax
jne 0x4005bf89
call sub.user32.dll_BeginPaint
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x4005bf89
xor eax, eax
call fcn.40051aa0
test eax, eax
je 0x4005bf89
push eax
call sub.user32.dll_InsertMenuItemA
jmp 0x4005bf89
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 8]
movzx edx, word [edx + 4]
mov eax, dword [ebp - 4]
call fcn.4005cc98
jmp 0x4005bf89
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x4005bef1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp - 4]
call fcn.4005c6b0
jmp 0x4005bf89
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp - 4]
call fcn.4005c70c
jmp 0x4005bf89
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 1
jne 0x4005bf23
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb8]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
jmp 0x4005bf89
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0xb8], eax
jmp 0x4005bf89
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
mov eax, dword [0x40095bac]
mov eax, dword [eax]
call fcn.4004c154
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.4005b814
push ebp
call fcn.4005b880
pop ecx
jmp 0x4005bf89
mov eax, dword [0x4009ac9c]
call fcn.4005aa00
push ebp
call fcn.4005b880
pop ecx
jmp 0x4005bf89
call fcn.40031e6c
call fcn.40031fd0
jmp 0x4005bf89
xor eax, eax
call fcn.4001ff14
jmp 0x4005bf89
push ebp
call fcn.4005b880
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4005bfa8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret