Function at 0x507bb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
push ecx
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x100
jne 0x507f35
push 0
mov ecx, dword [ebp - 4]
call fcn.00453600
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x507c00
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0049da80
jmp 0x507f41
mov ecx, dword [ebp - 4]
call fcn.00453570
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xd70], 0
je 0x507c26
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0xd64]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 0xbf0], 0
jl 0x507f35
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xbf0]
cmp ecx, dword [ebp - 0xc]
jge 0x507f35
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xbf0]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 9
jne 0x507c8c
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00784930
cwde
and eax, 0x80
je 0x507c85
mov dword [ebp - 0x14], 0x25
jmp 0x507c8c
mov dword [ebp - 0x14], 0x27
mov ecx, dword [ebp - 4]
call fcn.00447c90
and eax, 0x400000
mov dword [ebp - 0x18], eax
je 0x507cba
cmp dword [ebp - 0x14], 0x25
jne 0x507cad
mov dword [ebp - 0x14], 0x27
jmp 0x507cba
cmp dword [ebp - 0x14], 0x27
jne 0x507cba
mov dword [ebp - 0x14], 0x25
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
sub edx, 0xd
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0x1b
ja case.0x507cdd.1
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax + 0x507f6c]
jmp dword [ecx*4 + 0x507f54]
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov esi, esp
mov ecx, dword [eax + 0x368]
mov dword [ebp - 0x20], ecx
mov edi, esp
mov ecx, dword [ebp - 0x20]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
mov ecx, dword [ebp - 4]
call dword [ebp - 0x20]
cmp esi, esp
call fcn.00784930
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov esi, esp
mov ecx, dword [eax + 0x36c]
mov dword [ebp - 0x24], ecx
mov edi, esp
mov ecx, dword [ebp - 0x24]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
mov ecx, dword [ebp - 4]
call dword [ebp - 0x24]
cmp esi, esp
call fcn.00784930
mov dword [0x88815c], 0
jmp 0x507f35
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xbf0]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0xbf0], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0xc]
jl 0x507d81
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xbf0], 0
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 4]
call fcn.00454fb0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xbf0]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00454fb0
mov ecx, dword [ebp - 4]
call fcn.00420580
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x264]
mov dword [ebp - 0x2c], ecx
mov esi, esp
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xbf0]
push eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov edi, esp
mov ecx, dword [ebp - 0x30]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
mov ecx, dword [ebp - 4]
call dword [ebp - 0x30]
cmp esi, esp
call fcn.00784930
nop
jmp 0x507f35
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xbf0]
sub eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 0xbf0], edx
cmp dword [ebp - 0x34], 0
jge 0x507e1c
mov eax, dword [ebp - 0xc]
sub eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xbf0], eax
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 4]
call fcn.00454fb0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xbf0]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00454fb0
mov ecx, dword [ebp - 4]
call fcn.00420580
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x264]
mov dword [ebp - 0x38], ecx
mov esi, esp
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xbf0]
push eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov edi, esp
mov ecx, dword [ebp - 0x3c]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
mov ecx, dword [ebp - 4]
call dword [ebp - 0x3c]
cmp esi, esp
call fcn.00784930
nop
jmp 0x507f35
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xbf0]
push eax
mov ecx, dword [ebp - 4]
call fcn.004531f0
push eax
mov ecx, dword [ebp - 4]
call fcn.00451510
mov eax, 1
jmp 0x507f41
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xbf0]
push edx
mov ecx, dword [ebp - 4]
call fcn.004531f0
push eax
mov ecx, dword [ebp - 4]
call fcn.00451510
test eax, eax
jne 0x507ee7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xbf0]
push ecx
mov ecx, dword [ebp - 4]
call fcn.004531f0
push eax
mov ecx, dword [ebp - 4]
call fcn.00460430
nop
mov eax, 1
jmp 0x507f41
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x39c]
mov dword [ebp - 0x40], ecx
mov esi, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov edi, esp
mov ecx, dword [ebp - 0x44]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
mov ecx, dword [ebp - 4]
call dword [ebp - 0x44]
cmp esi, esp
call fcn.00784930
test eax, eax
je 0x507f35
mov eax, 1
jmp 0x507f41
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.00460020
pop edi
pop esi
add esp, 0x44
cmp ebp, esp
call fcn.00784930
mov esp, ebp
pop ebp
ret 4