Function at 0x5d0e78
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2d
push 0
push 0
dec ecx
jne 0x5d0e80
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x5d1155
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov byte [ebp - 0x19], 0
mov eax, dword [edi + 0x2d0]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5d0ed0
inc eax
mov dword [ebp - 0x20], eax
xor ebx, ebx
mov edx, ebx
mov eax, dword [edi + 0x2d0]
call fcn.005d41cc
call fcn.0040763c
inc ebx
dec dword [ebp - 0x20]
jne 0x5d0eb8
mov eax, dword [edi + 0x2d0]
call fcn.005d4cc0
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.005c27f8
mov dword [edi + 0x2cc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
test esi, esi
je 0x5d0f02
lea eax, [edi + 0x2a8]
mov edx, esi
call fcn.0040968c
mov ecx, esi
mov edx, dword [edi + 0x298]
mov eax, dword [0x5cc024]
call fcn.005d3f30
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5d0f45
lea ecx, [ebp - 0x128]
mov edx, esi
mov eax, edi
call fcn.005d1b7c
mov ecx, dword [ebp - 0x128]
mov edx, dword [edi + 0x298]
mov eax, dword [0x5cc024]
call fcn.005d3f30
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5d0f5e
mov edx, dword [edi + 0x298]
mov eax, dword [0x5cc024]
call fcn.005d3ee4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5d112b
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x29c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5d10ba
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 8]
call fcn.005c524c
mov esi, eax
mov eax, esi
call fcn.005c3bd4
dec eax
test eax, eax
jl 0x5d10a5
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x158]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.005c3c50
lea ecx, [ebp - 0x158]
mov dl, 1
mov eax, dword [edi + 0x2c4]
call fcn.005cfeec
mov ebx, eax
mov dword [ebx + 0x60], edi
mov eax, dword [esi + 8]
mov dword [ebx + 0x4c], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x48], eax
movzx eax, word [ebx + 0x20]
push eax
lea eax, [ebp - 0x168]
push eax
movzx ecx, word [ebx + 0x1e]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0040fa10
lea edx, [ebp - 0x168]
mov eax, ebx
call fcn.005d0a38
mov edx, ebx
mov eax, dword [edi + 0x2d0]
call fcn.005d4600
cmp dword [ebx + 0x2c], 0
je 0x5d1093
mov byte [ebx + 0x3c], 1
cmp word [ebx + 0xc], 0x14
je 0x5d103f
cmp word [ebx + 0xe], 0x3a
jne 0x5d1093
lea eax, [ebp - 0x124]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00406fc8
lea eax, [ebp - 0x124]
push eax
call sub.user32.dll_GetKeyboardState
cmp byte [ebp - 0x110], 1
jne 0x5d1093
mov byte [ebp - 0x19], 1
mov byte [ebx + 0x3d], 1
xor ecx, ecx
mov dl, 1
mov eax, ebx
call fcn.005d0a70
mov edx, ebx
mov eax, dword [edi + 0x2d8]
call fcn.005d4600
mov edx, ebx
mov eax, dword [edi + 0x2d4]
call fcn.005d4600
mov eax, dword [ebx + 0x5c]
add dword [ebp - 0x10], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0x24]
jne 0x5d0fbe
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
add dword [ebp - 0x14], eax
inc dword [ebp - 8]
dec dword [ebp - 0x20]
jne 0x5d0f8e
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov edx, 3
mov eax, dword [edi + 0x80]
call fcn.0051f0ec
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x10]
mov edx, 2
mov eax, dword [edi + 0x80]
call fcn.0051f0ec
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
mov edx, 1
mov eax, dword [edi + 0x80]
call fcn.0051f0ec
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x24]
xor edx, edx
mov eax, dword [edi + 0x80]
call fcn.0051f0ec
mov eax, edi
mov si, 0xffcf
call fcn.00407990
mov byte [ebp - 1], 1
cmp byte [ebp - 0x19], 0
je 0x5d112b
mov eax, edi
call fcn.005d2508
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d115c
lea eax, [ebp - 0x158]
mov edx, dword [0x5bbfa0]
call fcn.0040a700
lea eax, [ebp - 0x128]
call fcn.004092ac
ret