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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x550
mov rax, qword [0x180167010]
xor rax, rsp
mov qword [rsp + 0x540], rax
mov r13, rdx
mov rsi, rcx
mov ecx, 0x20
call fcn.18012c104
mov r14, rax
xor ebx, ebx
mov qword [rax], rbx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov qword [rsp + 0x108], rax
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x18002012a
mov rcx, qword [rsi]
mov rdx, rcx
jmp 0x18002012d
mov rdx, rsi
mov rdi, rcx
mov rsi, qword [rsi + 0x10]
add rsi, rdx
cmp rcx, rsi
je 0x180020153
nop dword [rax]
movsx edx, byte [rdi]
mov rcx, r14
call fcn.180040280
inc rdi
cmp rdi, rsi
jne 0x180020140
movabs rax, 0x890818f8bbd3758a
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
movabs rax, 0x4da6a6c912452b95
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
movabs rax, 0xfb08a909114d8c68
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
movabs rcx, 0xa617ae62e43774a8
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
movabs rsi, 0x897c1899bbbb75dd
mov qword [rsp + 0x40], rsi
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x120], rax
movabs rdi, 0x4dd6a69c12652be6
mov qword [rsp + 0x40], rdi
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x128], rax
movabs rax, 0xfb38a927117c8c47
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x138], rax
vmovdqu ymm0, ymmword [rsp + 0x60]
vpxor ymm1, ymm0, ymmword [rsp + 0x120]
vmovdqu ymmword [rsp + 0x60], ymm1
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
vzeroupper
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
je 0x18002054f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xe0], xmm0
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x90], 0x68
lea rax, [rsp + 0x140]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xb0], 0x100
lea rax, [rsp + 0x340]
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0xe0], 0x100
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x1800202e3
mov rcx, qword [r14]
lea r9, [rsp + 0x90]
xor r8d, r8d
mov edx, dword [r14 + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
mov rcx, r15
test eax, eax
je 0x180020416
xor r9d, r9d
movzx r8d, word [rsp + 0xb4]
mov rdx, qword [rsp + 0xa8]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
je 0x180020413
movabs rax, 0x897c18cdbbfe759a
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rdi
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rsi
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x40], rdi
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x118], rax
movdqa xmm0, xmmword [rsp + 0x50]
pxor xmm0, xmmword [rsp + 0x110]
movdqa xmmword [rsp + 0x50], xmm0
mov edx, 0x1bb
mov eax, ebx
mov ecx, 0x800000
cmp word [rsp + 0xb4], dx
cmove eax, ecx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, qword [rsp + 0xd8]
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
je 0x18002040a
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov rcx, rsi
test eax, eax
je 0x180020404
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x180020421
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x18002054f
cmp qword [r13 + 0x18], 0x10
jb 0x18002042c
mov r13, qword [r13]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x180020401
mov dword [rsp + 0x100], ebx
nop word [rax + rax]
mov dword [rsp + 0x80], ebx
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x180020526
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x180020526
mov ecx, eax
call fcn.18012c598
mov rdi, rax
mov r8d, dword [rsp + 0x80]
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x100]
mov r8d, dword [rsp + 0x80]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18002051e
mov dword [rsp + 0x104], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x104]
mov r8d, dword [rsp + 0x100]
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18002051e
mov rcx, rdi
call fcn.18012be60
cmp dword [rsp + 0x80], 0
jbe 0x180020526
jmp 0x180020470
mov rcx, rdi
call fcn.18012be60
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ebx, 1
mov rcx, r14
call fcn.180041300
mov edx, 0x20
mov rcx, r14
call fcn.18012be60
mov eax, ebx
mov rcx, qword [rsp + 0x540]
xor rcx, rsp
call fcn.18012be40
lea r11, [rsp + 0x550]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret