Function at 0x508b60
Capabilities:
Create udp socket
Get networking parameters

Disassembly:
mov eax, 0x2724
call fcn.0056a4b0
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x2720], eax
push ebx
push esi
push 0x545c
mov esi, ecx
push 0
push esi
mov dword [esp + 0x18], esi
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
push 0
push 0
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x508ef0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0x251c
lea ecx, [esp + 0x21c]
push ecx
push 0
push 0
push 0x4004747f
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x508ef0
mov ecx, dword [esp + 0x14]
mov eax, 0xaf286bcb
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
test ecx, ecx
push ebp
push edi
jle 0x508c1f
lea edi, [esp + 0x21c]
mov ebp, ecx
nop
test byte [edi - 8], 0xc
jne 0x508c17
lea edx, [esi + 0x489c]
mov esi, dword [edi]
call fcn.005074a0
mov esi, dword [esp + 0x14]
add edi, 0x4c
sub ebp, 1
jne 0x508c00
push ebx
call sub.WS2_32.dll_closesocket
mov esi, dword [sym.imp.MSVCR80.dll_calloc]
push 0x288
push 1
call esi
add esp, 8
lea edx, [esp + 0x10]
mov ebp, eax
push edx
push ebp
mov dword [esp + 0x18], 0x288
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x508c66
push ebp
call dword [sym.imp.MSVCR80.dll_free]
mov eax, dword [esp + 0x14]
push eax
push 1
call esi
add esp, 0xc
mov ebp, eax
lea ecx, [esp + 0x10]
push ecx
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x508d19
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x508d0f
jmp 0x508c90
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x1a4], 0
jne 0x508d05
lea edi, [eax + 0x1ac]
test edi, edi
je 0x508d05
jmp 0x508cb0
lea edx, [edi + 4]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
je 0x508cfb
xor cl, cl
mov ebx, dword [esp + 0x14]
movzx edx, cl
mov edx, dword [ebx + edx*4 + 0x4e78]
cmp edx, eax
je 0x508cfb
test edx, edx
je 0x508ce0
add cl, 1
cmp cl, 0x7d
jb 0x508cc0
jmp 0x508cfb
movzx esi, cl
mov dword [ebx + esi*4 + 0x4e78], eax
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebx + esi*4 + 0x506c], eax
mov edi, dword [edi]
test edi, edi
jne 0x508cb0
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x508c90
push ebp
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor eax, eax
lea edx, [ebp + 0x5260]
mov ecx, 0x7d
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
push 0x248
mov edi, edx
mov ecx, 0x7d
push 0x40
rep stosd dword es:[edi], eax
call esi
lea ecx, [esp + 0x10]
mov edi, eax
push ecx
push edi
mov dword [esp + 0x18], 0x248
call sub.iphlpapi.dll_GetNetworkParams
cmp eax, 0x6f
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
jne 0x508d76
push edi
call ebx
mov edx, dword [esp + 0x10]
push edx
push 0x40
call esi
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
call sub.iphlpapi.dll_GetNetworkParams
test eax, eax
jne 0x508e79
cmp byte [0x5ef3e2], al
jne 0x508dac
mov edx, 0x5ef3e2
mov eax, edi
sub edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x508da0
mov al, byte [0x5eece0]
test al, al
jne 0x508def
lea eax, [edi + 0x84]
mov edx, 0x5eece0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x508dc2
mov eax, 0x5eece0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x508dd6
sub eax, edx
mov byte [0x5eede0], al
mov al, byte [0x5eece0]
test al, al
je 0x508df3
cmp al, 0x20
jne 0x508e30
mov ax, word [0x5a8814]
mov edx, dword [0x5a8810]
mov ecx, dword [str.workgroup]
mov word [0x5eece8], ax
mov eax, 0x5eece0
mov dword [0x5eece4], edx
mov dword [0x5eece0], ecx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x508e20
sub eax, edx
mov byte [0x5eede0], al
cmp dword [esp + 0x20], 0
jne 0x508e76
lea esi, [edi + 0x10c]
test esi, esi
je 0x508e76
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
xor cl, cl
lea ecx, [ecx]
movzx edx, cl
mov edx, dword [esp + edx*4 + 0x20]
cmp edx, eax
je 0x508e70
test edx, edx
je 0x508e69
add cl, 1
cmp cl, 0x7d
jb 0x508e50
jmp 0x508e70
movzx ecx, cl
mov dword [esp + ecx*4 + 0x20], eax
mov esi, dword [esi]
test esi, esi
jne 0x508e41
push edi
call ebx
xor esi, esi
jmp 0x508e80
mov edx, dword [esp + esi*4 + 0x20]
test edx, edx
je 0x508eee
xor al, al
lea ebx, [ebx]
movzx ecx, al
mov ecx, dword [ebp + ecx*4 + 0x489c]
test ecx, ecx
je 0x508eb8
cmp ecx, edx
je 0x508eaa
add al, 1
cmp al, 0x7d
jb 0x508e90
jmp 0x508eb8
movzx eax, al
lea eax, [ebp + eax*4 + 0x489c]
test eax, eax
jne 0x508ee6
xor al, al
lea ebx, [ebx]
movzx ecx, al
mov ecx, dword [ebp + ecx*4 + 0x5260]
cmp ecx, edx
lea edi, [ebp + 0x5260]
je 0x508ee6
test ecx, ecx
je 0x508ee0
add al, 1
cmp al, 0x7d
jb 0x508ec0
jmp 0x508ee6
movzx eax, al
mov dword [edi + eax*4], edx
add esi, 1
cmp esi, 0x7d
jl 0x508e80
pop edi
pop ebp
mov ecx, dword [esp + 0x2728]
pop esi
pop ebx
xor ecx, esp
call fcn.00569ed6
add esp, 0x2724
ret