Function at 0x140041ca0
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x140057010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov ecx, 1
call fcn.1400452ac
mov rbx, rax
mov qword [rbp - 0x11], rax
lea rcx, str.pcsx2_qt.exe
call fcn.14003e690
test al, al
jne 0x140041cf8
lea rcx, str.____Memory__failed_to_attach_to_target_process._n
call fcn.140004670
nop
mov rdx, qword [0x140057090]
mov qword [0x140057090], rbx
test rdx, rdx
je 0x140041d10
call fcn.140040a00
cmp qword [0x140057050], 0xffffffffffffffff
je 0x1400420e2
cmp qword [0x140057068], 0
je 0x1400420e2
mov ecx, 0x80
call fcn.1400452ac
mov qword [rbp - 0x11], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
mov rcx, rax
call fcn.14003dae0
nop
mov rdx, qword [0x140057048]
mov qword [0x140057048], rax
test rdx, rdx
je 0x140041d7d
call fcn.14003e320
mov ecx, 0x40
call fcn.1400452ac
mov rbx, rax
mov qword [rbp - 0x11], rax
xor esi, esi
mov qword [rax + 0x38], rsi
lea rax, vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__void_____thiscall_Menu::__void___class_Menu____ptr64___void___.0
mov qword [rbp - 0x69], rax
lea rax, [0x140042630]
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rbx
lea rax, [rbp - 0x69]
mov qword [rbp - 0x31], rax
mov qword [rbp + 0x3f], rsi
mov r8, qword [method.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__void_____thiscall_Menu::__void___class_Menu____ptr64___void___.virtual_0]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x69]
call r8
mov rcx, rax
mov qword [rbp + 0x3f], rax
mov r8, qword [rbp - 0x31]
test r8, r8
je 0x140041dfa
mov rax, qword [r8]
lea rcx, [rbp - 0x69]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov r8d, esi
mov qword [rbp - 0x31], rsi
mov rcx, qword [rbp + 0x3f]
mov r9, qword [rbx + 0x38]
test r9, r9
je 0x140041e54
cmp r9, rbx
sete al
test al, al
je 0x140041e49
mov rax, qword [r9]
lea rdx, [rbp - 0x69]
mov rcx, r9
call qword [rax + 8]
mov r8, rax
mov qword [rbp - 0x31], rax
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140041e43
mov rax, qword [rcx]
cmp rcx, rbx
sete dl
xor dl, 1
call qword [rax + 0x20]
mov r8, qword [rbp - 0x31]
mov rcx, qword [rbp + 0x3f]
jmp 0x140041e50
mov rcx, qword [rbp + 0x3f]
jmp 0x140041e54
mov r8, r9
mov qword [rbp - 0x31], r9
mov qword [rbx + 0x38], rsi
test rcx, rcx
je 0x140041ebc
lea rax, [rbp + 7]
cmp rcx, rax
jne 0x140041e94
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
mov qword [rbx + 0x38], rax
mov rcx, qword [rbp + 0x3f]
test rcx, rcx
je 0x140041e8e
mov rax, qword [rcx]
lea rdx, [rbp + 7]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov r8, qword [rbp - 0x31]
jmp 0x140041e98
mov r8, qword [rbp - 0x31]
jmp 0x140041e9f
mov qword [rbx + 0x38], rcx
mov rcx, rsi
mov qword [rbp + 0x3f], rcx
test rcx, rcx
je 0x140041ebc
mov rax, qword [rcx]
lea rdx, [rbp + 7]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x3f], rsi
mov r8, qword [rbp - 0x31]
test r8, r8
je 0x140041ed4
mov rax, qword [r8]
lea rcx, [rbp - 0x69]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov rdi, qword [0x140057098]
mov qword [0x140057098], rbx
test rdi, rdi
je 0x140041f0d
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140041f00
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], rsi
mov edx, 0x40
mov rcx, rdi
call fcn.140045054
mov ecx, 0xa0
call fcn.1400452ac
mov rbx, rax
mov qword [rbp - 0x11], rax
xor edx, edx
mov r8d, 0xa0
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov byte [rbx], sil
mov byte [rbx + 4], sil
mov dword [rbx + 8], esi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x30], 0xf
mov qword [rbx + 0x38], rsi
mov dword [rbx + 0x40], esi
mov qword [rbx + 0x48], rsi
mov dword [rbx + 0x50], esi
mov qword [rbx + 0x58], rsi
mov dword [rbx + 0x60], esi
mov qword [rbx + 0x68], rsi
mov dword [rbx + 0x70], esi
mov qword [rbx + 0x78], rsi
mov dword [rbx + 0x80], esi
mov qword [rbx + 0x88], rsi
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x98], rsi
mov rdx, qword [0x1400570a0]
mov qword [0x1400570a0], rbx
test rdx, rdx
je 0x140041f9f
call fcn.140042170
mov ecx, 8
call fcn.1400452ac
lea rcx, [0x140042120]
mov qword [rax], rcx
mov qword [rbp - 0x11], rax
lea rcx, [rbp - 1]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140042600]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 9], rax
test rax, rax
je 0x1400420d3
cmp byte [0x1400570a8], 0
je 0x14004206c
lea rax, [rbp + 7]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], 1
nop
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
movzx eax, byte [0x1400570a8]
cmovb eax, esi
mov byte [0x1400570a8], al
mov rbx, qword [0x140057048]
mov rax, qword [0x140057098]
mov qword [rbp + 0x3f], rsi
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x140042048
mov rax, qword [rcx]
lea rdx, [rbp + 7]
call qword [rax]
mov qword [rbp + 0x3f], rax
lea rdx, [rbp + 7]
mov rcx, rbx
call fcn.14003df50
lea rcx, [rbp - 0x11]
call fcn.140042350
call qword [sym.imp.MSVCP140.dll__Thrd_yield]
cmp byte [0x1400570a8], 0
jne 0x140042000
cmp dword [rbp - 1], 0
jne 0x14004207e
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 1], eax
jne 0x140042095
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x29], xmm0
xor edx, edx
lea rcx, [rbp - 0x29]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x1400420ba
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov qword [0x1400570a0], rsi
mov qword [0x140057090], rsi
mov qword [0x140057048], rsi
xor eax, eax
jmp 0x1400420f3
mov dword [rbp - 1], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rcx, str.failed_to_attach_to_pcsx2_process._n
call fcn.140004670
mov eax, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140044c50
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret