Function at 0x10004a00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x164
mov ebx, dword [ebp + 0x18]
test byte [0x1001a03c], 8
jne 0x10004a70
test ebx, ebx
mov eax, 1
cmovne eax, ebx
mov dword [ebp - 0x144], eax
test al, 3
je 0x10005362
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100053be
test al, 1
jne 0x10004ac0
mov dword [ebp - 0x148], 0
test byte [ebp - 0x144], 2
jne 0x10004df8
mov eax, dword [ebp - 0x148]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], str.__p_____p__p__p_0x_08lx__n
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], str.IDirectPlay4AImpl_EnumConnections
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0x1001a03c
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp], 3
sub eax, 0x14
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004a18
lea eax, [ebp - 0x130]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov dword [ebp - 0x12c], 0x32
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1001c3e4
mov dword [esp], 0x80000002
mov dword [ebp - 0x13c], eax
call eax
sub esp, 0x14
test eax, eax
jne 0x10005240
lea eax, [ebp - 0x12c]
xor ebx, ebx
lea edi, [ebp - 0xd8]
mov dword [ebp - 0x134], eax
mov eax, dword [sym.imp.advapi32.dll_RegEnumKeyExA]
mov dword [ebp - 0x138], eax
jmp 0x10004b4a
test byte [0x1001a03c], 2
jne 0x10004d98
mov dword [ebp - 0x12c], 0x33
add ebx, 1
lea eax, [ebp - 0x110]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x134]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x130]
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x138]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
call eax
sub esp, 0x20
cmp eax, 0x103
je 0x10004a43
mov dword [ebp - 0x120], 0x32
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
test byte [0x1001a03c], 8
jne 0x10004c70
lea eax, [ebp - 0x128]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x130]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp + 4], edi
call eax
sub esp, 0x14
test eax, eax
jne 0x10004b30
lea eax, [ebp - 0x120]
lea esi, [ebp - 0xa5]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x124]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x128]
mov dword [esp + 0x10], esi
mov dword [esp + 4], 0x1001c463
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
je 0x10004ca0
test byte [0x1001a03c], 2
jne 0x10004dc8
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x10004b3d
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x1001c42d
mov dword [esp + 8], str.IDirectPlay4AImpl_EnumConnections
mov dword [esp + 4], 0x1001a03c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004bc8
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea edx, [ebp - 0x72]
sub esp, 4
mov dword [esp + 0x10], edx
mov dword [esp + 8], esi
lea esi, [ebp - 0x100]
mov dword [esp + 0x14], 0x33
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
lea edx, [ebp - 0x72]
sub esp, 0x18
mov dword [esp], edx
mov dword [esp + 4], esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea ecx, [ebp - 0x118]
mov eax, esi
lea edx, [ebp - 0x11c]
sub esp, 8
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xf0], 0x10
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe4], 0
call sym._DP_BuildSPCompoundAddr
test eax, eax
je 0x10005280
mov eax, dword [ebp + 0x14]
mov dword [esp], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xf0]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x118]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], eax
call dword [ebp + 0x10]
sub esp, 0x18
test eax, eax
je 0x100052c0
mov eax, dword [ebp - 0x11c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10004b3d
mov dword [esp + 0xc], 0x1001c445
mov dword [esp + 8], str.IDirectPlay4AImpl_EnumConnections
mov dword [esp + 4], 0x1001a03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004b3d
mov dword [esp + 0xc], 0x1001c468
mov dword [esp + 8], str.IDirectPlay4AImpl_EnumConnections
mov dword [esp + 4], 0x1001a03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004c53
lea eax, [ebp - 0x130]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov dword [ebp - 0x12c], 0x32
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftDirectPlayLobby_Providers
mov dword [esp], 0x80000002
mov dword [ebp - 0x13c], eax
call eax
mov dword [ebp - 0x148], eax
sub esp, 0x14
test eax, eax
jne 0x10004fb8
lea eax, [ebp - 0x118]
lea edi, [ebp - 0xd8]
xor esi, esi
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x134], eax
mov eax, dword [sym.imp.advapi32.dll_RegEnumKeyExA]
mov dword [ebp - 0x138], eax
mov eax, edi
mov edi, esi
mov esi, eax
jmp 0x10004e9a
test byte [0x1001a03c], 2
jne 0x100051e0
mov dword [ebp - 0x12c], 0x33
add edi, 1
mov eax, dword [ebp - 0x140]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x134]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x130]
mov dword [esp + 8], esi
mov dword [esp], eax
mov eax, dword [ebp - 0x138]
mov dword [esp + 4], edi
call eax
sub esp, 0x20
cmp eax, 0x103
je 0x10004a5a
mov dword [ebp - 0x120], 0x32
mov dword [ebp - 0x11c], 0
test byte [0x1001a03c], 8
jne 0x10005000
lea eax, [ebp - 0x128]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x130]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp + 4], esi
call eax
sub esp, 0x14
test eax, eax
jne 0x10004e80
lea eax, [ebp - 0x120]
lea ebx, [ebp - 0xa5]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x124]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x128]
mov dword [esp + 0x10], ebx
mov dword [esp + 4], 0x1001c463
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
je 0x10005030
test byte [0x1001a03c], 2
jne 0x10005210
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x10004e8d
mov dword [ebp - 0x148], 0
test byte [0x1001a03c], 8
je 0x10004a5a
mov dword [esp + 0xc], str.No_Lobby_Providers_have_been_registered._n
mov dword [esp + 8], str.IDirectPlay4AImpl_EnumConnections
mov dword [esp + 4], 0x1001a03c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004a5a
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x1001c42d
mov dword [esp + 8], str.IDirectPlay4AImpl_EnumConnections
mov dword [esp + 4], 0x1001a03c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004f0e
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea edx, [ebp - 0x72]
sub esp, 4
mov dword [esp + 0x10], edx
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x110]
mov dword [esp + 0x14], 0x33
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
lea edx, [ebp - 0x72]
sub esp, 0x18
mov dword [esp + 4], ebx
mov dword [esp], edx
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov eax, dword [0x10021fb0]
mov dword [ebp - 0x100], 0x10
sub esp, 8
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xf0], eax
mov eax, dword [0x10021fb4]
mov dword [esp + 0x10], 1
mov dword [ebp - 0xec], eax
mov eax, dword [0x10021fb8]
mov dword [esp + 8], 0
mov dword [ebp - 0xe8], eax
mov eax, dword [0x10021fbc]
mov dword [esp + 4], 1
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0xf0]
mov dword [esp], eax
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xe0], 0x10
mov dword [ebp - 0xdc], ebx
call sym._DPL_CreateCompoundAddress
cmp eax, 0x8877001e
jne 0x100052da
mov eax, dword [ebp - 0x11c]
mov dword [esp], 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_calloc]
mov dword [esp + 0x10], 1
mov edx, eax
lea eax, [ebp - 0x11c]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
lea eax, [ebp - 0xf0]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [ebp - 0x14c], edx
call sym._DPL_CreateCompoundAddress
mov edx, dword [ebp - 0x14c]
test eax, eax
jne 0x10005322
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [ebp - 0x14c], edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x144]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x100]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp + 8], eax
call dword [ebp + 0x10]
mov edx, dword [ebp - 0x14c]
sub esp, 0x18
test eax, eax
mov dword [esp], edx
je 0x1000534d
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10004e8d
mov dword [esp + 0xc], 0x1001c445
mov dword [esp + 8], str.IDirectPlay4AImpl_EnumConnections
mov dword [esp + 4], 0x1001a03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004e8d
mov dword [esp + 0xc], 0x1001c468
mov dword [esp + 8], str.IDirectPlay4AImpl_EnumConnections
mov dword [esp + 4], 0x1001a03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004f9d
mov dword [ebp - 0x148], 0
test byte [0x1001a03c], 2
je 0x10004a5a
mov dword [esp + 0xc], 0x1001c414
mov dword [esp + 8], str.IDirectPlay4AImpl_EnumConnections
mov dword [esp + 4], 0x1001a03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004a5a
mov dword [ebp - 0x148], 0x80004005
test byte [0x1001a03c], 2
je 0x10004a5a
mov dword [esp + 0xc], str.Cant_build_compound_addr_n
mov dword [esp + 8], str.IDirectPlay4AImpl_EnumConnections
mov dword [esp + 4], 0x1001a03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004a5a
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10004a5a
mov dword [ebp - 0x148], eax
test byte [0x1001a03c], 2
je 0x10004a5a
mov dword [esp], eax
call sym._DPLAYX_HresultToString
mov dword [esp + 0xc], str.cant_get_buffer_size:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.IDirectPlay4AImpl_EnumConnections
mov dword [esp + 4], 0x1001a03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004a5a
mov ecx, eax
test byte [0x1001a03c], 2
jne 0x10005371
mov dword [ebp - 0x134], ecx
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x148], ecx
jmp 0x10004a5a
call dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x148], 0
jmp 0x10004a5a
mov dword [ebp - 0x148], 0x88770078
jmp 0x10004a5a
mov dword [esp], eax
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x134], eax
call sym._DPLAYX_HresultToString
mov dword [esp + 0xc], str.cant_create_address:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.IDirectPlay4AImpl_EnumConnections
mov dword [esp + 4], 0x1001a03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
jmp 0x1000532d
mov dword [ebp - 0x148], 0x80070057
jmp 0x10004a5a