Function at 0x14015e4f0
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x14039ac80]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15d, r9d
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rbp - 0x61], rdx
xor r12d, r12d
mov byte [rcx + 0x1c], r12b
lea eax, [r9 - 1]
cmp eax, 0xfffe
ja 0x14015e8cc
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], r12
mov qword [rbp + 0x17], reloc.WS2_32.dll_ntohs
mov byte [rbp - 1], r12b
cmp qword [r8 + 8], 2
jbe 0x14015e59d
mov rax, qword [r8]
cmp byte [rax], 0x5b
jne 0x14015e59d
mov rcx, r8
call fcn.14015ce70
cmp al, 0x5d
jne 0x14015e59d
mov r8, qword [r14 + 8]
sub r8, 2
mov rdx, qword [r14]
inc rdx
lea rcx, [rbp - 1]
call fcn.14012fe70
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rdx, qword [rbp - 1]
mov rax, qword [rbp + 0xf]
mov qword [r14], rdx
mov qword [r14 + 8], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x18], eax
mov edi, reloc.WS2_32.dll_socket
mov word [rbx], di
movzx ecx, r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 2], ax
lea r8, [rbx + 8]
mov rdx, qword [r14]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x14015e72d
mov dword [rbp - 0x69], r12d
mov word [rbp - 0x65], ax
lea rax, vtable.td::NullLog.0
mov qword [rbp - 0x61], rax
xor r9d, r9d
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
call fcn.14012b7e0
nop
lea rdi, [rax + 0x18]
lea rcx, str.Failed_inet_pton_AF_INET6_
mov qword [rbp - 0x79], rcx
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14015e620
mov qword [rbp - 0x71], rax
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.140154960
movups xmm0, xmmword [r14]
movaps xmmword [rbp - 0x79], xmm0
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.140154960
lea rax, [0x1402ce954]
mov qword [rbp - 0x79], rax
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14015e660
mov qword [rbp - 0x71], rbx
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.140154960
mov rcx, qword [rdi + 8]
mov rax, qword [rdi + 0x10]
add rax, 0x1e
cmp rcx, rax
jb 0x14015e691
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov byte [rcx], 0
mov rdx, qword [rdi + 8]
mov rax, qword [rdi]
mov rcx, rdx
sub rcx, rax
test rax, rax
je 0x14015e9fe
cmp byte [rdx], 0
jne 0x14015ea18
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x71], rcx
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
lea rax, [rbp - 0x79]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.14012b920
nop
lea rcx, [rbp - 0x51]
call fcn.14015a700
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x14015e9c3
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14015e87e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14015e87e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp eax, 0xffffffff
jne 0x14015e888
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r15d, eax
mov dword [rbp - 0x69], r12d
mov word [rbp - 0x65], 0
lea rax, vtable.td::NullLog.0
mov qword [rbp - 0x61], rax
xor r9d, r9d
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
call fcn.14012b7e0
nop
lea rdi, [rax + 0x18]
lea rcx, str.Failed_inet_pton_AF_INET6_
mov qword [rbp - 0x79], rcx
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x14015e782
mov qword [rbp - 0x71], rax
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.140154960
movups xmm0, xmmword [r14]
movaps xmmword [rbp - 0x79], xmm0
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.140154960
lea rax, [0x1402ce954]
mov qword [rbp - 0x79], rax
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14015e7c0
mov qword [rbp - 0x71], rbx
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.140154960
mov rcx, qword [rdi + 8]
mov rax, qword [rdi + 0x10]
add rax, 0x1e
cmp rcx, rax
jb 0x14015e7f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov byte [rcx], 0
mov rdx, qword [rdi + 8]
mov rax, qword [rdi]
mov rcx, rdx
sub rcx, rax
test rax, rax
je 0x14015ea32
cmp byte [rdx], 0
jne 0x14015ea4c
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x71], rcx
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
lea rax, [rbp - 0x79]
mov qword [rsp + 0x20], rax
mov r9d, r15d
mov r8b, 1
xor edx, edx
mov rcx, rsi
call fcn.14012b920
nop
lea rcx, [rbp - 0x51]
call fcn.14015a700
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x14015e9c3
inc rdx
mov rcx, qword [rbp - 1]
mov r8, rcx
cmp rdx, 0x1000
jb 0x14015e87e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub r8, rcx
add r8, 0xfffffffffffffff8
cmp r8, 0x1f
ja 0x14015e8c5
call fcn.1402c539c
jmp 0x14015e9c3
mov byte [rbx + 0x1c], 1
mov qword [rsi], r12
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x14015e9c3
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14015e87e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14015e87e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rbp - 0x69], r12d
mov word [rbp - 0x65], r12w
lea rax, vtable.td::NullLog.0
mov qword [rbp - 0x61], rax
xor r9d, r9d
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
call fcn.14012b7e0
nop
lea rdi, [rax + 0x18]
lea rcx, str.Invalid__IPv6_address_port
mov qword [rbp - 0x79], rcx
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x14015e910
mov qword [rbp - 0x71], rax
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.140154960
mov edx, r15d
mov rcx, rdi
call fcn.140154780
lea rax, [0x1402cbd70]
mov qword [rbp - 0x79], rax
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x14015e940
mov qword [rbp - 0x71], rbx
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.140154960
mov rcx, qword [rdi + 8]
mov rax, qword [rdi + 0x10]
add rax, 0x1e
cmp rcx, rax
jb 0x14015e971
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov byte [rcx], 0
mov rdx, qword [rdi + 8]
mov rax, qword [rdi]
mov rcx, rdx
sub rcx, rax
test rax, rax
je 0x14015ea66
cmp byte [rdx], 0
jne 0x14015e9e4
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x71], rcx
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
lea rax, [rbp - 0x79]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.14012b920
nop
lea rcx, [rbp - 0x51]
call fcn.14015a700
mov rax, rsi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1402c5880
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r8d, 0x12a
lea rdx, str.D:_a_ton_ton_tdutils_td_utils_Slice.h
lea rcx, str.t__0
call fcn.140153ae0
nop
mov r8d, 0x21
lea rdx, str.D:_a_ton_ton_tdutils_td_utils_Slice.h
lea rcx, str.s____nullptr
call fcn.140153ae0
int3
mov r8d, 0x12a
lea rdx, str.D:_a_ton_ton_tdutils_td_utils_Slice.h
lea rcx, str.t__0
call fcn.140153ae0
nop
mov r8d, 0x21
lea rdx, str.D:_a_ton_ton_tdutils_td_utils_Slice.h
lea rcx, str.s____nullptr
call fcn.140153ae0
int3
mov r8d, 0x12a
lea rdx, str.D:_a_ton_ton_tdutils_td_utils_Slice.h
lea rcx, str.t__0
call fcn.140153ae0
nop
mov r8d, 0x21
lea rdx, str.D:_a_ton_ton_tdutils_td_utils_Slice.h
lea rcx, str.s____nullptr
call fcn.140153ae0
int3