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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5de9eb
mov eax, dword fs:[0]
push eax
sub esp, 0x9b0
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x9a8], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
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 sub.WS2_32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
jne 0x583307
mov edi, dword [0x65b4ec]
call sub.WS2_32.dll_WSAGetLastError
push ebx
lea ecx, [esp + 0x3c]
mov dword [esi], eax
mov dword [esi + 4], edi
call fcn.005839c0
mov eax, dword [esp + 0x3c]
test eax, eax
jmp 0x58352c
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 0x583364
mov edx, dword [0x65b4ec]
mov dword [esp + 0x10], edx
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi], eax
mov eax, dword [esp + 0x10]
push edi
mov dword [esi + 4], eax
call sub.WS2_32.dll_closesocket
push ebx
lea ecx, [esp + 0x3c]
call fcn.005839c0
mov eax, dword [esp + 0x3c]
test eax, eax
jmp 0x58352c
push edi
call sub.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 0x58351c
lea edi, [esp + 0xd0]
mov dword [esp + 0x34], edi
mov dword [esp + 0x10], ecx
movzx eax, word [edi]
cmp ax, 2
je 0x583409
cmp ax, 0x17
je 0x5833f9
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 0x583426
push 0x1a
lea ecx, [edi + 8]
lea esi, [esp + 0x18]
call fcn.00582e60
jmp 0x583417
push 0xe
lea ecx, [edi + 4]
lea esi, [esp + 0x18]
call fcn.00582e00
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 0x583499
cmp esi, 1
jne 0x583490
lea edi, [esp + 0x1c]
lea ebx, [esp + 0x54]
call fcn.004a8dc0
mov edi, dword [esp + 0x34]
jmp 0x583495
cmp edx, ebx
sete al
test al, al
jne 0x583504
mov edx, esi
neg edx
sbb edx, edx
and edx, 0x15
add edx, 2
lea ecx, [edi + 0x30]
lea eax, [esp + 0x14]
call fcn.00582ef0
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.00583ac0
add edi, 0x4c
xor esi, esi
sub dword [esp + 0x10], 1
mov dword [esp + 0x34], edi
jne 0x5833d4
mov ebx, dword [esp + 0x48]
push ebx
lea ecx, [esp + 0x3c]
call fcn.005839c0
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x583537
push eax
call fcn.0059b877
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.005b88a9
mov esp, ebp
pop ebp
ret