Function at 0x4c50a0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
cmp dword [0x575274], 0
push esi
jne 0x4c50fd
mov eax, dword [0x52c134]
mov esi, dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.MENUACC
push eax
call esi
mov ecx, dword [0x52c134]
push str.LISTACC
push ecx
mov dword [0x575274], eax
call esi
mov edx, dword [0x52c134]
push str.FILEACC
push edx
mov dword [0x575270], eax
call esi
mov dword [0x57526c], eax
mov eax, dword [0x52c134]
push str.VIEWACC
push eax
call esi
mov dword [0x575268], eax
push 0
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x4c511b
xor al, al
pop esi
add esp, 0x1c
ret 8
mov edx, dword [esp + 8]
cmp edx, dword [0x53830c]
jne 0x4c514f
cmp dword [esp + 0xc], 0
mov eax, dword [esp + 0x10]
setne cl
movzx edx, cl
push edx
push eax
mov esi, eax
call fcn.004bf0f0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
pop esi
add esp, 0x1c
ret 8
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
test esi, esi
je 0x4c5408
cmp dword [0x53a3d4], 0
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
je 0x4c51a2
cmp dword [0x575268], 0
je 0x4c51a2
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [0x53a3d4]
cmp eax, ecx
jne 0x4c51a2
mov edx, dword [0x575268]
lea eax, [esp + 0x10]
push eax
push edx
push ecx
call edi
test eax, eax
jne 0x4c541e
mov eax, dword [0x57526c]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004b2980
test al, al
jne 0x4c541e
mov eax, dword [0x538304]
mov ebp, dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x4c51d9
lea edx, [esp + 0x10]
push edx
push eax
call ebp
test eax, eax
jne 0x4c541e
mov eax, dword [0x5393b8]
test eax, eax
je 0x4c51f2
lea ecx, [esp + 0x10]
push ecx
push eax
call ebp
test eax, eax
jne 0x4c541e
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp dword [esp + 0x14], 0x100
jne 0x4c5229
cmp dword [esp + 0x18], 9
jne 0x4c5229
xor edx, edx
test al, al
sete dl
lea edx, [edx + edx - 1]
push edx
call fcn.004c37a0
test al, al
jne 0x4c541e
call fcn.004b8ea0
test eax, eax
mov eax, dword [esp + 0x14]
je 0x4c5262
cmp eax, 0x100
jne 0x4c5262
cmp dword [esp + 0x18], 0x70
jne 0x4c527d
mov eax, dword [0x53a464]
push 0
push str.HELPArcComment
push eax
call fcn.004b1800
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x205
jne 0x4c5322
mov ecx, dword [esp + 0x10]
cmp ecx, dword [0x54a77c]
je 0x4c5334
mov eax, dword [0x544c98]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, eax
je 0x4c5381
cmp esi, dword [0x544c7c]
je 0x4c5381
mov eax, dword [0x53a3d4]
test eax, eax
je 0x4c52c0
mov ecx, dword [0x575268]
test ecx, ecx
je 0x4c52c0
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call edi
test eax, eax
jne 0x4c541e
mov ecx, dword [0x538304]
test ecx, ecx
je 0x4c52e4
mov eax, dword [0x57526c]
test eax, eax
je 0x4c52e4
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call edi
test eax, eax
jne 0x4c541e
mov eax, dword [0x5393c0]
test eax, eax
je 0x4c53d9
mov edx, dword [0x575268]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
call edi
test eax, eax
jne 0x4c541e
mov ecx, dword [0x5393c0]
lea eax, [esp + 0x10]
push eax
push 0
push 0x8009
push ecx
call ebx
jmp 0x4c53d9
cmp eax, 0xa5
jne 0x4c534a
cmp dword [esp + 0x18], 5
jne 0x4c527d
mov ecx, 0x54a77c
call fcn.004a3e30
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x203
jne 0x4c527d
mov edx, dword [esp + 0x10]
cmp edx, dword [0x54a77c]
jne 0x4c527d
mov eax, dword [0x53a464]
push eax
mov ecx, 0x54a77c
call fcn.004a5b90
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
mov ecx, dword [0x575270]
test ecx, ecx
je 0x4c53a1
cmp esi, eax
jne 0x4c53a1
mov eax, dword [0x53a464]
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call edi
test eax, eax
jne 0x4c541e
mov eax, dword [0x575274]
test eax, eax
je 0x4c53bd
mov edx, dword [0x53a464]
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x4c541e
mov eax, dword [0x57526c]
test eax, eax
je 0x4c53d9
mov edx, dword [0x53a464]
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x4c541e
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4c53ed
lea ecx, [esp + 0x10]
push ecx
push eax
call ebp
test eax, eax
jne 0x4c541e
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4c5408
lea edx, [esp + 0x10]
push edx
push 0
push 0x475
push eax
call ebx
test eax, eax
jne 0x4c541e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8