Function at 0x42b5d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6b32
mov eax, dword fs:[0]
push eax
sub esp, 0x5e8
mov eax, dword [0x5a9824]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
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 - 0x548], eax
lea edi, [ebp - 0x530]
mov ecx, 0xb6
mov dword [ebp - 0x540], eax
mov eax, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x53c], eax
mov dword [ebp - 0x550], 0
push 1
mov dword [ebp - 4], 0
call fcn.004b9ccb
add esp, 4
mov dword [ebp - 0x548], eax
lea eax, [ebp - 0x54c]
mov dword [ebp - 4], 1
push eax
push str.Unknown_Joystick
lea ecx, [ebp - 0x258]
call fcn.0042ef00
mov ecx, dword [ebp - 0x548]
test ecx, ecx
je 0x42b680
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x42b680
mov eax, dword [ecx]
push 1
call dword [eax]
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
push 0x38
push str.SystemCurrentControlSetControlMediaResourcesJoystick
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 4
call fcn.0040ed30
mov ebx, dword [ebp - 0x218]
mov edx, 0x7ffffffe
mov edi, dword [ebp - 0x214]
cmp ebx, edi
jae 0x42b6f7
lea eax, [ebx + 1]
cmp edi, 8
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
mov dword [eax + ebx*2], 0x5c
jmp 0x42b7c3
mov eax, edx
sub eax, ebx
cmp eax, 1
jb 0x42c0dd
lea esi, [ebx + 1]
or esi, 7
cmp esi, edx
jbe 0x42b712
mov esi, edx
jmp 0x42b72a
mov ecx, edi
mov eax, edx
shr ecx, 1
sub eax, ecx
cmp edi, eax
jbe 0x42b722
mov esi, edx
jmp 0x42b72a
lea eax, [ecx + edi]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x228]
call fcn.00409b10
mov dword [ebp - 0x534], eax
lea ecx, [ebx + 1]
mov dword [ebp - 0x218], ecx
lea ecx, [ebx + ebx]
mov dword [ebp - 0x214], esi
lea ebx, [ecx + eax]
push ecx
cmp edi, 8
jb 0x42b7a1
mov esi, dword [ebp - 0x228]
push esi
push eax
call fcn.004bf500
lea edi, [edi*2 + 2]
mov dword [ebx], 0x5c
add esp, 0xc
cmp edi, 0x1000
jb 0x42b795
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x42c0e2
mov esi, ecx
push edi
push esi
call fcn.004bb64a
add esp, 8
jmp 0x42b7b7
lea ecx, [ebp - 0x228]
push ecx
push eax
call fcn.004bf500
add esp, 0xc
mov dword [ebx], 0x5c
mov eax, dword [ebp - 0x534]
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x4a0]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b7d0
sub ecx, edx
lea eax, [ebp - 0x4a0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.0042a1d0
mov ebx, dword [ebp - 0x218]
mov edi, dword [ebp - 0x214]
cmp ebx, edi
jae 0x42b827
lea eax, [ebx + 1]
cmp edi, 8
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
mov dword [eax + ebx*2], 0x5c
jmp 0x42b8f8
mov edx, 0x7ffffffe
mov eax, edx
sub eax, ebx
cmp eax, 1
jb 0x42c0dd
lea esi, [ebx + 1]
or esi, 7
cmp esi, edx
jbe 0x42b847
mov esi, edx
jmp 0x42b85f
mov ecx, edi
mov eax, edx
shr ecx, 1
sub eax, ecx
cmp edi, eax
jbe 0x42b857
mov esi, edx
jmp 0x42b85f
lea eax, [ecx + edi]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x228]
call fcn.00409b10
mov dword [ebp - 0x534], eax
lea ecx, [ebx + 1]
mov dword [ebp - 0x218], ecx
lea ecx, [ebx + ebx]
mov dword [ebp - 0x214], esi
lea ebx, [ecx + eax]
push ecx
cmp edi, 8
jb 0x42b8d6
mov esi, dword [ebp - 0x228]
push esi
push eax
call fcn.004bf500
lea edi, [edi*2 + 2]
mov dword [ebx], 0x5c
add esp, 0xc
cmp edi, 0x1000
jb 0x42b8ca
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x42c0e2
mov esi, ecx
push edi
push esi
call fcn.004bb64a
add esp, 8
jmp 0x42b8ec
lea ecx, [ebp - 0x228]
push ecx
push eax
call fcn.004bf500
add esp, 0xc
mov dword [ebx], 0x5c
mov eax, dword [ebp - 0x534]
mov dword [ebp - 0x228], eax
push 0x17
push str.CurrentJoystickSettings
lea ecx, [ebp - 0x228]
call fcn.0042a1d0
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x538]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
mov dword [ebp - 0x548], 0x80000001
call ebx
test eax, eax
je 0x42ba93
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x538]
push ecx
push 0x20019
lea eax, [ebp - 0x228]
mov dword [ebp - 0x548], 0x80000002
cmovae eax, dword [ebp - 0x228]
push 0
push eax
push 0x80000002
call ebx
test eax, eax
je 0x42ba93
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0042c0f0
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x53c]
push 0x5a1328
push eax
push str.Unable_to_open_registry_for_joystick_at_index
mov byte [ebp - 4], 5
call fcn.0042f670
push eax
call fcn.00405940
add esp, 8
mov ecx, eax
call fcn.0040eb50
push eax
call fcn.00405940
add esp, 8
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x42b9d7
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.0040ee70
push eax
call fcn.00405be0
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x240]
call fcn.00403a50
mov esi, dword [ebp - 0x540]
lea eax, [ebp - 0x258]
push eax
mov ecx, esi
call fcn.0042ee30
mov edx, dword [ebp - 0x214]
cmp edx, 8
jb 0x42ba4d
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42ba43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c0e2
push edx
push ecx
call fcn.004bb64a
add esp, 8
xor eax, eax
mov dword [ebp - 0x218], 0
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
call fcn.00408bb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb607
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x5f4], 0x4f0cfc
mov dword [ebp - 0x59c], 0
mov dword [ebp - 0x57c], 0
mov dword [ebp - 0x578], 0
mov dword [ebp - 0x574], 0
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
push 0
push 0
lea eax, [ebp - 0x5f0]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x5f4]
mov dword [ebp - 0x550], 2
call fcn.004284d0
mov eax, dword [ebp - 0x5f4]
push 8
mov dword [ebp - 4], 7
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 - 0x5f4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x5f8], 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
call fcn.004bb61a
mov edi, eax
add esp, 4
test edi, edi
je 0x42bb4e
push 1
mov byte [ebp - 4], 8
call fcn.004b9ccb
add esp, 4
mov dword [edi + 4], eax
jmp 0x42bb50
xor edi, edi
lea eax, [ebp - 0x5ec]
mov dword [ebp - 0x5bc], edi
mov dword [ebp - 0x5e4], eax
lea eax, [ebp - 0x5e8]
mov dword [ebp - 0x5e0], eax
lea eax, [ebp - 0x5dc]
mov dword [ebp - 0x5d4], eax
lea eax, [ebp - 0x5d8]
mov dword [ebp - 0x5d0], eax
lea eax, [ebp - 0x5cc]
mov dword [ebp - 0x5c4], eax
lea eax, [ebp - 0x5c8]
mov dword [ebp - 0x5c0], eax
mov dword [ebp - 0x5e8], 0
mov dword [ebp - 0x5d8], 0
mov dword [ebp - 0x5c8], 0
mov dword [ebp - 0x5ec], 0
mov dword [ebp - 0x5dc], 0
mov dword [ebp - 0x5cc], 0
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 - 0x5b8], 0
mov dword [ebp - 0x5b4], 4
mov eax, dword [ebp - 0x53c]
lea ecx, [ebp - 0x5f4]
inc eax
mov byte [ebp - 4], 9
push eax
call fcn.00428cd0
push 8
push str.Joystick
lea ecx, [ebp - 0x228]
call fcn.0040ed30
mov edx, dword [ebp - 0x5b4]
xor eax, eax
mov dword [ebp - 0x240], 0
xor ebx, ebx
mov word [ebp - 0x240], ax
xorps xmm0, xmm0
mov eax, edx
mov byte [ebp - 4], 0xa
and al, 0x22
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x550], 0xa
movq qword [ebp - 0x55c], xmm0
cmp al, 2
je 0x42bc94
mov eax, dword [ebp - 0x5d0]
mov ecx, dword [eax]
test ecx, ecx
je 0x42bc94
cmp ecx, dword [ebp - 0x5b8]
mov eax, dword [ebp - 0x5e0]
cmovb ecx, dword [ebp - 0x5b8]
mov edx, dword [eax]
sub ecx, edx
sar ecx, 1
jmp 0x42bccb
test dl, 4
jne 0x42bcbf
mov eax, dword [ebp - 0x5d4]
mov edi, dword [eax]
test edi, edi
je 0x42bcbf
mov eax, dword [ebp - 0x5e4]
mov edx, dword [eax]
mov eax, dword [ebp - 0x5c4]
mov ecx, dword [eax]
add ecx, ecx
sub ecx, edx
add ecx, edi
sar ecx, 1
jmp 0x42bccb
mov ecx, dword [ebp - 0x558]
mov edx, dword [ebp - 0x55c]
test edx, edx
je 0x42bce2
push ecx
push edx
lea ecx, [ebp - 0x240]
call fcn.0040ed30
mov ebx, dword [ebp - 0x230]
cmp dword [ebp - 0x22c], 8
lea eax, [ebp - 0x240]
push ebx
cmovae eax, dword [ebp - 0x240]
lea ecx, [ebp - 0x228]
push eax
mov dword [ebp - 4], 0xb
call fcn.0042a1d0
mov edx, dword [ebp - 0x22c]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x42bd4e
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42bd44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c0e2
push edx
push ecx
call fcn.004bb64a
add esp, 8
push 7
push str.OEMName
lea ecx, [ebp - 0x228]
call fcn.0042a1d0
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x544]
push ecx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x544], 0x200
push ecx
push 0
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push 0
push eax
push dword [ebp - 0x538]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x538]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x42be47
lea eax, [ebp - 0x240]
push edi
push eax
call fcn.0042c0f0
add esp, 8
mov esi, eax
push 0x5a1328
push dword [ebp - 0x53c]
mov byte [ebp - 4], 0xc
push str.Unable_to_query_registry_key_for_joystick_at_index
call fcn.0042f670
push eax
call fcn.00405940
add esp, 8
mov ecx, eax
call fcn.0040eb50
push eax
call fcn.00405940
add esp, 8
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x42be01
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.0040ee70
push eax
call fcn.00405be0
add esp, 0x10
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x240]
call fcn.00403a50
mov esi, dword [ebp - 0x540]
lea eax, [ebp - 0x258]
push eax
mov ecx, esi
call fcn.0042ee30
lea ecx, [ebp - 0x5f4]
call fcn.00428f80
jmp 0x42ba0d
push 0x4f
push str.SystemCurrentControlSetControlMediaPropertiesPrivatePropertiesJoystickOEM
lea ecx, [ebp - 0x228]
call fcn.0040ed30
mov ebx, dword [ebp - 0x218]
mov edi, dword [ebp - 0x214]
cmp ebx, edi
jae 0x42be8e
lea eax, [ebx + 1]
cmp edi, 8
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
mov dword [eax + ebx*2], 0x5c
jmp 0x42bf5f
mov ecx, 0x7ffffffe
mov eax, ecx
sub eax, ebx
cmp eax, 1
jb 0x42c0dd
lea esi, [ebx + 1]
or esi, 7
cmp esi, ecx
jbe 0x42beae
mov esi, ecx
jmp 0x42bec6
mov eax, edi
shr eax, 1
sub ecx, eax
cmp edi, ecx
jbe 0x42bebf
mov esi, 0x7ffffffe
jmp 0x42bec6
add eax, edi
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x228]
call fcn.00409b10
mov dword [ebp - 0x534], eax
lea ecx, [ebx + 1]
mov dword [ebp - 0x218], ecx
lea ecx, [ebx + ebx]
mov dword [ebp - 0x214], esi
lea ebx, [eax + ecx]
push ecx
cmp edi, 8
jb 0x42bf3d
mov esi, dword [ebp - 0x228]
push esi
push eax
call fcn.004bf500
lea edi, [edi*2 + 2]
mov dword [ebx], 0x5c
add esp, 0xc
cmp edi, 0x1000
jb 0x42bf31
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x42c0e2
mov esi, ecx
push edi
push esi
call fcn.004bb64a
add esp, 8
jmp 0x42bf53
lea ecx, [ebp - 0x228]
push ecx
push eax
call fcn.004bf500
add esp, 0xc
mov dword [ebx], 0x5c
mov eax, dword [ebp - 0x534]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x544]
lea ecx, [ebp - 0x228]
shr eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0042a1d0
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x538]
push ecx
push 0x20019
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push 0
push eax
push dword [ebp - 0x548]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42bfd8
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0042c0f0
add esp, 8
mov esi, eax
push 0x5a1328
push dword [ebp - 0x53c]
mov byte [ebp - 4], 0xd
push str.Unable_to_open_registry_key_for_joystick_at_index
jmp 0x42bdd9
lea eax, [ebp - 0x544]
mov dword [ebp - 0x544], 0x200
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push str.OEMName
push dword [ebp - 0x538]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x538]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42c042
lea eax, [ebp - 0x240]
push esi
push eax
call fcn.0042c0f0
add esp, 8
mov esi, eax
push 0x5a1328
push dword [ebp - 0x53c]
mov byte [ebp - 4], 0xe
push str.Unable_to_query_name_for_joystick_at_index
jmp 0x42bdd9
xor eax, eax
lea ecx, [ebp - 0x240]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x210]
push eax
call fcn.0042efb0
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x258]
call fcn.0042f050
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 9
call fcn.00408bb0
mov esi, dword [ebp - 0x540]
lea eax, [ebp - 0x258]
push eax
mov ecx, esi
call fcn.0042ee30
lea ecx, [ebp - 0x5f4]
call fcn.00428f80
mov edx, dword [ebp - 0x214]
cmp edx, 8
jb 0x42ba4d
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42ba43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c0e2
jmp 0x42ba43
call fcn.00402f50
call fcn.004c4225
int3