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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
movaps xmmword [rax - 0x48], xmm6
mov rbx, rdx
mov r14, rcx
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rax - 0x68], xmm0
movdqa xmm6, xmmword [0x18004acf0]
movdqu xmmword [rax - 0x58], xmm6
mov byte [rax - 0x68], r12b
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 1]
lea rcx, str.WinINet
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x180002da7
cmp qword [rbx + 0x18], 0xf
jbe 0x180002ac6
mov rbx, qword [rbx]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r15, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x180002d9d
mov dword [rsp + 0xe8], r12d
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
lea r8, [rsp + 0xe8]
mov edx, 0x20000013
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [rsp + 0xe8], 0x194
jb 0x180002b74
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
movdqa xmm0, xmmword [0x18004acf0]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rax, r14
jmp 0x180002dc8
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov rsi, r12
mov qword [rsp + 0x58], r12
mov dword [rsp + 0xe0], r12d
xorps xmm0, xmm0
psrldq xmm0, 8
movq rdi, xmm0
movq rbx, xmm1
nop
mov rax, rdi
sub rax, rbx
lea rdx, [rax + 0x1000]
cmp rdx, rax
jae 0x180002bb8
lea rdi, [rdx + rbx]
jmp 0x180002bf7
jbe 0x180002bfc
mov rax, rsi
sub rax, rbx
cmp rdx, rax
jbe 0x180002be0
lea rcx, [rsp + 0x48]
call fcn.18000d7f0
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
jmp 0x180002bfc
xor edx, edx
mov r8d, 0x1000
mov rcx, rdi
call fcn.18003b9d0
add rdi, 0x1000
mov qword [rsp + 0x50], rdi
mov r13, rdi
sub r13, rbx
lea rdx, [r13 - 0x1000]
add rdx, rbx
lea r9, [rsp + 0xe0]
mov r8d, 0x1000
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x180002c91
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], 0xf
mov byte [r14], al
test rbx, rbx
je 0x180002c76
sub rsi, rbx
mov rax, rbx
cmp rsi, 0x1000
jb 0x180002c6a
add rsi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002de3
mov rdx, rsi
mov rcx, rbx
call fcn.18001688c
nop
movdqa xmm0, xmmword [0x18004acf0]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rax, r14
jmp 0x180002dc8
mov r15d, dword [rsp + 0xe0]
add r15, 0xfffffffffffff000
add r15, r13
cmp r15, r13
jae 0x180002cae
lea rdi, [r15 + rbx]
jmp 0x180002cec
jbe 0x180002cf1
mov rax, rsi
sub rax, rbx
cmp r15, rax
jbe 0x180002cd9
mov rdx, r15
lea rcx, [rsp + 0x48]
call fcn.18000d7f0
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
jmp 0x180002cf1
sub r15, r13
mov r8, r15
xor edx, edx
mov rcx, rdi
call fcn.18003b9d0
add rdi, r15
mov qword [rsp + 0x50], rdi
cmp dword [rsp + 0xe0], 0
mov r15, qword [rsp + 0x38]
ja 0x180002ba0
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], r12
cmp rbx, rdi
jne 0x180002d3e
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
jmp 0x180002d50
sub rdi, rbx
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.180008350
nop
test rbx, rbx
je 0x180002d85
sub rsi, rbx
mov rax, rbx
cmp rsi, 0x1000
jb 0x180002d79
add rsi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002de3
mov rdx, rsi
mov rcx, rbx
call fcn.18001688c
nop
movdqa xmm0, xmmword [0x18004acf0]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rax, r14
jmp 0x180002dc8
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
jmp 0x180002db7
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [r14], xmm0
movups xmmword [r14 + 0x10], xmm6
mov rax, r14
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
call fcn.18002643c
nop
int3