Function at 0x140028580
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, 0x68
mov eax, dword [rsp + 0xd8]
mov r13, qword [rsp + 0xd0]
mov rsi, rdx
mov rbx, rcx
mov edx, 0x40
mov dword [rsp + 0x3c], eax
mov rcx, rsi
mov rdi, r8
mov ebp, r9d
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
call sym.memchr
test rax, rax
je 0x1400288e8
mov rcx, qword [rbx]
lea r12, [rax + 1]
test rcx, rcx
je 0x140028603
call sym.Curl_get_scheme_handler
test rax, rax
je 0x140028603
test byte [rax + 0x95], 4
jne 0x140028888
xor eax, eax
mov qword [rsp + 0x20], rax
mov r14, r12
lea r9, [rsp + 0x48]
mov rcx, rsi
sub r14, rsi
lea r8, [rsp + 0x40]
lea rdx, [r14 - 1]
call sym.Curl_parse_login_details
test eax, eax
mov rax, qword [rsp + 0x40]
jne 0x1400286c0
test rax, rax
je 0x14002865a
mov r15, qword [0x14011e7f0]
and ebp, 0x20
mov rdx, qword [r15]
jne 0x140028900
mov rcx, qword [rbx + 8]
call rdx
mov rax, qword [rsp + 0x40]
mov qword [rbx + 8], rax
cmp qword [rsp + 0x48], 0
je 0x140028678
mov rax, qword [0x14011e7f0]
mov rcx, qword [rbx + 0x10]
call qword [rax]
mov rax, qword [rsp + 0x48]
mov qword [rbx + 0x10], rax
cmp qword [rsp + 0x50], 0
je 0x140028696
mov rax, qword [0x14011e7f0]
mov rcx, qword [rbx + 0x18]
call qword [rax]
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x18], rax
sub rdi, r14
mov r8, rdi
mov rdx, r12
mov rcx, r13
call sym.Curl_dyn_addn
mov ebp, eax
test eax, eax
je 0x140028710
cmp eax, 0x64
je 0x140028898
mov ebp, 7
jmp 0x1400286fa
mov r15, qword [0x14011e7f0]
mov ebp, 0x17
mov rcx, rax
call qword [r15]
mov rcx, qword [rsp + 0x48]
call qword [r15]
mov rcx, qword [rsp + 0x50]
call qword [r15]
pxor xmm0, xmm0
mov qword [rbx + 0x18], 0
movups xmmword [rbx + 8], xmm0
test ebp, ebp
je 0x140028910
mov eax, ebp
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r13
call sym.Curl_dyn_ptr
cmp byte [rax], 0x5b
mov rdi, rax
je 0x1400288a8
mov edx, 0x3a
mov rcx, rax
call sym.strchr
mov rsi, rax
test rax, rax
jne 0x140028920
mov rcx, r13
call sym.Curl_dyn_len
test rax, rax
je 0x140028a70
mov rcx, r13
call sym.Curl_dyn_ptr
pxor xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
cmp byte [rax], 0x5b
mov rsi, rax
je 0x140028a90
mov rdi, qword [sym.imp.msvcrt.dll__errno]
xor r14d, r14d
lea r12, [rsp + 0x48]
call rdi
mov dword [rax], 0
mov qword [rsp + 0x48], 0
movzx eax, byte [rsi]
sub eax, 0x30
cmp al, 9
ja 0x1400287ca
mov rcx, rsi
xor r8d, r8d
mov rdx, r12
call sym.strtoul
mov esi, eax
call rdi
mov eax, dword [rax]
test eax, eax
jne 0x1400287ca
mov dword [rsp + r14*4 + 0x50], esi
mov rsi, qword [rsp + 0x48]
movzx eax, byte [rsi]
test al, al
je 0x1400289f0
cmp al, 0x2e
je 0x1400289d0
mov rcx, r13
call sym.Curl_dyn_ptr
mov edx, 0x25
mov rcx, rax
mov rsi, rax
call sym.strchr
test rax, rax
je 0x14002883d
xor edx, edx
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
mov rcx, rsi
mov dword [rsp + 0x20], 3
call sym.Curl_urldecode
test eax, eax
jne 0x140028acb
mov rcx, r13
call sym.Curl_dyn_reset
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, r13
call sym.Curl_dyn_addn
mov rcx, qword [rsp + 0x50]
mov esi, eax
mov rax, qword [0x14011e7f0]
call qword [rax]
test esi, esi
jne 0x140028ad5
mov rcx, r13
call sym.Curl_dyn_len
mov rcx, r13
mov rsi, rax
call sym.Curl_dyn_ptr
mov rcx, rax
test rsi, rsi
je 0x140028a70
cmp byte [rax], 0x5b
je 0x140028bfc
lea rdx, str.__r_n_t_:_______________
call sym.strcspn
cmp rsi, rax
mov eax, 0x15
cmovne ebp, eax
jmp 0x1400286fa
lea rax, [rsp + 0x50]
jmp 0x140028605
mov ebp, 0x1f
jmp 0x1400286fa
mov edx, 0x5d
mov rcx, rax
call sym.strchr
test rax, rax
je 0x140028ac1
movzx edx, byte [rax + 1]
test dl, dl
je 0x14002873d
lea rsi, [rax + 1]
cmp dl, 0x3a
je 0x140028920
nop dword [rax + rax]
mov ebp, 4
jmp 0x1400286fa
mov r15, qword [0x14011e7f0]
xor ebp, ebp
jmp 0x1400286cc
mov ebp, 8
jmp 0x1400286cc
mov r12, rsi
jmp 0x140028699
mov qword [rsp + 0x50], 0
mov rdx, rsi
mov rcx, r13
sub rdx, rdi
call sym.Curl_dyn_setlen
movzx eax, byte [rsi + 1]
test al, al
je 0x140028a80
sub eax, 0x30
cmp al, 9
ja 0x1400288d8
mov rdi, qword [sym.imp.msvcrt.dll__errno]
call rdi
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 1]
mov r8d, 0xa
mov dword [rax], 0
call sym.strtoul
mov esi, eax
call rdi
mov edx, dword [rax]
test edx, edx
jne 0x1400288d8
cmp esi, 0xffff
ja 0x1400288d8
mov rax, qword [rsp + 0x50]
cmp byte [rax], 0
jne 0x1400288d8
mov rax, qword [0x14011e7f0]
mov rcx, qword [rbx + 0x30]
mov word [rbx + 0x50], si
call qword [rax]
mov edx, esi
lea rcx, [0x1400f8ac2]
call sym.curl_maprintf
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x14002873d
jmp 0x1400286b6
add r14, 1
cmp r14, 4
je 0x1400287ca
add rsi, 1
jmp 0x140028782
cmp r14d, 2
je 0x140028b5a
cmp r14d, 3
je 0x140028aea
test r14d, r14d
je 0x140028bbd
mov edi, dword [rsp + 0x50]
cmp edi, 0xff
ja 0x1400287ca
mov esi, dword [rsp + 0x54]
cmp esi, 0xffffff
ja 0x1400287ca
mov rcx, r13
call sym.Curl_dyn_reset
movzx eax, sil
mov r8d, edi
mov rcx, r13
mov dword [rsp + 0x28], eax
mov eax, esi
shr esi, 0x10
lea rdx, [0x1400f8ac6]
movzx eax, ah
mov r9d, esi
mov dword [rsp + 0x20], eax
call sym.Curl_dyn_addf
test eax, eax
je 0x1400286fa
jmp 0x1400286b6
mov ebp, 0xe
jmp 0x1400286fa
cmp byte [rsp + 0x3c], 0
jne 0x14002873d
jmp 0x1400288d8
mov rcx, r13
call sym.Curl_dyn_len
mov rcx, r13
mov rsi, rax
call sym.Curl_dyn_ptr
mov r8, rsi
mov rdx, rax
mov rcx, rbx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.ipv6_parse
mov ebp, 0x16
jmp 0x1400286fa
mov ebp, 0x15
jmp 0x1400286fa
cmp esi, 0x64
mov ebp, 7
mov eax, 0x1f
cmove ebp, eax
jmp 0x1400286fa
mov esi, dword [rsp + 0x50]
cmp esi, 0xff
ja 0x1400287ca
mov edi, dword [rsp + 0x54]
cmp edi, 0xff
ja 0x1400287ca
mov r12d, dword [rsp + 0x58]
cmp r12d, 0xff
ja 0x1400287ca
mov r14d, dword [rsp + 0x5c]
cmp r14d, 0xff
ja 0x1400287ca
mov rcx, r13
call sym.Curl_dyn_reset
mov dword [rsp + 0x28], r14d
mov r9d, edi
mov r8d, esi
mov dword [rsp + 0x20], r12d
lea rdx, [0x1400f8ac6]
mov rcx, r13
call sym.Curl_dyn_addf
jmp 0x140028a5e
mov edi, dword [rsp + 0x50]
cmp edi, 0xff
ja 0x1400287ca
mov r12d, dword [rsp + 0x54]
cmp r12d, 0xff
ja 0x1400287ca
mov esi, dword [rsp + 0x58]
cmp esi, 0xffff
ja 0x1400287ca
mov rcx, r13
call sym.Curl_dyn_reset
movzx eax, sil
shr esi, 8
mov r9d, r12d
mov dword [rsp + 0x28], eax
mov r8d, edi
mov rcx, r13
lea rdx, [0x1400f8ac6]
mov dword [rsp + 0x20], esi
call sym.Curl_dyn_addf
jmp 0x140028a5e
mov rcx, r13
call sym.Curl_dyn_reset
mov eax, dword [rsp + 0x50]
mov rcx, r13
movzx edx, al
mov r9d, eax
mov dword [rsp + 0x28], edx
movzx edx, ah
shr r9d, 0x10
mov dword [rsp + 0x20], edx
shr eax, 0x18
movzx r9d, r9b
lea rdx, [0x1400f8ac6]
mov r8d, eax
call sym.Curl_dyn_addf
jmp 0x140028a5e
mov r8, rsi
mov rdx, rax
jmp 0x140028aa9