Function at 0x516ff0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x38
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x34], eax
cmp dword [0x6044bc], 0
mov eax, dword [esp + 0x3c]
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
jne 0x5170a0
push str.MENUACC
push dword [0x5d3758]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.LISTACC
push dword [0x5d3758]
mov dword [0x6044bc], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.FILEACC
push dword [0x5d3758]
mov dword [0x6044c0], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.VIEWACC
push dword [0x5d3758]
mov dword [0x6044c4], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.ERRACC
push dword [0x5d3758]
mov dword [0x6044c8], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0x56dcbc
push dword [0x5d3758]
mov dword [0x6044cc], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [0x6044d0], eax
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x5170c9
xor al, al
pop edi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00530218
add esp, 0x38
ret 8
mov eax, dword [esp + 8]
push esi
cmp eax, dword [0x595450]
jne 0x51710d
mov esi, dword [esp + 0x14]
movzx eax, byte [esi + 0x3800]
push eax
lea eax, [esi + 0x1000]
push eax
push esi
call fcn.00503a80
push esi
call fcn.0053867f
add esp, 4
mov al, 1
pop esi
pop edi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00530218
add esp, 0x38
ret 8
push ebx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x5174ba
push ebp
call dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [0x5943e4]
mov esi, eax
test edx, edx
je 0x517151
mov ecx, dword [0x6044c8]
test ecx, ecx
je 0x517157
cmp esi, edx
jne 0x517157
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x5174d0
mov ecx, dword [0x6044c8]
mov eax, dword [0x5943ec]
test eax, eax
je 0x517182
test ecx, ecx
je 0x517182
cmp esi, eax
jne 0x517182
lea ecx, [esp + 0x10]
push ecx
push dword [0x6044cc]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x5174d0
mov eax, dword [0x5943e0]
test eax, eax
je 0x5171b2
mov ecx, dword [0x6044d0]
test ecx, ecx
je 0x5171b2
cmp ebp, eax
je 0x51719d
cmp esi, eax
jne 0x5171b2
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x5174d0
push dword [0x6044bc]
lea eax, [esp + 0x14]
push dword [0x6044c4]
push eax
call fcn.004ff540
test al, al
jne 0x5174d0
mov eax, dword [0x5943e8]
test eax, eax
je 0x5171ed
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x5174d0
mov eax, dword [0x5943ec]
test eax, eax
je 0x51720a
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x5174d0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ebx, ax
shr ebx, 0xf
cmp dword [esp + 0x14], 0x100
jne 0x517279
cmp dword [esp + 0x18], 9
jne 0x517279
mov eax, dword [0x59545c]
mov dword [esp + 0x34], eax
mov eax, dword [0x5c6838]
mov dword [esp + 0x38], eax
mov eax, dword [0x5943e0]
mov dword [esp + 0x3c], eax
mov eax, dword [0x5c63d4]
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x34]
test ecx, ecx
je 0x51726f
cmp ecx, edi
je 0x5172af
push edi
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x5172af
inc esi
cmp esi, 4
jb 0x517257
mov edi, dword [esp + 0x2c]
call fcn.00510c20
test eax, eax
mov eax, dword [esp + 0x14]
je 0x5172ff
cmp eax, 0x100
jne 0x5172ff
cmp dword [esp + 0x18], 0x70
jne 0x51731a
push 0
push str.HELPArcComment
push dword [0x5933dc]
call fcn.004fdc40
jmp 0x5174d0
cmp esi, 0xffffffff
je 0x517275
mov ecx, 1
not ebx
and ebx, ecx
lea edx, [ebx*2 - 1]
lea ebp, [ebx*2 - 1]
add edx, esi
lea ecx, [ecx]
mov eax, edx
and eax, 3
mov eax, dword [esp + eax*4 + 0x34]
test eax, eax
jne 0x5172f1
inc ecx
add edx, ebp
cmp ecx, 4
jb 0x5172d0
push edi
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x5174d0
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x5174d0
cmp eax, 0x205
jne 0x5173d0
mov eax, dword [esp + 0x10]
cmp eax, dword [0x5c8954]
je 0x5173e2
mov eax, dword [0x5c6838]
cmp ebp, eax
je 0x517421
cmp ebp, dword [0x59545c]
je 0x517421
cmp dword [0x5943e8], 0
je 0x51738c
call fcn.00502290
cmp eax, 9
jne 0x51738c
mov eax, dword [0x6044c4]
test eax, eax
je 0x517369
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [0x5943e8]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x5174d0
mov eax, dword [0x6044bc]
test eax, eax
je 0x51738c
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [0x5943e8]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x5174d0
mov eax, dword [0x5943f0]
test eax, eax
je 0x517487
lea ecx, [esp + 0x10]
push ecx
push dword [0x6044c8]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x5174d0
lea eax, [esp + 0x10]
push eax
push 0
push 0x8009
push dword [0x5943f0]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x517487
cmp eax, 0xa5
jne 0x5173f1
cmp dword [esp + 0x18], 5
jne 0x51731a
mov ecx, 0x5c8954
call fcn.004dd6d0
jmp 0x5174d0
cmp eax, 0x203
jne 0x51731a
mov eax, dword [esp + 0x10]
cmp eax, dword [0x5c8954]
jne 0x51731a
push dword [0x5933dc]
mov ecx, 0x5c8954
call fcn.004dbd30
jmp 0x5174d0
mov ecx, dword [0x6044c0]
test ecx, ecx
je 0x517449
cmp ebp, eax
jne 0x517449
lea eax, [esp + 0x10]
push eax
push ecx
push dword [0x5933dc]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x5174d0
mov eax, dword [0x6044bc]
test eax, eax
je 0x517468
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [0x5933dc]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x5174d0
mov eax, dword [0x6044c4]
test eax, eax
je 0x517487
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [0x5933dc]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x5174d0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x51749f
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x5174d0
test edi, edi
je 0x5174ba
lea eax, [esp + 0x10]
push eax
push 0
push 0x475
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x5174d0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, dword [esp + 0x44]
mov al, 1
pop ebp
pop ebx
pop esi
pop edi
xor ecx, esp
call fcn.00530218
add esp, 0x38
ret 8