Function at 0x180006b50
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1080
call fcn.18005aa10
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x10d0], rbx
mov rax, qword [0x18007f130]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov r14, rdx
mov qword [rsp + 0x40], rdx
mov r13, rcx
mov qword [rsp + 0x58], rcx
xor esi, esi
mov dword [rsp + 0x4c], esi
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r13], rax
mov r12d, 1
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r15, rax
test rax, rax
je 0x180006ec1
mov dword [rsp + 0x48], r12d
lea r9d, [rsi + 4]
lea r8, [rsp + 0x48]
lea edx, [rsi + 0x41]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea rcx, section..data
mov rdx, qword [section..data]
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdi, str.Accept_Encoding:_gzip__deflate_r_nConnection:_Close
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x180006c98
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x180006d2c
cmp dword [rdx + 0x10], eax
jge 0x180006c6b
cmp dword [rbx - 0xc], eax
jge 0x180006c60
mov ecx, 0x80070057
call fcn.180002d30
int3
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x180006d2c
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180006c81
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x180006d2c
mov r14d, dword [rbx - 0x10]
lea rsi, str.Accept_Encoding:_gzip__deflate_r_nConnection:_Close
sub rsi, rbx
sar rsi, 1
sub r12d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, ecx
or eax, r12d
jge 0x180006cc8
mov edx, ecx
lea rcx, [rsp + 0x30]
call fcn.1800027f0
mov rbx, qword [rsp + 0x30]
cmp rsi, r14
ja 0x180006cec
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rbx + rsi*2]
movsxd rdx, dword [rbx - 0xc]
add rdx, rdx
mov r9, r12
mov rcx, rbx
call fcn.18003462c
jmp 0x180006d0c
movsxd rax, edi
lea r12, [rax + rax]
movsxd rdx, dword [rbx - 0xc]
add rdx, rdx
mov r9, r12
lea r8, str.Accept_Encoding:_gzip__deflate_r_nConnection:_Close
mov rcx, rbx
call fcn.180034594
test edi, edi
js 0x180006eb6
cmp edi, dword [rbx - 0xc]
jg 0x180006eb6
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
mov r14, qword [rsp + 0x40]
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
xor eax, eax
mov rcx, rbp
lea rdi, [0x18006c5a8]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x18006c5a8]
lea rcx, [rsp + 0x40]
call fcn.180002290
mov rsi, qword [rsp + 0x40]
cmp dword [rsi - 0x10], 0
jle 0x180006dcb
xor eax, eax
mov rcx, rbp
lea rdi, [0x18006c874]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x18006c874]
lea rcx, [rsp + 0x30]
call fcn.180002500
xor eax, eax
mov rcx, rbp
lea rdi, [0x18006c5a8]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x18006c5a8]
lea rcx, [rsp + 0x30]
call fcn.180002500
mov rbx, qword [rsp + 0x30]
xor edi, edi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x4000000
mov r9d, dword [rbx - 0x10]
mov r8, rbx
mov rdx, r14
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
jne 0x180006e36
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180006e10
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
dec ebp
test ebp, ebp
jg 0x180006ec1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x180006ec1
mov dword [rsp + 0x38], edi
nop word [rax + rax]
lea r9, [rsp + 0x38]
mov r8d, 0x1000
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
mov ecx, dword [rsp + 0x38]
mov byte [rsp + rcx + 0x60], 0
lea rdx, [rsp + 0x60]
mov rcx, r13
call fcn.180009f30
test edi, edi
je 0x180006e7c
cmp dword [rsp + 0x38], 0
jne 0x180006e40
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180006e97
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
dec ebp
test ebp, ebp
jg 0x180006ec1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x180006ec1
mov ecx, 0x80070057
call fcn.180002d30
nop
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, r13
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.1800340f0
mov rbx, qword [rsp + 0x10d0]
add rsp, 0x1080
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret