Function at 0x516570
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x38
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x34], eax
cmp dword [0x6034bc], 0
mov eax, dword [esp + 0x3c]
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
jne 0x516620
push str.MENUACC
push dword [0x5d2758]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.LISTACC
push dword [0x5d2758]
mov dword [0x6034bc], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.FILEACC
push dword [0x5d2758]
mov dword [0x6034c0], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.VIEWACC
push dword [0x5d2758]
mov dword [0x6034c4], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.ERRACC
push dword [0x5d2758]
mov dword [0x6034c8], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0x56cabc
push dword [0x5d2758]
mov dword [0x6034cc], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [0x6034d0], eax
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x516649
xor al, al
pop edi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0052f708
add esp, 0x38
ret 8
mov eax, dword [esp + 8]
push esi
cmp eax, dword [0x594450]
jne 0x51668d
mov esi, dword [esp + 0x14]
movzx eax, byte [esi + 0x3800]
push eax
lea eax, [esi + 0x1000]
push eax
push esi
call fcn.00502e90
push esi
call fcn.00537b6f
add esp, 4
mov al, 1
pop esi
pop edi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0052f708
add esp, 0x38
ret 8
push ebx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x516a3a
push ebp
call dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [0x5933e4]
mov esi, eax
test edx, edx
je 0x5166d1
mov ecx, dword [0x6034c8]
test ecx, ecx
je 0x5166d7
cmp esi, edx
jne 0x5166d7
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x516a50
mov ecx, dword [0x6034c8]
mov eax, dword [0x5933ec]
test eax, eax
je 0x516702
test ecx, ecx
je 0x516702
cmp esi, eax
jne 0x516702
lea ecx, [esp + 0x10]
push ecx
push dword [0x6034cc]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x516a50
mov eax, dword [0x5933e0]
test eax, eax
je 0x516732
mov ecx, dword [0x6034d0]
test ecx, ecx
je 0x516732
cmp ebp, eax
je 0x51671d
cmp esi, eax
jne 0x516732
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x516a50
push dword [0x6034bc]
lea eax, [esp + 0x14]
push dword [0x6034c4]
push eax
call fcn.004fe950
test al, al
jne 0x516a50
mov eax, dword [0x5933e8]
test eax, eax
je 0x51676d
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x516a50
mov eax, dword [0x5933ec]
test eax, eax
je 0x51678a
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x516a50
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ebx, ax
shr ebx, 0xf
cmp dword [esp + 0x14], 0x100
jne 0x5167f9
cmp dword [esp + 0x18], 9
jne 0x5167f9
mov eax, dword [0x59445c]
mov dword [esp + 0x34], eax
mov eax, dword [0x5c5838]
mov dword [esp + 0x38], eax
mov eax, dword [0x5933e0]
mov dword [esp + 0x3c], eax
mov eax, dword [0x5c53d4]
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 0x5167ef
cmp ecx, edi
je 0x51682f
push edi
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x51682f
inc esi
cmp esi, 4
jb 0x5167d7
mov edi, dword [esp + 0x2c]
call fcn.005101a0
test eax, eax
mov eax, dword [esp + 0x14]
je 0x51687f
cmp eax, 0x100
jne 0x51687f
cmp dword [esp + 0x18], 0x70
jne 0x51689a
push 0
push str.HELPArcComment
push dword [0x5923dc]
call fcn.004fd060
jmp 0x516a50
cmp esi, 0xffffffff
je 0x5167f5
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 0x516871
inc ecx
add edx, ebp
cmp ecx, 4
jb 0x516850
push edi
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x516a50
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x516a50
cmp eax, 0x205
jne 0x516950
mov eax, dword [esp + 0x10]
cmp eax, dword [0x5c7954]
je 0x516962
mov eax, dword [0x5c5838]
cmp ebp, eax
je 0x5169a1
cmp ebp, dword [0x59445c]
je 0x5169a1
cmp dword [0x5933e8], 0
je 0x51690c
call fcn.005016a0
cmp eax, 9
jne 0x51690c
mov eax, dword [0x6034c4]
test eax, eax
je 0x5168e9
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [0x5933e8]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x516a50
mov eax, dword [0x6034bc]
test eax, eax
je 0x51690c
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [0x5933e8]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x516a50
mov eax, dword [0x5933f0]
test eax, eax
je 0x516a07
lea ecx, [esp + 0x10]
push ecx
push dword [0x6034c8]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x516a50
lea eax, [esp + 0x10]
push eax
push 0
push 0x8009
push dword [0x5933f0]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x516a07
cmp eax, 0xa5
jne 0x516971
cmp dword [esp + 0x18], 5
jne 0x51689a
mov ecx, 0x5c7954
call fcn.004dcc90
jmp 0x516a50
cmp eax, 0x203
jne 0x51689a
mov eax, dword [esp + 0x10]
cmp eax, dword [0x5c7954]
jne 0x51689a
push dword [0x5923dc]
mov ecx, 0x5c7954
call fcn.004db2f0
jmp 0x516a50
mov ecx, dword [0x6034c0]
test ecx, ecx
je 0x5169c9
cmp ebp, eax
jne 0x5169c9
lea eax, [esp + 0x10]
push eax
push ecx
push dword [0x5923dc]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x516a50
mov eax, dword [0x6034bc]
test eax, eax
je 0x5169e8
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [0x5923dc]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x516a50
mov eax, dword [0x6034c4]
test eax, eax
je 0x516a07
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [0x5923dc]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x516a50
mov eax, dword [esp + 0x30]
test eax, eax
je 0x516a1f
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x516a50
test edi, edi
je 0x516a3a
lea eax, [esp + 0x10]
push eax
push 0
push 0x475
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x516a50
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.0052f708
add esp, 0x38
ret 8