Function at 0x1402fc020
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1403ec658]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rbx, rdx
mov r15, rcx
test rcx, rcx
je 0x1402fc3c3
movzx eax, byte [rcx]
test al, al
je 0x1402fc3c3
test rdx, rdx
je 0x1402fc3c3
cmp byte [rdx], 0
je 0x1402fc3c3
xor r13d, r13d
mov ecx, 0x2a
mov r12d, r13d
cmp cl, byte [rdx]
jne 0x1402fc08f
cmp r13b, byte [rdx + 1]
je 0x1402fc313
cmp al, 0x5b
jne 0x1402fc0df
mov edx, 0x5d
mov rcx, r15
call sub.VCRUNTIME140.dll_strchr
mov r14, rax
test rax, rax
je 0x1402fc3c3
inc r15
sub r14, r15
cmp r14, 0x80
jae 0x1402fc3c3
mov r8, r14
lea rcx, [rbp - 0x30]
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + r14 - 0x30], r12b
lea r15, [rbp - 0x30]
mov r12d, 2
jmp 0x1402fc117
mov r14, 0xffffffffffffffff
inc r14
cmp byte [r15 + r14], r12b
jne 0x1402fc0e6
lea r8, [rsp + 0x20]
mov rdx, r15
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1402fc10c
mov r12d, eax
jmp 0x1402fc117
cmp byte [r15 + r14 - 1], 0x2e
jne 0x1402fc117
dec r14
movzx eax, byte [rbx]
test al, al
je 0x1402fc3c3
movabs rdx, 0x100100000200
nop dword [rax]
mov rdi, r13
cmp al, 0x20
je 0x1402fc13e
movzx ecx, al
cmp al, 9
jne 0x1402fc14c
movzx eax, byte [rbx + 1]
inc rbx
movzx ecx, al
test al, al
jne 0x1402fc133
mov r9, rbx
test cl, cl
je 0x1402fc395
cmp cl, 0x2c
ja 0x1402fc166
movsx rax, cl
bt rdx, rax
jb 0x1402fc174
movzx ecx, byte [rbx + 1]
inc rbx
inc rdi
test cl, cl
jne 0x1402fc157
test rdi, rdi
je 0x1402fc395
mov ecx, r12d
test r12d, r12d
je 0x1402fc327
sub ecx, 1
je 0x1402fc197
cmp ecx, 1
jne 0x1402fc395
mov esi, r13d
cmp rdi, 0x80
jae 0x1402fc395
mov r8, rdi
lea rcx, [rsp + 0x50]
mov rdx, r9
call sub.VCRUNTIME140.dll_memcpy
mov edx, gethostbyaddr
mov byte [rsp + rdi + 0x50], sil
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_strchr
mov rdi, rax
test rax, rax
je 0x1402fc1e1
lea rcx, [rax + 1]
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
mov esi, eax
mov byte [rdi], r13b
cmp r12d, 2
jne 0x1402fc296
test esi, esi
jne 0x1402fc1f7
lea edi, [rsi + 0x10]
mov esi, r13d
jmp 0x1402fc212
mov edi, esi
and esi, 7
shr edi, 3
cmp edi, 0x10
ja 0x1402fc38b
jne 0x1402fc212
test esi, esi
jne 0x1402fc38b
lea r8, [rsp + 0x38]
mov rdx, r15
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1402fc38b
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x50]
lea ecx, [rax + 0x16]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1402fc38b
test edi, edi
je 0x1402fc268
mov r8d, edi
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1402fc38b
test esi, esi
je 0x1402fc313
mov eax, edi
mov ecx, 8
sub ecx, esi
mov edx, 0xff
shl edx, cl
movzx r8d, byte [rsp + rax + 0x28]
movzx eax, byte [rsp + rax + 0x38]
xor r8d, eax
test edx, r8d
jmp 0x1402fc389
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x24], r13d
cmp esi, 0x20
ja 0x1402fc38b
lea r8, [rsp + 0x20]
mov rdx, r15
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1402fc38b
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x50]
lea ecx, [rax + 1]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1402fc38b
test esi, 0xffffffdf
je 0x1402fc31a
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [rsp + 0x24]
mov edi, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, 0x20
mov edx, 0xffffffff
sub ecx, esi
xor eax, edi
shl edx, cl
test edx, eax
jne 0x1402fc38b
mov al, 1
jmp 0x1402fc3c5
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
sete al
jmp 0x1402fc387
cmp byte [r9 + rdi - 1], 0x2e
jne 0x1402fc33b
lea rax, [rdi - 1]
mov rdi, rax
test rax, rax
je 0x1402fc347
cmp byte [r9], 0x2e
jne 0x1402fc347
inc r9
dec rdi
cmp rdi, r14
jne 0x1402fc361
mov r8, r14
mov rdx, r15
mov rcx, r9
call fcn.1402ce9a0
test eax, eax
setne al
jmp 0x1402fc387
jae 0x1402fc395
mov rdx, r15
sub rdx, rdi
add rdx, r14
cmp byte [rdx - 1], 0x2e
jne 0x1402fc385
mov r8, rdi
mov rcx, r9
call fcn.1402ce9a0
test eax, eax
je 0x1402fc385
mov al, 1
jmp 0x1402fc387
xor al, al
test al, al
jne 0x1402fc313
movabs rdx, 0x100100000200
movzx eax, byte [rbx]
cmp al, 0x20
je 0x1402fc3a0
cmp al, 9
jne 0x1402fc3a5
inc rbx
jmp 0x1402fc395
cmp al, 0x2c
jne 0x1402fc3c3
nop dword [rax]
movzx eax, byte [rbx + 1]
inc rbx
cmp al, 0x2c
je 0x1402fc3b0
test al, al
jne 0x1402fc130
xor al, al
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140311aa0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret