Function at 0x1800083e0
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 + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1800fca30]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov qword [r11 - 0x60], rcx
mov qword [r11 - 0x68], rdx
mov qword [r11 - 0x70], r8
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x68], rax
mov rax, qword [r8 + 0x18]
cmp qword [r8 + 0x20], 8
jb 0x18000844b
lea r13, [r8 + 8]
mov r9, qword [r13]
jmp 0x180008452
lea r13, [r8 + 8]
mov r9, r13
cmp qword [rdx + 0x20], 8
jb 0x180008462
lea r15, [rdx + 8]
mov r8, qword [r15]
jmp 0x180008469
lea r15, [rdx + 8]
mov r8, r15
cmp qword [rcx + 0x20], 8
jb 0x180008479
lea r14, [rcx + 8]
mov rdx, qword [r14]
jmp 0x180008480
lea r14, [rcx + 8]
mov rdx, r14
mov dword [rsp + 0x28], 0x7d0
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x40]
call fcn.180043c20
nop
mov dword [rsp + 0x38], 4
xor r12d, r12d
mov dword [rsp + 0x60], r12d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180008a29
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x60]
mov edx, 0x20000013
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [rsp + 0x60], 0xc8
jne 0x180008a29
xor al, al
mov byte [rsp + 0x30], al
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], r12d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180008651
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x34]
mov edx, 0x20000005
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
setne al
test al, al
je 0x180008651
mov eax, dword [rsp + 0x34]
test eax, eax
jne 0x180008670
cmp qword [rbx + 8], 1
je 0x180008589
lea ecx, [rax + 1]
call fcn.1800a09e0
mov r12, rax
cmp qword [rbx + 8], 0
jbe 0x18000856c
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x18000856c
mov rcx, qword [rbx + 8]
mov r8d, 1
cmp rcx, r8
cmovb r8, rcx
mov rcx, rax
call fcn.1800a2480
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18000857a
call fcn.1800a22f0
mov qword [rbx + 0x10], r12
mov qword [rbx + 8], 1
xor r12d, r12d
mov rax, qword [rbx + 0x10]
mov byte [rax], 0
mov qword [rbx + 0x18], r12
mov rax, qword [rsp + 0x68]
mov dword [rax], r12d
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800085ac
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800085bc
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x40], 0
je 0x1800085e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x40], r12
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp qword [rbp + 0x20], 8
jb 0x1800085f4
mov rcx, qword [r14]
call fcn.1800a2030
mov qword [rbp + 0x20], 7
mov qword [rbp + 0x18], r12
mov word [r14], 0
cmp qword [rsi + 0x20], 8
jb 0x180008615
mov rcx, qword [r15]
call fcn.1800a2030
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r12
mov word [r15], 0
cmp qword [rdi + 0x20], 8
jb 0x180008637
mov rcx, qword [r13]
call fcn.1800a2030
mov qword [rdi + 0x20], 7
mov qword [rdi + 0x18], r12
mov word [r13], 0
mov al, 1
jmp 0x180008ad9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x180008974
mov byte [rsp + 0x30], 1
mov eax, 0xa00000
mov dword [rsp + 0x34], eax
add eax, 1
mov r12d, eax
cmp r12, qword [rbx + 8]
je 0x1800086ca
xor r14d, r14d
test eax, eax
je 0x1800086b4
mov rcx, r12
call fcn.1800a09e0
mov r14, rax
cmp qword [rbx + 8], 0
jbe 0x1800086b4
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x1800086b4
mov rcx, qword [rbx + 8]
mov r8, r12
cmp rcx, r12
cmovb r8, rcx
mov rcx, rax
call fcn.1800a2480
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800086c2
call fcn.1800a22f0
mov qword [rbx + 0x10], r14
mov qword [rbx + 8], r12
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x80], r12d
mov r8d, dword [rsp + 0x34]
add r8d, 1
xor edx, edx
mov rcx, qword [rbx + 0x10]
call fcn.1800a3870
mov dword [rsp + 0x38], r12d
mov edx, dword [rsp + 0x34]
test edx, edx
je 0x1800087cd
movzx r14d, byte [rsp + 0x30]
nop
mov r8d, 0x1000
test r14b, r14b
jne 0x180008727
mov eax, edx
sub eax, r12d
cmp eax, r8d
cmovb r8d, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800087d2
mov dword [rsp + 0x78], 0
mov edx, r12d
add rdx, qword [rbx + 0x10]
lea r9, [rsp + 0x78]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1800087c7
add r12d, dword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rsp + 0x88]
je 0x180008789
mov ecx, eax
mov edx, dword [rsp + 0x80]
sub ecx, edx
cmp ecx, 0x3e8
cmova edx, eax
mov dword [rsp + 0x80], edx
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x78]
cmp eax, 0xffffffff
je 0x1800087c7
test eax, eax
jne 0x1800087b3
test r14b, r14b
jne 0x1800087c1
lea ecx, [rax + 0xa]
call sub.KERNEL32.dll_Sleep
mov eax, dword [rsp + 0x38]
add eax, 1
mov dword [rsp + 0x38], eax
cmp eax, 3
ja 0x1800087c7
mov edx, dword [rsp + 0x34]
cmp r12d, edx
jae 0x1800087d2
jmp 0x180008710
mov edx, dword [rsp + 0x34]
jmp 0x1800087d2
mov edx, dword [rsp + 0x34]
jmp 0x1800087d2
mov r14b, byte [rsp + 0x30]
cmp r12d, edx
je 0x1800088a1
test r14b, r14b
jne 0x1800088a6
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800087f4
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180008804
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x40], 0
je 0x180008831
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x180008834
xor r12d, r12d
cmp qword [rbp + 0x20], 8
jb 0x180008844
mov rcx, qword [rbp + 8]
call fcn.1800a2030
mov qword [rbp + 0x20], 7
mov qword [rbp + 0x18], r12
mov word [rbp + 8], 0
cmp qword [rsi + 0x20], 8
jb 0x180008865
mov rcx, qword [r15]
call fcn.1800a2030
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r12
mov word [r15], 0
cmp qword [rdi + 0x20], 8
jb 0x180008887
mov rcx, qword [r13]
call fcn.1800a2030
mov qword [rdi + 0x20], 7
mov qword [rdi + 0x18], r12
mov word [r13], 0
xor al, al
jmp 0x180008ad9
test r14b, r14b
je 0x1800088b0
mov rax, qword [rsp + 0x68]
mov dword [rax], r12d
jmp 0x1800088b7
mov rax, qword [rsp + 0x68]
mov dword [rax], edx
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800088c7
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800088d7
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x40], 0
je 0x180008904
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x180008907
xor r12d, r12d
cmp qword [rbp + 0x20], 8
jb 0x180008917
mov rcx, qword [rbp + 8]
call fcn.1800a2030
mov qword [rbp + 0x20], 7
mov qword [rbp + 0x18], r12
mov word [rbp + 8], 0
cmp qword [rsi + 0x20], 8
jb 0x180008938
mov rcx, qword [r15]
call fcn.1800a2030
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r12
mov word [r15], 0
cmp qword [rdi + 0x20], 8
jb 0x18000895a
mov rcx, qword [r13]
call fcn.1800a2030
mov qword [rdi + 0x20], 7
mov qword [rdi + 0x18], r12
mov word [r13], 0
mov al, 1
jmp 0x180008ad9
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180008984
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180008994
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x40], 0
je 0x1800089bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x40], r12
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp qword [rbp + 0x20], 8
jb 0x1800089cc
mov rcx, qword [r14]
call fcn.1800a2030
mov qword [rbp + 0x20], 7
mov qword [rbp + 0x18], r12
mov word [r14], 0
cmp qword [rsi + 0x20], 8
jb 0x1800089ed
mov rcx, qword [r15]
call fcn.1800a2030
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r12
mov word [r15], 0
cmp qword [rdi + 0x20], 8
jb 0x180008a0f
mov rcx, qword [r13]
call fcn.1800a2030
mov qword [rdi + 0x20], 7
mov qword [rdi + 0x18], r12
mov word [r13], 0
xor al, al
jmp 0x180008ad9
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180008a39
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180008a49
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x40], 0
je 0x180008a72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x40], r12
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp qword [rbp + 0x20], 8
jb 0x180008a81
mov rcx, qword [r14]
call fcn.1800a2030
mov qword [rbp + 0x20], 7
mov qword [rbp + 0x18], r12
mov word [r14], 0
cmp qword [rsi + 0x20], 8
jb 0x180008aa2
mov rcx, qword [r15]
call fcn.1800a2030
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r12
mov word [r15], 0
cmp qword [rdi + 0x20], 8
jb 0x180008ac4
mov rcx, qword [r13]
call fcn.1800a2030
mov qword [rdi + 0x20], 7
mov qword [rdi + 0x18], r12
mov word [r13], 0
xor al, al
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800a3210
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret