Function at 0x1800216e0
Capabilities:
Check for time delay via gettickcount
Check http status code
Get http content length
Read data from internet
Receive data

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x18006e168]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov r14, r9
mov r15, r8
mov r13, rdx
mov qword [rsp + 0x68], rdx
mov r12, rcx
mov qword [rsp + 0x70], rcx
mov qword [r11 - 0x58], rcx
mov qword [r11 - 0x68], rdx
mov qword [r11 - 0x60], r8
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x60], rax
mov rcx, r8
call fcn.1800014b0
mov rsi, rax
mov rcx, r15
call fcn.180003110
mov rdi, rax
mov rcx, r13
call fcn.180003110
mov rbx, rax
mov rcx, r12
call fcn.180003110
mov rdx, rax
mov dword [rsp + 0x28], 0x7d0
mov dword [rsp + 0x20], esi
mov r9, rdi
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.18003b3b0
nop
mov dword [rsp + 0x34], 4
xor esi, esi
mov dword [rsp + 0x58], esi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180021b20
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x58]
mov edx, 0x20000013
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [rsp + 0x58], 0xc8
jne 0x180021b20
xor bpl, bpl
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], esi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1800218b1
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x30]
mov edx, 0x20000005
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
setne al
test al, al
je 0x1800218b1
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1800218ce
lea edx, [rsi + 1]
mov rcx, r14
call fcn.180003460
xor edx, edx
mov rcx, r14
call fcn.180003600
mov byte [rax], sil
xor edx, edx
mov rcx, r14
call fcn.1800035b0
mov r11, qword [rsp + 0x60]
mov dword [r11], esi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180021857
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180021867
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x38], 0
je 0x180021890
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x38], rsi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, r12
call fcn.180001570
nop
mov rcx, r13
call fcn.180001570
nop
mov rcx, r15
call fcn.180001570
mov al, 1
jmp 0x180021b85
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x180021ab9
mov bpl, 1
mov eax, 0xa00000
mov dword [rsp + 0x30], eax
lea edx, [rax + 1]
mov rcx, r14
call fcn.180003460
mov edi, esi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
mov ebx, dword [rsp + 0x30]
add ebx, 1
mov rcx, r14
call fcn.1800035a0
mov rcx, rax
mov r8, rbx
xor edx, edx
call sub.MSVCR80.dll_memset
xor r12d, r12d
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x1800219b5
nop
mov ebx, 0x1000
test bpl, bpl
jne 0x180021921
sub ecx, edi
cmp ecx, ebx
cmovb ebx, ecx
mov rcx, r14
call fcn.1800035a0
mov rdx, rax
mov eax, edi
add rdx, rax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1800219b1
mov dword [rsp + 0x34], 0
lea r9, [rsp + 0x34]
mov r8d, ebx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1800219ab
add edi, dword [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, r13d
je 0x180021974
mov ecx, eax
sub ecx, esi
cmp ecx, 0x3e8
cmova esi, eax
mov r13d, eax
mov eax, dword [rsp + 0x34]
cmp eax, 0xffffffff
je 0x1800219ab
test eax, eax
jne 0x180021998
test bpl, bpl
jne 0x1800219a5
lea ecx, [rax + 0xa]
call sub.KERNEL32.dll_Sleep
add r12d, 1
cmp r12d, 3
ja 0x1800219ab
mov ecx, dword [rsp + 0x30]
cmp edi, ecx
jae 0x1800219b5
jmp 0x180021910
mov ecx, dword [rsp + 0x30]
jmp 0x1800219b5
mov ecx, dword [rsp + 0x30]
jmp 0x1800219b5
mov ecx, dword [rsp + 0x30]
cmp edi, ecx
je 0x180021a30
test bpl, bpl
jne 0x180021a35
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800219ce
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800219de
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x38], 0
je 0x180021a0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x38], 0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x70]
call fcn.180001570
nop
mov rcx, qword [rsp + 0x68]
call fcn.180001570
nop
mov rcx, r15
call fcn.180001570
xor al, al
jmp 0x180021b85
test bpl, bpl
je 0x180021a3f
mov r11, qword [rsp + 0x60]
mov dword [r11], edi
jmp 0x180021a47
mov r11, qword [rsp + 0x60]
mov dword [r11], ecx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180021a57
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180021a67
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x38], 0
je 0x180021a94
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x38], 0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x70]
call fcn.180001570
nop
mov rcx, qword [rsp + 0x68]
call fcn.180001570
nop
mov rcx, r15
call fcn.180001570
mov al, 1
jmp 0x180021b85
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180021ac9
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180021ad9
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x38], 0
je 0x180021b02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x38], rsi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, r12
call fcn.180001570
nop
mov rcx, r13
call fcn.180001570
nop
mov rcx, r15
call fcn.180001570
xor al, al
jmp 0x180021b85
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180021b30
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180021b40
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x38], 0
je 0x180021b69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x38], rsi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, r12
call fcn.180001570
nop
mov rcx, r13
call fcn.180001570
nop
mov rcx, r15
call fcn.180001570
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.18003f5f0
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret