Function at 0x49a780
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
cmp dword [0x515108], 0
push esi
jne 0x49a7dd
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 0x49a7fb
xor al, al
pop esi
add esp, 0x1c
ret 8
mov edx, dword [esp + 8]
cmp edx, dword [0x4e9b8c]
jne 0x49a823
mov eax, dword [esp + 0x10]
push eax
mov esi, eax
call fcn.00493130
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 0x49aab0
cmp dword [0x4eac48], 0
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
je 0x49a875
cmp dword [0x5150fc], 0
je 0x49a875
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [0x4eac48]
cmp eax, ecx
jne 0x49a875
mov edx, dword [0x5150fc]
lea eax, [esp + 0xc]
push eax
push edx
push ecx
call edi
test eax, eax
jne 0x49aac6
mov eax, dword [0x515100]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00486350
test al, al
jne 0x49aac6
mov eax, dword [0x4e9b84]
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x49a8ac
lea edx, [esp + 0xc]
push edx
push eax
call ebx
test eax, eax
jne 0x49aac6
mov eax, dword [0x4ea430]
test eax, eax
je 0x49a8c5
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
test eax, eax
jne 0x49aac6
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp dword [esp + 0x10], 0x100
jne 0x49a8fc
cmp dword [esp + 0x14], 9
jne 0x49a8fc
xor edx, edx
test al, al
sete dl
lea edx, [edx + edx - 1]
push edx
call fcn.00498680
test al, al
jne 0x49aac6
call fcn.0048cd80
test eax, eax
mov eax, dword [esp + 0x10]
je 0x49a934
cmp eax, 0x100
jne 0x49a934
cmp dword [esp + 0x14], 0x70
jne 0x49a94f
mov eax, dword [0x4eacd4]
push 0
push str.HELPArcComment
push eax
call fcn.00485890
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x205
jne 0x49a9c4
mov ecx, dword [esp + 0xc]
cmp ecx, dword [0x4f2cb0]
je 0x49a9d6
mov ecx, dword [0x4f04a8]
cmp esi, ecx
je 0x49aa21
cmp esi, dword [0x4f0484]
je 0x49aa21
mov ecx, dword [0x4eac48]
test ecx, ecx
je 0x49a98d
mov eax, dword [0x5150fc]
test eax, eax
je 0x49a98d
lea edx, [esp + 0xc]
push edx
push eax
push ecx
call edi
test eax, eax
jne 0x49aac6
mov ecx, dword [0x4e9b84]
test ecx, ecx
je 0x49aa7d
mov eax, dword [0x515100]
test eax, eax
je 0x49aa7d
lea edx, [esp + 0xc]
push edx
push eax
push ecx
call edi
test eax, eax
je 0x49aa7d
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0xa5
jne 0x49a9eb
cmp dword [esp + 0x14], 5
jne 0x49a94f
mov ecx, 0x4f2cb0
call fcn.0046f020
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x203
jne 0x49a94f
mov edx, dword [esp + 0xc]
cmp edx, dword [0x4f2cb0]
jne 0x49a94f
mov eax, dword [0x4eacd4]
push eax
mov ecx, 0x4f2cb0
call fcn.00470d80
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
mov eax, dword [0x515104]
test eax, eax
je 0x49aa45
cmp esi, ecx
jne 0x49aa45
mov edx, dword [0x4eacd4]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x49aac6
mov eax, dword [0x515108]
test eax, eax
je 0x49aa61
mov edx, dword [0x4eacd4]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x49aac6
mov eax, dword [0x515100]
test eax, eax
je 0x49aa7d
mov edx, dword [0x4eacd4]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x49aac6
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49aa91
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
test eax, eax
jne 0x49aac6
mov eax, dword [esp + 0x30]
test eax, eax
je 0x49aab0
lea edx, [esp + 0xc]
push edx
push 0
push 0x475
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x49aac6
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