Function at 0x4c1b50
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5aac28
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebp
push edi
mov ebp, ecx
call fcn.004c2e90
test eax, eax
jne 0x4c206c
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x3c]
mov dword [esp + 0x24], ecx
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp + 0x614c]
mov edi, dword [esp + 0x3c]
sub edi, ecx
mov ecx, ebp
mov dword [esp + 0x3c], edi
xor edi, edi
push edi
call fcn.00573916
mov edx, dword [esp + 0x3c]
add edx, eax
mov dword [esp + 0x3c], edx
mov edx, dword [0x64fe78]
fild dword [esp + 0x3c]
mov eax, dword [edx + 0x9328]
cmp eax, edi
fstp dword [esp + 0xc]
jle 0x4c1be7
lea ecx, [eax + 1]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fdivr dword [esp + 0xc]
fstp dword [esp + 0xc]
jge 0x4c1bf3
fld dword [esp + 0xc]
fadd st(0), st(0)
fstp dword [esp + 0xc]
mov edx, dword [esp + 0xc]
push 1
push edx
mov ecx, ebp
call fcn.004c2080
push ecx
mov ecx, ebp
fstp dword [esp]
call fcn.004c1850
call fcn.00556a00
mov ecx, dword [0x64fe78]
push 0x11
mov dword [ecx + 0xa408], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x4c1c44
mov ecx, ebp
call fcn.004c24b0
pop edi
pop ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
push ebx
push esi
mov dword [esp + 0x20], vtable.CMenu.0
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], edi
call fcn.0058d5de
mov eax, dword [eax + 0xc]
push 0x13c
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
push eax
lea ecx, [esp + 0x24]
call fcn.005771d9
mov edx, dword [esp + 0x24]
push edi
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.005771a6
mov esi, eax
mov eax, dword [0x64fe78]
mov ecx, dword [eax + 0xa408]
push ecx
mov ecx, ebp
call fcn.004c2860
mov edx, dword [0x64fe78]
mov ebx, eax
cmp dword [edx + 0xa408], edi
je 0x4c1e0b
cmp ebx, 0xffffffff
je 0x4c1e0b
mov eax, dword [0x614cb0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
push edi
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_GetMenuStringA]
push 0x81c2
push eax
mov byte [esp + 0x4c], 2
call edi
test eax, eax
jle 0x4c1d14
lea eax, [eax + eax + 2]
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x20], eax
call fcn.00575f8f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
push 0
push ecx
push eax
push 0x81c2
push edx
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00575f67
jmp 0x4c1d1d
lea ecx, [esp + 0x14]
call fcn.00575a73
mov eax, dword [esi + 4]
push 0
push 0
push 0
push 0x81c8
push eax
call edi
test eax, eax
jle 0x4c1d64
lea eax, [eax + eax + 2]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x20], eax
call fcn.00575f8f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
push 0
push ecx
push eax
push 0x81c8
push edx
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00575f67
jmp 0x4c1d6d
lea ecx, [esp + 0x10]
call fcn.00575a73
mov eax, dword [0x614cb0]
mov dword [esp + 0x18], eax
lea ecx, [ebx + 1]
lea edx, [esp + 0x18]
push ecx
push 0x60f510
push edx
mov byte [esp + 0x44], 3
call fcn.0056d732
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
call fcn.00575f00
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.00575f00
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ModifyMenuA]
push edx
push 0x81c2
push 0
push 0x81c2
push eax
call edi
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 4]
push ecx
push 0x81c8
push 0
push 0x81c8
push edx
call edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.00575ae8
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call fcn.00575ae8
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.00575ae8
mov dword [ebp + 0x60bc], ebx
mov eax, dword [0x64fe78]
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_CheckMenuItem]
mov eax, dword [eax + 0x9298]
and eax, 1
shl eax, 3
push eax
push 0x8128
push ecx
call edi
mov edx, dword [0x64fe78]
mov eax, dword [edx + 0x9298]
not eax
and eax, 1
shl eax, 3
push eax
mov eax, dword [esi + 4]
push 0x8129
push eax
call edi
mov ecx, dword [0x64fe78]
xor edx, edx
mov eax, dword [ecx + 0x9328]
cmp eax, 0xffffffff
mov eax, dword [esi + 4]
setne dl
dec edx
and edx, 8
push edx
push 0x8141
push eax
call edi
mov ecx, dword [0x64fe78]
mov edx, dword [esi + 4]
mov eax, dword [ecx + 0x9328]
neg eax
sbb eax, eax
and al, 0xf8
add eax, 8
push eax
push 0x813d
push edx
call edi
mov eax, dword [0x64fe78]
mov ecx, dword [esi + 4]
mov eax, dword [eax + 0x9328]
dec eax
neg eax
sbb eax, eax
and al, 0xf8
add eax, 8
push eax
push 0x813e
push ecx
call edi
mov edx, dword [0x64fe78]
xor ecx, ecx
mov eax, dword [edx + 0x9328]
mov edx, dword [esi + 4]
cmp eax, 2
setne cl
dec ecx
and ecx, 8
push ecx
push 0x813f
push edx
call edi
mov eax, dword [0x64fe78]
xor ecx, ecx
mov edx, dword [esi + 4]
mov eax, dword [eax + 0x9328]
cmp eax, 3
setne cl
dec ecx
and ecx, 8
push ecx
push 0x8140
push edx
call edi
mov ecx, dword [0x64fe78]
call fcn.004a66e0
test eax, eax
je 0x4c1f23
mov eax, dword [0x64fe78]
mov ecx, dword [eax + 0x9224]
test ecx, ecx
jne 0x4c1f23
xor eax, eax
jmp 0x4c1f28
mov eax, 1
mov ecx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_EnableMenuItem]
push eax
push 0x81c1
push ecx
call ebx
mov ecx, ebp
call fcn.004c28c0
test eax, eax
je 0x4c1f59
mov edx, dword [0x64fe78]
mov eax, dword [edx + 0x9224]
test eax, eax
jne 0x4c1f59
xor eax, eax
jmp 0x4c1f5e
mov eax, 1
push eax
mov eax, dword [esi + 4]
push 0x81c2
push eax
call ebx
mov ecx, ebp
call fcn.004c28c0
test eax, eax
je 0x4c1fbb
mov eax, dword [0x64fe78]
mov ecx, dword [eax + 0x9224]
test ecx, ecx
jne 0x4c1fbb
mov ecx, dword [eax + 0xa454]
test ecx, ecx
je 0x4c1fbb
mov edx, dword [ecx]
push 0
push 0
push 0
push 0x63
call dword [edx + 4]
test eax, eax
jne 0x4c1fbb
mov eax, dword [0x64fe78]
push 0
push 0
push 0
mov ecx, dword [eax + 0xa454]
push 0x62
mov edx, dword [ecx]
call dword [edx + 4]
test eax, eax
je 0x4c1fc0
mov eax, 1
push eax
mov eax, dword [esi + 4]
push 0x81c8
push eax
call ebx
mov ecx, dword [0x650394]
xor eax, eax
test ecx, ecx
mov ecx, dword [esi + 4]
sete al
push eax
push 0x828d
push ecx
call ebx
mov eax, dword [0x650394]
mov edx, dword [esi + 4]
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x828c
push edx
call edi
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov edi, dword [sym.imp.USER32.dll_SetCursor]
push eax
mov dword [ebp + 0x6158], eax
call edi
mov ecx, dword [esp + 0x28]
mov ebx, eax
mov eax, dword [esp + 0x2c]
push 0
push ebp
push eax
push ecx
push 2
mov ecx, esi
call fcn.00572b40
lea ecx, [esp + 0x20]
call fcn.00577230
push ebx
call edi
mov dword [ebp + 0x6158], 0
mov dword [ebp + 0x60bc], 0xffffffff
mov dword [esp + 0x20], vtable.CMenu.0
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 4
call fcn.00577230
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc