Function at 0x49a510
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
cmp dword [0x515c80], 0
push esi
jne 0x49a56d
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 [0x515c80], eax
call esi
mov edx, dword [0x4d76b0]
push str.FILEACC
push edx
mov dword [0x515c7c], eax
call esi
mov dword [0x515c78], eax
mov eax, dword [0x4d76b0]
push str.VIEWACC
push eax
call esi
mov dword [0x515c74], eax
push 0
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x49a58b
xor al, al
pop esi
add esp, 0x1c
ret 8
mov edx, dword [esp + 8]
cmp edx, dword [0x4e9b8c]
jne 0x49a5b3
mov eax, dword [esp + 0x10]
push eax
mov esi, eax
call fcn.00492e80
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 0x49a840
cmp dword [0x4eac48], 0
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
je 0x49a605
cmp dword [0x515c74], 0
je 0x49a605
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [0x4eac48]
cmp eax, ecx
jne 0x49a605
mov edx, dword [0x515c74]
lea eax, [esp + 0xc]
push eax
push edx
push ecx
call edi
test eax, eax
jne 0x49a856
mov eax, dword [0x515c78]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.004860c0
test al, al
jne 0x49a856
mov eax, dword [0x4e9b84]
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x49a63c
lea edx, [esp + 0xc]
push edx
push eax
call ebx
test eax, eax
jne 0x49a856
mov eax, dword [0x4ea430]
test eax, eax
je 0x49a655
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
test eax, eax
jne 0x49a856
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp dword [esp + 0x10], 0x100
jne 0x49a68c
cmp dword [esp + 0x14], 9
jne 0x49a68c
xor edx, edx
test al, al
sete dl
lea edx, [edx + edx - 1]
push edx
call fcn.00498410
test al, al
jne 0x49a856
call fcn.0048cae0
test eax, eax
mov eax, dword [esp + 0x10]
je 0x49a6c4
cmp eax, 0x100
jne 0x49a6c4
cmp dword [esp + 0x14], 0x70
jne 0x49a6df
mov eax, dword [0x4eacd4]
push 0
push str.HELPArcComment
push eax
call fcn.00485610
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x205
jne 0x49a754
mov ecx, dword [esp + 0xc]
cmp ecx, dword [0x4f2c80]
je 0x49a766
mov ecx, dword [0x4f0478]
cmp esi, ecx
je 0x49a7b1
cmp esi, dword [0x4f0454]
je 0x49a7b1
mov ecx, dword [0x4eac48]
test ecx, ecx
je 0x49a71d
mov eax, dword [0x515c74]
test eax, eax
je 0x49a71d
lea edx, [esp + 0xc]
push edx
push eax
push ecx
call edi
test eax, eax
jne 0x49a856
mov ecx, dword [0x4e9b84]
test ecx, ecx
je 0x49a80d
mov eax, dword [0x515c78]
test eax, eax
je 0x49a80d
lea edx, [esp + 0xc]
push edx
push eax
push ecx
call edi
test eax, eax
je 0x49a80d
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0xa5
jne 0x49a77b
cmp dword [esp + 0x14], 5
jne 0x49a6df
mov ecx, 0x4f2c80
call fcn.0046edf0
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x203
jne 0x49a6df
mov edx, dword [esp + 0xc]
cmp edx, dword [0x4f2c80]
jne 0x49a6df
mov eax, dword [0x4eacd4]
push eax
mov ecx, 0x4f2c80
call fcn.00470b50
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
mov eax, dword [0x515c7c]
test eax, eax
je 0x49a7d5
cmp esi, ecx
jne 0x49a7d5
mov edx, dword [0x4eacd4]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x49a856
mov eax, dword [0x515c80]
test eax, eax
je 0x49a7f1
mov edx, dword [0x4eacd4]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x49a856
mov eax, dword [0x515c78]
test eax, eax
je 0x49a80d
mov edx, dword [0x4eacd4]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x49a856
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49a821
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
test eax, eax
jne 0x49a856
mov eax, dword [esp + 0x30]
test eax, eax
je 0x49a840
lea edx, [esp + 0xc]
push edx
push 0
push 0x475
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x49a856
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