Function at 0x493480
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
cmp dword [0x4f9c08], 0
push esi
jne 0x4934dd
mov eax, dword [0x4c9360]
mov esi, dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push str.MENUACC
push eax
call esi
mov ecx, dword [0x4c9360]
push str.LISTACC
push ecx
mov dword [0x4f9c08], eax
call esi
mov edx, dword [0x4c9360]
push str.FILEACC
push edx
mov dword [0x4f9c04], eax
call esi
mov dword [0x4f9c00], eax
mov eax, dword [0x4c9360]
push str.VIEWACC
push eax
call esi
mov dword [0x4f9bfc], eax
push 0
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4934fb
xor al, al
pop esi
add esp, 0x1c
ret 8
mov edx, dword [esp + 8]
cmp edx, dword [0x4db844]
jne 0x493525
mov eax, dword [esp + 0x10]
push 0
push eax
mov esi, eax
call fcn.0048c600
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
pop esi
add esp, 0x1c
ret 8
push ebx
push edi
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
test esi, esi
je 0x49377c
cmp dword [0x4dc164], 0
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
je 0x493577
cmp dword [0x4f9bfc], 0
je 0x493577
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [0x4dc164]
cmp eax, ecx
jne 0x493577
mov edx, dword [0x4f9bfc]
lea eax, [esp + 0xc]
push eax
push edx
push ecx
call edi
test eax, eax
jne 0x493792
mov eax, dword [0x4f9c00]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0047f570
test al, al
jne 0x493792
mov eax, dword [0x4db83c]
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
je 0x4935ae
lea edx, [esp + 0xc]
push edx
push eax
call ebx
test eax, eax
jne 0x493792
mov eax, dword [0x4dbd50]
test eax, eax
je 0x4935c7
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
test eax, eax
jne 0x493792
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp dword [esp + 0x10], 0x100
jne 0x4935fe
cmp dword [esp + 0x14], 9
jne 0x4935fe
xor edx, edx
test al, al
sete dl
lea edx, [edx + edx - 1]
push edx
call fcn.004907e0
test al, al
jne 0x493792
call fcn.00486520
test eax, eax
mov eax, dword [esp + 0x10]
je 0x493636
cmp eax, 0x100
jne 0x493636
cmp dword [esp + 0x14], 0x70
jne 0x49368c
mov eax, dword [0x4dc1c8]
push 0
push str.HELPArcComment
push eax
call fcn.0047e520
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x205
jne 0x49365e
mov ecx, dword [esp + 0xc]
cmp ecx, dword [0x4e2e90]
jne 0x49368c
mov ecx, 0x4e2e90
call fcn.004696a0
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x203
jne 0x49368c
mov edx, dword [esp + 0xc]
cmp edx, dword [0x4e2e90]
jne 0x49368c
mov eax, dword [0x4dc1c8]
push eax
mov ecx, 0x4e2e90
call fcn.0046ae10
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
mov ecx, dword [0x4dfef0]
cmp esi, ecx
je 0x4936ed
cmp esi, dword [0x4dfecc]
je 0x4936ed
mov ecx, dword [0x4dc164]
test ecx, ecx
je 0x4936c2
mov eax, dword [0x4f9bfc]
test eax, eax
je 0x4936c2
lea edx, [esp + 0xc]
push edx
push eax
push ecx
call edi
test eax, eax
jne 0x493792
mov ecx, dword [0x4db83c]
test ecx, ecx
je 0x493749
mov eax, dword [0x4f9c00]
test eax, eax
je 0x493749
lea edx, [esp + 0xc]
push edx
push eax
push ecx
call edi
test eax, eax
je 0x493749
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
mov eax, dword [0x4f9c04]
test eax, eax
je 0x493711
cmp esi, ecx
jne 0x493711
mov edx, dword [0x4dc1c8]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x493792
mov eax, dword [0x4f9c08]
test eax, eax
je 0x49372d
mov edx, dword [0x4dc1c8]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x493792
mov eax, dword [0x4f9c00]
test eax, eax
je 0x493749
mov edx, dword [0x4dc1c8]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x493792
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49375d
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
test eax, eax
jne 0x493792
mov eax, dword [esp + 0x30]
test eax, eax
je 0x49377c
lea edx, [esp + 0xc]
push edx
push 0
push 0x475
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x493792
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8