Function at 0x1800078f0
Capabilities:
Check http status code
Check if file exists
Create http request
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xd8
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1800fca30]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, r9
mov r12, r8
mov rbp, rdx
mov rsi, rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbx, rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x30], 0x1388
lea r9d, [r13 + 4]
lea r8, [rsp + 0x30]
lea edx, [r13 + 2]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [rsp + 0x30], 3
lea r9d, [r13 + 4]
lea r8, [rsp + 0x30]
lea edx, [r13 + 3]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [rsp + 0x38], r13d
cmp qword [rsi + 0x20], 8
jb 0x180007995
mov r8, qword [rsi + 8]
jmp 0x180007999
lea r8, [rsi + 8]
mov dword [rsp + 0x28], 0x4400000
mov dword [rsp + 0x20], 0xffffffff
xor r9d, r9d
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180043930
nop
mov dword [rsp + 0x30], 4
mov ecx, r13d
mov dword [rsp + 0x38], ecx
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x180007ba2
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov edx, 0x20000013
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [rsp + 0x38]
cmp ecx, 0xc8
je 0x180007a1c
cmp ecx, 0x12e
je 0x180007a1c
cmp ecx, 0x12d
je 0x180007a1c
cmp ecx, 0x133
jne 0x180007ba2
mov rdx, rbp
lea rcx, [rsp + 0x98]
call fcn.180019a00
nop
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], r13
mov word [rsp + 0x78], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x70]
call fcn.1800030a0
nop
mov edx, 0x24
lea rcx, [rsp + 0x70]
call fcn.1800192c0
lea rcx, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180007aab
test al, 0x10
je 0x180007aab
cmp qword [rsp + 0x90], 8
jb 0x180007acd
mov rcx, qword [rsp + 0x78]
call fcn.1800a2030
jmp 0x180007acd
cmp qword [rsp + 0x90], 8
jb 0x180007ac0
mov rcx, qword [rsp + 0x78]
call fcn.1800a2030
lea rcx, [rsp + 0x98]
call fcn.18000c6b0
lea rax, [rsp + 0x40]
test rax, rax
jne 0x180007adc
xor sil, sil
jmp 0x180007afd
mov eax, dword [rsp + 0x130]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8, r12
mov rdx, rbp
lea rcx, [rsp + 0x40]
call fcn.180008b80
movzx esi, al
cmp qword [rsp + 0xb8], 8
jb 0x180007b15
mov rcx, qword [rsp + 0xa0]
call fcn.1800a2030
mov qword [rsp + 0xb8], 7
mov qword [rsp + 0xb0], r13
mov word [rsp + 0xa0], 0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180007b43
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180007b53
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x40], 0
je 0x180007b7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x40], r13
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
test rbx, rbx
je 0x180007b9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, sil
jmp 0x180007c32
test rdi, rdi
je 0x180007bbe
mov dword [rdi + 0x28], ecx
mov dword [rdi + 0x2c], ecx
test ecx, ecx
jne 0x180007bc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x2c], eax
mov ecx, dword [rsp + 0x38]
test ecx, ecx
je 0x180007bc9
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180007bd9
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180007be9
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x40], 0
je 0x180007c12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x40], r13
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
test rbx, rbx
je 0x180007c30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800a3210
add rsp, 0xd8
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret