Function at 0x14013bf80
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 - 0x1e8]
sub rsp, 0x2e8
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, qword [rcx + 0x6f8]
xor r12d, r12d
movzx eax, word [rcx + 0x22a]
mov r15d, r9d
movzx r14d, word [rcx + 0x228]
mov r13, rdx
mov qword [rsp + 0x48], r8
mov rdi, rcx
mov qword [rsp + 0x40], rdx
mov esi, r12d
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x34], eax
test rbx, rbx
jne 0x14013bff4
test r14w, r14w
je 0x14013c3b4
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x80
call fcn.140145ba0
test rbx, rbx
je 0x14013c273
mov rcx, rbx
call fcn.140155580
cmp rax, 0xff
jae 0x14013c273
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x100
call fcn.140145ba0
mov rcx, qword [0x1401d4510]
mov r13b, r12b
call fcn.140155580
mov rcx, qword [0x1401d4510]
mov r8, rax
mov rdx, rbx
call fcn.14014ae60
mov r12d, reloc.WS2_32.dll_socket
test eax, eax
jne 0x14013c0e4
mov rcx, qword [0x1401d4510]
call fcn.140155580
add rbx, rax
mov r13b, 1
mov edx, dword [rbp + 0x250]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], 0x100
mov r9, rbx
mov qword [rsp + 0x20], rax
mov ecx, r15d
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x38c]
call fcn.1400097d0
mov ecx, eax
test eax, eax
je 0x14013c11b
sub ecx, 1
je 0x14013c1bd
cmp ecx, 1
je 0x14013c1c7
test r13b, r13b
jne 0x14013c260
mov r13, qword [rsp + 0x40]
mov al, byte [r13 + 0x398]
mov byte [rsp + 0x30], al
cmp r15d, 2
jne 0x14013c13c
mov byte [r13 + 0x398], 1
jmp 0x14013c149
mov rcx, qword [str.host_]
call fcn.140155580
mov rcx, qword [str.host_]
mov r8, rax
mov rdx, rbx
call fcn.14014ae60
test eax, eax
jne 0x14013c075
mov rcx, qword [str.host_]
call fcn.140155580
add rbx, rax
jmp 0x14013c0c4
test r13b, r13b
je 0x14013c0c4
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, rbx
mov rcx, rdi
call fcn.140132250
mov eax, 0x2d
jmp 0x14013c3b6
cmp r15d, r12d
jne 0x14013c149
mov byte [r13 + 0x398], 2
xor r9d, r9d
lea rax, [rsp + 0x38]
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rdi
lea r8d, [r9 + 0x50]
call fcn.140124b90
cmp eax, 1
jne 0x14013c177
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140124070
mov rcx, qword [rsp + 0x38]
mov al, byte [rsp + 0x30]
mov byte [r13 + 0x398], al
test rcx, rcx
je 0x14013c260
mov rcx, qword [rcx]
lea rdx, [rbp - 0x30]
mov r8d, 0x100
call fcn.140124b50
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140124ed0
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
cmp r15d, dword [rdx + 4]
je 0x14013c1cc
mov eax, 1
jmp 0x14013c3b6
mov r13, qword [rsp + 0x40]
cmp r15d, r12d
jne 0x14013c23d
mov edx, 0x25
lea rcx, [rbp - 0x30]
call fcn.140145150
mov rbx, rax
test rax, rax
je 0x14013c1ed
mov byte [rax], sil
inc rbx
lea r8, [rsp + 0x58]
mov ecx, r12d
lea rdx, [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x14013c22f
movzx ecx, r14w
mov word [rsp + 0x50], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
test rbx, rbx
je 0x14013c22f
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0xa]
call fcn.14014adc0
mov dword [rsp + 0x68], eax
mov esi, 0x1c
lea r12d, [rsi - 0x1a]
jmp 0x14013c2be
mov r12d, 2
cmp r15d, r12d
jne 0x14013c2be
lea r8, [rsp + 0x54]
mov ecx, r12d
lea rdx, [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x14013c2be
jmp 0x14013c2a4
mov byte [rdi + 0x1267], sil
lea rdx, str.Couldnt_bind_to__s
jmp 0x14013c127
mov r12d, reloc.WS2_32.dll_socket
cmp r15d, r12d
jne 0x14013c299
movzx ecx, r14w
mov word [rsp + 0x50], r12w
call qword [sym.imp.WS2_32.dll_htons]
lea esi, [r12 + 5]
lea r12d, [rsi - 0x1a]
jmp 0x14013c2b9
mov r12d, 2
cmp r15d, r12d
jne 0x14013c2be
movzx ecx, r14w
mov word [rsp + 0x50], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov esi, reloc.WS2_32.dll_recv
mov word [rsp + 0x52], ax
mov rbx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, esi
call qword [sym.imp.WS2_32.dll_bind]
mov r15d, 1
jmp 0x14013c319
mov eax, dword [rsp + 0x34]
sub eax, r15d
mov dword [rsp + 0x34], eax
test eax, eax
jle 0x14013c385
add r14w, r15w
je 0x14013c385
movzx ecx, r14w
call qword [sym.imp.WS2_32.dll_ntohs]
mov r8d, esi
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov word [rsp + 0x52], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x14013c2dc
mov r8d, 0x80
lea rcx, [rbp - 0x30]
xor edx, edx
mov dword [rsp + 0x34], r8d
call fcn.140145ba0
lea r8, [rsp + 0x34]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x14013c3ad
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xd0]
mov ecx, eax
mov dword [rdi + 0xc94], eax
mov ebx, eax
call fcn.140121740
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rdi
call fcn.140132250
jmp 0x14013c132
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x30]
mov ecx, eax
mov dword [rdi + 0xc94], eax
mov ebx, eax
call fcn.140121740
lea rdx, str.bind_failed_with_errno__d:__s
jmp 0x14013c372
mov byte [r13 + 0x2d9], r15b
xor eax, eax
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140140c60
add rsp, 0x2e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret