Function at 0x10004300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edi
sub esp, 0x6c
mov eax, dword [ebx]
mov dword [ebp - 0x48], edi
mov edi, edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x34], eax
test byte [0x1001c03c], 8
jne 0x10004600
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x78]
test eax, eax
je 0x10004960
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x10004580
test edi, edi
je 0x100049a4
mov dword [ebp - 0x28], 8
cmp dword [edi], 0xffffffff
je 0x100045db
mov dword [ebp - 0x2c], 0
movzx eax, byte [0x1001c03c]
test al, 8
jne 0x10004658
mov eax, dword [sym.imp.ucrtbase.dll_calloc]
mov dword [esp + 4], 0x34
mov dword [esp], 1
mov dword [ebp - 0x44], eax
call eax
mov ebx, eax
test eax, eax
je 0x1000496c
mov eax, dword [edi]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov dword [ebx], eax
lea eax, [ebx + 4]
call sym._DP_CopyDPNAMEStruct.isra.0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
mov dword [ebx + 0x30], eax
test ecx, ecx
je 0x10004420
lea eax, [ebx + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], ecx
mov dword [esp], 0xffffffff
call dword [sym.imp.kernel32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
jne 0x10004420
test byte [0x1001c03c], 2
jne 0x10004800
nop
call sym._DPSP_CreateSPPlayerData
mov dword [ebx + 0x2c], eax
test byte [0x1001c03c], 8
jne 0x100046a0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x10004446
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x1c]
add dword [eax + 0x2c], 1
mov dword [esp + 4], 0xc
mov dword [esp], 1
mov eax, dword [ebp - 0x44]
call eax
mov edx, eax
test eax, eax
je 0x10004982
mov edx, dword [esi + 0x54]
mov dword [ebx + 0x18], 1
mov dword [eax + 8], ebx
mov dword [eax], 0
mov ecx, dword [edx + 0x18]
mov ecx, dword [ecx + 0x14]
mov dword [eax + 4], ecx
mov edx, dword [edx + 0x18]
mov edx, dword [edx + 0x14]
mov dword [edx], eax
mov edx, dword [esi + 0x54]
mov edx, dword [edx + 0x18]
mov dword [edx + 0x14], eax
mov ecx, dword [ebx + 0x28]
test ecx, ecx
jne 0x10004908
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x100044ce
mov edx, dword [ebp - 0x40]
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x40]
mov dword [ebx + 0x24], eax
mov dword [esp + 8], edx
mov ecx, dword [ebp - 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym._memcpy
mov edx, dword [ebp - 0x40]
mov dword [ebx + 0x28], edx
mov eax, dword [esi + 0x54]
mov edx, dword [eax + 0x30]
mov ecx, dword [edx + 0x20]
test ecx, ecx
je 0x10004527
movd xmm0, dword [edi]
movd xmm2, dword [ebp - 0x28]
mov dword [ebp - 0x18], 0
movdqu xmm1, xmm0
punpckldq xmm1, xmm2
movq qword [ebp - 0x20], xmm1
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x14], eax
test byte [0x1001c03c], 8
jne 0x10004718
lea eax, [ebp - 0x20]
mov dword [esp], eax
call ecx
mov dword [ebp - 0x2c], eax
sub esp, 4
test eax, eax
js 0x100046d0
mov eax, dword [esi + 0x54]
mov edx, dword [eax + 0x30]
mov edx, dword [edx + 0x14]
test edx, edx
je 0x10004566
mov ecx, dword [edi]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x18], eax
test byte [0x1001c03c], 8
jne 0x100048d0
lea eax, [ebp - 0x20]
mov dword [esp], eax
call edx
mov dword [ebp - 0x2c], eax
sub esp, 4
test eax, eax
js 0x10004830
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x100048b0
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
test edi, edi
je 0x100049a4
mov ebx, dword [ebp - 0x24]
and ebx, 0x100
je 0x10004948
mov eax, dword [edi]
cmp eax, 1
je 0x10004878
cmp eax, 0x19a9d65b
je 0x10004930
mov dword [ebp - 0x28], 9
mov ebx, 1
test dword [ebp - 0x24], 0x300
jne 0x100045cf
test byte [0x1001c03c], 2
jne 0x100047c8
cmp dword [edi], 0xffffffff
mov dword [ebp - 0x24], ebx
jne 0x1000437b
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x10004760
mov eax, 1
lock xadd dword [0x1001c038], eax
add eax, 1
mov dword [edi], eax
jmp 0x1000437b
mov dword [esp + 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.__p_____p__p__p__p_0x_08lx_0x_08lx__u__n
mov dword [esp + 8], str.DP_IF_CreatePlayer
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
jmp 0x1000434a
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.__p_____p__p__u__n
mov dword [esp + 8], str.DP_CreatePlayer
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
jmp 0x10004391
mov eax, dword [edi]
mov dword [esp + 0xc], str.Created_player_id_0x_08lx_n
mov dword [esp + 8], str.DP_CreatePlayer
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
jmp 0x10004435
test byte [0x1001c03c], 2
je 0x10004571
mov dword [esp], eax
call sym._DPLAYX_HresultToString
mov dword [esp + 0xc], str.Failed_to_create_player_with_sp:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DP_IF_CreatePlayer
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004571
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], str.Calling_SP_CreatePlayer_0x_08lx:_dwFlags:_0x_08lx_lpMsgHdr:__p_n
mov dword [esp + 8], str.DP_IF_CreatePlayer
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 3
movd dword [esp + 0x14], xmm2
movd dword [esp + 0x10], xmm0
call sym._wine_dbg_log.constprop.1
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0x20]
jmp 0x1000450b
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x28]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._DP_MSG_SendRequestPlayerId
mov ecx, eax
mov dword [ebp - 0x2c], eax
movzx eax, byte [0x1001c03c]
test ecx, ecx
jns 0x10004389
test al, 2
je 0x10004571
mov dword [esp], ecx
call sym._DPLAYX_HresultToString
mov dword [esp + 0xc], str.Request_for_ID_failed:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DP_IF_CreatePlayer
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004571
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], str.unknown_dwFlags__0x_08lx_n
mov dword [esp + 8], str.DP_IF_CreatePlayer
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
mov dword [ebp - 0x24], ebx
jmp 0x10004372
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], str.Cant_duplicate_player_msg_handle__p_n
mov dword [esp + 8], str.DP_CreatePlayer
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004420
test byte [0x1001c03c], 2
je 0x10004571
mov dword [esp], eax
call sym._DPLAYX_HresultToString
mov dword [esp + 0xc], str.Failed_to_add_player_to_sys_group_with_sp:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DP_IF_CreatePlayer
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004571
mov dword [ebp - 0x28], 0x88
xor ebx, ebx
test dword [ebp - 0x24], 0x300
jne 0x10004958
movzx eax, byte [0x1001c03c]
test al, 2
jne 0x100047c8
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], 0
jmp 0x10004389
mov eax, dword [edi]
mov edi, dword [ebp - 0x48]
mov dword [edi + 4], eax
mov dword [edi], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
jmp sym._DP_MSG_ForwardPlayerCreation
mov dword [esp + 0xc], str.Calling_SP_AddPlayerToGroup__sys_group__n
mov dword [esp + 8], str.DP_IF_CreatePlayer
mov dword [esp + 4], 0x1001c03c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x14]
jmp 0x1000454d
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
jmp 0x1000449c
mov dword [ebp - 0x28], 0xb
mov ebx, 1
jmp 0x10004881
mov dword [ebp - 0x28], 8
jmp 0x100045b9
mov dword [ebp - 0x24], ebx
jmp 0x1000437b
mov dword [ebp - 0x2c], 0x88770140
jmp 0x10004571
mov dword [esp + 4], 0xc
mov dword [esp], 1
mov eax, dword [ebp - 0x44]
call eax
mov edx, eax
mov dword [ebp - 0x24], edx
mov dword [esp], ebx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
mov edx, dword [ebp - 0x24]
mov dword [esp], edx
call ebx
mov dword [ebp - 0x2c], 0x88770028
jmp 0x10004571
mov dword [ebp - 0x2c], 0x80070057
jmp 0x10004571