Function at 0x5b9750
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
jmp 0x5c15a0
sub esp, 0x20
mov eax, dword [0x61fb00]
push ebx
push ebp
mov dword [esp + 0x24], eax
call fcn.005c2360
mov ebp, dword [esp + 0x38]
test ebp, ebp
jne 0x5c15c0
mov ebp, 0x10000
mov ebx, dword [esp + 0x34]
test ebx, ebx
jne 0x5c15cd
mov ebx, 0x10000
mov edx, dword [esp + 0x30]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.005b9b50
add esp, 0xc
test eax, eax
jne 0x5c15fc
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.005ce175
add esp, 0x20
ret
push esi
push 0x48
call fcn.005cde04
mov esi, eax
add esp, 4
test esi, esi
jne 0x5c1622
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.005ce175
add esp, 0x20
ret
push edi
push 0
push 0x5c14e0
push 0x5c14c0
xor eax, eax
push 2
mov ecx, 0x12
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x54]
push 0x20
mov edi, 1
push 4
mov dword [esi], 0xffffffff
mov dword [esi + 0x38], ebp
mov dword [esi + 0x34], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], edi
call fcn.005c3190
add esp, 0x18
test eax, eax
mov dword [esi + 0xc], eax
jne 0x5c168d
push esi
call fcn.005cdbb7
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.005ce175
add esp, 0x20
ret
push 0x5c1510
push 4
push 4
call fcn.005c2ce0
add esp, 0xc
test eax, eax
mov dword [esi + 0x10], eax
jne 0x5c16ca
mov ecx, dword [esi + 0xc]
push ecx
call fcn.005c3200
push esi
call fcn.005cdbb7
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.005ce175
add esp, 0x20
ret
push 0x11
push 2
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x5c1712
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [esi + 0xc]
push edx
call fcn.005c3200
mov eax, dword [esi + 0x10]
push eax
call fcn.005c2ea0
push esi
call fcn.005cdbb7
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.005ce175
add esp, 0x20
ret
push 4
lea ecx, [esp + 0x44]
push ecx
push 4
push 0xffff
push eax
mov dword [esp + 0x54], edi
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x5c1734
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
push ecx
mov dword [esp + 0x2c], edx
mov word [esp + 0x20], 2
mov dword [esp + 0x24], eax
call sub.WSOCK32.dll_htons
push 0x10
lea edx, [esp + 0x20]
mov word [esp + 0x22], ax
mov eax, dword [esi]
push edx
push eax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x5c178a
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [esi]
push ecx
call sub.WSOCK32.dll_closesocket
jmp 0x5c16e1
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x18], 0x10
mov eax, dword [esi]
push edx
push eax
call sub.WSOCK32.dll_getsockname
mov ecx, dword [esp + 0x20]
mov dword [esi + 4], ecx
mov edx, dword [esp + 0x1e]
push edx
call sub.WSOCK32.dll_ntohs
mov ecx, dword [esp + 0x2c]
mov word [esi + 8], ax
mov eax, dword [esp + 0x34]
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.005ce175
add esp, 0x20
ret