Function at 0x401545
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
lea eax, [ebp - 0x14]
push esi
lea ecx, [ebp - 8]
push edi
mov esi, dword [ebp + 8]
push eax
push ecx
mov ecx, esi
call fcn.0040560a
test eax, eax
jne 0x40156e
xor eax, eax
jmp 0x4017c4
push 0x11
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
push 2
push ecx
call sub.WSOCK32.dll_socket
mov ebx, eax
push 0x10
push 0
lea ecx, [ebp - 0xb0]
push ecx
call sub.MSVCRT20.dll_memset
add esp, 0xc
mov eax, dword [ebp - 8]
mov ax, word [eax]
mov ecx, dword [ebp - 0x14]
mov word [ebp - 0xb0], ax
push ecx
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xc], ecx
push eax
push ebx
call sub.WSOCK32.dll_bind
test eax, eax
je 0x40164e
push ebx
call sub.WSOCK32.dll_closesocket
mov ebx, dword [esi + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
lea edx, [ebp - 0x94]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ecx
push 3
mov dword [esi + 4], edx
mov dword [esi + 8], 0x64
lea eax, [ebp - 0x20]
mov ecx, esi
mov dword [esi + 0xc], 0
push eax
lea edi, [ebp - 0x2f]
mov byte [ebp - 0x20], 5
mov byte [ebp - 0x1f], 1
mov byte [ebp - 0x1e], 0
call fcn.004056b0
xor eax, eax
push 7
mov byte [ebp - 0x30], 1
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004056b0
mov ecx, dword [esi + 0xc]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
push ecx
mov ecx, esi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
lea eax, [ebp - 0x94]
push eax
call fcn.004056b0
push dword [ebp - 8]
call dword [sym.imp.MSVCRT20.dll_free]
add esp, 4
xor eax, eax
jmp 0x4017c4
push 0x11
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
push 2
push ecx
call sub.WSOCK32.dll_socket
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.MSVCRT20.dll_free]
add esp, 4
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x10
push ecx
lea edx, [ebp - 0xb0]
push edx
push ebx
call sub.WSOCK32.dll_getsockname
test eax, eax
je 0x401697
push str.getsockname
call dword [sym.imp.MSVCRT20.dll_perror]
add esp, 4
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], edx
mov dword [esi + 4], eax
xor eax, eax
push 3
mov dword [esi + 0xc], eax
mov byte [ebp - 0x9f], al
lea ecx, [ebp - 0xa0]
mov byte [ebp - 0x9e], al
mov dword [esi + 8], 0x64
mov byte [ebp - 0xa0], 5
push ecx
mov ecx, esi
call fcn.004056b0
movzx ecx, word [ebp - 0xb0]
cmp ecx, 2
je 0x40170c
lea edi, [ebp - 0xbf]
xor eax, eax
mov byte [ebp - 0xc0], 1
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 7
lea eax, [ebp - 0xc0]
jmp 0x40173f
cmp word [ebp - 0xb0], 2
jne 0x401747
push 1
lea eax, [ebp - 4]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004056b0
push 4
lea eax, [ebp - 0xac]
push eax
mov ecx, esi
call fcn.004056b0
push 2
lea eax, [ebp - 0xae]
push eax
mov ecx, esi
call fcn.004056b0
mov ecx, dword [esi + 0xc]
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x30]
push ecx
mov ecx, esi
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], edx
lea edx, [ebp - 0x124]
mov dword [esi + 0xc], eax
push edx
call fcn.004056b0
push 0x10
lea ecx, [ebp - 0xb0]
push 0
push ecx
call sub.MSVCRT20.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dx, word [ecx]
mov eax, dword [ebp - 0x14]
mov word [ebp - 0xb0], dx
push eax
lea edx, [ebp - 0xb0]
mov dword [ebp - 0xc], eax
push edx
push dword [ebp - 0x10]
call sub.WSOCK32.dll_bind
push dword [ebp - 0x10]
push ebx
push esi
call fcn.004017cb
add esp, 0xc
push dword [ebp - 0x10]
call sub.WSOCK32.dll_closesocket
push ebx
call sub.WSOCK32.dll_closesocket
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret