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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x421b20
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 0x429a48
push 0xd
push str.LDPlayerAudio::init
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
call fcn.00417920
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.004070c0
mov edx, edi
mov dword [esp + 0x90], 0
lea ecx, [esp + 0x54]
call fcn.00407c90
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x9c], 1
call fcn.00407d20
mov byte [esp + 0x90], 0
cmp dword [esp + 0x68], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40786f
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 0x4078b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProp_error__d
push 0x12
push str.LDPlayerAudio::init
call fcn.00417920
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 0x40795e
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
je 0x407a6c
cmp dword [esi + 0x1c], 0xffffffff
jne 0x407a6c
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.004070c0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x54]
mov byte [esp + 0x90], 2
call fcn.00407c00
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x9c], 3
call fcn.00407d20
mov byte [esp + 0x90], 2
cmp dword [esp + 0x68], 8
jb 0x4079c8
push dword [esp + 0x54]
call edi
add esp, 4
push 0x1000
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 0x20]
call fcn.00408810
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 0x407a1f
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 0x407a4a
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.004208a2
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.00417920
add esp, 0x10
xor al, al
mov byte [esp + 0x17], al
jmp 0x407a36