Function at 0x4c86b0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x55f2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
sub eax, 2
je 0x4c870f
sub eax, 0x15
jne 0x4c87b1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], eax
mov eax, 0x17
mov word [ebp - 0x20], ax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x28], 0x1c
test eax, eax
je 0x4c86f9
push eax
jmp 0x4c86fc
push dword [edi + 0x14]
call fcn.00492ac0
movups xmm0, xmmword [ebx + 4]
mov word [ebp - 0x1e], ax
movups xmmword [ebp - 0x18], xmm0
jmp 0x4c8743
mov eax, 2
mov dword [ebp - 0x28], 0x10
mov word [ebp - 0x20], ax
xorps xmm0, xmm0
mov eax, dword [ebx + 0x14]
movlpd qword [ebp - 0x18], xmm0
test eax, eax
je 0x4c8731
push eax
jmp 0x4c8734
push dword [edi + 0x14]
call fcn.00492ac0
mov word [ebp - 0x1e], ax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
mov esi, dword [edi + 0x91b8]
add esp, 4
mov eax, dword [ebx]
test esi, esi
je 0x4c876e
push dword [edi + 0x91bc]
mov esi, dword [esi]
mov ecx, esi
push 0
push 2
push eax
call dword [0x51a4a0]
call esi
add esp, 0x10
jmp 0x4c8779
push 0
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c87b1
push edi
push dword [ebx]
push esi
call fcn.004c7fb0
add esp, 0xc
test eax, eax
jns 0x4c87e0
mov eax, dword [edi + 0x91b8]
test eax, eax
je 0x4c87c5
push dword [edi + 0x91bc]
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x91b0]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4c8829
push dword [edi + 0x91b4]
mov ecx, eax
push 2
push esi
call dword [0x51a4a0]
call dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
jns 0x4c8829
push esi
push edi
call fcn.004c7f20
mov eax, dword [ebp - 0x24]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push esi
push edi
call fcn.004c80f0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4c885f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x4c885f
cmp eax, 0x2733
je 0x4c885f
push esi
push edi
call fcn.004c7f20
jmp 0x4c87ae
mov eax, dword [edi + 0x91a8]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4c888a
push dword [edi + 0x91ac]
mov ecx, eax
push 2
push esi
call dword [0x51a4a0]
call dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
js 0x4c880b
mov eax, dword [edi + 0x91a0]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4c88b0
push 0
push 1
push esi
push dword [edi + 0x91a4]
mov ecx, eax
call dword [0x51a4a0]
call dword [ebp - 0x24]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
mov dword [ebx + 0x1c], esi
xor ecx, ebp
pop esi
pop ebx
call fcn.004d0675
mov esp, ebp
pop ebp
ret