Function at 0x49f720
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
cmp dword [0x56a358], 0
push esi
jne 0x49f77d
mov eax, dword [0x513900]
mov esi, dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.MENUACC
push eax
call esi
mov ecx, dword [0x513900]
push str.LISTACC
push ecx
mov dword [0x56a358], eax
call esi
mov edx, dword [0x513900]
push str.FILEACC
push edx
mov dword [0x56a354], eax
call esi
mov dword [0x56a350], eax
mov eax, dword [0x513900]
push str.VIEWACC
push eax
call esi
mov dword [0x56a34c], eax
push 0
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x49f79b
xor al, al
pop esi
add esp, 0x1c
ret 8
mov edx, dword [esp + 8]
cmp edx, dword [0x526d8c]
jne 0x49f7c3
mov eax, dword [esp + 0x10]
push eax
mov esi, eax
call fcn.00498220
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 0x49fa7c
cmp dword [0x527e44], 0
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
je 0x49f816
cmp dword [0x56a34c], 0
je 0x49f816
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [0x527e44]
cmp eax, ecx
jne 0x49f816
mov edx, dword [0x56a34c]
lea eax, [esp + 0x10]
push eax
push edx
push ecx
call edi
test eax, eax
jne 0x49fa92
mov eax, dword [0x56a350]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0048b530
test al, al
jne 0x49fa92
mov eax, dword [0x526d84]
mov ebp, dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x49f84d
lea edx, [esp + 0x10]
push edx
push eax
call ebp
test eax, eax
jne 0x49fa92
mov eax, dword [0x527630]
test eax, eax
je 0x49f866
lea ecx, [esp + 0x10]
push ecx
push eax
call ebp
test eax, eax
jne 0x49fa92
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp dword [esp + 0x14], 0x100
jne 0x49f89d
cmp dword [esp + 0x18], 9
jne 0x49f89d
xor edx, edx
test al, al
sete dl
lea edx, [edx + edx - 1]
push edx
call fcn.0049d610
test al, al
jne 0x49fa92
call fcn.00491f50
test eax, eax
mov eax, dword [esp + 0x14]
je 0x49f8d6
cmp eax, 0x100
jne 0x49f8d6
cmp dword [esp + 0x18], 0x70
jne 0x49f8f1
mov eax, dword [0x527edc]
push 0
push str.HELPArcComment
push eax
call fcn.0048a9b0
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x205
jne 0x49f996
mov ecx, dword [esp + 0x10]
cmp ecx, dword [0x52fec8]
je 0x49f9a8
mov eax, dword [0x52d6c0]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, eax
je 0x49f9f5
cmp esi, dword [0x52d69c]
je 0x49f9f5
mov eax, dword [0x527e44]
test eax, eax
je 0x49f934
mov ecx, dword [0x56a34c]
test ecx, ecx
je 0x49f934
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call edi
test eax, eax
jne 0x49fa92
mov ecx, dword [0x526d84]
test ecx, ecx
je 0x49f958
mov eax, dword [0x56a350]
test eax, eax
je 0x49f958
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call edi
test eax, eax
jne 0x49fa92
mov eax, dword [0x527638]
test eax, eax
je 0x49fa4d
mov edx, dword [0x56a34c]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
call edi
test eax, eax
jne 0x49fa92
mov ecx, dword [0x527638]
lea eax, [esp + 0x10]
push eax
push 0
push 0x8009
push ecx
call ebx
jmp 0x49fa4d
cmp eax, 0xa5
jne 0x49f9be
cmp dword [esp + 0x18], 5
jne 0x49f8f1
mov ecx, 0x52fec8
call fcn.004737b0
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x203
jne 0x49f8f1
mov edx, dword [esp + 0x10]
cmp edx, dword [0x52fec8]
jne 0x49f8f1
mov eax, dword [0x527edc]
push eax
mov ecx, 0x52fec8
call fcn.00475510
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
mov ecx, dword [0x56a354]
test ecx, ecx
je 0x49fa15
cmp esi, eax
jne 0x49fa15
mov eax, dword [0x527edc]
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call edi
test eax, eax
jne 0x49fa92
mov eax, dword [0x56a358]
test eax, eax
je 0x49fa31
mov edx, dword [0x527edc]
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x49fa92
mov eax, dword [0x56a350]
test eax, eax
je 0x49fa4d
mov edx, dword [0x527edc]
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x49fa92
mov eax, dword [esp + 0x30]
test eax, eax
je 0x49fa61
lea ecx, [esp + 0x10]
push ecx
push eax
call ebp
test eax, eax
jne 0x49fa92
mov eax, dword [esp + 0x34]
test eax, eax
je 0x49fa7c
lea edx, [esp + 0x10]
push edx
push 0
push 0x475
push eax
call ebx
test eax, eax
jne 0x49fa92
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