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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rsi, qword [rcx + 0x730]
xor r13d, r13d
movzx edi, word [rcx + 0x240]
mov r12d, r9d
movzx r15d, word [rcx + 0x242]
mov r14, rcx
mov qword [rsp + 0x30], r13
test rsi, rsi
jne 0x1800d0369
test di, di
jne 0x1800d0369
xor eax, eax
jmp 0x1800d080c
mov qword [rsp + 0x318], rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], 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
test rsi, rsi
je 0x1800d0675
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp byte [rsi + rax], r13b
jne 0x1800d03b0
cmp rax, 0xff
jae 0x1800d0675
xor edx, edx
mov byte [rbp - 0x40], r13b
mov r8d, 0xff
lea rcx, [rbp - 0x3f]
call fcn.18011f8c0
mov rcx, qword [0x1802c52b0]
mov r8, rbx
inc r8
cmp byte [rcx + r8], r13b
jne 0x1800d03e4
mov rdx, rsi
call fcn.18011ffe0
test eax, eax
jne 0x1800d0410
mov rax, qword [0x1802c52b0]
inc rbx
cmp byte [rax + rbx], r13b
jne 0x1800d0400
add rsi, rbx
mov bl, 1
jmp 0x1800d0472
mov rcx, qword [str.host_]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rcx + r8], r13b
jne 0x1800d0420
mov rdx, rsi
call fcn.18011ffe0
test eax, eax
jne 0x1800d0470
mov rax, qword [str.host_]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r13b
jne 0x1800d0440
add rsi, rbx
mov rax, qword [rbp + 0x208]
movzx ebx, byte [rax + 0x667]
cmp r12d, 2
jne 0x1800d0595
mov byte [rax + 0x667], 1
jmp 0x1800d05a2
xor bl, bl
mov edx, dword [rbp + 0x220]
lea rax, [rbp - 0x40]
mov dword [rsp + 0x28], 0x100
mov r9, rsi
mov qword [rsp + 0x20], rax
mov ecx, r12d
mov rax, qword [rbp + 0x208]
mov r8d, dword [rax + 0x65c]
call fcn.18001b1a0
test eax, eax
je 0x1800d0571
sub eax, 1
je 0x1800d064b
cmp eax, 1
je 0x1800d04df
test bl, bl
je 0x1800d044c
mov r8, rsi
mov byte [r14 + 0x1247], r13b
lea rdx, str.Couldnt_bind_to__s
mov rcx, r14
call fcn.1800aa8a0
mov eax, 0x2d
jmp 0x1800d0804
lea r9, [rbp - 0x40]
mov dword [rsp + 0x20], r12d
mov r8, rsi
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i
mov rcx, r14
call fcn.1800aa960
cmp r12d, 0x17
jne 0x1800d0655
mov edx, 0x25
lea rcx, [rbp - 0x40]
call fcn.1800e8800
mov rbx, rax
test rax, rax
je 0x1800d0520
mov byte [rax], r13b
inc rbx
mov esi, reloc.WS2_32.dll_socket
lea r8, [rsp + 0x48]
mov ecx, esi
lea rdx, [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1800d0566
movzx ecx, di
mov word [rsp + 0x40], si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x42], ax
test rbx, rbx
je 0x1800d0566
xor edx, edx
mov r8d, 0xa
mov rcx, rbx
call fcn.1800f8968
mov dword [rsp + 0x58], eax
mov r13d, 0x1c
jmp 0x1800d06b6
test bl, bl
je 0x1800d044c
mov r8, rsi
lea rdx, str.Couldnt_bind_to_interface__s
mov rcx, r14
call fcn.1800aa8a0
mov eax, 0x2d
jmp 0x1800d0804
cmp r12d, 0x17
jne 0x1800d05a2
mov byte [rax + 0x667], 2
lea rax, [rsp + 0x30]
xor r9d, r9d
mov r8d, 0x50
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r14
call fcn.1800b60d0
cmp eax, 1
jne 0x1800d05d2
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.18009cb10
mov rax, qword [rbp + 0x208]
mov rcx, qword [rsp + 0x30]
mov byte [rax + 0x667], bl
test rcx, rcx
je 0x1800d04bc
mov rcx, qword [rcx]
lea rdx, [rbp - 0x40]
mov r8d, 0x100
call fcn.1800b6090
mov rax, qword [rsp + 0x30]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i
mov r9d, r12d
mov r8, rsi
mov rcx, qword [rax]
mov eax, dword [rcx + 4]
mov rcx, r14
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
call fcn.1800aa960
mov rdx, qword [rsp + 0x30]
mov rcx, r14
call fcn.1800b66d0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
cmp r12d, dword [rcx + 4]
je 0x1800d04fa
mov eax, 1
jmp 0x1800d0804
cmp r12d, 2
jne 0x1800d06b6
mov ebx, r12d
lea r8, [rsp + 0x44]
mov ecx, ebx
lea rdx, [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1800d06b6
jmp 0x1800d069d
cmp r12d, 0x17
jne 0x1800d0694
mov esi, r12d
movzx ecx, di
mov word [rsp + 0x40], si
call qword [sym.imp.WS2_32.dll_htons]
mov r13d, 0x1c
jmp 0x1800d06b1
cmp r12d, 2
jne 0x1800d06b6
mov ebx, r12d
movzx ecx, di
mov word [rsp + 0x40], bx
call qword [sym.imp.WS2_32.dll_htons]
mov r13d, reloc.WS2_32.dll_recv
mov word [rsp + 0x42], ax
mov rbx, qword [rbp + 0x210]
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov r8d, r13d
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x1800d0721
dec r15d
test r15d, r15d
jle 0x1800d07a5
add di, 1
je 0x1800d07a5
movzx r8d, di
lea rdx, str.Bind_to_local_port__d_failed__trying_next
dec r8d
mov rcx, r14
call fcn.1800aa960
movzx ecx, di
call qword [sym.imp.WS2_32.dll_ntohs]
mov r8d, r13d
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov word [rsp + 0x42], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x1800d06d2
xorps xmm0, xmm0
mov dword [rbp + 0x200], 0x80
lea r8, [rbp + 0x200]
mov rcx, rbx
lea rdx, [rbp - 0x40]
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
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
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x1800d07e1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xc0]
mov ecx, eax
mov dword [r14 + 0xc74], eax
mov ebx, eax
call fcn.1800bf6f0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, r14
call fcn.1800aa8a0
mov eax, 0x2d
jmp 0x1800d0804
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x40]
mov ecx, eax
mov dword [r14 + 0xc74], eax
mov ebx, eax
call fcn.1800bf6f0
mov r9, rax
lea rdx, str.bind_failed_with_errno__d:__s
mov r8d, ebx
mov rcx, r14
call fcn.1800aa8a0
mov eax, 0x2d
jmp 0x1800d0804
movzx r8d, di
lea rdx, str.Local_port:__hu
mov rcx, r14
call fcn.1800aa960
mov rax, qword [rbp + 0x208]
mov byte [rax + 0x351], 1
xor eax, eax
mov rbx, qword [rsp + 0x318]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret