Function at 0x499630
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
cmp dword [0x513c70], 0
push esi
jne 0x49968d
mov eax, dword [0x4d56b0]
mov esi, dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.MENUACC
push eax
call esi
mov ecx, dword [0x4d56b0]
push str.LISTACC
push ecx
mov dword [0x513c70], eax
call esi
mov edx, dword [0x4d56b0]
push str.FILEACC
push edx
mov dword [0x513c6c], eax
call esi
mov dword [0x513c68], eax
mov eax, dword [0x4d56b0]
push str.VIEWACC
push eax
call esi
mov dword [0x513c64], eax
push 0
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x4996ab
xor al, al
pop esi
add esp, 0x1c
ret 8
mov edx, dword [esp + 8]
cmp edx, dword [0x4e7b8c]
jne 0x4996d3
mov eax, dword [esp + 0x10]
push eax
mov esi, eax
call fcn.00492050
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 0x499960
cmp dword [0x4e8c48], 0
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
je 0x499725
cmp dword [0x513c64], 0
je 0x499725
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [0x4e8c48]
cmp eax, ecx
jne 0x499725
mov edx, dword [0x513c64]
lea eax, [esp + 0xc]
push eax
push edx
push ecx
call edi
test eax, eax
jne 0x499976
mov eax, dword [0x513c68]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.004853e0
test al, al
jne 0x499976
mov eax, dword [0x4e7b84]
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x49975c
lea edx, [esp + 0xc]
push edx
push eax
call ebx
test eax, eax
jne 0x499976
mov eax, dword [0x4e8430]
test eax, eax
je 0x499775
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
test eax, eax
jne 0x499976
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp dword [esp + 0x10], 0x100
jne 0x4997ac
cmp dword [esp + 0x14], 9
jne 0x4997ac
xor edx, edx
test al, al
sete dl
lea edx, [edx + edx - 1]
push edx
call fcn.00497530
test al, al
jne 0x499976
call fcn.0048bd40
test eax, eax
mov eax, dword [esp + 0x10]
je 0x4997e4
cmp eax, 0x100
jne 0x4997e4
cmp dword [esp + 0x14], 0x70
jne 0x4997ff
mov eax, dword [0x4e8cd4]
push 0
push str.HELPArcComment
push eax
call fcn.00484980
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x205
jne 0x499874
mov ecx, dword [esp + 0xc]
cmp ecx, dword [0x4f0c78]
je 0x499886
mov ecx, dword [0x4ee478]
cmp esi, ecx
je 0x4998d1
cmp esi, dword [0x4ee454]
je 0x4998d1
mov ecx, dword [0x4e8c48]
test ecx, ecx
je 0x49983d
mov eax, dword [0x513c64]
test eax, eax
je 0x49983d
lea edx, [esp + 0xc]
push edx
push eax
push ecx
call edi
test eax, eax
jne 0x499976
mov ecx, dword [0x4e7b84]
test ecx, ecx
je 0x49992d
mov eax, dword [0x513c68]
test eax, eax
je 0x49992d
lea edx, [esp + 0xc]
push edx
push eax
push ecx
call edi
test eax, eax
je 0x49992d
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0xa5
jne 0x49989b
cmp dword [esp + 0x14], 5
jne 0x4997ff
mov ecx, 0x4f0c78
call fcn.0046e320
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x203
jne 0x4997ff
mov edx, dword [esp + 0xc]
cmp edx, dword [0x4f0c78]
jne 0x4997ff
mov eax, dword [0x4e8cd4]
push eax
mov ecx, 0x4f0c78
call fcn.00470080
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
mov eax, dword [0x513c6c]
test eax, eax
je 0x4998f5
cmp esi, ecx
jne 0x4998f5
mov edx, dword [0x4e8cd4]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x499976
mov eax, dword [0x513c70]
test eax, eax
je 0x499911
mov edx, dword [0x4e8cd4]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x499976
mov eax, dword [0x513c68]
test eax, eax
je 0x49992d
mov edx, dword [0x4e8cd4]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x499976
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x499941
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
test eax, eax
jne 0x499976
mov eax, dword [esp + 0x30]
test eax, eax
je 0x499960
lea edx, [esp + 0xc]
push edx
push 0
push 0x475
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x499976
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