Function at 0x140063590
Capabilities:
Convert ip address from string

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x168
mov r13, rcx
mov rbx, rdx
test rcx, rcx
je 0x1400635c2
movzx edx, byte [rcx]
test dl, dl
setne r14b
test rbx, rbx
setne al
and r14b, al
jne 0x1400635e0
xor r14d, r14d
mov eax, r14d
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx r12d, byte [rbx]
test r12b, r12b
je 0x1400635c2
cmp r12b, 0x2a
jne 0x1400635f5
cmp byte [rbx + 1], 0
je 0x1400635c5
cmp dl, 0x5b
jne 0x14006363b
mov edx, 0x5d
mov rcx, r13
call sym.strchr
mov rdi, rax
test rax, rax
je 0x1400635c2
lea rdx, [r13 + 1]
sub rdi, rdx
cmp rdi, 0x7f
ja 0x1400635c2
lea r9, [rsp + 0x60]
mov r8, rdi
mov rcx, r9
call sym.memcpy
mov byte [rsp + rdi + 0x60], 0
mov edx, 2
mov r13, rax
jmp 0x140063683
mov rcx, r13
call sym.strlen
mov rdx, r13
mov ecx, 2
lea r8, [rsp + 0xe0]
mov rdi, rax
call qword [sym.imp.WS2_32.dll_inet_pton]
mov edx, 1
cmp eax, 1
je 0x140063676
lea rax, [rdi - 1]
xor edx, edx
cmp byte [r13 + rdi - 1], 0x2e
cmove rdi, rax
movzx r12d, byte [rbx]
test r12b, r12b
je 0x1400635c2
lea rax, [rsp + 0xe0]
mov dword [rsp + 0x28], edx
lea ebp, [rdx - 1]
movabs rsi, 0xffffeffefffffdff
mov qword [rsp + 0x20], rax
mov r15d, ebp
nop dword [rax]
mov rcx, rbx
jmp 0x1400636c2
movzx r12d, byte [rcx + 1]
add rcx, 1
test r12b, r12b
je 0x1400635c2
cmp r12b, 0x20
je 0x1400636b0
cmp r12b, 9
je 0x1400636b0
mov rbx, rcx
mov eax, r12d
xor ebp, ebp
jmp 0x1400636f0
movzx eax, byte [rbx + 1]
add rbx, 1
add rbp, 1
test al, al
je 0x1400636fa
cmp al, 0x2c
ja 0x1400636e0
bt rsi, rax
jb 0x1400636e0
test rbp, rbp
je 0x140063738
cmp r15d, 1
jbe 0x140063780
cmp byte [rcx + rbp - 1], 0x2e
lea r8, [rbp - 1]
je 0x140063850
cmp r12b, 0x2e
jne 0x140063722
add rcx, 1
sub rbp, 1
cmp rbp, rdi
je 0x140063888
jb 0x1400638a5
nop dword [rax]
cmp al, 0x20
je 0x140063740
cmp al, 9
jne 0x14006374f
add rbx, 1
movzx eax, byte [rbx]
cmp al, 0x20
je 0x140063740
cmp al, 9
je 0x140063740
cmp al, 0x2c
jne 0x1400635c2
nop word [rax + rax]
movzx r12d, byte [rbx + 1]
add rbx, 1
cmp r12b, 0x2c
je 0x140063760
test r12b, r12b
jne 0x1400636a8
jmp 0x1400635c2
cmp rbp, 0x7f
ja 0x140063738
mov r12, qword [rsp + 0x20]
mov r8, rbp
mov rdx, rcx
mov rcx, r12
call sym.memcpy
mov edx, 0x2f
mov rcx, r12
mov byte [rsp + rbp + 0xe0], 0
call sym.strchr
mov rbp, rax
test rax, rax
je 0x140063990
lea rcx, [rax + 1]
call sym.atoi
cmp dword [rsp + 0x28], 2
mov byte [rbp], 0
mov dword [rsp + 0x2c], eax
mov r12d, eax
je 0x1400638b0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x50], 0
cmp eax, 0x20
ja 0x140063744
mov rbp, qword [sym.imp.WS2_32.dll_inet_pton]
lea r8, [rsp + 0x40]
mov rdx, r13
mov ecx, 2
call rbp
cmp eax, 1
jne 0x140063744
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x50]
mov ecx, 2
call rbp
cmp eax, 1
jne 0x140063744
mov ecx, dword [rsp + 0x40]
test dword [rsp + 0x2c], 0xffffffdf
jne 0x1400639d1
cmp dword [rsp + 0x50], ecx
sete al
jmp 0x140063898
test r8, r8
jne 0x1400639b4
test rdi, rdi
je 0x140063888
mov rdx, rdi
cmp byte [r13 + rdx - 1], 0x2e
jne 0x140063738
add rdx, r13
call sym.curl_strnequal
test eax, eax
je 0x140063744
jmp 0x1400635c5
mov r8, rdi
mov rdx, r13
call sym.curl_strnequal
test eax, eax
setne al
test al, al
je 0x140063744
jmp 0x1400635c5
mov rdx, rdi
mov r8, rbp
sub rdx, rbp
jmp 0x140063861
test eax, eax
je 0x1400639bc
cmp eax, 0x87
ja 0x140063744
mov ebp, eax
and r12d, 7
shr ebp, 3
cmp ebp, 0x10
jne 0x1400638da
test r12d, r12d
jne 0x140063744
mov r10, qword [sym.imp.WS2_32.dll_inet_pton]
lea rax, [rsp + 0x40]
mov rdx, r13
mov ecx, 0x17
mov qword [rsp + 0x30], rax
mov r8, rax
mov qword [rsp + 0x38], r10
call r10
mov r10, qword [rsp + 0x38]
cmp eax, 1
jne 0x140063744
lea r11, [rsp + 0x50]
mov rdx, qword [rsp + 0x20]
mov ecx, 0x17
mov qword [rsp + 0x38], r11
mov r8, r11
call r10
mov r11, qword [rsp + 0x38]
cmp eax, 1
jne 0x140063744
cmp dword [rsp + 0x2c], 7
jbe 0x14006395a
mov r8d, ebp
mov rcx, qword [rsp + 0x30]
mov rdx, r11
and r8d, 0x1fffffff
call sym.memcmp
test eax, eax
jne 0x140063744
test r12d, r12d
je 0x1400635c5
mov ecx, 8
movzx eax, byte [rsp + rbp + 0x40]
mov edx, 0xff
xor al, byte [rsp + rbp + 0x50]
sub ecx, r12d
movzx eax, al
shl edx, cl
test eax, edx
jne 0x1400635c5
jmp 0x140063744
cmp dword [rsp + 0x28], 2
je 0x1400639bc
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x2c], 0
jmp 0x1400637f2
mov rbp, r8
jmp 0x140063714
mov dword [rsp + 0x2c], pe_nt_image_headers64
xor r12d, r12d
mov ebp, 0x10
jmp 0x1400638da
mov r12, qword [sym.imp.WS2_32.dll_htonl]
call r12
mov ecx, dword [rsp + 0x50]
mov ebp, eax
call r12
mov ecx, 0x20
mov edx, eax
mov eax, dword [rsp + 0x2c]
xor ebp, edx
sub ecx, eax
mov eax, 0xffffffff
shl eax, cl
test eax, ebp
jne 0x140063744
jmp 0x1400635c5