Function at 0x505810
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x38
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x34], eax
cmp dword [0x5e7788], 0
mov eax, dword [esp + 0x3c]
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
jne 0x5058c0
push str.MENUACC
push dword [0x5b6818]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.LISTACC
push dword [0x5b6818]
mov dword [0x5e7788], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.FILEACC
push dword [0x5b6818]
mov dword [0x5e778c], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.VIEWACC
push dword [0x5b6818]
mov dword [0x5e7790], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.ERRACC
push dword [0x5b6818]
mov dword [0x5e7794], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0x557654
push dword [0x5b6818]
mov dword [0x5e7798], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [0x5e779c], eax
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x5058e9
xor al, al
pop edi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0051dca8
add esp, 0x38
ret 8
mov eax, dword [esp + 8]
push esi
cmp eax, dword [0x57b11c]
jne 0x50592d
mov esi, dword [esp + 0x14]
movzx eax, byte [esi + 0x3800]
push eax
lea eax, [esi + 0x1000]
push eax
push esi
call fcn.004f2a90
push esi
call fcn.00525b95
add esp, 4
mov al, 1
pop esi
pop edi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0051dca8
add esp, 0x38
ret 8
push ebx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x505ccd
push ebp
call dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [0x57a0d0]
mov esi, eax
test edx, edx
je 0x505971
mov ecx, dword [0x5e7794]
test ecx, ecx
je 0x505977
cmp esi, edx
jne 0x505977
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x505ce3
mov ecx, dword [0x5e7794]
mov eax, dword [0x57a0d8]
test eax, eax
je 0x5059a2
test ecx, ecx
je 0x5059a2
cmp esi, eax
jne 0x5059a2
lea ecx, [esp + 0x10]
push ecx
push dword [0x5e7798]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x505ce3
mov eax, dword [0x57a0cc]
test eax, eax
je 0x5059d2
mov ecx, dword [0x5e779c]
test ecx, ecx
je 0x5059d2
cmp ebp, eax
je 0x5059bd
cmp esi, eax
jne 0x5059d2
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x505ce3
push dword [0x5e7788]
lea eax, [esp + 0x14]
push dword [0x5e7790]
push eax
call fcn.004ee620
test al, al
jne 0x505ce3
mov eax, dword [0x57a0d4]
test eax, eax
je 0x505a0d
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x505ce3
mov eax, dword [0x57a0d8]
test eax, eax
je 0x505a2a
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x505ce3
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ebx, ax
shr ebx, 0xf
cmp dword [esp + 0x14], 0x100
jne 0x505a99
cmp dword [esp + 0x18], 9
jne 0x505a99
mov eax, dword [0x57b14c]
mov dword [esp + 0x34], eax
mov eax, dword [0x5a84e0]
mov dword [esp + 0x38], eax
mov eax, dword [0x57a0cc]
mov dword [esp + 0x3c], eax
mov eax, dword [0x5a8074]
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 0x505a8f
cmp ecx, edi
je 0x505acb
push edi
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x505acb
inc esi
cmp esi, 4
jb 0x505a77
mov edi, dword [esp + 0x2c]
call fcn.004ff9c0
test eax, eax
mov eax, dword [esp + 0x14]
je 0x505b12
cmp eax, 0x100
jne 0x505b12
cmp dword [esp + 0x18], 0x70
jne 0x505b2d
push 0
push str.HELPArcComment
push dword [0x57a0c8]
call fcn.004ecef0
jmp 0x505ce3
cmp esi, 0xffffffff
je 0x505a95
not ebx
lea edx, [esi - 1]
mov ecx, 1
and ebx, ecx
add ebx, ebx
add edx, ebx
lea ebp, [ebx - 1]
mov eax, edx
and eax, 3
mov eax, dword [esp + eax*4 + 0x34]
test eax, eax
jne 0x505b04
inc ecx
add edx, ebp
cmp ecx, 4
jb 0x505ae3
push edi
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x505ce3
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x505ce3
cmp eax, 0x205
jne 0x505be3
mov eax, dword [esp + 0x10]
cmp eax, dword [0x5aa5fc]
je 0x505bf5
mov eax, dword [0x5a84e0]
cmp ebp, eax
je 0x505c34
cmp ebp, dword [0x57b14c]
je 0x505c34
cmp dword [0x57a0d4], 0
je 0x505b9f
call fcn.004f1290
cmp eax, 9
jne 0x505b9f
mov eax, dword [0x5e7790]
test eax, eax
je 0x505b7c
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [0x57a0d4]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x505ce3
mov eax, dword [0x5e7788]
test eax, eax
je 0x505b9f
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [0x57a0d4]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x505ce3
mov eax, dword [0x57a0dc]
test eax, eax
je 0x505c9a
lea ecx, [esp + 0x10]
push ecx
push dword [0x5e7794]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x505ce3
lea eax, [esp + 0x10]
push eax
push 0
push 0x8009
push dword [0x57a0dc]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x505c9a
cmp eax, 0xa5
jne 0x505c04
cmp dword [esp + 0x18], 5
jne 0x505b2d
mov ecx, 0x5aa5fc
call fcn.004d0740
jmp 0x505ce3
cmp eax, 0x203
jne 0x505b2d
mov eax, dword [esp + 0x10]
cmp eax, dword [0x5aa5fc]
jne 0x505b2d
push dword [0x57a0c8]
mov ecx, 0x5aa5fc
call fcn.004ceda0
jmp 0x505ce3
mov ecx, dword [0x5e778c]
test ecx, ecx
je 0x505c5c
cmp ebp, eax
jne 0x505c5c
lea eax, [esp + 0x10]
push eax
push ecx
push dword [0x57a0c8]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x505ce3
mov eax, dword [0x5e7788]
test eax, eax
je 0x505c7b
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [0x57a0c8]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x505ce3
mov eax, dword [0x5e7790]
test eax, eax
je 0x505c9a
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [0x57a0c8]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x505ce3
mov eax, dword [esp + 0x30]
test eax, eax
je 0x505cb2
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x505ce3
test edi, edi
je 0x505ccd
lea eax, [esp + 0x10]
push eax
push 0
push 0x475
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x505ce3
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.0051dca8
add esp, 0x38
ret 8