Function at 0x593c60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
push ecx
lea edi, [ebp - 0x5c]
mov ecx, 0x17
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x100
ja 0x593cb7
cmp dword [ebp - 0x18], 0x100
je 0x593cff
mov edx, dword [ebp - 0x18]
sub edx, 0xa1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 7
ja case.0x593cf8.2
mov eax, dword [ebp - 0x18]
jmp dword [eax*4 + 0x5940a8]
cmp dword [ebp - 0x18], 0x200
ja 0x593cdf
cmp dword [ebp - 0x18], 0x200
je case.0x593cf8.0
cmp dword [ebp - 0x18], 0x104
je case.0x593cf8.0
jmp case.0x593cf8.2
mov ecx, dword [ebp - 0x18]
sub ecx, 0x201
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 7
ja case.0x593cf8.2
mov edx, dword [ebp - 0x18]
jmp dword [edx*4 + 0x5940c8]
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc0], 0xffffffff
je case.0x593cf8.0
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp esi, esp
call fcn.00784930
movsx ecx, ax
and ecx, 0x8000
je case.0x593cf8.0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x21
je 0x593eac
cmp dword [ebp - 0x1c], 0x22
je 0x593d4d
jmp case.0x593cf8.0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc0]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x593d67
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc0]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0xbc]
cmp dword [ebp - 8], edx
jge 0x593ea2
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cdq
idiv dword [ecx + 0xbc]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x284]
mov dword [ebp - 0x20], ecx
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
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
test eax, eax
je 0x593e9d
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24c], 1
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x21c]
mov dword [ebp - 0x28], ecx
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov edi, esp
mov ecx, dword [ebp - 0x2c]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
mov ecx, dword [ebp - 4]
call dword [ebp - 0x2c]
cmp esi, esp
call fcn.00784930
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov esi, esp
mov eax, dword [edx + 0x218]
mov dword [ebp - 0x30], eax
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
mov ecx, eax
call fcn.00449640
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x278]
mov dword [ebp - 0x34], eax
mov esi, esp
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc0]
push edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov edi, esp
mov ecx, dword [ebp - 0x38]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
mov ecx, dword [ebp - 4]
call dword [ebp - 0x38]
cmp esi, esp
call fcn.00784930
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24c], 0
jmp 0x593ea2
jmp 0x593d5e
mov eax, 1
jmp 0x594096
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc0]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xbc]
lea eax, [eax + edx - 1]
mov dword [ebp - 0x10], eax
jmp 0x593ed0
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx + 0xc0]
jle 0x594002
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ecx + 0xbc]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x284]
mov dword [ebp - 0x3c], ecx
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov edi, esp
mov ecx, dword [ebp - 0x40]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
mov ecx, dword [ebp - 4]
call dword [ebp - 0x40]
cmp esi, esp
call fcn.00784930
test eax, eax
je 0x593ffd
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24c], 1
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x21c]
mov dword [ebp - 0x44], ecx
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov edi, esp
mov ecx, dword [ebp - 0x48]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
mov ecx, dword [ebp - 4]
call dword [ebp - 0x48]
cmp esi, esp
call fcn.00784930
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov esi, esp
mov eax, dword [edx + 0x218]
mov dword [ebp - 0x4c], eax
mov edi, esp
mov ecx, dword [ebp - 0x4c]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
mov ecx, dword [ebp - 4]
call dword [ebp - 0x4c]
cmp esi, esp
call fcn.00784930
mov ecx, eax
call fcn.00449640
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x278]
mov dword [ebp - 0x50], eax
mov esi, esp
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc0]
push edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov edi, esp
mov ecx, dword [ebp - 0x54]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
mov ecx, dword [ebp - 4]
call dword [ebp - 0x54]
cmp esi, esp
call fcn.00784930
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24c], 0
jmp 0x594002
jmp 0x593ec7
mov eax, 1
jmp 0x594096
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0xfc]
call fcn.0041c4c0
test eax, eax
je 0x594037
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xfc]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x58]
call fcn.0048ec80
nop
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xf8]
call fcn.0041c4c0
test eax, eax
je case.0x593cf8.2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xf8]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.0048ec80
nop
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0x203
jne 0x59408a
mov ecx, dword [ebp - 4]
add ecx, 0x2250
call fcn.0041c4c0
mov edx, dword [ebp + 8]
cmp dword [edx], eax
jne 0x59408a
mov eax, 1
jmp 0x594096
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.006188b0
pop edi
pop esi
add esp, 0x5c
cmp ebp, esp
call fcn.00784930
mov esp, ebp
pop ebp
ret 4