Function at 0x5e5ffc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x5e6421
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x65d5cc], 0
je 0x5e6032
mov dword [ebp - 8], 1
call fcn.00404634
jmp 0x5e6428
cmp dword [ebp + 0xc], 0xe5
jne 0x5e6045
call fcn.00404634
jmp 0x5e6428
cmp dword [ebp + 8], 0
jl 0x5e63e3
cmp byte [0x65d5f8], 0
je 0x5e6085
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x65d5fc]
jne 0x5e6085
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
je 0x5e6085
mov byte [0x65d5f8], 0
mov dword [ebp - 8], 1
call fcn.00404634
jmp 0x5e6428
call fcn.005e0fc8
test eax, eax
je 0x5e6197
call fcn.005e0fc8
call fcn.005f5ee8
cmp byte [eax + 0x4a], 0
jne 0x5e6197
call fcn.005e0fc8
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
jne 0x5e6166
call fcn.005e0fc8
mov edi, eax
mov esi, dword [edi + 0x240]
mov eax, esi
mov edx, dword [0x5e068c]
call fcn.00403e84
test al, al
je 0x5e60e3
cmp byte [esi + 0x2c], 0
jne 0x5e6197
push 1
push 0x7b
push 0x7b
call sub.user32.dll_GetFocus
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
sete bl
test bl, bl
je 0x5e6116
mov byte [0x65d5f8], 1
mov eax, dword [ebp + 0xc]
mov dword [0x65d5fc], eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
xor eax, eax
mov al, bl
mov eax, dword [eax*4 + 0x65a70c]
push eax
mov eax, edi
call fcn.00456c34
push eax
call sub.user32.dll_SendMessageA
call fcn.005e0fc8
test eax, eax
jne 0x5e614e
mov eax, dword [ebp + 0xc]
push eax
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x5e6155
mov byte [0x65d5f8], 0
mov dword [ebp - 8], 1
call fcn.00404634
jmp 0x5e6428
cmp dword [ebp + 0xc], 0x1b
jne 0x5e6197
call fcn.005e0fc8
call fcn.00456c34
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
jne 0x5e6197
call sub.user32.dll_ReleaseCapture
mov dword [ebp - 8], 1
call fcn.00404634
jmp 0x5e6428
call sub.user32.dll_GetCapture
test eax, eax
jne 0x5e63e3
cmp dword [ebp + 0xc], 0x5d
jne 0x5e61b4
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
jne 0x5e61d3
cmp dword [ebp + 0xc], 0x79
jne 0x5e6236
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
jne 0x5e6236
call fcn.005e5ce0
mov dl, byte [0x5e6434]
cmp dl, al
jne 0x5e6236
call sub.user32.dll_GetFocus
call fcn.005e10d0
mov ebx, eax
test ebx, ebx
je 0x5e6236
mov eax, ebx
call fcn.00468b6c
call fcn.005e0fdc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5e6236
lea ecx, [ebp - 0x2c]
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.0041d6bc
lea eax, [ebp - 0x2c]
push eax
call sub.user32.dll_GetFocus
mov ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd4]
mov edx, ebx
call fcn.005e5bf4
test al, al
je 0x5e6236
mov dword [ebp - 8], 1
call fcn.00404634
jmp 0x5e6428
call sub.user32.dll_GetActiveWindow
call fcn.0044d250
mov ebx, eax
mov eax, ebx
mov edx, dword [0x467288]
call fcn.00403e84
test al, al
jne 0x5e6255
xor ebx, ebx
test ebx, ebx
je 0x5e6311
test byte [ebx + 0x1c], 0x10
jne 0x5e6311
mov esi, ebx
cmp byte [esi + 0x22f], 2
jne 0x5e6286
mov eax, esi
call fcn.0046bb9c
test eax, eax
je 0x5e6286
mov eax, esi
call fcn.0046bb9c
mov ebx, eax
mov eax, ebx
call fcn.005e0fdc
mov dword [ebp - 4], eax
cmp byte [ebx + 0x22f], 1
jne 0x5e62ab
cmp dword [ebp - 4], 0
je 0x5e62fd
mov eax, dword [ebp - 4]
call fcn.005e77d4
test eax, eax
je 0x5e62fd
mov al, byte [ebx + 0x22f]
dec eax
sub al, 2
jb 0x5e6316
cmp dword [ebp - 4], 0
jne 0x5e6316
mov eax, dword [0x65b97c]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.005e0fdc
test eax, eax
je 0x5e6316
mov eax, dword [0x65b97c]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.005e0fdc
cmp byte [eax + 0x30], 0
je 0x5e6316
mov eax, dword [0x65b97c]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.00456c34
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x5e6316
mov eax, dword [0x65b97c]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.005e0fdc
mov dword [ebp - 4], eax
jmp 0x5e6316
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5e63e3
mov eax, dword [ebp - 4]
call fcn.005e733c
test al, al
jne 0x5e63e3
mov eax, dword [ebp - 4]
call fcn.005e71c0
test al, al
jne 0x5e63e3
mov eax, dword [ebp + 0x10]
shr eax, 0x1f
test al, 1
je 0x5e63bf
mov eax, dword [ebp - 4]
call fcn.005e77d4
test eax, eax
je 0x5e63b6
cmp dword [ebp + 0xc], 0x12
sete al
and al, byte [0x65d5f9]
je 0x5e636e
call fcn.005e5cac
test al, al
je 0x5e638f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x109], 0
je 0x5e63b6
cmp dword [ebp + 0xc], 0x79
jne 0x5e63b6
call fcn.005e5ce0
mov dl, byte [0x5e6438]
cmp dl, al
jne 0x5e63b6
mov byte [0x65d5f9], 0
mov eax, dword [ebp - 4]
call fcn.005e77d4
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x150]
mov dword [ebp - 8], 1
call fcn.00404634
jmp 0x5e6428
mov byte [0x65d5f9], 0
jmp 0x5e63e3
cmp dword [ebp + 0xc], 0x12
jne 0x5e63ce
mov byte [0x65d5f9], 1
jmp 0x5e63e3
mov byte [0x65d5f9], 0
push ebp
call fcn.005e5f1c
pop ecx
call fcn.00404634
jmp 0x5e6428
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e6428
cmp byte [0x65d5fa], 0
je 0x5e6400
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x5e6420
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x65d5ec]
push eax
call sub.user32.dll_CallNextHookEx
cmp dword [ebp - 8], 0
jne 0x5e6420
mov dword [ebp - 8], eax
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc