Function at 0x406fa0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x424020
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push 0x42b07c
push 0xd
push str.LDPlayerAudio::init
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
call fcn.00419ca0
add esp, 0x10
mov dword [esp + 0x50], 7
xor eax, eax
mov dword [esp + 0x4c], 0
lea ecx, [esp + 0x3c]
mov word [esp + 0x3c], ax
push 0x1f
push str.DNGdi32_Shared_Udp_Port_Audio4_
call fcn.004068c0
mov edx, edi
mov dword [esp + 0x90], 0
lea ecx, [esp + 0x54]
call fcn.00407490
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x9c], 1
call fcn.00407520
mov byte [esp + 0x90], 0
cmp dword [esp + 0x68], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40706f
push dword [esp + 0x54]
call edi
add esp, 4
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4070b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProp_error__d
push 0x12
push str.LDPlayerAudio::init
call fcn.00419ca0
mov eax, dword [esp + 0x2c]
add esp, 0x10
add eax, 0x200
imul eax, eax, 0x64
xorps xmm0, xmm0
mov ecx, 2
movdqu xmmword [esi + 0xc4], xmm0
push eax
mov word [esi + 0xc4], cx
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [esi + 0xc6], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0xc8], eax
jne 0x40715e
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
je 0x40726c
cmp dword [esi + 0x1c], 0xffffffff
jne 0x40726c
mov dword [esi + 0x1c], eax
xorps xmm0, xmm0
mov eax, 2
movdqa xmmword [esp + 0x54], xmm0
mov word [esp + 0x54], ax
lea eax, [esp + 0x54]
push 0x10
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_bind]
push 8
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0x1006
push 0xffff
push dword [esi + 0x1c]
mov dword [esp + 0x34], 0x7a120
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x16
xor eax, eax
mov dword [esp + 0x3c], 7
push str.DNGdi32_Shared_audio4_
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
call fcn.004068c0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x54]
mov byte [esp + 0x90], 2
call fcn.00407400
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x9c], 3
call fcn.00407520
mov byte [esp + 0x90], 2
cmp dword [esp + 0x68], 8
jb 0x4071c8
push dword [esp + 0x54]
call edi
add esp, 4
push 0x1000
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 0x20]
call fcn.00408010
cmp dword [esp + 0x38], 8
mov dword [esi + 0xd4], eax
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
lea eax, [esi + 0x44]
mov dword [esi + 0x40], 0x64
push 0x40
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
mov al, 1
cmp dword [esp + 0x38], 8
mov byte [esp + 0x17], al
jb 0x40721f
push dword [esp + 0x24]
call edi
mov al, byte [esp + 0x1b]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], cx
cmp dword [esp + 0x50], 8
jb 0x40724a
push dword [esp + 0x3c]
call edi
mov al, byte [esp + 0x1b]
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00422cd2
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.create_socket__d
push 0x1e
push str.LDPlayerAudio::init
call fcn.00419ca0
add esp, 0x10
xor al, al
mov byte [esp + 0x17], al
jmp 0x407236