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

Disassembly:
sub esp, 0xb4
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc8]
push edi
mov ebx, ecx
mov edi, dword [esi + 4]
cmp edi, 0x200
je 0x4c7a6a
cmp edi, 0xa0
je 0x4c7a6a
cmp edi, 0x2a3
je 0x4c7a6a
cmp edi, 0x202
je 0x4c7a6a
cmp edi, 0x205
je 0x4c7a6a
cmp edi, 0x208
jne 0x4c8092
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call ebp
test ax, ax
jl 0x4c8092
push 2
call ebp
test ax, ax
jl 0x4c8092
push 4
call ebp
test ax, ax
jl 0x4c8092
mov eax, dword [esp + 0xd0]
mov ebp, dword [esp + 0xc8]
mov edi, dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x4c7adc
mov eax, dword [esi]
push eax
call fcn.005dfba6
test eax, eax
je 0x4c7ad4
test dword [eax + 0x24], 0x401
jne 0x4c7ad4
mov ecx, dword [eax + 0x1c]
push ecx
call edi
push eax
call fcn.005dfba6
test eax, eax
jne 0x4c7abb
cmp eax, ebp
jne 0x4c8162
test ebp, ebp
jne 0x4c7ae4
xor eax, eax
jmp 0x4c7ae7
mov eax, dword [ebp + 0x1c]
push eax
call fcn.004addc0
mov edi, eax
mov eax, dword [ebx + 0x5c]
add esp, 4
mov dword [esp + 0x28], edi
test eax, eax
je 0x4c7b36
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4c7b36
mov edx, ecx
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4c7b36
test edi, edi
jne 0x4c7b36
mov eax, dword [ebx + 0x5c]
push edi
push edi
push 0x401
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret 0xc
mov ecx, ebp
call fcn.005e12d2
mov esi, eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4c7b6c
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4c7b50
push ecx
jmp 0x4c7b5b
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005dfba6
cmp eax, esi
je 0x4c7b6c
mov ecx, dword [ebx + 0x5c]
mov eax, dword [ecx]
call dword [eax + 0x58]
mov eax, dword [ebx + 0x5c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
or edi, 0xffffffff
test eax, eax
je 0x4c7b8b
test eax, eax
je 0x4c7b8f
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x4c7cfd
test eax, eax
jne 0x4c7b9a
mov edx, dword [ebx]
push esi
mov ecx, ebx
call dword [edx + 0x50]
mov dword [ebx + 0x5c], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4c8162
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x4c7c08
push eax
push 0x64fa88
call fcn.005e5116
add esp, 8
test eax, eax
je 0x4c7bcf
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x5c]
or al, 3
push eax
push esi
call fcn.004c4360
jmp 0x4c7c08
mov ecx, dword [ebx + 0x5c]
push ecx
push 0x648cb0
call fcn.005e5116
add esp, 8
test eax, eax
je 0x4c8162
mov edx, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x3c]
dec edx
neg edx
sbb edx, edx
and edx, 0xffffffc0
add edx, 0x40
or edx, ecx
mov ecx, dword [ebx + 0x5c]
or edx, 3
push edx
push esi
call fcn.005dd48e
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4c8162
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4c8162
lea ecx, [ebx + 0x94]
test ecx, ecx
je 0x4c7c2b
mov ecx, dword [ecx + 4]
mov eax, dword [eax + 0x1c]
push 1
push ecx
push 0x30
push eax
call ebp
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x5c]
push ecx
push 0
mov eax, dword [edx + 0x1c]
push 0x418
push eax
call ebp
mov edx, dword [ebx + 0x5c]
lea ecx, [ebx + 0x40]
push ecx
push 0
mov eax, dword [edx + 0x1c]
push 0x41a
push eax
call ebp
mov eax, dword [ebx + 0x8c]
cmp eax, edi
je 0x4c7c79
mov ecx, dword [ebx + 0x5c]
push 0
push eax
push 0x413
mov edx, dword [ecx + 0x1c]
push edx
call ebp
mov eax, dword [ebx + 0x90]
cmp eax, edi
je 0x4c7c94
push 0
push eax
mov eax, dword [ebx + 0x5c]
push 0x414
mov ecx, dword [eax + 0x1c]
push ecx
call ebp
mov eax, dword [ebx + 0x54]
cmp eax, edi
je 0x4c7cb1
xor edx, edx
mov dx, ax
mov eax, dword [ebx + 0x5c]
push edx
push 1
mov ecx, dword [eax + 0x1c]
push 0x403
push ecx
call ebp
mov eax, dword [ebx + 0x50]
cmp eax, edi
je 0x4c7cce
xor edx, edx
mov dx, ax
mov eax, dword [ebx + 0x5c]
push edx
push 3
mov ecx, dword [eax + 0x1c]
push 0x403
push ecx
call ebp
mov eax, dword [ebx + 0x58]
cmp eax, edi
je 0x4c7ceb
xor edx, edx
mov dx, ax
mov eax, dword [ebx + 0x5c]
push edx
push 2
mov ecx, dword [eax + 0x1c]
push 0x403
push ecx
call ebp
mov edx, dword [ebx + 0x5c]
push 0
push 0
push 0x401
mov eax, dword [edx + 0x1c]
push eax
call ebp
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x58]
mov esi, dword [ebx + 0x5c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x10], esi
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x24], edx
lea eax, [esp + 0x20]
mov edx, dword [ecx + 0x1c]
push eax
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x4c7d5f
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x2c], 0x28
test eax, eax
je 0x4c7d67
mov dword [esp + 0x2c], 0x2c
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x58]
mov edx, dword [ebx]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0xd0]
push eax
push ecx
mov ecx, ebx
call dword [edx + 0x54]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
xor edi, edi
cmp eax, edi
je 0x4c7dc9
mov ecx, dword [esp + 0x58]
cmp ecx, edi
je 0x4c7dc9
mov eax, dword [esp + 0x5c]
cmp eax, edi
je 0x4c7dc9
push eax
push ecx
call fcn.004750b7
add esp, 8
test eax, eax
jne 0x4c7dc9
mov edx, dword [esp + 0x58]
push edx
call fcn.00474394
add esp, 4
mov dword [esp + 0x58], edi
test byte [ebx + 0x3c], 2
jne 0x4c7de9
mov eax, dword [esp + 0x50]
push eax
call fcn.004ad430
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 4]
push edx
call fcn.004ad430
add esp, 8
cmp dword [ebx + 0xa4], edi
je 0x4c7e0b
mov eax, dword [esp + 0x50]
push eax
call fcn.004c40b0
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 4]
push edx
call fcn.004c40b0
add esp, 8
mov eax, dword [ebx + 0x6c]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jne 0x4c7e7c
mov ecx, dword [ebx + 0x68]
mov eax, dword [esp + 0x34]
cmp ecx, eax
jne 0x4c7e7c
lea edx, [esp + 0x3c]
lea eax, [esp + 0x88]
mov dword [esp + 0x18], edi
mov edi, dword [sym.imp.USER32.dll_CopyRect]
push edx
push eax
call edi
lea ecx, [ebx + 0x70]
lea edx, [esp + 0x78]
push ecx
push edx
call edi
lea eax, [esp + 0x88]
lea ecx, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x4c7e84
cmp dword [esp + 0x14], 0xffffffff
je 0x4c8045
mov edx, dword [esp + 0xcc]
mov ecx, ebx
push edx
push esi
call fcn.004c73f0
jmp 0x4c8045
mov dword [esp + 0x18], 1
mov ecx, dword [ebx + 0x60]
lea eax, [ebx + 0x60]
cmp ecx, 0x28
mov dword [esp + 0x1c], eax
jb 0x4c7ea9
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4c7ea9
push eax
mov eax, dword [esi + 0x1c]
push 0
push 0x405
push eax
call ebp
cmp dword [esp + 0x14], 0xffffffff
je 0x4c7ff4
mov eax, dword [esp + 0x10]
mov ecx, 0xb
lea esi, [esp + 0x2c]
lea edi, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x98]
and ecx, 0x3fffffff
push edx
mov dword [esp + 0xa0], ecx
mov ecx, dword [eax + 0x1c]
push 0
push 0x404
push ecx
call ebp
mov eax, dword [ebx + 0x2c]
cmp eax, 3
je 0x4c7f71
cmp eax, 6
je 0x4c7f71
cmp eax, 7
je 0x4c7f71
cmp dword [ebx + 0x30], 0x50050
jae 0x4c7f0f
test eax, eax
je 0x4c7f71
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4c7f5c
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4c7f5c
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4c7f5c
mov esi, dword [esp + 0x10]
mov edx, dword [ebx + 0x34]
push eax
push edx
mov eax, dword [esi + 0x1c]
push 0x420
push eax
call ebp
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x98]
mov dword [esp + 0xbc], ecx
push edx
push 0
push 0x40c
push eax
call ebp
jmp 0x4c7f75
mov esi, dword [esp + 0x10]
push 0
push 0
push 0x420
mov ecx, dword [esi + 0x1c]
push ecx
call ebp
jmp 0x4c7f75
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4c7fb8
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x4c7fa9
mov eax, dword [ebx + 0x28]
mov edi, dword [esp + 0x14]
mov edx, dword [ebx + 0x24]
add eax, edi
push edx
push eax
call fcn.004aaf50
test eax, eax
je 0x4c7fa9
mov ecx, dword [esi + 0x1c]
push eax
push 0
push 0x2a49
push ecx
jmp 0x4c7fb6
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x2a49
push edx
call ebp
test dword [esp + 0x30], 0x40000000
jne 0x4c7fca
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4c8007
mov eax, dword [esi + 0x1c]
push 0
push 1
push 0x401
push eax
call ebp
mov ecx, dword [esi + 0x1c]
push 0x213
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4c8007
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x401
push edx
call ebp
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xcc]
mov ecx, ebx
push eax
push esi
call fcn.004c73f0
mov eax, dword [esp + 0x1c]
cmp dword [eax], 0x28
jb 0x4c8036
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4c8036
mov ecx, dword [esi + 0x1c]
push eax
push 0
push 0x405
push ecx
call ebp
mov edi, dword [esp + 0x1c]
mov ecx, 0xb
lea esi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x50]
cmp eax, 0xffffffff
je 0x4c805f
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jne 0x4c805f
push eax
call fcn.00474394
add esp, 4
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4c8070
push eax
call fcn.00474394
add esp, 4
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4c8162
push eax
call fcn.00474394
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret 0xc
mov eax, dword [esp + 0xd0]
test eax, eax
jne 0x4c80db
mov edx, dword [esi]
push edx
call fcn.005dfba6
mov ebp, dword [esp + 0xc8]
test eax, eax
je 0x4c80d3
mov esi, dword [sym.imp.USER32.dll_GetParent]
cmp eax, ebp
je 0x4c80db
test dword [eax + 0x24], 0x401
jne 0x4c80d3
mov eax, dword [eax + 0x1c]
push eax
call esi
push eax
call fcn.005dfba6
test eax, eax
jne 0x4c80b6
cmp eax, ebp
jne 0x4c8162
cmp edi, 0x100
jb 0x4c80eb
cmp edi, 0x108
jbe 0x4c815b
cmp edi, 0x104
jb 0x4c80fb
cmp edi, 0x107
jbe 0x4c815b
cmp edi, 0x201
je 0x4c815b
cmp edi, 0x203
je 0x4c815b
cmp edi, 0x204
je 0x4c815b
cmp edi, 0x206
je 0x4c815b
cmp edi, 0x207
je 0x4c815b
cmp edi, 0x209
je 0x4c815b
cmp edi, 0xa1
je 0x4c815b
cmp edi, 0xa3
je 0x4c815b
cmp edi, 0xa4
je 0x4c815b
cmp edi, 0xa6
je 0x4c815b
cmp edi, 0xa7
je 0x4c815b
cmp edi, 0xa9
jne 0x4c8162
mov ecx, ebx
call fcn.004c79d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret 0xc