Function at 0x140121f48
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb90]
sub rsp, 0xc90
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rbp + 0xb80], rax
xor r14d, r14d
mov rsi, rdx
mov qword [rsp + 0x40], rcx
mov edi, r14d
cmp qword [rdx], r14
jne 0x140121f94
lea edi, [r14 + 0x57]
jmp 0x140122271
lea rcx, str.WinInet.dll
mov dword [rsp + 0x3c], r14d
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140121fba
lea rcx, [rsp + 0x3c]
mov rdx, rax
call fcn.140121ee8
jmp 0x140121fbd
mov al, r14b
test al, al
jne 0x140121fcb
mov edi, 0x2f83
jmp 0x140122271
mov rax, qword [rsi]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rax + 8]
xor edx, edx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r12, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140121fff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140122271
mov rax, qword [rsi]
lea rdx, str.https:__
mov ebx, 0x80000000
mov rcx, qword [rax + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
mov ecx, 0x80800000
mov qword [rsp + 0x28], r14
test eax, eax
mov rax, qword [rsi]
mov rdx, qword [rax + 0x10]
cmovne ebx, ecx
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov r13, rax
test rax, rax
jne 0x140122056
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140122268
mov rdx, qword [rsi]
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x140122067
mov rax, qword [rcx]
call qword [rax]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x70]
mov ebx, 0x200
mov edx, 5
mov rcx, r13
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x38], ebx
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x14012209c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, r14d
jmp 0x1401220b3
mov eax, dword [rsp + 0x38]
lea rcx, [rsp + 0x70]
mov word [rsp + rax*2 + 0x70], r14w
call fcn.1400beacc
mov r15d, eax
lea r9, [rsp + 0x34]
lea r8, [rbp + 0x170]
mov edx, 0x13
mov rcx, r13
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x20], r14
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x1401220e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, r14d
mov edi, r14d
jmp 0x140122103
mov eax, dword [rsp + 0x34]
lea rcx, [rbp + 0x170]
mov word [rbp + rax*2 + 0x170], r14w
call fcn.1400beacc
mov ebx, eax
mov rcx, qword [rsi]
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x14012211b
mov r9, qword [rcx]
mov r8d, r15d
xor edx, edx
call qword [r9 + 0x18]
and dword [rsp + 0x30], r14d
movsxd rax, ebx
mov byte [rbp + 0x370], r14b
mov qword [rsp + 0x48], rax
xor r12d, r12d
lea r9, [rsp + 0x30]
lea rdx, [rbp + 0x370]
mov r8d, 0x800
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
test eax, eax
jne 0x140122164
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsp + 0x30]
mov edi, eax
jmp 0x140122206
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x1401221ff
mov rdx, qword [rsi]
mov byte [rbp + rcx + 0x370], 0
mov r10, qword [rdx + 0x20]
test r10, r10
je 0x1401221d8
cmp qword [rsp + 0x48], 0x194
jne 0x1401221be
mov rax, qword [str.___ERROR404___]
mov r9d, 0x11
lea r8, [rsp + 0x58]
mov qword [rsp + 0x58], rax
mov rax, qword [0x140385fa8]
mov qword [rsp + 0x60], rax
mov al, byte [0x140385fb0]
mov byte [rsp + 0x68], al
jmp 0x1401221c8
mov r9d, ecx
lea r8, [rbp + 0x370]
mov rax, qword [r10]
mov rcx, r10
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, dword [rsp + 0x30]
mov r12d, eax
mov rax, qword [rsi]
add r14d, ecx
mov r9, qword [rax + 0x20]
test r9, r9
je 0x1401221ff
test r12d, r12d
jne 0x1401221ff
mov rax, qword [r9]
mov r8d, r15d
mov edx, r14d
mov rcx, r9
call qword [rax + 0x18]
mov ecx, dword [rsp + 0x30]
mov byte [rbp + 0x370], 0
test edi, edi
jne 0x14012222e
test ebx, ebx
je 0x14012222e
test ecx, ecx
je 0x14012222e
mov rcx, qword [rsp + 0x40]
add rcx, 8
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
jne 0x14012222e
test r12d, r12d
je 0x140122132
mov rcx, qword [rsp + 0x40]
add rcx, 8
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
je 0x140122248
mov edi, 0x4c7
jmp 0x14012225a
mov rdx, qword [rsi]
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x14012225a
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov r12, qword [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0xb80]
xor rcx, rsp
call fcn.1400be110
mov rbx, qword [rsp + 0xce0]
add rsp, 0xc90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret