Function at 0x4c7968
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5f4e24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x11
mov edi, ecx
mov dword [ebp - 0x2c], esi
call dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
inc ebx
test ax, ax
js 0x4c7d7e
push esi
push 0x5f46d0
call fcn.004335ac
pop ecx
pop ecx
mov esi, eax
xor ecx, ecx
mov eax, dword [edi + 0x1b8]
mov dword [ebp - 0x28], esi
test eax, eax
je 0x4c79c2
cmp dword [eax + 8], ecx
je 0x4c79c2
mov dword [ebp - 0x38], ebx
cmp dword [eax + 4], ecx
jne 0x4c79c5
mov dword [ebp - 0x38], ecx
test esi, esi
je 0x4c7d7e
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi]
mov esi, dword [eax + 0x170]
mov ecx, esi
call dword [0x5a1a14]
mov ecx, dword [ebp - 0x28]
call esi
mov dword [ebp - 0x24], eax
mov ecx, 0x5f477c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004d9717
mov esi, dword [ebp - 0x28]
xor eax, eax
push 0x15
push eax
push eax
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebp - 0x14]
push eax
call fcn.00437741
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
and dword [ebp - 8], 0
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi]
mov esi, dword [eax + 0x1a8]
mov ecx, esi
call dword [0x5a1a14]
mov ecx, dword [ebp - 0x28]
call esi
push eax
push 0x5ae4a4
call fcn.004335ac
mov dword [ebp - 0x30], eax
pop ecx
pop ecx
test eax, eax
je 0x4c7aaa
cmp dword [ebp - 0x38], 0
jne 0x4c7b89
mov eax, dword [eax]
mov esi, dword [eax + 0x1c0]
mov ecx, esi
call dword [0x5a1a14]
mov ecx, dword [ebp - 0x30]
call esi
test al, 0x40
je 0x4c7b86
mov ecx, dword [ebp - 0x30]
push 0x5f49bc
call fcn.0043364b
test eax, eax
je 0x4c7b86
mov eax, dword [edi]
push ebx
push dword [ebp - 0x28]
push dword [ebp - 8]
mov esi, dword [eax + 0x14]
mov ecx, esi
push dword [ebp - 0xc]
call dword [0x5a1a14]
mov ecx, edi
call esi
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4c7b86
push dword [eax + 0xc8]
call fcn.0043b940
mov esi, eax
mov eax, dword [ebp - 0x28]
push dword [eax + 0xc8]
call fcn.0043b940
cmp esi, eax
jne 0x4c7b86
push dword [ebp - 0x2c]
push 0x5f4788
call fcn.004335ac
mov esi, eax
mov dword [ebp - 0x2c], esi
pop ecx
pop ecx
test esi, esi
je 0x4c7d7e
mov ecx, dword [edi + 0x124]
lea eax, [edi + 0x128]
mov dword [ebp - 0x38], eax
test ecx, ecx
jne 0x4c7b35
call fcn.00578e78
mov dword [edi + 0x128], eax
mov dword [edi + 0x124], esi
jmp 0x4c7b3d
cmp ecx, esi
jne 0x4c7d7e
call fcn.00578e78
mov ecx, dword [ebp - 0x38]
sub eax, dword [ecx]
cmp eax, dword [0x5f4734]
jle 0x4c7d7e
mov eax, dword [esi]
push ebx
push dword [ebp - 0x28]
mov esi, dword [eax + 0x248]
mov ecx, esi
call dword [0x5a1a14]
mov ecx, dword [ebp - 0x2c]
call esi
mov esi, eax
call fcn.00578e78
mov ecx, dword [ebp - 0x38]
and dword [edi + 0x124], 0
mov dword [ecx], eax
mov eax, esi
jmp 0x4c7d80
mov eax, dword [ebp - 0x30]
and dword [edi + 0x124], 0
test eax, eax
je 0x4c7d7e
mov eax, dword [eax]
mov esi, dword [eax + 0x198]
mov ecx, esi
call dword [0x5a1a14]
mov ecx, dword [ebp - 0x30]
call esi
test eax, 0xf000
je 0x4c7d7e
mov eax, dword [ebp - 0x30]
and dword [ebp - 0x34], 0
mov eax, dword [eax]
mov esi, dword [eax + 0x2b4]
lea eax, [ebp - 0x34]
push eax
push dword [0x5f473c]
mov ecx, esi
call dword [0x5a1a14]
mov ecx, dword [ebp - 0x30]
call esi
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
sub esi, ecx
neg esi
sbb esi, esi
and esi, eax
mov dword [ebp - 0x3c], esi
test ecx, ecx
jne 0x4c7bfc
cmp esi, 2
jne 0x4c7c9d
cmp dword [ebp - 0x38], 0
jne 0x4c7c9d
test ecx, ecx
je 0x4c7c1c
push 0x5b9f68
call fcn.0043364b
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
jmp 0x4c7c20
and dword [ebp - 0x2c], 0
test ecx, ecx
je 0x4c7c33
push 0x5f49bc
call fcn.0043364b
mov ecx, dword [ebp - 0x34]
jmp 0x4c7c35
mov eax, ebx
cmp dword [ebp - 0x2c], 0
jne 0x4c7c46
test eax, eax
je 0x4c7c9d
mov eax, dword [0x5f4734]
jmp 0x4c7c4b
mov eax, dword [0x5f4730]
mov dword [ebp - 0x2c], eax
cmp dword [edi + 0x120], ecx
jne 0x4c7c62
cmp esi, dword [edi + 0x12c]
jne 0x4c7c62
mov esi, eax
jmp 0x4c7c8a
call fcn.00578e78
mov ecx, dword [ebp - 0x28]
mov dword [edi + 0x128], eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x120], eax
mov eax, edi
mov dword [eax + 0x12c], esi
mov esi, dword [ebp - 0x2c]
push esi
call fcn.004c3a30
call fcn.00578e78
sub eax, dword [edi + 0x128]
cmp eax, esi
jl 0x4c7d7e
and dword [edi + 0x120], 0
call fcn.00578e78
mov esi, dword [ebp - 0x28]
mov ecx, esi
and dword [edi + 0x12c], 0
mov dword [edi + 0x128], eax
call fcn.004bfbf1
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x4c7d0e
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x4c7d63
mov eax, dword [esi]
push ebx
push 0
push 0
mov esi, dword [eax + 0x190]
mov ecx, esi
call dword [0x5a1a14]
mov ecx, dword [ebp - 0x28]
call esi
mov edi, dword [ebp - 0x30]
push dword [ebp - 0x34]
mov eax, dword [edi]
mov esi, dword [eax + 0x2a0]
mov ecx, esi
call dword [0x5a1a14]
mov ecx, edi
call esi
test eax, eax
je 0x4c7d5d
xor eax, eax
jmp 0x4c7d80
cmp eax, 2
jne 0x4c7d20
cmp dword [ebp - 0x38], 0
jne 0x4c7d60
push ebx
push dword [ebp - 0x34]
push ebx
jmp 0x4c7d67
cmp eax, 3
jne 0x4c7d60
cmp dword [ebp - 0x38], 0
jne 0x4c7d60
mov eax, dword [esi]
push ebx
push dword [ebp - 0x34]
mov esi, dword [eax + 0x190]
mov ecx, esi
push 2
call dword [0x5a1a14]
mov ecx, dword [ebp - 0x28]
call esi
mov ebx, eax
mov eax, dword [edi]
push 0
mov esi, dword [eax + 0x38]
mov ecx, esi
call dword [0x5a1a14]
mov ecx, edi
call esi
jmp 0x4c7d7e
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
push ebx
push ecx
push 0
mov eax, dword [esi]
mov esi, dword [eax + 0x190]
mov ecx, esi
call dword [0x5a1a14]
mov ecx, dword [ebp - 0x28]
call esi
mov ebx, eax
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005638db
leave
ret 4