Function at 0x499960
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
cmp dword [0x513c78], 0
push esi
jne 0x4999bd
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 [0x513c78], eax
call esi
mov edx, dword [0x4d56b0]
push str.FILEACC
push edx
mov dword [0x513c74], eax
call esi
mov dword [0x513c70], eax
mov eax, dword [0x4d56b0]
push str.VIEWACC
push eax
call esi
mov dword [0x513c6c], eax
push 0
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x4999db
xor al, al
pop esi
add esp, 0x1c
ret 8
mov edx, dword [esp + 8]
cmp edx, dword [0x4e7b8c]
jne 0x499a03
mov eax, dword [esp + 0x10]
push eax
mov esi, eax
call fcn.00492320
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 0x499c90
cmp dword [0x4e8c48], 0
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
je 0x499a55
cmp dword [0x513c6c], 0
je 0x499a55
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [0x4e8c48]
cmp eax, ecx
jne 0x499a55
mov edx, dword [0x513c6c]
lea eax, [esp + 0xc]
push eax
push edx
push ecx
call edi
test eax, eax
jne 0x499ca6
mov eax, dword [0x513c70]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00485630
test al, al
jne 0x499ca6
mov eax, dword [0x4e7b84]
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x499a8c
lea edx, [esp + 0xc]
push edx
push eax
call ebx
test eax, eax
jne 0x499ca6
mov eax, dword [0x4e8430]
test eax, eax
je 0x499aa5
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
test eax, eax
jne 0x499ca6
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp dword [esp + 0x10], 0x100
jne 0x499adc
cmp dword [esp + 0x14], 9
jne 0x499adc
xor edx, edx
test al, al
sete dl
lea edx, [edx + edx - 1]
push edx
call fcn.00497870
test al, al
jne 0x499ca6
call fcn.0048bf90
test eax, eax
mov eax, dword [esp + 0x10]
je 0x499b14
cmp eax, 0x100
jne 0x499b14
cmp dword [esp + 0x14], 0x70
jne 0x499b2f
mov eax, dword [0x4e8cd4]
push 0
push str.HELPArcComment
push eax
call fcn.00484be0
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x205
jne 0x499ba4
mov ecx, dword [esp + 0xc]
cmp ecx, dword [0x4f0c80]
je 0x499bb6
mov ecx, dword [0x4ee478]
cmp esi, ecx
je 0x499c01
cmp esi, dword [0x4ee454]
je 0x499c01
mov ecx, dword [0x4e8c48]
test ecx, ecx
je 0x499b6d
mov eax, dword [0x513c6c]
test eax, eax
je 0x499b6d
lea edx, [esp + 0xc]
push edx
push eax
push ecx
call edi
test eax, eax
jne 0x499ca6
mov ecx, dword [0x4e7b84]
test ecx, ecx
je 0x499c5d
mov eax, dword [0x513c70]
test eax, eax
je 0x499c5d
lea edx, [esp + 0xc]
push edx
push eax
push ecx
call edi
test eax, eax
je 0x499c5d
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0xa5
jne 0x499bcb
cmp dword [esp + 0x14], 5
jne 0x499b2f
mov ecx, 0x4f0c80
call fcn.0046e5f0
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x203
jne 0x499b2f
mov edx, dword [esp + 0xc]
cmp edx, dword [0x4f0c80]
jne 0x499b2f
mov eax, dword [0x4e8cd4]
push eax
mov ecx, 0x4f0c80
call fcn.00470350
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x1c
ret 8
mov eax, dword [0x513c74]
test eax, eax
je 0x499c25
cmp esi, ecx
jne 0x499c25
mov edx, dword [0x4e8cd4]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x499ca6
mov eax, dword [0x513c78]
test eax, eax
je 0x499c41
mov edx, dword [0x4e8cd4]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x499ca6
mov eax, dword [0x513c70]
test eax, eax
je 0x499c5d
mov edx, dword [0x4e8cd4]
lea ecx, [esp + 0xc]
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x499ca6
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x499c71
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
test eax, eax
jne 0x499ca6
mov eax, dword [esp + 0x30]
test eax, eax
je 0x499c90
lea edx, [esp + 0xc]
push edx
push 0
push 0x475
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x499ca6
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