Function at 0x1401b4660
Capabilities:
Convert ip address from string
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f8]
sub rsp, 0x2f8
mov rax, qword [0x14032f0c0]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rbx, qword [rcx + 0x740]
xor r15d, r15d
movzx edi, word [rcx + 0x220]
mov r12d, r9d
movzx r14d, word [rcx + 0x222]
mov r13, rdx
mov qword [rsp + 0x50], r8
mov rsi, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x48], r15
test rbx, rbx
jne 0x1401b46cc
test di, di
je 0x1401b4b76
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
test rbx, rbx
je 0x1401b4ad5
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], r15b
jne 0x1401b4701
cmp rax, 0xff
jae 0x1401b4ad5
xor edx, edx
lea rcx, [rbp - 0x1f]
mov r8d, 0xff
call fcn.140277340
mov r8d, 3
lea rcx, [0x1402f8698]
mov rdx, rbx
call fcn.140226ab0
test eax, eax
jne 0x1401b475d
lea r8, [rbx + 3]
mov rcx, rsi
lea rdx, str.Couldnt_bind_to_interface__s
call fcn.14019b0a0
mov eax, 0x2d
jmp 0x1401b4b78
mov r8d, 5
lea rcx, str.host_
mov rdx, rbx
call fcn.140226ab0
mov rcx, qword [rsp + 0x38]
lea r13, [rbx + 5]
test eax, eax
cmovne r13, rbx
movzx eax, byte [rcx + 0x6e3]
mov byte [rsp + 0x30], al
mov qword [rsp + 0x40], r13
cmp r12d, 2
jne 0x1401b47a0
mov byte [rcx + 0x6e3], 1
jmp 0x1401b47ad
cmp r12d, 0x17
jne 0x1401b47ad
mov byte [rcx + 0x6e3], 2
xor r9d, r9d
lea rax, [rsp + 0x48]
mov rdx, r13
mov qword [rsp + 0x20], rax
mov rcx, rsi
lea r8d, [r9 + 0x50]
call fcn.1401a5890
cmp eax, 1
jne 0x1401b486d
mov r13, qword [rsi + 0xe00]
mov edx, 0xffffffff
mov rcx, qword [r13]
test rcx, rcx
je 0x1401b47f9
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401b481a
mov rcx, qword [r13 + 8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [r13 + 8]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r13 + 8], r15
test ebx, ebx
jne 0x1401b4822
mov rcx, rsi
call fcn.14019bfe0
mov rbx, qword [rsi + 0xdf8]
mov byte [rsi + 0xe18], 1
test rbx, rbx
jne 0x1401b483d
mov rcx, rsi
call fcn.1401a6d30
lea rcx, [rsi + 0xdf0]
call fcn.14019c4e0
mov r13, qword [rsp + 0x40]
cmp qword [rsi + 0xdf8], r15
jne 0x1401b4872
mov rax, qword [rsi + 0x20]
cmp byte [rax + 0x2ae], 1
je 0x1401b4872
mov byte [rax + 0x2ae], 1
jmp 0x1401b4872
mov rbx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rsp + 0x30]
mov byte [rcx + 0x6e3], al
test rbx, rbx
je 0x1401b4ab2
mov rdx, qword [rbx]
mov byte [rbp - 0x20], r15b
mov ecx, dword [rdx + 4]
cmp ecx, 2
je 0x1401b48a9
cmp ecx, 0x17
jne 0x1401b48c1
mov rdx, qword [rdx + 0x20]
add rdx, 8
jmp 0x1401b48b1
mov rdx, qword [rdx + 0x20]
add rdx, 4
mov r9d, 0x100
lea r8, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_inet_ntop]
mov rax, qword [rbx]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i
mov r9d, r12d
mov r8, r13
mov ecx, dword [rax + 4]
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], ecx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14019b1d0
mov rdx, rbx
mov rcx, rsi
call fcn.1401a60b0
mov rax, qword [rbx]
cmp r12d, dword [rax + 4]
je 0x1401b4907
mov eax, 1
jmp 0x1401b4b78
cmp r12d, 0x17
jne 0x1401b4a6f
lea edx, [r12 + 0xe]
lea rcx, [rbp - 0x20]
call fcn.1401f9440
mov rbx, rax
test rax, rax
je 0x1401b492d
mov byte [rax], r15b
inc rbx
mov r15d, reloc.WS2_32.dll_socket
lea r8, [rsp + 0x68]
mov ecx, r15d
lea rdx, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1401b4974
movzx ecx, di
mov word [rsp + 0x60], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
test rbx, rbx
je 0x1401b4974
xor edx, edx
lea r8d, [r15 - 0xd]
mov rcx, rbx
call fcn.140213110
mov dword [rsp + 0x78], eax
mov r15d, 0x1c
mov r13, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov r8d, r15d
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x1401b49ef
nop dword [rax]
dec r14d
test r14d, r14d
jle 0x1401b4b26
add di, 1
je 0x1401b4b26
movzx r8d, di
lea rdx, str.Bind_to_local_port__d_failed__trying_next
dec r8d
mov rcx, rsi
call fcn.14019b1d0
movzx ecx, di
call qword [sym.imp.WS2_32.dll_ntohs]
mov r8d, r15d
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov word [rsp + 0x62], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x1401b49a0
xorps xmm0, xmm0
mov dword [rsp + 0x38], 0x80
lea r8, [rsp + 0x38]
mov rcx, rbx
lea rdx, [rbp - 0x20]
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x1401b4b5b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [rsi + 0xd64], eax
lea rdx, [rbp + 0xe0]
mov ebx, eax
call fcn.1401b9030
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14019b0a0
mov eax, 0x2d
jmp 0x1401b4b78
cmp r12d, 2
jne 0x1401b497a
mov ebx, r12d
lea r8, [rsp + 0x64]
mov ecx, ebx
lea rdx, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1401b497a
movzx ecx, di
mov word [rsp + 0x60], bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
lea r15d, [r12 + 0xe]
jmp 0x1401b497a
mov r8, r13
mov byte [rsi + 0x135f], r15b
lea rdx, str.Couldnt_bind_to__s
mov rcx, rsi
call fcn.14019b0a0
mov eax, 0x2d
jmp 0x1401b4b78
cmp r12d, 0x17
jne 0x1401b4afc
mov r15d, r12d
movzx ecx, di
mov word [rsp + 0x60], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
lea r15d, [r12 + 5]
jmp 0x1401b497f
cmp r12d, 2
jne 0x1401b497f
mov ebx, r12d
movzx ecx, di
mov word [rsp + 0x60], bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
lea r15d, [r12 + 0xe]
jmp 0x1401b497f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [rsi + 0xd64], eax
lea rdx, [rbp - 0x20]
mov ebx, eax
call fcn.1401b9030
mov r9, rax
lea rdx, str.bind_failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14019b0a0
mov eax, 0x2d
jmp 0x1401b4b78
movzx r8d, di
lea rdx, str.Local_port:__hu
mov rcx, rsi
call fcn.14019b1d0
mov byte [r13 + 0x2be], 1
xor eax, eax
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1401f4d70
add rsp, 0x2f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret