Function at 0x14013af20
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov qword [rsp + 0x28], r8
mov rdi, rdx
mov byte [r8], 0
mov rsi, rcx
test rcx, rcx
je 0x14013b20d
cmp byte [rcx], 0
je 0x14013b20d
test rdx, rdx
je 0x14013b20d
cmp byte [rdx], 0
je 0x14013b20d
lea rcx, [0x140184cd4]
xor r12d, r12d
call fcn.140156100
test eax, eax
je 0x14013b163
cmp byte [rsi], 0x5b
mov rcx, rsi
jne 0x14013afe0
lea edx, [r12 + 0x5d]
call fcn.140145150
mov r14, rax
test rax, rax
je 0x14013b20d
inc rsi
sub r14, rsi
cmp r14, 0x80
jae 0x14013b20d
mov r8, r14
lea rcx, [rbp - 0x50]
mov rdx, rsi
call fcn.140145200
mov byte [rbp + r14 - 0x50], r12b
lea rsi, [rbp - 0x50]
mov r12d, 2
jmp 0x14013b010
call fcn.140155580
lea r8, [rsp + 0x20]
mov rdx, rsi
mov ecx, 2
mov r14, rax
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x14013b005
mov r12d, eax
jmp 0x14013b010
cmp byte [rsi + r14 - 1], 0x2e
jne 0x14013b010
dec r14
mov al, byte [rdi]
test al, al
je 0x14013b20d
xor ebx, ebx
cmp al, 0x20
je 0x14013b026
mov cl, al
cmp al, 9
jne 0x14013b031
inc rdi
mov al, byte [rdi]
mov cl, al
test al, al
jne 0x14013b01c
mov r9, rdi
test cl, cl
je 0x14013b1db
cmp cl, 0x2c
ja 0x14013b051
movabs rax, 0x100100000200
bt rax, rcx
jb 0x14013b05d
inc rdi
inc rbx
mov cl, byte [rdi]
test cl, cl
jne 0x14013b03c
test rbx, rbx
je 0x14013b1db
mov ecx, r12d
test r12d, r12d
je 0x14013b177
sub ecx, 1
je 0x14013b080
cmp ecx, 1
jne 0x14013b1db
xor r15d, r15d
cmp rbx, 0x80
jae 0x14013b1db
mov r8, rbx
lea rcx, [rsp + 0x30]
mov rdx, r9
call fcn.140145200
lea edx, [r15 + 0x2f]
mov byte [rsp + rbx + 0x30], r15b
lea rcx, [rsp + 0x30]
call fcn.140145150
mov rbx, rax
test rax, rax
je 0x14013b0ca
lea rcx, [rax + 1]
call fcn.140155660
mov r15d, eax
mov byte [rbx], 0
cmp r12d, 2
jne 0x14013b0e5
mov r8d, r15d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14013b230
jmp 0x14013b1d7
and dword [rsp + 0x20], 0
and dword [rsp + 0x24], 0
cmp r15d, 0x20
ja 0x14013b1db
lea r8, [rsp + 0x20]
mov rdx, rsi
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x14013b1db
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x30]
lea ecx, [rax + 1]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x14013b1db
test r15d, 0xffffffdf
je 0x14013b16a
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [rsp + 0x24]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_htonl]
or edx, 0xffffffff
mov ecx, 0x20
sub ecx, r15d
xor eax, ebx
shl edx, cl
test edx, eax
jne 0x14013b1db
mov al, 1
jmp 0x14013b20f
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
sete al
jmp 0x14013b1d7
cmp byte [r9 + rbx - 1], 0x2e
jne 0x14013b18b
lea rax, [rbx - 1]
mov rbx, rax
test rax, rax
je 0x14013b197
cmp byte [r9], 0x2e
jne 0x14013b197
inc r9
dec rbx
cmp rbx, r14
jne 0x14013b1b1
mov r8, r14
mov rdx, rsi
mov rcx, r9
call fcn.1401354e0
test eax, eax
setne al
jmp 0x14013b1d7
jae 0x14013b1db
mov rdx, rsi
sub rdx, rbx
add rdx, r14
cmp byte [rdx - 1], 0x2e
jne 0x14013b1d5
mov r8, rbx
mov rcx, r9
call fcn.1401354e0
test eax, eax
je 0x14013b1d5
mov al, 1
jmp 0x14013b1d7
xor al, al
test al, al
jne 0x14013b163
mov al, byte [rdi]
cmp al, 0x20
je 0x14013b1e5
cmp al, 9
jne 0x14013b1ea
inc rdi
jmp 0x14013b1db
test al, al
je 0x14013b204
cmp al, 0x2c
je 0x14013b1ff
mov rax, qword [rsp + 0x28]
mov byte [rax], 1
jmp 0x14013b010
inc rdi
mov al, byte [rdi]
cmp al, 0x2c
je 0x14013b1ff
jmp 0x14013b012
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140140c60
add rsp, 0x140
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret