Function at 0x4015d0
Capabilities:
Get local ipv4 addresses
Get socket information
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x215c
call fcn.004176b0
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x215c], edx
mov ebx, ecx
mov dword [ebp - 0x2154], ebx
mov eax, dword [str.004XVHU]
movups xmm0, xmmword [str.004SDVV4wKsQCks]
mov dword [ebp - 0xc], eax
mov eax, dword [0x41d888]
mov dword [ebp - 8], eax
mov eax, dword [str.004QLFN]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41d8a0]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x202c]
push eax
lea eax, [ebp - 0x2044]
movups xmmword [ebp - 0x24], xmm0
push eax
xorps xmm0, xmm0
push ebx
mov dword [ebp - 0x2158], edi
mov dword [ebp - 0x202c], 0x10
movups xmmword [ebp - 0x2044], xmm0
call dword [sym.imp.WS2_32.dll_getsockname]
push 0x1000
lea eax, [ebp - 0x1028]
push 0
push eax
call fcn.00404260
add esp, 0xc
lea ecx, [ebp - 0x24]
push esi
call section..text
push eax
lea eax, [ebp - 0x1028]
push str._s__s_n
push eax
call fcn.00401070
lea ecx, [ebp - 0x1028]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401695
mov esi, dword [sym.imp.WS2_32.dll_send]
lea eax, [ebp - 0x1028]
push 0
sub ecx, edx
push ecx
push eax
push ebx
call esi
push 0x1000
lea eax, [ebp - 0x1028]
push 0
push eax
call fcn.00404260
add esp, 0xc
lea ecx, [ebp - 0xc]
push edi
push edi
push edi
push edi
call section..text
push eax
lea eax, [ebp - 0x1028]
push str._s__s__s__s__s_n
push eax
call fcn.00401070
lea ecx, [ebp - 0x1028]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4016f1
push 0
sub ecx, edx
lea eax, [ebp - 0x1028]
push ecx
push eax
push ebx
call esi
push 0x1000
lea eax, [ebp - 0x1028]
push 0
push eax
call fcn.00404260
add esp, 0xc
lea ecx, [ebp - 0x14]
push edi
call section..text
push eax
lea eax, [ebp - 0x1028]
push str._s__s_n
push eax
call fcn.00401070
lea ecx, [ebp - 0x1028]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401744
push 0
sub ecx, edx
lea eax, [ebp - 0x1028]
push ecx
push eax
push ebx
call esi
lea eax, [ebp - 0x2034]
mov dword [ebp - 0x2034], 0x78
push eax
push 0
push 0
lea eax, [ebp - 0x2150]
mov dword [ebp - 0x2030], 0
push eax
push 0
mov dword [ebp - 0x214c], ebx
mov dword [ebp - 0x2150], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x4017b6
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004031d1
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x4017c6
mov ebx, dword [ebp - 0x2154]
push 0x1000
lea eax, [ebp - 0x1028]
push 0
push eax
call fcn.00404260
add esp, 0xc
lea eax, [ebp - 0x1028]
push 0
push 0x1000
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jle 0x401874
xor edi, edi
test ebx, ebx
je 0x4017c0
nop dword [eax]
mov al, byte [ebp + edi - 0x1028]
cmp al, 0xd
je 0x401821
cmp al, 0xa
je 0x401821
cmp esi, 0xfa0
je 0x401821
mov byte [ebp + esi - 0x2028], al
inc esi
jmp 0x40186a
test esi, esi
je 0x40186a
cmp esi, 0x1000
jae 0x401887
push dword [ebp - 0x2158]
mov edx, dword [ebp - 0x2154]
lea ecx, [ebp - 0x2028]
push dword [ebp - 0x215c]
mov byte [ebp + esi - 0x2028], 0
call fcn.00401890
push 0x1000
lea eax, [ebp - 0x2028]
push 0
push eax
call fcn.00404260
add esp, 0x14
xor esi, esi
inc edi
cmp edi, ebx
jne 0x401800
jmp 0x4017c0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004031d1
mov esp, ebp
pop ebp
ret
call fcn.00403303
int3