Function at 0x4c73e7
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x4ed991
call fcn.004b48a0
sub esp, 0x7c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 4]
cmp esi, 0x200
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], esi
je 0x4c7431
cmp esi, 0xa0
je 0x4c7431
cmp esi, 0x202
je 0x4c7431
cmp esi, 0x205
je 0x4c7431
cmp esi, 0x208
jne 0x4c76fa
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call esi
test ax, ax
jl 0x4c76f7
push 2
call esi
test ax, ax
jl 0x4c76f7
push 4
call esi
test ax, ax
jl 0x4c76f7
call fcn.004e1daf
push dword [ebx]
mov esi, eax
mov dword [ebp - 0x18], esi
jmp 0x4c747e
test word [eax + 0x38], 0x401
jne 0x4c7487
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004c9d46
test eax, eax
jne 0x4c746c
cmp eax, edi
je 0x4c749f
test eax, eax
jne 0x4c77c8
and dword [esi + 0x40], eax
or dword [esi + 0x44], 0xffffffff
jmp 0x4c77c8
mov ebx, dword [esi + 0x3c]
mov ecx, edi
call fcn.004ca036
test ebx, ebx
mov dword [ebp - 0x14], eax
je 0x4c74d5
mov ecx, ebx
call fcn.0040d560
cmp eax, dword [ebp - 0x14]
je 0x4c74d1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x60]
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
xor ebx, ebx
mov dword [esi + 0x3c], ebx
test ebx, ebx
jne 0x4c752f
push 0x6c
call fcn.004cc845
pop ecx
mov dword [ebp - 0x1c], eax
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x4c74f2
mov ecx, eax
call fcn.004c7113
mov ebx, eax
mov eax, dword [ebx]
or dword [ebp - 4], 0xffffffff
push 1
push dword [ebp - 0x14]
mov ecx, ebx
call dword [eax + 0x130]
test eax, eax
jne 0x4c7517
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
jmp 0x4c77c8
push 0
push 0
push 0x401
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [ebp - 0x10]
mov dword [esi + 0x3c], ebx
push 0x30
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.004b4840
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
add esp, 0xc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x1c]
mov dword [ebp - 0x28], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x30
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.004b4840
mov eax, dword [edi]
add esp, 0xc
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x24]
mov ecx, edi
push dword [ebp - 0x28]
mov dword [ebp - 0x58], 0x28
call dword [eax + 0x6c]
mov ecx, eax
inc ecx
neg ecx
sbb ecx, ecx
and ecx, edi
cmp dword [esi + 0x44], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ecx
jne 0x4c75e9
cmp dword [esi + 0x40], ecx
jne 0x4c75e9
test byte [edi + 0x39], 4
je 0x4c75d2
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
movzx eax, word [ebp - 0x1c]
movzx ecx, word [ebp - 0x20]
shl eax, 0x10
or eax, ecx
push eax
push 0
push 0x412
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4c76c1
cmp eax, 0xffffffff
je 0x4c76c1
push dword [ebp + 8]
push ebx
call fcn.004c7365
jmp 0x4c76c1
cmp eax, 0xffffffff
je 0x4c76e3
mov eax, dword [ebp - 0x10]
push 0xc
pop ecx
lea esi, [ebp - 0x58]
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
and byte [ebp - 0x81], 0x3f
mov edi, 0x400
test dword [eax + 0x38], edi
je 0x4c761b
or dword [ebp - 0x84], 0x20
lea eax, [ebp - 0x88]
push eax
xor esi, esi
push esi
push 0x432
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [ebp - 0x51], 0x40
jne 0x4c7645
mov ecx, dword [ebp - 0x10]
call fcn.004caceb
test eax, eax
je 0x4c7688
push esi
push 1
push 0x401
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x10]
test dword [eax + 0x38], edi
je 0x4c7675
lea eax, [ebp - 0x88]
push eax
push 1
push 0x411
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x213
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [ebp - 0x18]
push dword [ebp + 8]
push ebx
call fcn.004c7365
lea edi, [esi + 0x48]
cmp dword [edi], 0x28
jb 0x4c76ad
push edi
push 0
push 0x433
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x44], eax
push 0xc
pop ecx
lea esi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x34], 0xffffffff
je 0x4c77c8
cmp dword [ebp - 0x38], 0
jne 0x4c77c8
push dword [ebp - 0x34]
call fcn.004b42a1
pop ecx
jmp 0x4c77c8
push 0
push 0
push 0x401
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4c768b
mov esi, dword [ebp - 0x1c]
test word [edi + 0x38], 0x401
je 0x4c77c8
push dword [ebx]
jmp 0x4c7720
cmp eax, edi
je 0x4c7731
test word [eax + 0x38], 0x401
jne 0x4c7729
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004c9d46
test eax, eax
jne 0x4c770a
cmp eax, edi
jne 0x4c77c8
cmp esi, 0x100
jb 0x4c7741
cmp esi, 0x109
jbe 0x4c7751
cmp esi, 0x104
jb 0x4c7756
cmp esi, 0x107
ja 0x4c7756
xor eax, eax
inc eax
jmp 0x4c7758
xor eax, eax
test byte [edi + 0x39], 4
jne 0x4c77c8
test eax, eax
jne 0x4c77c2
cmp esi, 0x201
je 0x4c77c2
cmp esi, 0x203
je 0x4c77c2
cmp esi, 0x204
je 0x4c77c2
cmp esi, 0x206
je 0x4c77c2
cmp esi, 0x207
je 0x4c77c2
cmp esi, 0x209
je 0x4c77c2
cmp esi, 0xa1
je 0x4c77c2
cmp esi, 0xa3
je 0x4c77c2
cmp esi, 0xa4
je 0x4c77c2
cmp esi, 0xa6
je 0x4c77c2
cmp esi, 0xa7
je 0x4c77c2
cmp esi, 0xa9
jne 0x4c77c8
push eax
call fcn.004c9336
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4