Function at 0x56f910
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x679888
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x40]
mov ebx, dword [ecx + 0x180]
push 0
mov dword [ebp - 0x38], ebx
call fcn.0052e5d0
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp ebx, 3
jne 0x56fb89
mov edi, dword [esi + 0x58]
test edi, edi
je 0x56fe84
mov eax, dword [esi + 0xd4]
mov dword [ebp - 0x34], 0
cmp eax, 1
je 0x56fabd
cmp eax, 8
je 0x56fabd
test al, 6
je 0x56fb03
cmp dword [esi + 0x44], 0
jl 0x56fb03
mov eax, dword [esi + 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.0053d6e0
mov ecx, dword [esi + 0x84]
mov eax, dword [esi + 0x8c]
mov edx, dword [esi + 0x88]
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x90]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x18], edx
push ecx
lea edx, [ebp - 0x20]
push edx
call ebx
test eax, eax
je 0x56fa29
mov ecx, dword [esi + 0x3c]
push edi
call fcn.005b9fb0
push 1
mov ecx, edi
mov ebx, eax
call fcn.00540d70
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
push ebx
push eax
call fcn.005ba2b0
cmp dword [esi + 0x68], 0
je 0x56fb03
test byte [ebp + 8], 8
jne 0x56fb03
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + 0x20]
jmp 0x56fae9
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
lea eax, [esi + 0x74]
push eax
call ebx
test eax, eax
je 0x56fb03
mov ecx, dword [esi + 0x40]
call fcn.0052ee30
mov ecx, edi
mov ebx, eax
call fcn.00540cd0
test eax, eax
jle 0x56fa5e
mov ecx, dword [esi + 0x40]
push 0
call fcn.0056c0d0
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x3c]
push edi
push ecx
mov ecx, dword [edx + 0x20]
call fcn.005ba3a0
mov eax, dword [esi + 0xd8]
mov cl, byte [ebp + 8]
mov dword [ebp - 0x34], 1
test eax, eax
je 0x56fa91
cmp dword [esi + 0x64], 0
je 0x56fa8d
test cl, 8
je 0x56fa9c
test eax, eax
jne 0x56faa5
cmp dword [esi + 0x64], 0
je 0x56faa5
test cl, 8
je 0x56faa5
push 0
mov ecx, edi
call fcn.00540d70
mov ecx, dword [esi + 0x40]
mov eax, dword [ecx]
mov edx, dword [eax + 0x17c]
call edx
mov ecx, dword [esi + 0x40]
push ebx
call fcn.0056c0d0
jmp 0x56fb03
cmp dword [esi + 0xa0], 0
je 0x56fb03
cmp dword [edi + 0x70], 0
je 0x56fb03
cmp dword [esi + 0x64], 0
je 0x56fadd
push 0
mov ecx, edi
call fcn.00540d70
jmp 0x56fb03
cmp dword [esi + 0x68], 0
je 0x56fb03
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 0x20]
push edi
call fcn.005ba200
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
mov eax, dword [edx + 0x17c]
mov dword [ebp - 0x34], 1
call eax
mov edx, dword [ebp - 0x34]
mov ecx, dword [esi + 0xd4]
xor eax, eax
xor ebx, ebx
cmp edx, ebx
setne al
inc eax
cmp ecx, 8
jne 0x56fb22
or eax, 0x4000
jmp 0x56fb31
cmp ecx, 2
jne 0x56fb31
cmp dword [esi + 0x64], ebx
jne 0x56fb31
or eax, 0x8000
cmp edx, ebx
je 0x56fb4b
cmp dword [esi + 0x68], ebx
je 0x56fb41
or eax, 0x2000
jmp 0x56fb4b
cmp ecx, 4
jne 0x56fb4b
or eax, 0x1000
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 0x88]
mov ecx, esi
mov dword [esi + 0xd4], ebx
call eax
push 1
push 0xffffffffffffffff
mov ecx, esi
call fcn.0056e920
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x58], ebx
cmp ecx, ebx
je 0x56fb7e
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
mov dword [esi + 0x50], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
jmp 0x56fe84
cmp dword [esi + 0x58], 0
je 0x56fc30
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x78]
mov edi, dword [esi + 0x58]
push eax
push ecx
mov ecx, esi
call edx
cmp edi, eax
jne 0x56fc30
cmp dword [edi + 0x60], 0
je 0x56fc16
mov eax, dword [esi + 0x40]
mov ebx, dword [eax + 0x10c]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, edi
call fcn.005407c0
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp + 0xc]
xor eax, eax
cmp edx, 0xf
setle al
xor edi, edi
cmp eax, edi
je 0x56fc2d
cmp ebx, edi
je 0x56fc2d
mov ecx, dword [esi + 0x58]
xor eax, eax
cmp dword [ecx + 0x64], edi
sete al
push eax
call fcn.00540f50
mov edx, dword [esi + 0x58]
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [esi + 0x40]
push 0xffffffffffffffac
push edx
push edi
push edi
mov dword [esi + 0x64], edi
mov dword [esi + 0xd4], edi
call fcn.00532af0
jmp 0x56fe84
mov ecx, dword [esi + 0x40]
push 0xffffffffffffffff
lea eax, [ebp + 0xc]
push eax
push 0xfffffffffffffffe
push edi
push 0
push 0
call fcn.00532af0
jmp 0x56fc30
mov ebx, dword [ebp - 0x38]
cmp ebx, 2
jne 0x56fe84
mov ebx, dword [esi + 0x58]
xor eax, eax
mov dword [ebp - 0x3c], ebx
cmp ebx, eax
je 0x56fe84
mov dword [esi + 0x58], eax
cmp dword [ebx + 0x48], eax
je 0x56fe74
cmp dword [esi + 0xac], eax
je 0x56fe74
mov dword [ebp - 0x34], eax
cmp dword [esi + 0x64], eax
je 0x56fd2d
cmp dword [esi + 0xbc], eax
je 0x56fc82
cmp dword [ebx + 0x4c], eax
je 0x56fc82
mov ecx, dword [esi + 0x3c]
mov edi, dword [ecx + 0x20]
jmp 0x56fc88
mov edx, dword [esi + 0x3c]
mov edi, dword [edx + 0x24]
push ebx
mov ecx, edi
call fcn.005ba1c0
xor ecx, ecx
test eax, eax
setns cl
push 0x10
mov dword [ebp - 0x38], ecx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x56fd14
cmp dword [esi + 0xbc], 0
je 0x56fce3
cmp dword [esi + 0xa0], 0
jne 0x56fce3
mov ecx, edi
xor ebx, ebx
call fcn.00540a10
test eax, eax
jle 0x56fce3
push 1
push ebx
mov ecx, edi
call fcn.005ba190
mov ecx, eax
call fcn.00540d70
mov ecx, edi
inc ebx
call fcn.00540a10
cmp ebx, eax
jl 0x56fcc6
mov ecx, edi
call fcn.005ba430
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, edi
call fcn.005ba410
cmp dword [ebp - 0x38], 0
mov eax, dword [esi + 0xbc]
mov dword [ebp - 0x34], eax
je 0x56fd38
mov ebx, dword [ebp - 0x3c]
xor edx, edx
cmp dword [ebx + 0x44], edx
sete dl
mov dword [ebx + 0x44], edx
jmp 0x56fd38
cmp dword [ebp - 0x38], 0
jne 0x56fd07
push ebx
mov ecx, edi
call fcn.005ba410
mov ecx, dword [esi + 0xbc]
mov dword [ebp - 0x34], ecx
jmp 0x56fd38
xor ecx, ecx
cmp dword [ebx + 0x44], eax
sete cl
mov dword [ebx + 0x44], ecx
lea ecx, [ebp - 0x50]
call fcn.004f321e
mov eax, dword [esi + 0x40]
cmp dword [eax + 0x2e0], 0
mov dword [ebp - 4], 0
je 0x56fda3
mov ebx, dword [eax + 0x160]
test ebx, ebx
je 0x56fda3
mov ecx, ebx
call fcn.005b9b70
xor edi, edi
mov dword [ebp - 0x38], eax
test eax, eax
jle 0x56fda3
lea ecx, [ecx]
push edi
mov ecx, ebx
call fcn.005b9c80
test eax, eax
je 0x56fd9d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x58]
call eax
test eax, eax
je 0x56fd9d
mov ecx, eax
call fcn.0051e2f0
mov ecx, dword [ebp - 0x48]
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.004f336b
inc edi
cmp edi, dword [ebp - 0x38]
jl 0x56fd70
mov ecx, dword [esi + 0x40]
push 0
push 0xffffffffffffffbd
call fcn.00532a60
cmp dword [ebp - 0x34], 0
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
je 0x56fdc2
mov eax, dword [edx + 0x17c]
jmp 0x56fdc8
mov eax, dword [edx + 0x1e4]
call eax
mov ecx, dword [esi + 0x40]
cmp dword [ecx + 0x2e0], 0
je 0x56fe37
call fcn.0056bf60
mov ecx, dword [esi + 0x40]
mov ebx, eax
call fcn.0056bf50
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jle 0x56fe37
xor edi, edi
test eax, eax
jle 0x56fe37
test edi, edi
js 0x56fe6f
cmp edi, eax
jge 0x56fe6f
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + edi*4]
mov ecx, dword [ebp - 0x38]
push eax
call fcn.0056c270
test eax, eax
je 0x56fe2f
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x94]
mov ecx, ebx
call eax
test eax, eax
je 0x56fe2f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x8c]
push 1
call eax
mov eax, dword [ebp - 0x48]
inc edi
cmp edi, eax
jl 0x56fdf5
mov ecx, dword [esi + 0x40]
push 0
push 0xffffffffffffffc8
call fcn.00532a60
cmp dword [ebp - 0x34], 0
je 0x56fe5e
mov eax, dword [ebp - 0x3c]
mov edx, dword [esi]
mov edx, dword [edx + 0x88]
push eax
push 0x3002
mov ecx, esi
call edx
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.004f3235
jmp 0x56fe7c
call fcn.00409f06
mov ecx, dword [esi + 0x40]
call fcn.0052f620
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret 0xc