Function at 0x180006850
Capabilities:
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 - 0x2790]
mov eax, 0x2890
call fcn.18001c580
sub rsp, rax
mov rax, qword [0x180055538]
xor rax, rsp
mov qword [rbp + 0x2780], rax
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rcx
xor r13d, r13d
mov dword [rsp + 0x34], r13d
test rdx, rdx
je 0x180006baf
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], r13b
jne 0x1800068b0
test rax, rax
je 0x180006baf
mov dword [rsp + 0x70], r13d
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], 3
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r13
mov r12d, 0xf
mov qword [rsp + 0x68], r12
mov byte [rsp + 0x50], r13b
mov rdi, r13
mov qword [rsp + 0x60], r13
mov byte [rsp + 0x50], dil
mov rbx, r13
nop
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + rbx*4 + 0x70]
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
test rax, rax
je 0x180006b7d
mov dword [rsp + 0x40], 0x2710
mov r9d, 4
lea r8, [rsp + 0x40]
lea edx, [r9 - 2]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r13, rax
inc rbx
test rax, rax
jne 0x1800069d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp rbx, 3
jl 0x180006910
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
xor eax, eax
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], 0xf
mov byte [rsi], al
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], al
jmp 0x180006bcc
xor ebx, ebx
mov dword [rsp + 0x3c], ebx
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x3c]
lea edx, [rbx + 0x13]
mov rcx, r13
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ecx, ebx
lea rdx, [rsp + 0x3c]
lea r8, [0x18003bbf4]
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x180006b55
cmp rcx, 4
jne 0x180006a10
xor edx, edx
mov r8d, 0x2800
lea rcx, [rbp - 0x80]
call fcn.18001e520
mov dword [rsp + 0x30], ebx
lea r9, [rsp + 0x30]
mov r8d, 0x2800
lea rdx, [rbp - 0x80]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x180006b02
movzx ebx, byte [rsp + 0x38]
nop word [rax + rax]
mov r14d, eax
mov rax, r12
sub rax, rdi
cmp r14, rax
ja 0x180006aaf
lea rax, [rdi + r14]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
cmp r12, 0x10
cmovae rax, qword [rsp + 0x50]
add rdi, rax
mov r8d, r14d
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.18001de70
mov byte [rdi + r14], 0
jmp 0x180006ac9
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x80]
movzx r8d, bl
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.180009390
mov dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
mov r8d, 0x2800
lea rdx, [rbp - 0x80]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x180006b00
mov r12, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
jmp 0x180006a70
xor ebx, ebx
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x10], xmm1
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
jmp 0x180006bcc
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 0xf
mov byte [rsi], bl
jmp 0x180006b38
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], dil
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
jmp 0x180006bcc
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], 0xf
mov byte [rcx], r13b
mov dword [rsp + 0x34], 1
mov rax, rsi
mov rcx, qword [rbp + 0x2780]
xor rcx, rsp
call fcn.18001c5e0
mov rbx, qword [rsp + 0x28e0]
add rsp, 0x2890
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret