Function at 0x1400b1bd0
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 [0x1400f0180]
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.1400bc1e0
nop
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400b1c66
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x1400b1c66
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.1400b1390
mov r15, qword [rbp + 0x78]
movabs rbx, 0x7ffffffffffffffe
mov rsi, qword [rbp + 0x80]
cmp r15, rsi
jae 0x1400b1cd5
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 0x1400b1da8
mov rax, rbx
sub rax, r15
cmp rax, 1
jb 0x1400b2825
lea r14, [r15 + 1]
mov rdi, r14
or rdi, 7
cmp rdi, rbx
jbe 0x1400b1cfa
mov rdi, rbx
jmp 0x1400b1d1b
mov rcx, rsi
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rsi, rax
jbe 0x1400b1d10
mov rdi, rbx
jmp 0x1400b1d1b
lea rax, [rsi + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp + 0x68]
call fcn.14004cde0
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 0x1400b1d90
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 0x1400b1d86
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x1400b1ebd
mov rdi, rcx
mov rcx, rdi
call fcn.1400bdad4
jmp 0x1400b1da1
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 0x1400b1dc0
lea rcx, [rbp + 0x68]
call fcn.1400b1210
mov r15, qword [rbp + 0x78]
mov rsi, qword [rbp + 0x80]
cmp r15, rsi
jae 0x1400b1e06
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 0x1400b1edc
mov rax, rbx
sub rax, r15
cmp rax, 1
jb 0x1400b2825
lea r13, [r15 + 1]
mov rdi, r13
or rdi, 7
cmp rdi, rbx
jbe 0x1400b1e2b
mov rdi, rbx
jmp 0x1400b1e4c
mov rcx, rsi
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rsi, rax
jbe 0x1400b1e41
mov rdi, rbx
jmp 0x1400b1e4c
lea rax, [rsi + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp + 0x68]
call fcn.14004cde0
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 0x1400b1ec4
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 0x1400b1eb3
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x1400b1ebd
mov rdi, rcx
mov rcx, rdi
call fcn.1400bdad4
jmp 0x1400b1ed5
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.1400b1210
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 0x1400b208f
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 0x1400b208f
mov edx, eax
lea rcx, [rbp + 0x88]
call fcn.1400b2830
mov rbx, rax
call fcn.1400bcf00
mov rcx, rax
lea rdx, str.Unable_to_open_registry_for_joystick_at_index
call fcn.140006530
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, [0x1400ccd94]
call fcn.140006530
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400b1fb8
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14004d490
mov rcx, rax
lea rdx, [0x14004a8f0]
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 0x1400b201a
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b2014
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b2014
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bdad4
nop
mov rdx, qword [rbp + 0x80]
cmp rdx, 8
jb 0x1400b205d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400b2058
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400b280e
call fcn.1400bdad4
mov rbx, qword [rsp + 0x40]
mov rax, rbx
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.1400bd590
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, [0x1400cce38]
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.1400b1390
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x88], xmm0
movdqa xmm1, xmmword [0x1400dac00]
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 0x1400b21bf
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 0x1400b21bc
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 0x1400b2202
mov ecx, dword [rbp - 0x18]
test cl, 4
jne 0x1400b21f8
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 0x1400b21f8
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 0x1400b2202
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x1400b221a
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp + 0x88]
call fcn.1400b1390
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.1400b1210
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 8
jb 0x1400b2290
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b228b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400b24ef
call fcn.1400bdad4
mov r8d, 7
lea rdx, str.OEMName
lea rcx, [rbp + 0x68]
call fcn.1400b1210
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 0x1400b23f5
mov edx, edi
lea rcx, [rbp + 0x88]
call fcn.1400b2830
mov rbx, rax
call fcn.1400bcf00
mov rcx, rax
lea rdx, str.Unable_to_query_registry_key_for_joystick_at_index
call fcn.140006530
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, [0x1400ccd94]
call fcn.140006530
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400b2348
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14004d490
mov rcx, rax
lea rdx, [0x14004a8f0]
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 0x1400b23aa
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b23a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b23a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bdad4
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.1400b0f50
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 0x1400b201a
mov r8d, 0x4f
lea rdx, str.SystemCurrentControlSetControlMediaPropertiesPrivatePropertiesJoystickOEM
lea rcx, [rbp + 0x68]
call fcn.1400b1390
mov rsi, qword [rbp + 0x78]
mov rdi, qword [rbp + 0x80]
cmp rsi, rdi
jae 0x1400b243c
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 0x1400b2513
mov rax, rbx
sub rax, rsi
cmp rax, 1
jb 0x1400b281f
lea r12, [rsi + 1]
mov rcx, r12
or rcx, 7
cmp rcx, rbx
ja 0x1400b247b
mov rdx, rdi
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp rdi, rax
ja 0x1400b247b
lea rax, [rdi + rdx]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp + 0x68]
call fcn.14004cde0
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 0x1400b24f6
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 0x1400b24e5
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x1400b24ef
mov rbx, rcx
mov rcx, rbx
call fcn.1400bdad4
jmp 0x1400b250a
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.1400b1210
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 0x1400b2615
mov edx, eax
lea rcx, [rbp + 0x88]
call fcn.1400b2830
mov rbx, rax
call fcn.1400bcf00
mov rcx, rax
lea rdx, str.Unable_to_open_registry_key_for_joystick_at_index
call fcn.140006530
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, [0x1400ccd94]
call fcn.140006530
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400b25ad
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14004d490
mov rcx, rax
lea rdx, [0x14004a8f0]
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 0x1400b23aa
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b23a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b23a4
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 0x1400b2715
mov edx, ebx
call fcn.1400b2830
mov rbx, rax
call fcn.1400bcf00
mov rcx, rax
lea rdx, str.Unable_to_query_name_for_joystick_at_index
call fcn.140006530
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, [0x1400ccd94]
call fcn.140006530
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400b26ad
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14004d490
mov rcx, rax
lea rdx, [0x14004a8f0]
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 0x1400b23aa
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b23a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b23a4
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.1400bc290
nop
lea rdx, [rbp + 0x88]
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400bc340
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 4
jb 0x1400b2789
lea rdx, [rdx*4 + 4]
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b2783
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b2783
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bdad4
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.1400b0f50
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 0x1400b2062
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b2815
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b2815
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bdad4
jmp 0x1400b2062
call fcn.140001760
nop
call fcn.140001760
int3