Function at 0x1400b9710
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x1400f1180]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov r13, r8
mov dword [rsp + 0x34], edx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov qword [rbp + 0x60], rcx
mov dword [rsp + 0x30], 1
mov cl, 1
call sub.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x50]
lea rdx, str.Unknown_Joystick
mov rcx, rbx
call fcn.1400bd940
nop
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400b97a6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x1400b97a6
mov rax, qword [rax]
mov edx, 1
call qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
xor r12d, r12d
mov qword [rbp + 0x78], r12
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], r12w
lea r8d, [r12 + 0x38]
lea rdx, str.SystemCurrentControlSetControlMediaResourcesJoystick
lea rcx, [rbp + 0x68]
call fcn.1400b8ed0
mov r15, qword [rbp + 0x78]
movabs rbx, 0x7ffffffffffffffe
mov rsi, qword [rbp + 0x80]
cmp r15, rsi
jae 0x1400b9815
lea rax, [r15 + 1]
mov qword [rbp + 0x78], rax
lea rax, [rbp + 0x68]
cmp rsi, 8
cmovae rax, qword [rbp + 0x68]
mov dword [rax + r15*2], 0x5c
jmp 0x1400b98e8
mov rax, rbx
sub rax, r15
cmp rax, 1
jb 0x1400ba365
lea r14, [r15 + 1]
mov rdi, r14
or rdi, 7
cmp rdi, rbx
jbe 0x1400b983a
mov rdi, rbx
jmp 0x1400b985b
mov rcx, rsi
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rsi, rax
jbe 0x1400b9850
mov rdi, rbx
jmp 0x1400b985b
lea rax, [rsi + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp + 0x68]
call fcn.14004e950
mov r12, rax
mov qword [rbp + 0x78], r14
mov qword [rbp + 0x80], rdi
add r15, r15
mov r8, r15
mov rcx, rax
cmp rsi, 8
jb 0x1400b98d0
mov rdi, qword [rbp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov dword [r15 + r12], 0x5c
lea rdx, [rsi*2 + 2]
cmp rdx, 0x1000
jb 0x1400b98c6
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x1400b99fd
mov rdi, rcx
mov rcx, rdi
call fcn.1400bed30
jmp 0x1400b98e1
lea rdx, [rbp + 0x68]
call sub.VCRUNTIME140.dll_memcpy
mov dword [r15 + r12], 0x5c
mov qword [rbp + 0x68], r12
xor r12d, r12d
lea rdx, [r13 + 0x90]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400b9900
lea rcx, [rbp + 0x68]
call fcn.1400b8d50
mov r15, qword [rbp + 0x78]
mov rsi, qword [rbp + 0x80]
cmp r15, rsi
jae 0x1400b9946
lea rax, [r15 + 1]
mov qword [rbp + 0x78], rax
lea rax, [rbp + 0x68]
cmp rsi, 8
cmovae rax, qword [rbp + 0x68]
mov dword [rax + r15*2], 0x5c
jmp 0x1400b9a1c
mov rax, rbx
sub rax, r15
cmp rax, 1
jb 0x1400ba365
lea r13, [r15 + 1]
mov rdi, r13
or rdi, 7
cmp rdi, rbx
jbe 0x1400b996b
mov rdi, rbx
jmp 0x1400b998c
mov rcx, rsi
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rsi, rax
jbe 0x1400b9981
mov rdi, rbx
jmp 0x1400b998c
lea rax, [rsi + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp + 0x68]
call fcn.14004e950
mov r12, rax
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], rdi
add r15, r15
mov r8, r15
mov rcx, rax
cmp rsi, 8
jb 0x1400b9a04
mov rdi, qword [rbp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov dword [r15 + r12], 0x5c
lea rdx, [rsi*2 + 2]
cmp rdx, 0x1000
jb 0x1400b99f3
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x1400b99fd
mov rdi, rcx
mov rcx, rdi
call fcn.1400bed30
jmp 0x1400b9a15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, [rbp + 0x68]
call sub.VCRUNTIME140.dll_memcpy
mov dword [r15 + r12], 0x5c
mov qword [rbp + 0x68], r12
xor r12d, r12d
mov r8d, 0x17
lea rdx, str.CurrentJoystickSettings
lea rcx, [rbp + 0x68]
call fcn.1400b8d50
mov r13, 0xffffffff80000001
lea rdx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rdx, qword [rbp + 0x68]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400b9bcf
mov r13, 0xffffffff80000002
lea rdx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rdx, qword [rbp + 0x68]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400b9bcf
mov edx, eax
lea rcx, [rbp + 0x88]
call fcn.1400ba370
mov rbx, rax
call fcn.1400be690
mov rcx, rax
lea rdx, str.Unable_to_open_registry_for_joystick_at_index
call fcn.140001dc0
mov rcx, rax
mov edx, dword [rsp + 0x34]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1400ce654]
call fcn.140001dc0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400b9af8
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14004ed80
mov rcx, rax
lea rdx, [0x14004c460]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 0x10
jb 0x1400b9b5a
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b9b54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b9b54
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bed30
nop
mov rdx, qword [rbp + 0x80]
cmp rdx, 8
jb 0x1400b9b9d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400b9b98
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ba34e
call fcn.1400bed30
mov rbx, qword [rsp + 0x40]
mov rax, rbx
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.1400bed10
mov rbx, qword [rsp + 0x418]
add rsp, 0x3c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [0x1400ce6f8]
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x20], r12
mov dword [rbp - 0x18], 4
mov r15d, dword [rsp + 0x34]
lea edx, [r15 + 1]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_int____ptr64]
mov r8d, 8
lea rdx, str.Joystick
lea rcx, [rbp + 0x68]
call fcn.1400b8ed0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x88], xmm0
movdqa xmm1, xmmword [0x1400dc520]
movdqu xmmword [rbp + 0x98], xmm1
mov word [rbp + 0x88], r12w
mov dword [rsp + 0x30], 0xb
movups xmmword [rsp + 0x50], xmm0
mov ecx, dword [rbp - 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400b9cff
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::pptr_void_const___ptr64]
test rax, rax
je 0x1400b9cfc
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::pbase_void_const___ptr64]
mov rsi, rax
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::pptr_void_const___ptr64]
mov rdi, rax
cmp rax, qword [rbp - 0x20]
cmovb rdi, qword [rbp - 0x20]
sub rdi, rsi
sar rdi, 1
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::epptr_void_const___ptr64]
jmp 0x1400b9d42
mov ecx, dword [rbp - 0x18]
test cl, 4
jne 0x1400b9d38
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::gptr_void_const___ptr64]
test rax, rax
je 0x1400b9d38
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::eback_void_const___ptr64]
mov rsi, rax
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::egptr_void_const___ptr64]
mov rdi, rax
sub rdi, rsi
sar rdi, 1
jmp 0x1400b9d42
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x1400b9d5a
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp + 0x88]
call fcn.1400b8ed0
nop
mov dword [rsp + 0x30], 7
lea rdx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 8
cmovae rdx, qword [rbp + 0x88]
mov r8, qword [rbp + 0x98]
lea rcx, [rbp + 0x68]
call fcn.1400b8d50
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 8
jb 0x1400b9dd0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b9dcb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ba02f
call fcn.1400bed30
mov r8d, 7
lea rdx, str.OEMName
lea rcx, [rbp + 0x68]
call fcn.1400b8d50
mov dword [rsp + 0x38], 0x200
lea rdx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rdx, qword [rbp + 0x68]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1400b9f35
mov edx, edi
lea rcx, [rbp + 0x88]
call fcn.1400ba370
mov rbx, rax
call fcn.1400be690
mov rcx, rax
lea rdx, str.Unable_to_query_registry_key_for_joystick_at_index
call fcn.140001dc0
mov rcx, rax
mov edx, r15d
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1400ce654]
call fcn.140001dc0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400b9e88
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14004ed80
mov rcx, rax
lea rdx, [0x14004c460]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 0x10
jb 0x1400b9eea
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b9ee4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b9ee4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bed30
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.1400b8a90
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
jmp 0x1400b9b5a
mov r8d, 0x4f
lea rdx, str.SystemCurrentControlSetControlMediaPropertiesPrivatePropertiesJoystickOEM
lea rcx, [rbp + 0x68]
call fcn.1400b8ed0
mov rsi, qword [rbp + 0x78]
mov rdi, qword [rbp + 0x80]
cmp rsi, rdi
jae 0x1400b9f7c
lea rax, [rsi + 1]
mov qword [rbp + 0x78], rax
lea rax, [rbp + 0x68]
cmp rdi, 8
cmovae rax, qword [rbp + 0x68]
mov dword [rax + rsi*2], 0x5c
jmp 0x1400ba053
mov rax, rbx
sub rax, rsi
cmp rax, 1
jb 0x1400ba35f
lea r12, [rsi + 1]
mov rcx, r12
or rcx, 7
cmp rcx, rbx
ja 0x1400b9fbb
mov rdx, rdi
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp rdi, rax
ja 0x1400b9fbb
lea rax, [rdi + rdx]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp + 0x68]
call fcn.14004e950
mov r15, rax
mov qword [rbp + 0x78], r12
mov qword [rbp + 0x80], rbx
add rsi, rsi
mov r8, rsi
mov rcx, rax
cmp rdi, 8
jb 0x1400ba036
mov rbx, qword [rbp + 0x68]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov dword [rsi + r15], 0x5c
xor r12d, r12d
lea rdx, [rdi*2 + 2]
cmp rdx, 0x1000
jb 0x1400ba025
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x1400ba02f
mov rbx, rcx
mov rcx, rbx
call fcn.1400bed30
jmp 0x1400ba04a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, [rbp + 0x68]
call sub.VCRUNTIME140.dll_memcpy
mov dword [rsi + r15], 0x5c
xor r12d, r12d
mov qword [rbp + 0x68], r15
mov r15d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
shr r8, 1
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x68]
call fcn.1400b8d50
lea rdx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rdx, qword [rbp + 0x68]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400ba155
mov edx, eax
lea rcx, [rbp + 0x88]
call fcn.1400ba370
mov rbx, rax
call fcn.1400be690
mov rcx, rax
lea rdx, str.Unable_to_open_registry_key_for_joystick_at_index
call fcn.140001dc0
mov rcx, rax
mov edx, r15d
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1400ce654]
call fcn.140001dc0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400ba0ed
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14004ed80
mov rcx, rax
lea rdx, [0x14004c460]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 0x10
jb 0x1400b9eea
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b9ee4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b9ee4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rsp + 0x38], 0x200
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.OEMName
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp + 0x88]
test ebx, ebx
je 0x1400ba255
mov edx, ebx
call fcn.1400ba370
mov rbx, rax
call fcn.1400be690
mov rcx, rax
lea rdx, str.Unable_to_query_name_for_joystick_at_index
call fcn.140001dc0
mov rcx, rax
mov edx, r15d
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, [0x1400ce654]
call fcn.140001dc0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400ba1ed
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14004ed80
mov rcx, rax
lea rdx, [0x14004c460]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 0x10
jb 0x1400b9eea
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b9ee4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b9ee4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov word [rbp + 0x2ae], r12w
lea rdx, [rbp + 0xb0]
call fcn.1400bd9f0
nop
lea rdx, [rbp + 0x88]
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400bdaa0
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 4
jb 0x1400ba2c9
lea rdx, [rdx*4 + 4]
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ba2c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ba2c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bed30
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.1400b8a90
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x80]
cmp rdx, 8
jb 0x1400b9ba2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ba355
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ba355
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bed30
jmp 0x1400b9ba2
call fcn.1400021a0
nop
call fcn.1400021a0
int3