Function at 0x140010f50
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 [0x140051200]
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.140003270
nop
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140010fe6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x140010fe6
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.1400106d0
mov r15, qword [rbp + 0x78]
movabs rbx, 0x7ffffffffffffffe
mov rsi, qword [rbp + 0x80]
cmp r15, rsi
jae 0x140011055
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 0x140011128
mov rax, rbx
sub rax, r15
cmp rax, 1
jb 0x140011ba5
lea r14, [r15 + 1]
mov rdi, r14
or rdi, 7
cmp rdi, rbx
jbe 0x14001107a
mov rdi, rbx
jmp 0x14001109b
mov rcx, rsi
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rsi, rax
jbe 0x140011090
mov rdi, rbx
jmp 0x14001109b
lea rax, [rsi + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp + 0x68]
call fcn.1400035f0
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 0x140011110
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 0x140011106
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x14001123d
mov rdi, rcx
mov rcx, rdi
call fcn.140039ddc
jmp 0x140011121
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 0x140011140
lea rcx, [rbp + 0x68]
call fcn.140010550
mov r15, qword [rbp + 0x78]
mov rsi, qword [rbp + 0x80]
cmp r15, rsi
jae 0x140011186
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 0x14001125c
mov rax, rbx
sub rax, r15
cmp rax, 1
jb 0x140011ba5
lea r13, [r15 + 1]
mov rdi, r13
or rdi, 7
cmp rdi, rbx
jbe 0x1400111ab
mov rdi, rbx
jmp 0x1400111cc
mov rcx, rsi
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rsi, rax
jbe 0x1400111c1
mov rdi, rbx
jmp 0x1400111cc
lea rax, [rsi + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp + 0x68]
call fcn.1400035f0
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 0x140011244
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 0x140011233
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x14001123d
mov rdi, rcx
mov rcx, rdi
call fcn.140039ddc
jmp 0x140011255
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.140010550
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 0x14001140f
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 0x14001140f
mov edx, eax
lea rcx, [rbp + 0x88]
call fcn.140011bb0
mov rbx, rax
call fcn.14003aa70
mov rcx, rax
lea rdx, str.Unable_to_open_registry_for_joystick_at_index
call fcn.1400041d0
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, [0x14003e9dc]
call fcn.1400041d0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140011338
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140008be0
mov rcx, rax
lea rdx, [0x140004430]
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 0x14001139a
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011394
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011394
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140039ddc
nop
mov rdx, qword [rbp + 0x80]
cmp rdx, 8
jb 0x1400113dd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400113d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011b8e
call fcn.140039ddc
mov rbx, qword [rsp + 0x40]
mov rax, rbx
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140039a70
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, [0x14003ea80]
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.1400106d0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x88], xmm0
movdqa xmm1, xmmword [0x14003efe0]
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 0x14001153f
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 0x14001153c
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 0x140011582
mov ecx, dword [rbp - 0x18]
test cl, 4
jne 0x140011578
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 0x140011578
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 0x140011582
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x14001159a
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp + 0x88]
call fcn.1400106d0
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.140010550
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 8
jb 0x140011610
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001160b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001186f
call fcn.140039ddc
mov r8d, 7
lea rdx, str.OEMName
lea rcx, [rbp + 0x68]
call fcn.140010550
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 0x140011775
mov edx, edi
lea rcx, [rbp + 0x88]
call fcn.140011bb0
mov rbx, rax
call fcn.14003aa70
mov rcx, rax
lea rdx, str.Unable_to_query_registry_key_for_joystick_at_index
call fcn.1400041d0
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, [0x14003e9dc]
call fcn.1400041d0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400116c8
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140008be0
mov rcx, rax
lea rdx, [0x140004430]
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 0x14001172a
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011724
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011724
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140039ddc
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.140010290
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 0x14001139a
mov r8d, 0x4f
lea rdx, str.SystemCurrentControlSetControlMediaPropertiesPrivatePropertiesJoystickOEM
lea rcx, [rbp + 0x68]
call fcn.1400106d0
mov rsi, qword [rbp + 0x78]
mov rdi, qword [rbp + 0x80]
cmp rsi, rdi
jae 0x1400117bc
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 0x140011893
mov rax, rbx
sub rax, rsi
cmp rax, 1
jb 0x140011b9f
lea r12, [rsi + 1]
mov rcx, r12
or rcx, 7
cmp rcx, rbx
ja 0x1400117fb
mov rdx, rdi
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp rdi, rax
ja 0x1400117fb
lea rax, [rdi + rdx]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp + 0x68]
call fcn.1400035f0
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 0x140011876
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 0x140011865
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14001186f
mov rbx, rcx
mov rcx, rbx
call fcn.140039ddc
jmp 0x14001188a
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.140010550
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 0x140011995
mov edx, eax
lea rcx, [rbp + 0x88]
call fcn.140011bb0
mov rbx, rax
call fcn.14003aa70
mov rcx, rax
lea rdx, str.Unable_to_open_registry_key_for_joystick_at_index
call fcn.1400041d0
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, [0x14003e9dc]
call fcn.1400041d0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001192d
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140008be0
mov rcx, rax
lea rdx, [0x140004430]
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 0x14001172a
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011724
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011724
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 0x140011a95
mov edx, ebx
call fcn.140011bb0
mov rbx, rax
call fcn.14003aa70
mov rcx, rax
lea rdx, str.Unable_to_query_name_for_joystick_at_index
call fcn.1400041d0
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, [0x14003e9dc]
call fcn.1400041d0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140011a2d
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140008be0
mov rcx, rax
lea rdx, [0x140004430]
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 0x14001172a
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011724
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011724
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.140003320
nop
lea rdx, [rbp + 0x88]
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140003470
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 4
jb 0x140011b09
lea rdx, [rdx*4 + 4]
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011b03
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011b03
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140039ddc
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.140010290
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 0x1400113e2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011b95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011b95
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140039ddc
jmp 0x1400113e2
call fcn.1400023f0
nop
call fcn.1400023f0
int3