Function at 0x4ed980
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
cmp dword [0x5bd2e0], 0
jne 0x4ed9e4
push str.MENUACC
push dword [0x58c1f8]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.LISTACC
push dword [0x58c1f8]
mov dword [0x5bd2e0], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.FILEACC
push dword [0x58c1f8]
mov dword [0x5bd2e4], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.VIEWACC
push dword [0x58c1f8]
mov dword [0x5bd2e8], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [0x5bd2ec], eax
push 0
push 0
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x4eda01
xor al, al
add esp, 0x1c
ret 8
mov eax, dword [esp + 4]
push esi
cmp eax, dword [0x559be4]
jne 0x4eda39
mov esi, dword [esp + 0x10]
movzx eax, byte [esi + 0x3800]
push eax
lea eax, [esi + 0x1000]
push eax
push esi
call fcn.004db5d0
push esi
call fcn.005097b2
add esp, 4
mov al, 1
pop esi
add esp, 0x1c
ret 8
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
test esi, esi
je 0x4edd9a
cmp dword [0x558ab0], 0
je 0x4eda86
cmp dword [0x5bd2ec], 0
je 0x4eda86
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [0x558ab0]
cmp eax, ecx
jne 0x4eda86
lea eax, [esp + 4]
push eax
push dword [0x5bd2ec]
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4eddb0
cmp dword [esp + 8], 0x102
jne 0x4edad9
cmp dword [esp + 0xc], 0x17
jne 0x4edad9
mov ecx, dword [0x558aac]
test ecx, ecx
je 0x4edad9
mov eax, dword [0x5bd2e0]
test eax, eax
je 0x4edade
cmp esi, ecx
je 0x4edac4
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [0x558aac]
cmp eax, ecx
jne 0x4edad9
mov eax, dword [0x5bd2e0]
lea edx, [esp + 4]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4eddb0
mov eax, dword [0x5bd2e0]
push eax
push dword [0x5bd2e8]
lea eax, [esp + 0xc]
push eax
call fcn.004d7320
test al, al
jne 0x4eddb0
mov eax, dword [0x558ab4]
test eax, eax
je 0x4edb14
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4eddb0
mov eax, dword [0x558ab8]
test eax, eax
je 0x4edb31
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4eddb0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movzx ecx, ax
shr ecx, 0xf
and cl, 1
cmp dword [esp + 8], 0x100
jne 0x4edb6f
cmp dword [esp + 0xc], 9
jne 0x4edb6f
xor eax, eax
test cl, cl
sete al
lea eax, [eax*2 - 1]
push eax
call fcn.004eddc0
test al, al
jne 0x4eddb0
call fcn.004e79b0
test eax, eax
mov eax, dword [esp + 8]
je 0x4edba5
cmp eax, 0x100
jne 0x4edba5
cmp dword [esp + 0xc], 0x70
jne 0x4edbc0
push 0
push str.HELPArcComment
push dword [0x558aa8]
call fcn.004d5ec0
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x205
jne 0x4edca4
mov eax, dword [esp + 4]
cmp eax, dword [0x57ffe4]
je 0x4edcb6
mov eax, dword [0x57dec8]
cmp esi, eax
je 0x4edcfd
cmp esi, dword [0x559c3c]
je 0x4edcfd
mov ecx, dword [0x558ab0]
test ecx, ecx
je 0x4edc01
mov eax, dword [0x5bd2ec]
test eax, eax
je 0x4edc06
lea edx, [esp + 4]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4eddb0
mov eax, dword [0x5bd2ec]
cmp dword [0x558ab4], 0
je 0x4edc64
call fcn.004d9d90
cmp eax, 9
jne 0x4edc5f
mov eax, dword [0x5bd2e8]
test eax, eax
je 0x4edc3c
lea ecx, [esp + 4]
push ecx
push eax
push dword [0x558ab4]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4eddb0
mov eax, dword [0x5bd2e0]
test eax, eax
je 0x4edc5f
lea ecx, [esp + 4]
push ecx
push eax
push dword [0x558ab4]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4eddb0
mov eax, dword [0x5bd2ec]
mov ecx, dword [0x558abc]
test ecx, ecx
je 0x4edd63
lea edx, [esp + 4]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4eddb0
lea eax, [esp + 4]
push eax
push 0
push 0x8009
push dword [0x558abc]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4edd63
cmp eax, 0xa5
jne 0x4edcc9
cmp dword [esp + 0xc], 5
jne 0x4edbc0
mov ecx, 0x57ffe4
call fcn.004bad00
mov al, 1
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x203
jne 0x4edbc0
mov eax, dword [esp + 4]
cmp eax, dword [0x57ffe4]
jne 0x4edbc0
push dword [0x558aa8]
mov ecx, 0x57ffe4
call fcn.004b9280
mov al, 1
pop esi
add esp, 0x1c
ret 8
mov ecx, dword [0x5bd2e4]
test ecx, ecx
je 0x4edd25
cmp esi, eax
jne 0x4edd25
lea eax, [esp + 4]
push eax
push ecx
push dword [0x558aa8]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4eddb0
mov eax, dword [0x5bd2e0]
test eax, eax
je 0x4edd44
lea ecx, [esp + 4]
push ecx
push eax
push dword [0x558aa8]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4eddb0
mov eax, dword [0x5bd2e8]
test eax, eax
je 0x4edd63
lea ecx, [esp + 4]
push ecx
push eax
push dword [0x558aa8]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4eddb0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4edd7b
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4eddb0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4edd9a
lea ecx, [esp + 4]
push ecx
push 0
push 0x475
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x4eddb0
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov al, 1
pop esi
add esp, 0x1c
ret 8