Function at 0x10003790
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 - 0x28c], ecx
mov ecx, edx
or ecx, eax
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x2a0], edx
je 0x10003e10
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], 0x1001b1b8
mov dword [esp], 0x80000002
mov dword [ebp - 0x278], eax
call eax
sub esp, 0x14
mov dword [ebp - 0x288], eax
test eax, eax
jne 0x10003e1f
mov ebx, dword [sym.imp.advapi32.dll_RegEnumKeyW]
lea esi, [ebp - 0x20a]
xor edi, edi
lea esi, [esi]
mov dword [ebp - 0x270], 0xff
mov dword [esp + 4], edi
add edi, 1
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x274]
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
je 0x10003810
cmp dword [0x1002d004], edi
jb 0x10003d20
mov dword [ebp - 0x29c], 0
xor ebx, ebx
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x284], 0
lea esi, [esi]
mov dword [ebp - 0x268], 0x4e
lea eax, [ebp - 0x260]
mov dword [ebp - 0x270], 0xff
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x270]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x274]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
cmp eax, 0x103
je 0x10003c80
movzx edx, byte [0x1001903c]
test eax, eax
jne 0x10003cb0
and edx, 8
jne 0x10003a18
lea eax, [ebp - 0x26c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x274]
mov dword [esp], eax
mov eax, dword [ebp - 0x278]
call eax
sub esp, 0x14
test eax, eax
je 0x10003970
test byte [0x1001903c], 2
je 0x10003878
mov eax, esi
call fcn.10003220
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.10003740
jmp 0x10003878
lea eax, [ebp - 0x268]
mov dword [esp + 0xc], 0
lea edi, [ebp - 0x258]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1001b318
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x10003a50
cmp dword [ebp - 0x268], 0x4e
je 0x10003a98
test byte [0x1001903c], 2
je 0x10003878
mov eax, edi
call fcn.10003220
mov edi, eax
mov eax, esi
call fcn.10003220
mov dword [esp + 0x14], edi
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.10003740
jmp 0x10003878
mov eax, esi
call fcn.10003220
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.10003740
jmp 0x100038f5
test byte [0x1001903c], 2
je 0x10003878
mov eax, esi
call fcn.10003220
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.10003740
jmp 0x10003878
mov eax, ebx
shl eax, 4
mov dword [ebp - 0x280], eax
add eax, dword [section..bss]
mov dword [esp], edi
lea edi, [ebp - 0x264]
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
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
test eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
je 0x10003bc0
mov dword [esp + 4], str.DescriptionA
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [ebp - 0x290], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x10003cd8
mov eax, dword [ebp - 0x264]
cmp dword [ebp - 0x294], eax
jb 0x10003d58
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x284], eax
mov dword [esp + 0x14], edi
mov edi, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.DescriptionA
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
mov eax, dword [ebp - 0x290]
call eax
mov eax, dword [ebp - 0x28c]
sub esp, 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 8], 6
mov dword [esp + 0x10], eax
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x280]
add eax, dword [section..bss]
mov dword [esp], eax
mov eax, dword [ebp - 0x27c]
call eax
sub esp, 0x14
test eax, eax
je 0x10003c80
add ebx, 1
jmp 0x10003878
mov dword [esp + 4], str.DescriptionW
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x10003d80
mov eax, dword [ebp - 0x264]
cmp dword [ebp - 0x29c], eax
jb 0x10003dea
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x298], eax
mov dword [esp + 0x14], edi
mov edi, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.DescriptionW
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x28c]
sub esp, 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 8], 6
mov dword [esp + 0x10], eax
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x280]
add eax, dword [section..bss]
mov dword [esp], eax
mov eax, dword [ebp - 0x2a0]
call eax
sub esp, 0x14
test eax, eax
jne 0x10003bb3
lea esi, [esi]
nop
mov eax, dword [ebp - 0x284]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x298]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x288]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
and edx, 2
jne 0x10003dc1
mov dword [ebp - 0x288], 0x8877005a
mov eax, dword [ebp - 0x288]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x1001903c], 2
je 0x10003878
mov eax, esi
call fcn.10003220
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.10003740
jmp 0x10003878
mov eax, dword [section..bss]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, edi
shl eax, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [section..bss], eax
test eax, eax
je 0x10003e5d
mov dword [0x1002d004], edi
jmp 0x1000384b
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x284]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x294]
jmp 0x10003b2e
test byte [0x1001903c], 2
je 0x10003878
mov eax, esi
call fcn.10003220
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.10003740
jmp 0x10003878
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.10003740
jmp 0x10003cb9
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x298]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x29c], eax
jmp 0x10003bf4
mov dword [ebp - 0x288], 0x80070057
jmp 0x10003c9c
test byte [0x1001903c], 2
jne 0x10003e37
mov dword [ebp - 0x288], 0x80004005
jmp 0x10003c9c
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.10003740
jmp 0x10003e28
test byte [0x1001903c], 2
je 0x10003cb9
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.10003740
jmp 0x10003cb9