Function at 0x140072680
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 + 0x38], 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 0x1400729f0
mov rcx, qword [rbx]
lea r12, [rax + 1]
test rcx, rcx
je 0x140072703
call sym.Curl_get_scheme_handler
test rax, rax
je 0x140072703
test byte [rax + 0x8d], 4
jne 0x140072968
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 0x1400727c0
test rax, rax
je 0x14007275a
mov r15, qword [0x140186a40]
and ebp, 0x20
mov rdx, qword [r15]
jne 0x140072a00
mov rcx, qword [rbx + 8]
call rdx
mov rax, qword [rsp + 0x40]
mov qword [rbx + 8], rax
cmp qword [rsp + 0x48], 0
je 0x140072778
mov rax, qword [0x140186a40]
mov rcx, qword [rbx + 0x10]
call qword [rax]
mov rax, qword [rsp + 0x48]
mov qword [rbx + 0x10], rax
cmp qword [rsp + 0x50], 0
je 0x140072796
mov rax, qword [0x140186a40]
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 0x140072810
cmp eax, 0x64
je 0x140072978
mov ebp, 7
jmp 0x1400727fa
mov r15, qword [0x140186a40]
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 0x140072a10
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 0x140072988
mov edx, 0x3a
mov rcx, rax
call sym.strchr
mov rsi, rax
test rax, rax
jne 0x1400729b3
mov rcx, r13
call sym.Curl_dyn_len
test rax, rax
je 0x140072b70
mov rcx, r13
call sym.Curl_dyn_ptr
pxor xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
cmp byte [rax], 0x5b
mov rcx, rax
je 0x140072b90
xor edi, edi
lea rsi, [rsp + 0x48]
mov qword [rsp + 0x48], 0
movzx eax, byte [rcx]
sub eax, 0x30
cmp al, 9
ja 0x1400728ad
mov rdx, rsi
xor r8d, r8d
call sym.strtoul
mov rcx, qword [rsp + 0x48]
mov dword [rsp + rdi*4 + 0x50], eax
movzx edx, byte [rcx]
test dl, dl
je 0x140072a40
cmp dl, 0x2e
je 0x140072a20
mov rcx, r13
call sym.Curl_dyn_ptr
mov edx, 0x25
mov rcx, rax
mov rsi, rax
call sym.strchr
test rax, rax
je 0x140072920
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 0x140072bcb
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 [0x140186a40]
call qword [rax]
test esi, esi
jne 0x140072bd5
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 0x140072b70
cmp byte [rax], 0x5b
je 0x140072cfc
lea rdx, str.__r_n_t_:_______________
call sym.strcspn
cmp rsi, rax
mov eax, 0x15
cmovne ebp, eax
jmp 0x1400727fa
lea rax, [rsp + 0x50]
jmp 0x140072705
mov ebp, 0x1f
jmp 0x1400727fa
mov edx, 0x5d
mov rcx, rax
call sym.strchr
test rax, rax
je 0x140072bc1
movzx edx, byte [rax + 1]
test dl, dl
je 0x14007283d
lea rsi, [rax + 1]
cmp dl, 0x3a
jne 0x1400729e1
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 0x140072b80
sub eax, 0x30
cmp al, 9
jbe 0x140072ac8
mov ebp, 4
jmp 0x1400727fa
mov r15, qword [0x140186a40]
xor ebp, ebp
jmp 0x1400727cc
mov ebp, 8
jmp 0x1400727cc
mov r12, rsi
jmp 0x140072799
cmp rdi, 3
je 0x1400728ad
add rcx, 1
cmp eax, 0xffffffff
je 0x140072b48
add rdi, 1
jmp 0x140072872
cmp eax, 0xffffffff
je 0x140072b30
cmp edi, 2
je 0x140072c99
cmp edi, 3
je 0x140072c29
test edi, edi
je 0x140072bea
mov edi, dword [rsp + 0x50]
cmp edi, 0xff
ja 0x1400728ad
mov esi, dword [rsp + 0x54]
cmp esi, 0xffffff
ja 0x1400728ad
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, str._u._u._u._u
movzx eax, ah
mov r9d, esi
mov dword [rsp + 0x20], eax
call sym.Curl_dyn_addf
test eax, eax
je 0x1400727fa
jmp 0x1400727b6
lea rcx, [rsi + 1]
lea rdx, [rsp + 0x50]
mov r8d, 0xa
call sym.strtol
mov esi, eax
cmp eax, 0xffff
jg 0x1400729e1
mov rax, qword [rsp + 0x50]
cmp byte [rax], 0
jne 0x1400729e1
mov rax, qword [0x140186a40]
mov rcx, qword [rbx + 0x30]
mov dword [rbx + 0x50], esi
call qword [rax]
mov edx, esi
lea rcx, [0x140178922]
call sym.curl_maprintf
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x14007283d
jmp 0x1400727b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x22
je 0x1400728ad
jmp 0x140072a49
mov qword [rsp + 0x38], rcx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [rsp + 0x38]
cmp dword [rax], 0x22
jne 0x140072a37
jmp 0x1400728ad
mov ebp, 0xe
jmp 0x1400727fa
cmp byte [rsp + 0x38], 0
jne 0x14007283d
jmp 0x1400729e1
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 0x1400727fa
mov ebp, 0x15
jmp 0x1400727fa
cmp esi, 0x64
mov ebp, 7
mov eax, 0x1f
cmove ebp, eax
jmp 0x1400727fa
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, str._u._u._u._u
mov r8d, eax
call sym.Curl_dyn_addf
jmp 0x140072ab4
mov esi, dword [rsp + 0x50]
cmp esi, 0xff
ja 0x1400728ad
mov edi, dword [rsp + 0x54]
cmp edi, 0xff
ja 0x1400728ad
mov r12d, dword [rsp + 0x58]
cmp r12d, 0xff
ja 0x1400728ad
mov r14d, dword [rsp + 0x5c]
cmp r14d, 0xff
ja 0x1400728ad
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, str._u._u._u._u
mov rcx, r13
call sym.Curl_dyn_addf
jmp 0x140072ab4
mov edi, dword [rsp + 0x50]
cmp edi, 0xff
ja 0x1400728ad
mov r12d, dword [rsp + 0x54]
cmp r12d, 0xff
ja 0x1400728ad
mov esi, dword [rsp + 0x58]
cmp esi, 0xffff
ja 0x1400728ad
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, str._u._u._u._u
mov dword [rsp + 0x20], esi
call sym.Curl_dyn_addf
jmp 0x140072ab4
mov r8, rsi
mov rdx, rax
jmp 0x140072ba9