Function at 0x56c540
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
push edi
lea edi, [ebp - 0x88]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx + 0x140], 0
jne 0x56c5b4
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00605df0
cwde
and eax, 0x8000
je 0x56c593
jmp 0x56cc67
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00605df0
movsx ecx, ax
and ecx, 0x8000
je 0x56c5b4
jmp 0x56cc67
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xe8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 1
jge 0x56c5ce
jmp 0x56cc67
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x104]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 1
jge 0x56c5e8
jmp 0x56cc67
mov edx, dword [ebp - 4]
push edx
call fcn.00599bb0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
sub edx, eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
push eax
call fcn.00599bf0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
sub edx, eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xe8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x114]
jge 0x56c64d
mov dword [ebp - 0x24], 1
jmp 0x56c68c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
sub eax, dword [edx + 0x118]
cmp dword [ebp - 0x14], eax
jle 0x56c667
mov dword [ebp - 0x24], 1
jmp 0x56c68c
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
cdq
idiv dword [ecx + 0x11c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x56c685
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x10]
jl 0x56c68c
mov dword [ebp - 0x24], 1
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00605df0
cwde
and eax, 0x8000
je 0x56c7fe
cmp dword [ebp - 0x24], 0
jne 0x56c7f9
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x104]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp dword [eax], 3
je 0x56c716
mov ecx, dword [ebp - 0x28]
mov dword [ecx], 3
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x28]
mov dword [edx + 0x10c], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x108]
push eax
call fcn.005cbf30
push 1
push 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
push edx
push 0x32
mov eax, dword [ebp - 4]
push eax
call fcn.005820a0
add esp, 0x14
jmp 0x56c7dc
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10c]
cmp edx, dword [ebp - 0x28]
jne 0x56c785
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x108]
push eax
call fcn.005cc2e0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x108]
cmp dword [edx + 0xc], 0
jle 0x56c776
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x108]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x108]
mov edx, dword [eax + 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + edx*4 - 4]
mov dword [ecx + 0x10c], edx
jmp 0x56c783
mov eax, dword [ebp - 8]
mov dword [eax + 0x10c], 0
jmp 0x56c7a1
mov ecx, dword [ebp - 0x28]
mov dword [ecx], 0
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x108]
push ecx
call fcn.005cc2e0
mov edx, dword [ebp - 8]
cmp dword [edx + 0x10c], 0
je 0x56c7c8
push 1
push 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
push ecx
push 0x32
mov edx, dword [ebp - 4]
push edx
call fcn.005820a0
add esp, 0x14
jmp 0x56c7dc
push 1
push 0
push 0xffffffffffffffff
push 0x32
mov eax, dword [ebp - 4]
push eax
call fcn.005820a0
add esp, 0x14
mov ecx, dword [ebp + 8]
push ecx
call fcn.0059ae30
test eax, eax
jne 0x56c7ee
jmp 0x56cc67
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00582ca0
jmp 0x56cc43
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00605df0
cwde
and eax, 0x8000
je 0x56c9ea
cmp dword [ebp - 0x24], 0
jne 0x56c9e5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x108]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x56c8b2
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x104]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [eax], 3
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x108]
push eax
call fcn.005cbf30
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x10c], edx
push 1
push 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
push 0x32
mov edx, dword [ebp - 4]
push edx
call fcn.005820a0
add esp, 0x14
mov eax, dword [ebp + 8]
push eax
call fcn.0059ae30
test eax, eax
jne 0x56c8a2
jmp 0x56cc67
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00582ca0
jmp 0x56c9e5
mov edx, dword [ebp - 8]
cmp dword [edx + 0x10c], 0
je 0x56c9e5
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10c]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0056de40
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x10c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10c]
mov dword [eax], 3
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10c]
mov eax, dword [edx + 4]
cmp eax, dword [ebp - 0x20]
jge 0x56c92b
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], ecx
jmp 0x56c940
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x38]
test eax, eax
jle 0x56c9e5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x104]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x44], ecx
jmp 0x56c96e
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x3c]
jg 0x56c9a9
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x104]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x44]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov dword [eax], 3
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x108]
push eax
call fcn.005cbf30
jmp 0x56c965
push 1
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10c]
mov eax, dword [edx + 4]
push eax
push 0x32
mov ecx, dword [ebp - 4]
push ecx
call fcn.005820a0
add esp, 0x14
mov edx, dword [ebp + 8]
push edx
call fcn.0059ae30
test eax, eax
jne 0x56c9da
jmp 0x56cc67
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00582ca0
jmp 0x56cc43
cmp dword [ebp - 0x24], 0
jne 0x56cb94
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x104]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x108]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], 0
jmp 0x56ca2a
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x50]
jge 0x56ca4c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x108]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x54]
mov eax, dword [ecx + edx*4]
mov dword [eax], 0
jmp 0x56ca21
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x108]
push edx
call fcn.005cc8a0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0x10c], ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x108]
push ecx
call fcn.005cbf30
mov edx, dword [ebp - 0x4c]
mov dword [edx], 3
mov eax, dword [ebp - 8]
cmp dword [eax + 0x144], 0
je 0x56cacf
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x5c], edx
mov esi, esp
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x4c]
add edx, 0x10
push edx
call dword [sym.imp.USER32.dll_PtInRect]
cmp esi, esp
call fcn.00605df0
test eax, eax
je 0x56cacf
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
cmp dword [eax + 0xc], 0
sete cl
mov edx, dword [ebp - 0x4c]
mov dword [edx + 0xc], ecx
push 1
push 0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 4]
push ecx
push 0x32
mov edx, dword [ebp - 4]
push edx
call fcn.005820a0
add esp, 0x14
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], 0
jmp 0x56cb19
mov edx, dword [ebp - 0x80]
add edx, 1
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x68]
jge 0x56cb72
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x80]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x7c], edx
mov esi, esp
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x7c]
add edx, 4
push edx
call dword [sym.imp.USER32.dll_PtInRect]
cmp esi, esp
call fcn.00605df0
test eax, eax
je 0x56cb70
push 1
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 4]
push edx
push 0x56
mov eax, dword [ebp - 4]
push eax
call fcn.005820a0
add esp, 0x14
jmp 0x56cb10
mov ecx, dword [ebp + 8]
push ecx
call fcn.0059ae30
test eax, eax
jne 0x56cb84
jmp 0x56cc67
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00582ca0
jmp 0x56cc43
mov eax, dword [ebp - 8]
mov dword [eax + 0x10c], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x108]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jle 0x56cc43
mov dword [ebp - 0x88], 0
jmp 0x56cbdb
mov ecx, dword [ebp - 0x88]
add ecx, 1
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
cmp edx, dword [ebp - 0x84]
jge 0x56cc06
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x108]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x88]
mov ecx, dword [edx + eax*4]
mov dword [ecx], 0
jmp 0x56cbcc
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x108]
push eax
call fcn.005cc8a0
push 1
push 0
push 0xffffffffffffffff
push 0x32
mov ecx, dword [ebp - 4]
push ecx
call fcn.005820a0
add esp, 0x14
mov edx, dword [ebp + 8]
push edx
call fcn.0059ae30
test eax, eax
jne 0x56cc38
jmp 0x56cc67
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00582ca0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x130], edx
mov dword [ecx + 0x134], eax
mov edx, dword [ebp - 8]
mov dword [edx + 0x128], 1
push edx
mov ecx, ebp
push eax
lea edx, [0x56cc8c]
call fcn.00605e20
pop eax
pop edx
pop edi
pop esi
add esp, 0x88
cmp ebp, esp
call fcn.00605df0
mov esp, ebp
pop ebp
ret