Function at 0x10006ce0
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
lea ecx, [ebp + 8]
sub esp, 0x6c
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov edi, dword [ecx + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x44], eax
test byte [0x1001c03c], 8
jne 0x10006f30
mov eax, dword [ebx + 0x3c]
mov edx, dword [eax + 0x78]
test edx, edx
je 0x10007100
mov esi, dword [eax]
test esi, esi
jne 0x10007182
mov esi, dword [eax + 0x6c]
test esi, esi
je 0x10006da6
mov ecx, dword [eax + 0x58]
test ecx, ecx
jne 0x10006f80
test byte [0x1001c03c], 4
jne 0x10006f90
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x40]
mov eax, 0x10024710
call sym._DP_BuildSPCompoundAddr
test eax, eax
je 0x10007179
mov edx, dword [ebp - 0x40]
mov eax, dword [ebx]
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [ebp - 0x54], edx
mov dword [esp], ebx
call dword [eax + 0x98]
sub esp, 0xc
mov esi, eax
test eax, eax
js 0x10006f23
mov edx, dword [ebp - 0x54]
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebx + 0x3c]
mov dword [eax + 0x58], 1
test edi, edi
je 0x10006e30
mov eax, dword [ebx + 0x3c]
test byte [ebp - 0x44], 0x20
jne 0x10006e6b
mov edx, dword [eax + 0x10]
test byte [ebp - 0x44], 0x10
je 0x10006ed0
mov eax, dword [ebp - 0x4c]
mov ecx, edi
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call sym._DP_InvokeEnumSessionCallbacks
mov eax, dword [ebx + 0x3c]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x1000716f
cmp dword [eax + 4], 0xffffffff
jne 0x10006f23
mov dword [eax + 0xc], 1
mov eax, dword [ebx + 0x3c]
add eax, 0x30
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov esi, dword [ebp - 0x50]
lea eax, [esi + 0x18]
mov dword [esp], eax
call sym._NS_SendSessionRequestBroadcast
mov esi, eax
test eax, eax
jns 0x10006fc0
mov eax, dword [ebx + 0x3c]
sub dword [eax + 0xc], 1
jmp 0x10006f23
mov eax, dword [ebx]
lea edx, [ebp - 0x38]
mov dword [ebp - 0x38], 0x28
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], ebx
call dword [eax + 0x38]
mov edi, dword [ebp - 0x14]
mov eax, 0x1388
sub esp, 0xc
test edi, edi
cmove edi, eax
mov eax, dword [ebx + 0x3c]
test byte [ebp - 0x44], 0x20
je 0x10006dbb
mov edx, dword [eax + 4]
cmp edx, 0xffffffff
je 0x10006f23
test byte [0x1001c03c], 8
jne 0x100070d0
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov eax, dword [ebx + 0x3c]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [eax + 8]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x3c]
sub esp, 4
mov eax, dword [eax + 4]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x3c]
sub esp, 4
mov dword [eax + 4], 0xffffffff
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov dword [esp], edx
call sym._NS_InvalidateSessionCache
mov eax, dword [ebx + 0x3c]
add eax, 0x30
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
add eax, 0x18
mov dword [esp], eax
call sym._NS_SendSessionRequestBroadcast
mov dword [esp + 4], 0
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.kernel32.dll_SleepEx]
mov eax, dword [ebx + 0x3c]
mov ecx, edi
sub esp, 8
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call sym._DP_InvokeEnumSessionCallbacks
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0xc], str.__p_____p_0x_08lx__p__p_0x_08lx__n
mov dword [esp + 0x14], eax
lea eax, [ebx - 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.IDirectPlay4Impl_EnumSessions
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
jmp 0x10006d17
xor esi, esi
test edi, edi
jne 0x10006dae
jmp 0x10006e30
mov dword [esp + 0xc], str.Hack_providing_TCP_IP_SP_for_lobby_provider_activated_n
mov dword [esp + 8], str.IDirectPlay4Impl_EnumSessions
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.3
jmp 0x10006d4e
mov dword [esp + 4], 0x20
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ecx, dword [ebx + 0x3c]
mov edx, eax
mov dword [ebp - 0x48], ecx
lea eax, [ecx + 0x30]
mov ecx, dword [ebp - 0x50]
mov dword [edx], eax
mov eax, dword [ebp - 0x44]
movdqu xmm0, xmmword [ecx + 0x18]
mov dword [edx + 0x18], edi
mov dword [edx + 0x14], eax
movups xmmword [edx + 4], xmm0
mov dword [ebp - 0x44], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov ecx, dword [ebp - 0x48]
sub esp, 0x10
mov dword [ecx + 8], eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov edx, dword [ebp - 0x44]
mov dword [esp + 8], 0xffffffff
lea eax, [edx + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + 8]
mov dword [esp], 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
mov edx, dword [ebp - 0x44]
sub esp, 0x1c
test eax, eax
movzx eax, byte [0x1001c03c]
jne 0x10007082
test al, 2
jne 0x10007139
test al, 8
jne 0x1000710a
mov edi, dword [ebx + 0x3c]
lea eax, [ebp - 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], sym._DP_EnumSessionsSendAsyncRequestThread_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [edi + 4], eax
sub esp, 0x18
jmp 0x10006e20
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Killing_EnumSession_thread__p_n
mov dword [esp + 8], str.DP_KillEnumSessionThread
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
mov eax, dword [ebx + 0x3c]
jmp 0x10006e84
mov esi, 0x88770140
jmp 0x10006f23
mov dword [ebp - 0x44], edx
mov dword [esp + 0xc], str.:_creating_EnumSessionsRequest_thread_n
mov dword [esp + 8], str.IDirectPlay4Impl_EnumSessions
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
mov edx, dword [ebp - 0x44]
jmp 0x1000708a
mov dword [ebp - 0x44], edx
mov dword [esp + 0xc], str.Cant_duplicate_thread_killing_handle_n
mov dword [esp + 8], str.IDirectPlay4Impl_EnumSessions
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [0x1001c03c]
mov edx, dword [ebp - 0x44]
jmp 0x10007082
mov esi, 0x8877015e
jmp 0x10006f23
test byte [0x1001c03c], 2
jne 0x1000718c
mov esi, 0x80004005
jmp 0x10006f23
mov dword [esp + 0xc], str.Cant_build_compound_addr_n
mov dword [esp + 8], str.IDirectPlay4Impl_EnumSessions
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10007182