Function at 0x1800191e0
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
push r14
push r15
sub rsp, 0xc8
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1800f0938]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rdi, r9
mov r14, r8
mov r13, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
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 + 0x58], rax
mov dword [rsp + 0x30], 0x7d0
lea r9d, [r15 + 4]
lea r8, [rsp + 0x30]
lea edx, [r15 + 2]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [rsp + 0x30], 3
lea r9d, [r15 + 4]
lea r8, [rsp + 0x30]
lea edx, [r15 + 3]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [rsp + 0x38], r15d
cmp qword [rsi + 0x20], 8
jb 0x180019289
mov rdx, qword [rsi + 8]
jmp 0x18001928d
lea rdx, [rsi + 8]
mov r12, r15
mov qword [rsp + 0x48], r15
mov rbp, r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x4400000
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rsi, rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 4
mov ecx, r15d
mov dword [rsp + 0x38], ecx
test rax, rax
je 0x1800194a4
mov qword [rsp + 0x20], r15
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 0x18001931f
cmp ecx, 0x12e
je 0x18001931f
cmp ecx, 0x12d
je 0x18001931f
cmp ecx, 0x133
jne 0x1800194a4
mov rdx, r13
lea rcx, [rsp + 0x90]
call fcn.1800158b0
nop
mov qword [rsp + 0x88], 7
mov qword [rsp + 0x80], r15
mov word [rsp + 0x70], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x68]
call fcn.1800030f0
nop
mov edx, 0x24
lea rcx, [rsp + 0x68]
call fcn.180015170
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800193ae
test al, 0x10
je 0x1800193ae
cmp qword [rsp + 0x88], 8
jb 0x1800193d0
mov rcx, qword [rsp + 0x70]
call fcn.180098980
jmp 0x1800193d0
cmp qword [rsp + 0x88], 8
jb 0x1800193c3
mov rcx, qword [rsp + 0x70]
call fcn.180098980
lea rcx, [rsp + 0x90]
call fcn.180004490
lea rax, [rsp + 0x40]
test rax, rax
jne 0x1800193df
xor r13b, r13b
jmp 0x180019410
mov eax, dword [rsp + 0x130]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8, r14
mov rdx, r13
lea rcx, [rsp + 0x40]
call fcn.18001a2a0
movzx r13d, al
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
cmp qword [rsp + 0xb0], 8
jb 0x180019428
mov rcx, qword [rsp + 0x98]
call fcn.180098980
mov qword [rsp + 0xb0], 7
mov qword [rsp + 0xa8], r15
mov word [rsp + 0x98], 0
test r12, r12
je 0x180019454
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rbp, rbp
je 0x180019462
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rsi, rsi
je 0x180019481
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
test rbx, rbx
je 0x18001949f
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, r13b
jmp 0x18001950a
test rdi, rdi
je 0x1800194c0
mov dword [rdi + 0x28], ecx
mov dword [rdi + 0x2c], ecx
test ecx, ecx
jne 0x1800194c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x2c], eax
mov ecx, dword [rsp + 0x38]
test ecx, ecx
je 0x1800194cb
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
test rsi, rsi
je 0x1800194ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
test rbx, rbx
je 0x180019508
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 + 0xb8]
xor rcx, rsp
call fcn.180099050
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret