Function at 0x4c12a0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
cmp dword [0x56f19c], 0
push esi
jne 0x4c12fd
mov eax, dword [0x5275b4]
mov esi, dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.MENUACC
push eax
call esi
mov ecx, dword [0x5275b4]
push str.LISTACC
push ecx
mov dword [0x56f19c], eax
call esi
mov edx, dword [0x5275b4]
push str.FILEACC
push edx
mov dword [0x56f198], eax
call esi
mov dword [0x56f194], eax
mov eax, dword [0x5275b4]
push str.VIEWACC
push eax
call esi
mov dword [0x56f190], eax
push 0
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x4c131b
xor al, al
pop esi
add esp, 0x1c
ret 8
mov edx, dword [esp + 8]
cmp edx, dword [0x53338c]
jne 0x4c1343
mov eax, dword [esp + 0x10]
push eax
mov esi, eax
call fcn.004bb440
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 0x4c15fc
cmp dword [0x535444], 0
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
je 0x4c1396
cmp dword [0x56f190], 0
je 0x4c1396
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [0x535444]
cmp eax, ecx
jne 0x4c1396
mov edx, dword [0x56f190]
lea eax, [esp + 0x10]
push eax
push edx
push ecx
call edi
test eax, eax
jne 0x4c1612
mov eax, dword [0x56f194]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004aee40
test al, al
jne 0x4c1612
mov eax, dword [0x533384]
mov ebp, dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x4c13cd
lea edx, [esp + 0x10]
push edx
push eax
call ebp
test eax, eax
jne 0x4c1612
mov eax, dword [0x534430]
test eax, eax
je 0x4c13e6
lea ecx, [esp + 0x10]
push ecx
push eax
call ebp
test eax, eax
jne 0x4c1612
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp dword [esp + 0x14], 0x100
jne 0x4c141d
cmp dword [esp + 0x18], 9
jne 0x4c141d
xor edx, edx
test al, al
sete dl
lea edx, [edx + edx - 1]
push edx
call fcn.004bfa00
test al, al
jne 0x4c1612
call fcn.004b52f0
test eax, eax
mov eax, dword [esp + 0x14]
je 0x4c1456
cmp eax, 0x100
jne 0x4c1456
cmp dword [esp + 0x18], 0x70
jne 0x4c1471
mov eax, dword [0x5354dc]
push 0
push str.HELPArcComment
push eax
call fcn.004adf00
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x205
jne 0x4c1516
mov ecx, dword [esp + 0x10]
cmp ecx, dword [0x545754]
je 0x4c1528
mov eax, dword [0x53fd10]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, eax
je 0x4c1575
cmp esi, dword [0x53fcf4]
je 0x4c1575
mov eax, dword [0x535444]
test eax, eax
je 0x4c14b4
mov ecx, dword [0x56f190]
test ecx, ecx
je 0x4c14b4
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call edi
test eax, eax
jne 0x4c1612
mov ecx, dword [0x533384]
test ecx, ecx
je 0x4c14d8
mov eax, dword [0x56f194]
test eax, eax
je 0x4c14d8
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call edi
test eax, eax
jne 0x4c1612
mov eax, dword [0x534438]
test eax, eax
je 0x4c15cd
mov edx, dword [0x56f190]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
call edi
test eax, eax
jne 0x4c1612
mov ecx, dword [0x534438]
lea eax, [esp + 0x10]
push eax
push 0
push 0x8009
push ecx
call ebx
jmp 0x4c15cd
cmp eax, 0xa5
jne 0x4c153e
cmp dword [esp + 0x18], 5
jne 0x4c1471
mov ecx, 0x545754
call fcn.004a06b0
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x203
jne 0x4c1471
mov edx, dword [esp + 0x10]
cmp edx, dword [0x545754]
jne 0x4c1471
mov eax, dword [0x5354dc]
push eax
mov ecx, 0x545754
call fcn.004a2410
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
mov ecx, dword [0x56f198]
test ecx, ecx
je 0x4c1595
cmp esi, eax
jne 0x4c1595
mov eax, dword [0x5354dc]
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call edi
test eax, eax
jne 0x4c1612
mov eax, dword [0x56f19c]
test eax, eax
je 0x4c15b1
mov edx, dword [0x5354dc]
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x4c1612
mov eax, dword [0x56f194]
test eax, eax
je 0x4c15cd
mov edx, dword [0x5354dc]
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x4c1612
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4c15e1
lea ecx, [esp + 0x10]
push ecx
push eax
call ebp
test eax, eax
jne 0x4c1612
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4c15fc
lea edx, [esp + 0x10]
push edx
push 0
push 0x475
push eax
call ebx
test eax, eax
jne 0x4c1612
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