Function at 0x6b1000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x709df9
mov eax, dword fs:[0]
push eax
sub esp, 0x5dc
mov eax, dword [0x7c2580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esi, [ebp + 0x10]
mov dword [ebp - 0x550], eax
lea edi, [ebp - 0x518]
mov ecx, 0xb6
mov dword [ebp - 0x540], eax
mov eax, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x52c], eax
mov dword [ebp - 0x538], 1
push 1
mov dword [ebp - 4], 0
call fcn.006c2823
add esp, 4
mov dword [ebp - 0x544], eax
mov ecx, dword [ebp - 0x540]
lea eax, [ebp - 0x548]
push eax
push str.Unknown_Joystick
mov dword [ebp - 4], 1
call fcn.006a42b0
mov dword [ebp - 0x538], 1
mov ecx, dword [ebp - 0x544]
test ecx, ecx
je 0x6b10bb
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x6b10bb
mov eax, dword [ecx]
push 1
call dword [eax]
xorps xmm0, xmm0
mov dword [ebp - 0x218], 0
xor eax, eax
mov dword [ebp - 0x214], 7
movups xmmword [ebp - 0x228], xmm0
mov word [ebp - 0x228], ax
push 0x38
push str.SystemCurrentControlSetControlMediaResourcesJoystick
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 4
call fcn.006b09f0
mov ecx, dword [ebp - 0x218]
mov edx, accept
mov esi, dword [ebp - 0x214]
mov dword [ebp - 0x530], ecx
mov dword [ebp - 0x534], esi
cmp ecx, esi
jae 0x6b1141
lea eax, [ecx + 1]
cmp esi, 7
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x228]
cmova eax, dword [ebp - 0x228]
mov dword [eax + ecx*2], 0x5c
jmp 0x6b124b
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x6b1b4d
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0x528], eax
or ecx, 7
cmp ecx, edx
jbe 0x6b1164
mov ecx, edx
jmp 0x6b117c
mov edi, esi
mov eax, edx
shr edi, 1
sub eax, edi
cmp esi, eax
jbe 0x6b1174
mov ecx, edx
jmp 0x6b117c
lea eax, [esi + edi]
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x520]
mov dword [ebp - 0x520], ecx
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00461110
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x528]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x520]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x530]
mov dword [ebp - 0x51c], ecx
lea edx, [eax + eax]
lea eax, [edx + ecx]
mov dword [ebp - 0x520], eax
push edx
cmp esi, 7
jbe 0x6b1223
mov esi, dword [ebp - 0x228]
push esi
push ecx
call fcn.006d8770
mov eax, dword [ebp - 0x520]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, dword [ebp - 0x534]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x6b1217
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x6b1b52
mov esi, edx
push ecx
push esi
call fcn.006d6ad4
add esp, 8
jmp 0x6b123f
lea eax, [ebp - 0x228]
push eax
push ecx
call fcn.006d8770
mov eax, dword [ebp - 0x520]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, dword [ebp - 0x51c]
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x488]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6b1254
sub ecx, edx
lea eax, [ebp - 0x488]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.00458150
mov ecx, dword [ebp - 0x218]
mov esi, dword [ebp - 0x214]
mov dword [ebp - 0x528], ecx
mov dword [ebp - 0x544], esi
cmp ecx, esi
jae 0x6b12b7
lea eax, [ecx + 1]
cmp esi, 7
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x228]
cmova eax, dword [ebp - 0x228]
mov dword [eax + ecx*2], 0x5c
jmp 0x6b13d5
mov edx, accept
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x6b1b4d
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0x530], eax
or ecx, 7
cmp ecx, edx
jbe 0x6b12df
mov ecx, edx
jmp 0x6b1306
mov eax, esi
shr eax, 1
mov dword [ebp - 0x534], eax
mov eax, edx
mov edx, dword [ebp - 0x534]
sub eax, edx
cmp esi, eax
jbe 0x6b12fe
mov ecx, accept
jmp 0x6b1306
lea eax, [esi + edx]
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x51c]
mov dword [ebp - 0x51c], ecx
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00461110
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x530]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x51c]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x528]
mov dword [ebp - 0x520], ecx
lea edx, [eax + eax]
lea eax, [edx + ecx]
mov dword [ebp - 0x51c], eax
push edx
cmp esi, 7
jbe 0x6b13ad
mov esi, dword [ebp - 0x228]
push esi
push ecx
call fcn.006d8770
mov eax, dword [ebp - 0x51c]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, dword [ebp - 0x544]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x6b13a1
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x6b1b52
mov esi, edx
push ecx
push esi
call fcn.006d6ad4
add esp, 8
jmp 0x6b13c9
lea eax, [ebp - 0x228]
push eax
push ecx
call fcn.006d8770
mov eax, dword [ebp - 0x51c]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, dword [ebp - 0x520]
mov dword [ebp - 0x228], eax
push 0x17
push str.CurrentJoystickSettings
lea ecx, [ebp - 0x228]
call fcn.00458150
cmp dword [ebp - 0x214], 7
lea ecx, [ebp - 0x524]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x228]
cmova eax, dword [ebp - 0x228]
push ecx
push 0x20019
push 0
push eax
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x528], reloc.WS2_32.dll_accept
call esi
test eax, eax
je 0x6b1533
cmp dword [ebp - 0x214], 7
lea ecx, [ebp - 0x524]
push ecx
push 0x20019
lea eax, [ebp - 0x228]
mov dword [ebp - 0x528], reloc.WS2_32.dll_bind
cmova eax, dword [ebp - 0x228]
push 0
push eax
push reloc.WS2_32.dll_bind
call esi
test eax, eax
je 0x6b1533
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.006b1b60
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x52c]
push 0x7b2c34
push eax
push str.Unable_to_open_registry_for_joystick_at_index
mov byte [ebp - 4], 5
call fcn.00705760
push eax
call fcn.0045cdd0
add esp, 8
mov ecx, eax
call fcn.006a6c90
push eax
call fcn.0045cdd0
add esp, 8
mov ecx, esi
cmp dword [esi + 0x14], 0xf
jbe 0x6b14b4
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.006aa7d0
push eax
call fcn.0045d5d0
add esp, 0x10
lea ecx, [ebp - 0x240]
call fcn.004583b0
mov ecx, dword [ebp - 0x214]
cmp ecx, 7
jbe 0x6b1512
mov edx, dword [ebp - 0x228]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x6b1508
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6b1b52
push ecx
push edx
call fcn.006d6ad4
add esp, 8
mov eax, dword [ebp - 0x540]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d66cb
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x598]
mov dword [ebp - 0x5e8], 0x7a4e1c
call fcn.0045bd90
mov eax, dword [ebp - 0x5e8]
push 0
mov byte [ebp - 4], 6
mov dword [ebp - 0x538], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x5e8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x5ec], eax
lea eax, [ebp - 0x5e4]
push eax
mov eax, dword [ebp - 0x5e8]
lea ecx, [ebp - 0x5e8]
add ecx, dword [eax + 4]
call fcn.0045c390
mov eax, dword [ebp - 0x5e8]
xorps xmm0, xmm0
push 8
mov dword [ebp - 4], 8
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x5e8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x5ec], eax
mov dword [ebp - method.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
movups xmmword [ebp - 0x5e0], xmm0
movups xmmword [ebp - 0x5d0], xmm0
movups xmmword [ebp - 0x5c0], xmm0
call fcn.006d684e
mov esi, eax
add esp, 4
test esi, esi
je 0x6b160d
push 1
mov byte [ebp - 4], 9
call fcn.006c2823
add esp, 4
mov dword [esi + 4], eax
jmp 0x6b160f
xor esi, esi
lea ecx, [ebp - 0x5e4]
mov dword [ebp - 0x5b0], esi
call fcn.0045ba50
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x5ac], 0
mov dword [ebp - 0x5a8], 4
mov eax, dword [ebp - 0x52c]
lea ecx, [ebp - 0x5e8]
inc eax
mov byte [ebp - 4], 0xa
push eax
call fcn.006b0600
push 8
push str.Joystick
lea ecx, [ebp - 0x228]
call fcn.006b09f0
mov edx, dword [ebp - 0x5a8]
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x544], eax
movups xmmword [ebp - 0x240], xmm0
mov word [ebp - 0x240], ax
xor esi, esi
mov eax, edx
mov byte [ebp - 4], 0xb
and al, 0x22
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x538], 0x13
movq qword [ebp - 0x54c], xmm0
cmp al, 2
je 0x6b16dd
mov eax, dword [ebp - 0x5c4]
mov ecx, dword [eax]
test ecx, ecx
je 0x6b16dd
cmp ecx, dword [ebp - 0x5ac]
mov eax, dword [ebp - 0x5d4]
cmovb ecx, dword [ebp - 0x5ac]
mov edx, dword [eax]
sub ecx, edx
sar ecx, 1
jmp 0x6b1713
test dl, 4
jne 0x6b1707
mov eax, dword [ebp - 0x5c8]
mov ecx, dword [eax]
test ecx, ecx
je 0x6b1707
mov eax, dword [ebp - 0x5d8]
mov edx, dword [eax]
mov eax, dword [ebp - 0x5b8]
mov eax, dword [eax]
lea ecx, [ecx + eax*2]
sub ecx, edx
sar ecx, 1
jmp 0x6b1713
mov ecx, dword [ebp - 0x548]
mov edx, dword [ebp - 0x54c]
test edx, edx
je 0x6b172a
push ecx
push edx
lea ecx, [ebp - 0x240]
call fcn.006b09f0
mov esi, dword [ebp - 0x230]
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x538], 0xb
cmp dword [ebp - 0x22c], 7
lea eax, [ebp - 0x240]
push esi
cmova eax, dword [ebp - 0x240]
lea ecx, [ebp - 0x228]
push eax
mov byte [ebp - 4], 0xc
call fcn.00458150
mov ecx, dword [ebp - 0x22c]
mov byte [ebp - 4], 0xa
cmp ecx, 7
jbe 0x6b17a4
mov edx, dword [ebp - 0x240]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x6b179a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6b1b52
push ecx
push edx
call fcn.006d6ad4
add esp, 8
push 7
push str.OEMName
lea ecx, [ebp - 0x228]
call fcn.00458150
cmp dword [ebp - 0x214], 7
lea ecx, [ebp - 0x53c]
push ecx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x53c], 0x200
push ecx
push 0
lea eax, [ebp - 0x228]
cmova eax, dword [ebp - 0x228]
push 0
push eax
push dword [ebp - 0x524]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x524]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x6b1885
lea eax, [ebp - 0x240]
push esi
push eax
call fcn.006b1b60
add esp, 8
mov esi, eax
push 0x7b2c34
push dword [ebp - 0x52c]
mov byte [ebp - 4], 0xd
push str.Unable_to_query_registry_key_for_joystick_at_index
call fcn.00705760
push eax
call fcn.0045cdd0
add esp, 8
mov ecx, eax
call fcn.006a6c90
push eax
call fcn.0045cdd0
add esp, 8
mov ecx, esi
cmp dword [esi + 0x14], 0xf
jbe 0x6b1857
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.006aa7d0
push eax
call fcn.0045d5d0
add esp, 0x10
lea ecx, [ebp - 0x240]
call fcn.004583b0
lea ecx, [ebp - 0x5e8]
call fcn.006b07a0
jmp 0x6b14d2
push 0x4f
push str.SystemCurrentControlSetControlMediaPropertiesPrivatePropertiesJoystickOEM
lea ecx, [ebp - 0x228]
call fcn.006b09f0
mov ecx, dword [ebp - 0x218]
mov esi, dword [ebp - 0x214]
mov dword [ebp - 0x534], ecx
mov dword [ebp - 0x530], esi
cmp ecx, esi
jae 0x6b18d8
lea eax, [ecx + 1]
cmp esi, 7
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x228]
cmova eax, dword [ebp - 0x228]
mov dword [eax + ecx*2], 0x5c
jmp 0x6b19e7
mov edx, accept
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x6b1b4d
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0x544], eax
or ecx, 7
cmp ecx, edx
jbe 0x6b1900
mov ecx, edx
jmp 0x6b1918
mov eax, esi
shr eax, 1
sub edx, eax
cmp esi, edx
jbe 0x6b1911
mov ecx, accept
jmp 0x6b1918
add eax, esi
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x51c]
mov dword [ebp - 0x51c], ecx
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00461110
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x544]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x51c]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x534]
mov dword [ebp - 0x520], ecx
lea edx, [eax + eax]
lea eax, [ecx + edx]
mov dword [ebp - 0x51c], eax
push edx
cmp esi, 7
jbe 0x6b19bf
mov esi, dword [ebp - 0x228]
push esi
push ecx
call fcn.006d8770
mov eax, dword [ebp - 0x51c]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, dword [ebp - 0x530]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x6b19b3
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x6b1b52
mov esi, edx
push ecx
push esi
call fcn.006d6ad4
add esp, 8
jmp 0x6b19db
lea eax, [ebp - 0x228]
push eax
push ecx
call fcn.006d8770
mov eax, dword [ebp - 0x51c]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, dword [ebp - 0x520]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x53c]
lea ecx, [ebp - 0x228]
shr eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00458150
cmp dword [ebp - 0x214], 7
lea ecx, [ebp - 0x524]
push ecx
push 0x20019
lea eax, [ebp - 0x228]
cmova eax, dword [ebp - 0x228]
push 0
push eax
push dword [ebp - 0x528]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x6b1a60
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.006b1b60
add esp, 8
mov esi, eax
push 0x7b2c34
push dword [ebp - 0x52c]
mov byte [ebp - 4], 0xe
push str.Unable_to_open_registry_key_for_joystick_at_index
jmp 0x6b182f
lea eax, [ebp - 0x53c]
mov dword [ebp - 0x53c], 0x200
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push str.OEMName
push dword [ebp - 0x524]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x524]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x6b1aca
lea eax, [ebp - 0x240]
push esi
push eax
call fcn.006b1b60
add esp, 8
mov esi, eax
push 0x7b2c34
push dword [ebp - 0x52c]
mov byte [ebp - 4], 0xf
push str.Unable_to_query_name_for_joystick_at_index
jmp 0x6b182f
xor eax, eax
lea ecx, [ebp - 0x240]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x210]
push eax
call fcn.006a4390
mov ecx, dword [ebp - 0x540]
lea eax, [ebp - 0x240]
push eax
mov byte [ebp - 4], 0x10
call fcn.006a4450
lea ecx, [ebp - 0x240]
call fcn.00454bb0
lea ecx, [ebp - 0x5e8]
call fcn.006b07a0
mov ecx, dword [ebp - 0x214]
cmp ecx, 7
jbe 0x6b1512
mov edx, dword [ebp - 0x228]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x6b1508
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6b1b52
jmp 0x6b1508
call fcn.0044c2e0
call fcn.006e38ad
int3