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

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2890]
mov eax, 0x2990
call fcn.18000a610
sub rsp, rax
mov rax, qword [0x180041108]
xor rax, rsp
mov qword [rbp + 0x2870], rax
xor r13d, r13d
mov qword [rsp + 0x50], rcx
mov r15, rdx
mov dword [rsp + 0x58], r13d
mov rax, r9
mov dword [rsp + 0x5c], 1
mov edx, r13d
mov qword [rsp + 0x48], rax
lea rbx, [r13 - 1]
mov dword [rsp + 0x60], 3
mov rsi, r8
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x2988], rdi
cmp qword [rax + 0x18], 0x10
mov rcx, rax
jb 0x180001f6e
mov rcx, qword [rax]
mov edx, dword [rsp + rdx*4 + 0x58]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
test rax, rax
je 0x180002204
mov r9d, 4
mov dword [rsp + 0x3c], 0x1770
lea r8, [rsp + 0x3c]
mov rcx, rax
lea edx, [r9 - 2]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r13, qword [r15 + 0x18]
mov rdi, r15
cmp r13, 0x10
jb 0x180001fbf
mov rdi, qword [r15]
mov rax, qword [r15 + 0x10]
cmp rax, 8
jb 0x18000201f
lea r14, [rax + rdi]
mov edx, 0x68
lea r8, [r14 - 7]
mov rcx, rdi
sub r8, rdi
call fcn.18000c3d0
test rax, rax
je 0x18000201f
nop word [rax + rax]
movabs rcx, 0x2f2f3a7370747468
cmp qword [rax], rcx
je 0x180002091
inc rax
lea r8, [r14 - 7]
sub r8, rax
mov rcx, rax
mov edx, 0x68
call fcn.18000c3d0
test rax, rax
jne 0x180001ff0
mov rax, rbx
cmp rax, rbx
mov ecx, 0x80ff9200
mov eax, 0x807f9200
mov rdx, r15
cmove ecx, eax
cmp r13, 0x10
jb 0x18000203e
mov rdx, qword [r15]
xor r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x28], r13
xor r8d, r8d
mov dword [rsp + 0x20], ecx
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
test rax, rax
jne 0x180002096
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rdx, qword [rsp + 0x30]
inc rdx
mov qword [rsp + 0x30], rdx
cmp rdx, 3
jge 0x180002204
mov rax, qword [rsp + 0x48]
jmp 0x180001f61
sub rax, rdi
jmp 0x180002022
lea r9, [rsp + 0x40]
mov dword [rsp + 0x38], r13d
lea r8, [rsp + 0x38]
mov dword [rsp + 0x40], 4
mov edx, 0x13
mov qword [rsp + 0x20], r13
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
lea rcx, [rsp + 0x38]
call fcn.180011ea0
mov rdi, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x100
mov dword [rdi], eax
call fcn.18000cc20
lea r9, [rsp + 0x44]
mov dword [rsp + 0x44], 0x100
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], r13
mov edx, 1
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
lea rax, [rsp + 0x70]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r13b
jne 0x180002110
mov r8, rbx
lea rcx, [rdi + 8]
lea rdx, [rsp + 0x70]
call fcn.180002bd0
xor edx, edx
lea rcx, [rbp + 0x70]
mov r8d, 0x2800
call fcn.18000cc20
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r13d
mov r8d, 0x2800
lea rdx, [rbp + 0x70]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1800021ee
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x10]
mov edi, eax
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x1800021b2
lea rax, [rcx + rdi]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x180002199
mov rax, qword [rsi]
lea rbx, [rax + rcx]
mov r8, rdi
mov rcx, rbx
lea rdx, [rbp + 0x70]
call fcn.18000c570
mov byte [rbx + rdi], r13b
jmp 0x1800021c9
lea r9, [rbp + 0x70]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.1800027a0
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r13d
mov r8d, 0x2800
lea rdx, [rbp + 0x70]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x180002170
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x180002206
mov eax, ebx
mov rdi, qword [rsp + 0x2988]
mov rcx, qword [rbp + 0x2870]
xor rcx, rsp
call fcn.18000a670
add rsp, 0x2990
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret