Function at 0x4ff660
Capabilities:
Create udp socket
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51a76b
mov eax, dword fs:[0]
push eax
sub esp, 0x9b0
mov eax, dword [0x55609c]
xor eax, esp
mov dword [esp + 0x9a8], eax
push ebx
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x9c0]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov ebx, ecx
mov dword [esp + 0x48], ebx
mov esi, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
push eax
push 2
push 2
mov dword [esp + 0x9d4], eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4ff6f9
mov edi, dword [0x55e318]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
lea ecx, [esp + 0x3c]
mov dword [esi], eax
mov dword [esi + 4], edi
call fcn.004ffdc0
mov eax, dword [esp + 0x3c]
test eax, eax
jmp 0x4ff928
push 0
push 0
lea eax, [esp + 0x38]
push eax
push 0x8e8
lea ecx, [esp + 0xdc]
push ecx
push 0
push 0
push 0x4004747f
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4ff758
mov edx, dword [0x55e318]
mov dword [esp + 0x10], edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
push edi
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
lea ecx, [esp + 0x3c]
call fcn.004ffdc0
mov eax, dword [esp + 0x3c]
test eax, eax
jmp 0x4ff928
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x30]
mov eax, 0xaf286bcb
mul ecx
sub ecx, edx
xor eax, eax
shr ecx, 1
xor esi, esi
add ecx, edx
shr ecx, 6
cmp ecx, esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], esi
jle 0x4ff918
lea edi, [esp + 0xd0]
mov dword [esp + 0x34], edi
mov dword [esp + 0x10], ecx
lea esp, [esp]
movzx eax, word [edi]
cmp ax, 2
je 0x4ff805
cmp ax, 0x17
je 0x4ff7f5
xor eax, eax
xor edx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
jmp 0x4ff822
push 0x1a
lea ecx, [edi + 8]
lea esi, [esp + 0x18]
call fcn.004ff250
jmp 0x4ff813
push 0xe
lea ecx, [edi + 4]
lea esi, [esp + 0x18]
call fcn.004ff1f0
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x60], ecx
xor ecx, ecx
mov dword [esp + 0x64], eax
xor eax, eax
xor ebx, ebx
cmp esi, ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
jne 0x4ff895
cmp esi, 1
jne 0x4ff88c
lea edi, [esp + 0x1c]
lea ebx, [esp + 0x54]
call fcn.00439420
mov edi, dword [esp + 0x34]
jmp 0x4ff891
cmp edx, ebx
sete al
test al, al
jne 0x4ff900
mov edx, esi
neg edx
sbb edx, edx
and edx, 0x15
add edx, 2
lea ecx, [edi + 0x30]
lea eax, [esp + 0x14]
call fcn.004ff2e0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x70], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x74], edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x4c]
lea esi, [esp + 0x38]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov byte [esp + 0x84], 0
mov dword [esp + 0xc4], 0x5dc
call fcn.004ffed0
add edi, 0x4c
xor esi, esi
sub dword [esp + 0x10], 1
mov dword [esp + 0x34], edi
jne 0x4ff7d0
mov ebx, dword [esp + 0x48]
push ebx
lea ecx, [esp + 0x3c]
call fcn.004ffdc0
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x4ff933
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x9c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00515015
mov esp, ebp
pop ebp
ret