Function at 0x5c7110
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6272ed
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005dcc64
test eax, 0x10000
je 0x5c7144
mov ecx, esi
call fcn.005dcea8
cmp dword [esp + 0xf0], 1
je 0x5c7155
xor al, al
jmp 0x5c78f7
mov edi, dword [esi + 0x40]
xor ebx, ebx
mov dword [esp + 0x1c], edi
mov dword [esi + 0x40], ebx
call sub.USER32.dll_GetCapture
cmp eax, dword [esi + 0x1c]
jne 0x5c7170
call sub.USER32.dll_ReleaseCapture
cmp esi, ebx
jne 0x5c717a
mov dword [esp + 0x24], ebx
jmp 0x5c7181
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xbc]
mov ebp, eax
lea eax, [esp + 0xe4]
push ebx
push eax
mov ecx, esi
call fcn.005c7940
dec eax
je 0x5c7855
dec eax
je 0x5c7769
dec eax
je 0x5c71b5
xor al, al
jmp 0x5c78f7
lea ecx, [esp + 0xe4]
push ecx
mov ecx, esi
call fcn.005c4d10
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x20], ebx
je case.0x5c71ef.7
lea edx, [esp + 0xe4]
push 0
push edx
mov ecx, ebx
call fcn.005c3be0
add eax, 0xfffffffc
cmp eax, 4
ja case.0x5c71ef.7
jmp dword [eax*4 + 0x5c7914]
mov al, byte [esp + 0xec]
test al, al
je case.0x5c71ef.7
test esi, esi
jne 0x5c720d
xor eax, eax
jmp 0x5c7210
mov eax, dword [esi + 0x1c]
push eax
lea ecx, [esi + 0x3c]
call fcn.0058c630
mov eax, dword [esi]
push 1
push 1
mov ecx, esi
mov dword [esi + 0x40], 1
call dword [eax + 0x168]
jmp case.0x5c71ef.7
mov al, byte [esp + 0xec]
test al, al
je case.0x5c71ef.7
test esi, esi
jne 0x5c724a
xor eax, eax
jmp 0x5c724d
mov eax, dword [esi + 0x1c]
push eax
lea ecx, [esi + 0x3c]
call fcn.0058c630
mov edx, dword [esi]
push 1
push 1
mov ecx, esi
mov dword [esi + 0x40], 2
call dword [edx + 0x168]
jmp case.0x5c71ef.7
lea eax, [esp + 0xe4]
mov ecx, ebx
push eax
call fcn.005c3b50
mov edi, eax
xor eax, eax
cmp edi, eax
je case.0x5c71ef.7
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
call fcn.005c3af0
lea eax, [esp + 0xa0]
mov ecx, edi
push eax
call fcn.005c3ff0
mov ecx, eax
call fcn.0050f317
cmp eax, dword [esp + 0x14]
je 0x5c72cc
test ebp, 0x200
je case.0x5c71ef.7
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.005c3ff0
mov bl, byte [esp + 0xec]
mov edi, 5
test bl, bl
je 0x5c7323
test esi, esi
mov dword [esi + 0x40], edi
jne 0x5c72f3
xor eax, eax
jmp 0x5c72f6
mov eax, dword [esi + 0x1c]
push eax
lea ecx, [esi + 0x3c]
call fcn.0058c630
mov eax, dword [esp + 0x34]
test eax, eax
jne case.0x5c71ef.7
mov edx, dword [esi]
push 0
lea eax, [esp + 0x30]
push 0
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, esi
call dword [edx + 0xd0]
mov eax, dword [esp + 0x34]
test eax, eax
jne case.0x5c71ef.7
cmp dword [esp + 0x1c], edi
jne case.0x5c71ef.7
test bl, bl
jne 0x5c734e
mov edx, dword [esi]
lea eax, [esp + 0x2c]
push 0
push eax
mov ecx, esi
call dword [edx + 0xcc]
mov edx, dword [esi]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x38]
push eax
xor edi, edi
push ecx
mov ecx, esi
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
call dword [edx + 0xd4]
mov edx, dword [esi]
push edi
lea eax, [esp + 0x30]
push edi
lea ecx, [esp + 0x40]
push eax
push ecx
mov ecx, esi
call dword [edx + 0xd0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xfc]
mov ebp, eax
cmp ebp, edi
je case.0x5c71ef.7
test esi, esi
je 0x5c73b5
mov edi, dword [esi + 0x1c]
mov eax, dword [esi + 0x12c]
push 1
push 1
push esi
push eax
lea ecx, [esp + 0x7c]
call fcn.005c4470
push ebp
lea ecx, [esp + 0x70]
call fcn.005c44e0
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne case.0x5c71ef.7
jmp 0x5c78f5
mov al, byte [esp + 0xec]
test al, al
je case.0x5c71ef.7
push 0xcc
call fcn.005dd77b
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0xdc], 0
je 0x5c742c
mov ecx, ebp
shr ecx, 0xc
and cl, 1
push ecx
push esi
mov ecx, eax
call fcn.005c27c0
mov ebp, eax
jmp 0x5c742e
xor ebp, ebp
mov edx, dword [esi + 0x1c]
push 0
push 0
push edx
push 0x64
push 0x64
push 0
push 0
push bind
push 0x6b3df8
push 0
push 0
push 0
push 0x800
mov dword [esp + 0x110], 0xffffffff
call fcn.005da9ac
push eax
push 0x108
mov ecx, ebp
call fcn.005da246
test eax, eax
je 0x5c78f5
mov ebx, dword [ebp + 0x1c]
mov edi, dword [esp + 0x20]
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x14], ebx
push eax
push ecx
mov ecx, edi
call fcn.005c3af0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
push edx
push eax
mov ecx, ebp
call fcn.005c2920
lea ecx, [esp + 0x44]
push 0
push ecx
mov ecx, ebp
call fcn.005c2980
lea edx, [esp + 0x38]
push 1
push edx
mov ecx, ebp
call fcn.005c2980
lea eax, [esp + 0x50]
mov ecx, edi
push eax
call fcn.005c3ac0
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call fcn.005e0f44
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
add eax, edx
push 0x50
cdq
sub eax, edx
mov edx, dword [esp + 0x54]
mov ecx, eax
mov eax, dword [esp + 0x5c]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x4c]
mov edi, eax
mov eax, dword [esp + 0x48]
push edx
push eax
mov eax, dword [esp + 0x48]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x44]
cdq
sub eax, edx
push ecx
sar edi, 1
sar eax, 1
sub edi, eax
mov ecx, ebp
push edi
push 0x6c5658
call fcn.005dcdf0
push ebx
lea ecx, [esi + 0x3c]
call fcn.0058c630
call fcn.005ddc59
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov byte [esp + 0x13], 0
xor bl, bl
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5c76af
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5c76a1
push 0
push 0
push 0
lea ecx, [esp + 0x78]
push 0
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x5c769d
mov eax, dword [esp + 0x70]
cmp eax, 0x7b
ja 0x5c75ad
je 0x5c75d9
lea ecx, [eax - 0x15]
cmp ecx, 0xa
ja case.0x5c75a6.22
xor edx, edx
mov dl, byte [ecx + 0x5c7930]
jmp dword [edx*4 + 0x5c7928]
cmp eax, 0x20a
ja 0x5c75e8
cmp eax, 0x201
jae 0x5c75d9
cmp eax, 0xa1
jb case.0x5c75a6.22
cmp eax, 0xa9
jbe 0x5c75d9
cmp eax, 0x200
jne case.0x5c75a6.22
mov ecx, ebp
call fcn.005c2a40
jmp 0x5c7607
cmp eax, 0x202
mov bl, 1
jne 0x5c7607
mov byte [esp + 0x13], bl
jmp 0x5c7607
cmp eax, 0x215
je 0x5c75ff
cmp eax, 0x100
jb 0x5c7607
cmp eax, 0x108
ja 0x5c7607
jmp case.0x5c75a6.21
cmp dword [esp + 0x74], edi
je 0x5c7607
mov bl, 1
call sub.USER32.dll_GetCapture
cmp eax, edi
jne 0x5c76af
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x5c76af
push 4
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
jne 0x5c76af
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
jne 0x5c76af
call fcn.00559b10
test eax, eax
je 0x5c767b
mov ecx, esi
call fcn.005dcc64
and eax, 0xc0010000
cmp eax, 0x40000000
jne 0x5c76af
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005d9ca3
push 0x655198
mov ecx, eax
call fcn.005dda74
test eax, eax
je 0x5c76af
test bl, bl
jne 0x5c76af
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
call dword [edx + 0x5c]
test eax, eax
jne 0x5c768e
mov bl, 1
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x5c7570
test bl, bl
jne 0x5c76af
call dword [sym.imp.USER32.dll_WaitMessage]
test eax, eax
jne 0x5c7552
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je case.0x5c71ef.7
call sub.USER32.dll_GetCapture
cmp eax, edi
jne 0x5c76cc
call sub.USER32.dll_ReleaseCapture
mov al, byte [esp + 0x13]
test al, al
je 0x5c775d
mov ecx, ebp
call fcn.005c2a40
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
xor ebx, ebx
push ecx
mov ecx, ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.005c2950
test al, al
je 0x5c775d
mov edx, dword [esi]
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
mov ecx, esi
call dword [edx + pe_nt_image_headers32]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x710]
mov edx, dword [ecx + 0x714]
imul eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
add eax, edx
mov edx, dword [esp + 0x18]
cmp eax, ebx
jle 0x5c7749
dec ecx
cmp ecx, 1
jge 0x5c773e
mov ecx, 0xc
dec edx
dec eax
jne 0x5c7732
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
push ebx
push 1
push ecx
push edx
mov ecx, esi
call fcn.005c5710
push ebx
mov ecx, esi
call fcn.005c4a90
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp case.0x5c71ef.7
mov al, byte [esp + 0xec]
test al, al
je 0x5c779f
cmp esi, ebx
jne 0x5c777c
xor eax, eax
jmp 0x5c777f
mov eax, dword [esi + 0x1c]
push eax
lea ecx, [esi + 0x3c]
call fcn.0058c630
mov edx, dword [esi]
push ebx
mov ecx, esi
mov dword [esi + 0x40], 4
call dword [edx + 0xc4]
jmp case.0x5c71ef.7
cmp edi, 4
jne case.0x5c71ef.7
mov edi, dword [esi]
lea eax, [esp + 0x94]
push ebx
push eax
mov ecx, esi
call dword [edi + 0xf8]
push eax
mov ecx, esi
call dword [edi + 0xdc]
mov edx, dword [esi]
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call dword [edx + 0xe0]
mov edx, dword [esi]
lea eax, [esp + 0x60]
push ebx
push eax
mov ecx, esi
call dword [edx + 0xcc]
test al, al
je 0x5c77fd
mov edx, dword [esi]
push ebx
lea eax, [esp + 0x64]
push ebx
lea ecx, [esp + 0x68]
push eax
push ecx
mov ecx, esi
call dword [edx + 0xd0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xfc]
mov ebp, eax
cmp ebp, ebx
je case.0x5c71ef.7
cmp esi, ebx
jne 0x5c7819
xor edi, edi
jmp 0x5c781c
mov edi, dword [esi + 0x1c]
mov eax, dword [esi + 0x12c]
push 1
push 1
push esi
push eax
lea ecx, [esp + 0xbc]
call fcn.005c4470
push ebp
lea ecx, [esp + 0xb0]
call fcn.005c44e0
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne case.0x5c71ef.7
jmp 0x5c78f5
mov al, byte [esp + 0xec]
test al, al
je 0x5c7888
cmp esi, ebx
jne 0x5c7868
xor eax, eax
jmp 0x5c786b
mov eax, dword [esi + 0x1c]
push eax
lea ecx, [esi + 0x3c]
call fcn.0058c630
mov edx, dword [esi]
push ebx
mov ecx, esi
mov dword [esi + 0x40], 3
call dword [edx + 0xc4]
jmp case.0x5c71ef.7
cmp edi, 3
jne case.0x5c71ef.7
push ebx
mov ecx, esi
call fcn.005c53d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xfc]
mov ebp, eax
cmp ebp, ebx
je case.0x5c71ef.7
cmp esi, ebx
jne 0x5c78ad
xor edi, edi
jmp 0x5c78b0
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x12c]
push 1
push 1
push esi
push ecx
lea ecx, [esp + 0x7c]
call fcn.005c4470
push ebp
lea ecx, [esp + 0x70]
call fcn.005c44e0
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5c78f5
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5c78f5
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0xc4]
mov al, 1
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd0
ret 0x14