Function at 0x49a730
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
cmp dword [0x515108], 0
push esi
jne 0x49a78d
mov eax, dword [0x4d76b0]
mov esi, dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.MENUACC
push eax
call esi
mov ecx, dword [0x4d76b0]
push str.LISTACC
push ecx
mov dword [0x515108], eax
call esi
mov edx, dword [0x4d76b0]
push str.FILEACC
push edx
mov dword [0x515104], eax
call esi
mov dword [0x515100], eax
mov eax, dword [0x4d76b0]
push str.VIEWACC
push eax
call esi
mov dword [0x5150fc], eax
push 0
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x49a7ab
xor al, al
pop esi
add esp, 0x1c
ret 8
mov edx, dword [esp + 8]
cmp edx, dword [0x4e9b8c]
jne 0x49a7d3
mov eax, dword [esp + 0x10]
push eax
mov esi, eax
call fcn.004930e0
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 0x49aa60
cmp dword [0x4eac48], 0
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
je 0x49a825
cmp dword [0x5150fc], 0
je 0x49a825
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [0x4eac48]
cmp eax, ecx
jne 0x49a825
mov edx, dword [0x5150fc]
lea eax, [esp + 0xc]
push eax
push edx
push ecx
call edi
test eax, eax
jne 0x49aa76
mov eax, dword [0x515100]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.004862f0
test al, al
jne 0x49aa76
mov eax, dword [0x4e9b84]
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x49a85c
lea edx, [esp + 0xc]
push edx
push eax
call ebx
test eax, eax
jne 0x49aa76
mov eax, dword [0x4ea430]
test eax, eax
je 0x49a875
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
test eax, eax
jne 0x49aa76
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp dword [esp + 0x10], 0x100
jne 0x49a8ac
cmp dword [esp + 0x14], 9
jne 0x49a8ac
xor edx, edx
test al, al
sete dl
lea edx, [edx + edx - 1]
push edx
call fcn.00498630
test al, al
jne 0x49aa76
call fcn.0048cd30
test eax, eax
mov eax, dword [esp + 0x10]
je 0x49a8e4
cmp eax, 0x100
jne 0x49a8e4
cmp dword [esp + 0x14], 0x70
jne 0x49a8ff
mov eax, dword [0x4eacd4]
push 0
push str.HELPArcComment
push eax
call fcn.00485830
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x205
jne 0x49a974
mov ecx, dword [esp + 0xc]
cmp ecx, dword [0x4f2cb0]
je 0x49a986
mov ecx, dword [0x4f04a8]
cmp esi, ecx
je 0x49a9d1
cmp esi, dword [0x4f0484]
je 0x49a9d1
mov ecx, dword [0x4eac48]
test ecx, ecx
je 0x49a93d
mov eax, dword [0x5150fc]
test eax, eax
je 0x49a93d
lea edx, [esp + 0xc]
push edx
push eax
push ecx
call edi
test eax, eax
jne 0x49aa76
mov ecx, dword [0x4e9b84]
test ecx, ecx
je 0x49aa2d
mov eax, dword [0x515100]
test eax, eax
je 0x49aa2d
lea edx, [esp + 0xc]
push edx
push eax
push ecx
call edi
test eax, eax
je 0x49aa2d
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0xa5
jne 0x49a99b
cmp dword [esp + 0x14], 5
jne 0x49a8ff
mov ecx, 0x4f2cb0
call fcn.0046efd0
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x203
jne 0x49a8ff
mov edx, dword [esp + 0xc]
cmp edx, dword [0x4f2cb0]
jne 0x49a8ff
mov eax, dword [0x4eacd4]
push eax
mov ecx, 0x4f2cb0
call fcn.00470d30
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
mov eax, dword [0x515104]
test eax, eax
je 0x49a9f5
cmp esi, ecx
jne 0x49a9f5
mov edx, dword [0x4eacd4]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x49aa76
mov eax, dword [0x515108]
test eax, eax
je 0x49aa11
mov edx, dword [0x4eacd4]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x49aa76
mov eax, dword [0x515100]
test eax, eax
je 0x49aa2d
mov edx, dword [0x4eacd4]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x49aa76
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49aa41
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
test eax, eax
jne 0x49aa76
mov eax, dword [esp + 0x30]
test eax, eax
je 0x49aa60
lea edx, [esp + 0xc]
push edx
push 0
push 0x475
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x49aa76
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_DispatchMessageW]
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8