Function at 0x14008ef30
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 [0x1400be680]
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.140093520
nop
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14008efc6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x14008efc6
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.14008e6b0
mov r15, qword [rbp + 0x78]
movabs rbx, 0x7ffffffffffffffe
mov rsi, qword [rbp + 0x80]
cmp r15, rsi
jae 0x14008f035
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 0x14008f108
mov rax, rbx
sub rax, r15
cmp rax, 1
jb 0x14008fb85
lea r14, [r15 + 1]
mov rdi, r14
or rdi, 7
cmp rdi, rbx
jbe 0x14008f05a
mov rdi, rbx
jmp 0x14008f07b
mov rcx, rsi
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rsi, rax
jbe 0x14008f070
mov rdi, rbx
jmp 0x14008f07b
lea rax, [rsi + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp + 0x68]
call fcn.14008e4c0
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 0x14008f0f0
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 0x14008f0e6
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x14008f21d
mov rdi, rcx
mov rcx, rdi
call fcn.14009488c
jmp 0x14008f101
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 0x14008f120
lea rcx, [rbp + 0x68]
call fcn.14008e530
mov r15, qword [rbp + 0x78]
mov rsi, qword [rbp + 0x80]
cmp r15, rsi
jae 0x14008f166
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 0x14008f23c
mov rax, rbx
sub rax, r15
cmp rax, 1
jb 0x14008fb85
lea r13, [r15 + 1]
mov rdi, r13
or rdi, 7
cmp rdi, rbx
jbe 0x14008f18b
mov rdi, rbx
jmp 0x14008f1ac
mov rcx, rsi
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rsi, rax
jbe 0x14008f1a1
mov rdi, rbx
jmp 0x14008f1ac
lea rax, [rsi + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp + 0x68]
call fcn.14008e4c0
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 0x14008f224
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 0x14008f213
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x14008f21d
mov rdi, rcx
mov rcx, rdi
call fcn.14009488c
jmp 0x14008f235
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.14008e530
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 0x14008f3ef
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 0x14008f3ef
mov edx, eax
lea rcx, [rbp + 0x88]
call fcn.14008fb90
mov rbx, rax
call fcn.1400941a0
mov rcx, rax
lea rdx, str.Unable_to_open_registry_for_joystick_at_index
call fcn.140002900
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, [0x1400a5538]
call fcn.140002900
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14008f318
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14000e040
mov rcx, rax
lea rdx, [0x14000d720]
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 0x14008f37a
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008f374
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008f374
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009488c
nop
mov rdx, qword [rbp + 0x80]
cmp rdx, 8
jb 0x14008f3bd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14008f3b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008fb6e
call fcn.14009488c
mov rbx, qword [rsp + 0x40]
mov rax, rbx
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140094830
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, [0x1400a4d78]
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.14008e6b0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x88], xmm0
movdqa xmm1, xmmword [0x1400a52d0]
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 0x14008f51f
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 0x14008f51c
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 0x14008f562
mov ecx, dword [rbp - 0x18]
test cl, 4
jne 0x14008f558
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 0x14008f558
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 0x14008f562
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x14008f57a
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp + 0x88]
call fcn.14008e6b0
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.14008e530
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 8
jb 0x14008f5f0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008f5eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008f84f
call fcn.14009488c
mov r8d, 7
lea rdx, str.OEMName
lea rcx, [rbp + 0x68]
call fcn.14008e530
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 0x14008f755
mov edx, edi
lea rcx, [rbp + 0x88]
call fcn.14008fb90
mov rbx, rax
call fcn.1400941a0
mov rcx, rax
lea rdx, str.Unable_to_query_registry_key_for_joystick_at_index
call fcn.140002900
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, [0x1400a5538]
call fcn.140002900
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14008f6a8
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14000e040
mov rcx, rax
lea rdx, [0x14000d720]
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 0x14008f70a
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008f704
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008f704
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009488c
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.14008e190
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 0x14008f37a
mov r8d, 0x4f
lea rdx, str.SystemCurrentControlSetControlMediaPropertiesPrivatePropertiesJoystickOEM
lea rcx, [rbp + 0x68]
call fcn.14008e6b0
mov rsi, qword [rbp + 0x78]
mov rdi, qword [rbp + 0x80]
cmp rsi, rdi
jae 0x14008f79c
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 0x14008f873
mov rax, rbx
sub rax, rsi
cmp rax, 1
jb 0x14008fb7f
lea r12, [rsi + 1]
mov rcx, r12
or rcx, 7
cmp rcx, rbx
ja 0x14008f7db
mov rdx, rdi
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp rdi, rax
ja 0x14008f7db
lea rax, [rdi + rdx]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp + 0x68]
call fcn.14008e4c0
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 0x14008f856
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 0x14008f845
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14008f84f
mov rbx, rcx
mov rcx, rbx
call fcn.14009488c
jmp 0x14008f86a
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.14008e530
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 0x14008f975
mov edx, eax
lea rcx, [rbp + 0x88]
call fcn.14008fb90
mov rbx, rax
call fcn.1400941a0
mov rcx, rax
lea rdx, str.Unable_to_open_registry_key_for_joystick_at_index
call fcn.140002900
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, [0x1400a5538]
call fcn.140002900
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14008f90d
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14000e040
mov rcx, rax
lea rdx, [0x14000d720]
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 0x14008f70a
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008f704
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008f704
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 0x14008fa75
mov edx, ebx
call fcn.14008fb90
mov rbx, rax
call fcn.1400941a0
mov rcx, rax
lea rdx, str.Unable_to_query_name_for_joystick_at_index
call fcn.140002900
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, [0x1400a5538]
call fcn.140002900
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14008fa0d
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14000e040
mov rcx, rax
lea rdx, [0x14000d720]
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 0x14008f70a
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008f704
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008f704
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.1400935d0
nop
lea rdx, [rbp + 0x88]
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140093680
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 4
jb 0x14008fae9
lea rdx, [rdx*4 + 4]
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008fae3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008fae3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009488c
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.14008e190
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 0x14008f3c2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008fb75
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008fb75
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009488c
jmp 0x14008f3c2
call fcn.140001620
nop
call fcn.140001620
int3