Function at 0x1400c03dc
Capabilities:
Check http status code
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x58
mov rsi, rdx
mov r8, rdx
mov rdx, rcx
mov rbx, rcx
lea rcx, str.HttpGetToFile:_url:__s__file:__s_n
call fcn.1400b3458
xor r13d, r13d
mov dword [rbp + 0x60], 4
mov dword [rbp + 0x48], r13d
mov r15b, r13b
mov dword [rbp + 0x50], r13d
mov edi, r13d
mov r14d, r13d
test rbx, rbx
jne 0x1400c0431
mov r12d, r13d
jmp 0x1400c0448
call fcn.1400b2af0
mov r8, rax
or rdx, 0xffffffffffffffff
mov rcx, rbx
call fcn.1400be600
mov r12, rax
mov qword [rbp - 0x10], r13
mov rbx, r13
test rsi, rsi
jne 0x1400c0459
mov rax, r13
jmp 0x1400c046d
call fcn.1400b2af0
mov r8, rax
or rdx, 0xffffffffffffffff
mov rcx, rsi
call fcn.1400be600
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rax
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x1400c04bb
mov rdx, rsi
lea rcx, str.HttpGetToFile:_CreateFileW__s__failed_n
call fcn.1400b3458
xor ecx, ecx
call fcn.1400b5d58
jmp 0x1400c05e4
mov edx, 1
mov ecx, 0x40000
call fcn.140109ad8
mov rbx, rax
test rax, rax
je 0x1400c05e4
and dword [rsp + 0x20], edi
lea rcx, str.SumatraPdfHTTP
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r14, rax
test rax, rax
je 0x1400c05e4
and qword [rsp + 0x28], rdi
xor r9d, r9d
and dword [rsp + 0x20], edi
xor r8d, r8d
mov rdx, r12
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rdi, rax
test rax, rax
je 0x1400c05e4
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x60]
lea r8, [rbp + 0x50]
mov edx, 0x20000013
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1400c05e4
cmp dword [rbp + 0x50], 0xc8
jne 0x1400c05e4
lea r9, [rbp + 0x48]
mov r8d, 0x40000
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400c05e4
mov r12, qword [rbp + 0x58]
mov r8d, dword [rbp + 0x48]
test r8d, r8d
je 0x1400c05e1
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x18]
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400c05e4
mov eax, dword [rbp + 0x48]
add qword [rbp - 0x10], rax
mov rax, qword [r12]
test rax, rax
je 0x1400c05bd
mov rcx, qword [r12 + 8]
cmp rcx, 0xffffffffffffffff
jne 0x1400c05b7
lea rcx, [rbp - 0x10]
call rax
jmp 0x1400c05bd
lea rdx, [rbp - 0x10]
call rax
mov eax, dword [rbp + 0x48]
cmp dword [rbp - 0x18], eax
jne 0x1400c05e4
lea r9, [rbp + 0x48]
mov r8d, 0x40000
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400c0571
jmp 0x1400c05e4
mov r15b, 1
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x1400c05fb
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test r14, r14
je 0x1400c0609
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test r15b, r15b
jne 0x1400c0616
mov rcx, rsi
call fcn.1400b506c
mov rcx, rbx
call fcn.140107298
mov al, r15b
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret