Function at 0x140025f10
Capabilities:
Check http status code
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rsi, rdx
mov rdi, rcx
mov r12, qword [rcx + 0x478]
mov r14, qword [rcx + 0x480]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 1
movabs rbx, 0x3a0000003a
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x60], 1
lea rcx, [rsp + 0x78]
call fcn.14001b6a0
cmp qword [rsp + 0x78], 0
mov qword [rsp + 0x70], r12
je 0x140025fae
mov r15, qword [rsp + 0x80]
mov rax, qword [rsp + 0x20]
lea rbp, [r12 + rax]
sub r15, rax
jmp 0x140025fdb
cmp byte [rsp + 0x61], 0
jne 0x140026198
cmp byte [rsp + 0x60], 0
mov rbp, qword [rsp + 0x20]
mov r15, qword [rsp + 0x28]
jne 0x140025fd3
cmp r15, rbp
je 0x140026198
sub r15, rbp
add rbp, qword [rsp + 0x30]
mov r12, qword [rsi + 8]
mov r13, qword [rsi + 0x10]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], r13
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x60], 1
lea rcx, [rsp + 0x78]
call fcn.14001b6a0
cmp qword [rsp + 0x78], 0
je 0x140026050
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x20]
lea rdx, [r12 + rcx]
sub rax, rcx
cmp r15, rax
je 0x140026082
jmp 0x140026091
cmp byte [rsp + 0x61], 0
jne 0x140026198
cmp byte [rsp + 0x60], 0
mov rdx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
jne 0x140026075
cmp rax, rdx
je 0x140026198
sub rax, rdx
add rdx, qword [rsp + 0x30]
cmp r15, rax
jne 0x140026091
mov rcx, rbp
mov r8, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400260cc
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14002b260
test rax, rax
je 0x14002616d
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x20]
mov rbx, qword [rsp + 0x70]
mov rdx, rbx
mov r8, r14
call fcn.14002b920
mov r14, qword [rsp + 0x20]
test r14, r14
je 0x140026188
mov r15, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
mov rdx, r12
mov r8, r13
call fcn.14002b920
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140026188
cmp r15, qword [rsp + 0x28]
jne 0x140026091
mov r12, rbx
mov rcx, r14
mov r8, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140026091
lea rbx, [rdi + 0x470]
cmp qword [rbx], 0
je 0x14002614e
mov rcx, qword [0x1401521d8]
xor edx, edx
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapFree]
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx], xmm0
mov rcx, rdi
call fcn.14002b540
test rax, rax
jne 0x1400260b8
mov rcx, rdi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140029a30
mov rax, qword [rsp + 0x28]
cmp qword [rsi], 0
jne 0x1400261c3
jmp 0x1400260b8
lea rdi, [rsp + 0x78]
mov rcx, rdi
call fcn.1400ab1e0
lea rcx, str.Failed_to_parse_scheme_in_URLFailed_to_parse_host_in_URLFailed_to_parse_path_in_URLFailed_to_parse_port_in_URLUnsupported_scheme_in_URL
mov edx, 0x1d
mov r8, rdi
call fcn.1400ef310
cmp qword [rsi], 0
je 0x1400260b8
mov r8, qword [rsi + 8]
mov rcx, qword [0x1401521d8]
xor edx, edx
mov rsi, rax
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, rsi
jmp 0x1400260b8