Function at 0x580c00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x220]
sub esp, 0x220
push 0xffffffffffffffff
push 0x5fcae0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x1ec]
test esi, esi
je 0x580e7b
mov ebx, dword [ebp + 0x228]
cmp ebx, 0xd
jne 0x580c73
cmp byte [esi + 0x140], 0
jne 0x580c73
mov ecx, dword [edi + 0x1f0]
test ecx, ecx
je 0x580c6c
mov eax, dword [ecx]
call dword [eax + 8]
mov al, 1
jmp 0x580e7d
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x40]
call eax
test al, al
je 0x580e7b
mov al, byte [esi + 0x121]
test al, al
jne 0x580e7b
cmp ebx, 0x56
jne 0x580d00
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x580d00
lea ecx, [ebp]
call fcn.00580b10
mov dword [ebp - 4], 0
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.00581b20
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.005810e0
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x1f8]
push eax
add ecx, 8
call fcn.00408eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00408ea0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00408ea0
mov al, 1
jmp 0x580e7d
push 0x200
lea eax, [ebp + 0x1c]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
cmp eax, 1
jne 0x580e17
push 0
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0
push eax
lea eax, [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x22c]
movzx eax, ax
push eax
push ebx
call dword [sym.imp.USER32.dll_ToAscii]
movzx eax, word [ebp + 0x18]
push eax
call fcn.005c32d6
add esp, 4
test eax, eax
jne 0x580d90
movzx eax, word [ebp + 0x18]
push eax
call fcn.005c32a7
add esp, 4
test eax, eax
jne 0x580d90
movzx eax, word [ebp + 0x18]
push eax
call fcn.005c335d
add esp, 4
test eax, eax
jne 0x580d90
movzx eax, word [ebp + 0x18]
push eax
call fcn.005c3330
add esp, 4
test eax, eax
je 0x580e17
lea ecx, [ebp]
call fcn.00408f40
mov dword [ebp - 4], 2
lea ecx, [ebp]
mov esi, dword [ebp + 0x18]
movzx eax, si
mov dword [ebp - 0x10], eax
call fcn.00408fc0
mov edx, dword [eax + 0x10]
cmp edx, dword [eax + 0x14]
jae 0x580dec
cmp dword [eax + 0x14], 8
lea ecx, [edx + 1]
mov dword [eax + 0x10], ecx
jb 0x580dc6
mov eax, dword [eax]
lea esi, [eax + edx*2]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.004092d0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [esi + 2]
push eax
call fcn.004092d0
add esp, 0x10
jmp 0x580dfd
push esi
mov byte [ebp - 0x10], 0
push dword [ebp - 0x10]
push ecx
lea ecx, [ebp]
call fcn.004c2ba0
lea eax, [ebp]
mov ecx, edi
push eax
call fcn.00581b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00408ea0
cmp ebx, 0xd
je 0x580e40
mov ecx, dword [edi + 0xc0]
test ecx, ecx
je 0x580e40
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x580e40
mov eax, dword [ecx]
push 0
push dword [ebp + 0x22c]
push ebx
push 0x100
call dword [eax + 0xc]
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.005810e0
mov dword [ebp - 4], 3
mov ecx, dword [edi + 0x1f8]
push eax
add ecx, 8
call fcn.00408eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408ea0
mov ecx, edi
call fcn.00581c70
mov al, 1
jmp 0x580e7d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x21c]
xor ecx, ebp
call fcn.005b75ab
lea esp, [ebp + 0x220]
pop ebp
ret 0xc