Function at 0x1400015d5
Capabilities:
Link many functions at runtime

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rdi, r8
mov rbx, rdx
mov r13, rcx
mov dword [rsp + 0x34], 0
lea rcx, str.wininet.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400016b2
mov rsi, rax
mov qword [rsp + 0x80], rbx
lea rdx, str.InternetOpenW
mov rbp, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call rbp
mov r15, rax
lea rdx, str.InternetOpenUrlW
mov rcx, rsi
call rbp
mov r14, rax
lea rdx, str.InternetReadFile
mov rcx, rsi
call rbp
mov r12, rax
lea rdx, str.InternetCloseHandle
mov rcx, rsi
call rbp
mov rbx, rax
movq xmm0, r12
movq xmm1, rax
punpcklqdq xmm0, xmm1
movq xmm1, r15
movq xmm2, r14
punpcklqdq xmm2, xmm1
pxor xmm1, xmm1
pcmpeqd xmm2, xmm1
pcmpeqd xmm0, xmm1
movdqa xmm1, xmm2
shufps xmm1, xmm0, 0xdd
shufps xmm2, xmm0, 0x88
andps xmm2, xmm1
movmskps eax, xmm2
test eax, eax
je 0x1400016d6
lea rcx, str.Failed_to_resolve_one_or_more_functions_from_wininet.dll
call fcn.140005528
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400016be
lea rcx, str.Failed_to_load_wininet.dll
call fcn.140005528
xor ebp, ebp
mov eax, ebp
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x70], rdi
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400018dc
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rbx
lea rdx, str.LocalAlloc
mov rbx, rax
mov rcx, rax
call rbp
mov qword [rsp + 0x78], rax
lea rdx, str.LocalReAlloc
mov rcx, rbx
call rbp
mov r12, rax
lea rdx, str.LocalFree
mov rcx, rbx
call rbp
mov rdi, rax
lea rdx, str.RtlCopyMemory
mov rcx, rbx
call rbp
mov r13, rax
lea rdx, str.RtlFillMemory
mov qword [rsp + 0x50], rbx
mov rcx, rbx
mov rbx, r12
mov r12, qword [rsp + 0x78]
call rbp
mov qword [rsp + 0x60], rdi
movq xmm0, rdi
movq xmm1, r13
punpcklqdq xmm0, xmm1
movq xmm1, r12
movq xmm2, rbx
punpcklqdq xmm2, xmm1
pxor xmm1, xmm1
pcmpeqd xmm2, xmm1
pcmpeqd xmm0, xmm1
movdqa xmm1, xmm2
shufps xmm1, xmm0, 0xdd
shufps xmm2, xmm0, 0x88
andps xmm2, xmm1
movmskps ecx, xmm2
test ecx, ecx
jne 0x1400018e8
test rax, rax
je 0x1400018e8
mov rdi, r13
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], 0
xor ebp, ebp
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call r15
test rax, rax
mov r15, qword [rsp + 0x40]
je 0x14000190c
mov r13, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2400
xor ebp, ebp
mov rcx, rax
mov rdx, qword [rsp + 0x38]
xor r8d, r8d
xor r9d, r9d
call r14
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140001922
mov qword [rsp + 0x58], r13
mov edx, 0x400
mov ecx, 0x40
call r12
test rax, rax
je 0x140001940
mov r13, rax
lea r9, [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
mov rdx, rax
mov r8d, 0x400
call qword [rsp + 0x48]
test eax, eax
je 0x1400018c3
xor r14d, r14d
xor r15d, r15d
mov eax, dword [rsp + 0x34]
test rax, rax
je 0x140001945
add r14, rax
test r15, r15
je 0x140001870
mov rcx, r15
mov rdx, r14
mov r8d, 0x42
call rbx
jmp 0x14000187b
mov ecx, 0x40
mov rdx, r14
call r12
mov r15, rax
test rax, rax
je 0x14000195f
mov r8d, dword [rsp + 0x34]
mov rcx, r14
sub rcx, r8
add rcx, r15
mov rdx, r13
call rdi
mov r8d, dword [rsp + 0x34]
mov rcx, r13
xor edx, edx
call qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
mov rdx, r13
mov r8d, 0x400
lea r9, [rsp + 0x34]
call qword [rsp + 0x48]
test eax, eax
jne 0x14000184b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____InternetReadFile_Failed_With_Error_:__lu__n
mov edx, eax
call fcn.140001ff1
jmp 0x140001961
lea rcx, str.Failed_to_load_kernel32.dll
jmp 0x1400016a2
lea rcx, str.Failed_to_resolve_one_or_more_functions_from_kernel32.dll
call fcn.140005528
mov rbx, qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rsi
call rbx
mov rcx, qword [rsp + 0x50]
call rbx
jmp 0x1400016be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____InternetOpenW_Failed_With_Error_:__lu__n
mov edx, eax
call fcn.140001ff1
jmp 0x140001982
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____InternetOpenUrlW_Failed_With_Error_:__lu__n
mov edx, eax
call fcn.140001ff1
mov rcx, r13
call r15
xor ebp, ebp
jmp 0x140001982
xor r13d, r13d
jmp 0x140001966
mov rax, qword [rsp + 0x80]
mov qword [rax], r15
mov rax, qword [rsp + 0x70]
mov qword [rax], r14
mov ebp, 1
jmp 0x140001961
xor ebp, ebp
mov r15, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
call r15
mov rcx, qword [rsp + 0x38]
call r15
test r13, r13
je 0x140001982
mov rcx, r13
call qword [rsp + 0x60]
mov rbx, qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rsi
call rbx
mov rcx, qword [rsp + 0x50]
call rbx
jmp 0x1400016c0