Function at 0x1400018e0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x140006188]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140001b94
mov edx, 0x3b
lea rcx, [0x140006078]
call fcn.1400012d0
xor r9d, r9d
mov r8w, 0x1388
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140001b89
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str._download
lea rdx, [0x140006160]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140001b7e
mov dword [rsp + 0x84], 0x3100
mov r9d, 4
lea r8, [rsp + 0x84]
mov edx, 0x1f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140001b73
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140001b73
lea rdx, [0x1400060b4]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x140001b73
mov eax, dword [rsp + 0xa8]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140001b68
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0xa8]
cmp dword [rsp + 0x40], eax
jae 0x140001b5d
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0xa8]
sub ecx, eax
mov eax, ecx
cmp eax, 0x989680
jae 0x140001ae7
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0xa8]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
jmp 0x140001aef
mov dword [rsp + 0x50], 0x989680
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x70], eax
lea r9, [rsp + 0x80]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140001b56
cmp dword [rsp + 0x80], 0
jbe 0x140001b56
mov eax, dword [rsp + 0x80]
mov r9, qword [rsp + 0x78]
mov r8d, eax
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, dword [rsp + 0x80]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x140001b58
jmp 0x140001b5d
jmp 0x140001aab
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400023f0
add rsp, 0x98
ret