Function at 0x100038f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2b4
mov dword [ebp - 0x27c], eax
or eax, edx
mov dword [ebp - 0x2a0], edx
mov dword [ebp - 0x294], ecx
je 0x10003f7a
lea eax, [ebp - 0x274]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1001b1d4
mov dword [esp], 0x80000002
mov dword [ebp - 0x278], eax
call eax
mov dword [ebp - 0x28c], eax
sub esp, 0x14
test eax, eax
jne 0x10003f89
mov ebx, dword [sym.imp.advapi32.dll_RegEnumKeyW]
xor esi, esi
lea edi, [ebp - 0x20a]
lea esi, [esi]
nop
mov eax, dword [ebp - 0x274]
mov dword [esp + 4], esi
add esi, 1
mov dword [ebp - 0x270], 0xff
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], edi
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
je 0x10003970
cmp dword [0x10032004], esi
jb 0x10003e90
mov dword [ebp - 0x29c], 0
xor esi, esi
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x280], 0
lea esi, [esi]
lea eax, [ebp - 0x260]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x270]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x268], 0x4e
mov dword [ebp - 0x270], 0xff
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
cmp eax, 0x103
je 0x10003df0
movzx edx, byte [0x1001903c]
test eax, eax
jne 0x10003e20
and edx, 8
jne 0x10003b80
lea eax, [ebp - 0x26c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x274]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x278]
mov dword [esp + 4], edi
call eax
sub esp, 0x14
test eax, eax
je 0x10003ad0
test byte [0x1001903c], 2
je 0x100039d8
mov eax, edi
call fcn.10003260
mov dword [esp + 0xc], str.:_could_not_open_registry_key_for_service_provider__s._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DirectPlayEnumerateAW
mov dword [esp + 4], 0x1001903c
mov dword [esp], 1
call fcn.100037f0
jmp 0x100039d8
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x258]
mov dword [esp + 0xc], 0
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1001b334
mov dword [esp], eax
call ebx
lea edx, [ebp - 0x258]
sub esp, 0x18
test eax, eax
jne 0x10003bb8
cmp dword [ebp - 0x268], 0x4e
je 0x10003c00
test byte [0x1001903c], 2
je 0x100039d8
mov eax, edx
call fcn.10003260
mov ebx, eax
mov eax, edi
call fcn.10003260
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.:_invalid_format_for_the_GUID_registry_data_member_for_service_provider__s___s_._n
mov dword [esp + 8], str.DirectPlayEnumerateAW
mov dword [esp + 4], 0x1001903c
mov dword [esp], 1
call fcn.100037f0
jmp 0x100039d8
mov eax, edi
call fcn.10003260
mov dword [esp + 0xc], str._this_time_through_sub_key__s._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DirectPlayEnumerateAW
mov dword [esp + 4], 0x1001903c
mov dword [esp], 3
call fcn.100037f0
jmp 0x10003a55
test byte [0x1001903c], 2
je 0x100039d8
mov eax, edi
call fcn.10003260
mov dword [esp + 0xc], str.:_missing_GUID_registry_data_member_for_service_provider__s._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DirectPlayEnumerateAW
mov dword [esp + 4], 0x1001903c
mov dword [esp], 1
call fcn.100037f0
jmp 0x100039d8
mov eax, esi
mov dword [esp], edx
shl eax, 4
mov dword [ebp - 0x284], eax
add eax, dword [section..bss]
mov dword [esp + 4], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x264], 0
sub esp, 8
test eax, eax
lea eax, [ebp - 0x264]
mov dword [esp + 0x10], 0
mov dword [ebp - 0x288], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
je 0x10003d30
mov eax, dword [ebp - 0x26c]
mov dword [esp + 4], str.DescriptionA
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
jne 0x10003e48
mov eax, dword [ebp - 0x264]
cmp eax, dword [ebp - 0x298]
ja 0x10003ec8
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x288]
mov dword [esp + 0xc], 0
mov dword [ebp - 0x280], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], str.DescriptionA
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x280]
mov ecx, dword [ebp - 0x294]
sub esp, 0x18
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x284]
add eax, dword [section..bss]
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x27c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 6
call eax
sub esp, 0x14
test eax, eax
je 0x10003df0
add esi, 1
jmp 0x100039d8
mov eax, dword [ebp - 0x26c]
mov dword [esp + 4], str.DescriptionW
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
jne 0x10003ef0
mov eax, dword [ebp - 0x264]
cmp eax, dword [ebp - 0x29c]
ja 0x10003f5a
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x288]
mov dword [esp + 0xc], 0
mov dword [ebp - 0x290], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x26c]
mov dword [esp + 0x14], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], str.DescriptionW
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x290]
mov ecx, dword [ebp - 0x294]
sub esp, 0x18
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x284]
add eax, dword [section..bss]
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 6
call eax
sub esp, 0x14
test eax, eax
jne 0x10003d20
lea esi, [esi]
mov eax, dword [ebp - 0x280]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x290]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x28c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
and edx, 2
jne 0x10003f31
mov dword [ebp - 0x28c], 0x8877005a
mov eax, dword [ebp - 0x28c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x1001903c], 2
je 0x100039d8
mov eax, edi
call fcn.10003260
mov dword [esp + 0xc], str.:_missing_DescriptionA_registry_data_member_for_service_provider__s._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DirectPlayEnumerateAW
mov dword [esp + 4], 0x1001903c
mov dword [esp], 1
call fcn.100037f0
jmp 0x100039d8
mov eax, dword [section..bss]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, esi
shl eax, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [section..bss], eax
test eax, eax
je 0x10003fc9
mov dword [0x10032004], esi
jmp 0x100039ab
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x280]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x298]
jmp 0x10003c97
test byte [0x1001903c], 2
je 0x100039d8
mov eax, edi
call fcn.10003260
mov dword [esp + 0xc], str.:_missing_DescriptionW_registry_data_member_for_service_provider__s._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DirectPlayEnumerateAW
mov dword [esp + 4], 0x1001903c
mov dword [esp], 1
call fcn.100037f0
jmp 0x100039d8
mov dword [esp + 0xc], str.:_could_not_enumerate_on_service_provider_key._n
mov dword [esp + 8], str.DirectPlayEnumerateAW
mov dword [esp + 4], 0x1001903c
mov dword [esp], 1
call fcn.100037f0
jmp 0x10003e29
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp - 0x290]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x29c]
jmp 0x10003d60
mov dword [ebp - 0x28c], 0x80070057
jmp 0x10003e0c
mov dword [ebp - 0x28c], 0x80004005
test byte [0x1001903c], 2
je 0x10003e0c
mov dword [esp + 0xc], str.:_no_service_provider_key_in_the_registry___check_your_Wine_installation_____n
mov dword [esp + 8], str.DirectPlayEnumerateAW
mov dword [esp + 4], 0x1001903c
mov dword [esp], 1
call fcn.100037f0
jmp 0x10003e0c
mov dword [ebp - 0x28c], 0x8877005a
test byte [0x1001903c], 2
je 0x10003e0c
mov dword [esp + 0xc], str.:_failed_to_allocate_required_memory._n
mov dword [esp + 8], str.DirectPlayEnumerateAW
mov dword [esp + 4], 0x1001903c
mov dword [esp], 1
call fcn.100037f0
jmp 0x10003e0c