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

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
mov esi, dword [rsp + 0xc0]
bts esi, 0x1a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0xd0], 0
je 0x180007e3b
mov r9d, 4
lea r8, [rsp + 0xd0]
lea edx, [r9 + 1]
mov rcx, qword [rbp]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r9d, 4
lea r8, [rsp + 0xd0]
lea edx, [r9 + 2]
mov rcx, qword [rbp]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
cmp qword [rdi + 0x20], 8
jb 0x180007e48
mov r8, qword [rdi + 8]
jmp 0x180007e4c
lea r8, [rdi + 8]
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0xffffffff
xor r9d, r9d
mov rdx, qword [rbp]
lea rcx, [rsp + 0x40]
call fcn.180043930
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x180007ed2
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x180007e8c
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x180007ea4
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180007ecb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
mov qword [rsp + 0x40], rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x1800083a6
mov dword [rsp + 0xa0], 4
xor edi, edi
mov dword [rsp + 0xa8], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0xa8]
mov edx, 0x20000013
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [rsp + 0xa8]
cmp ecx, 0xc8
je 0x180007f7e
mov rax, qword [rsp + 0xd8]
test rax, rax
je 0x180007f24
mov dword [rax], ecx
test ecx, ecx
je 0x180007f2f
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180007f3f
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180007f4f
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x40], 0
je 0x180007f77
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], rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x1800083a6
xor r12b, r12b
mov dword [rsp + 0xa0], 4
mov dword [rsp + 0xc0], edi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18000808e
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0xc0]
mov edx, 0x20000005
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
setne al
test al, al
je 0x18000808e
mov eax, dword [rsp + 0xc0]
test eax, eax
jne 0x1800080ae
cmp qword [rbx + 8], 1
je 0x180008031
lea ecx, [rax + 1]
call fcn.1800a09e0
mov rsi, rax
cmp qword [rbx + 8], rdi
jbe 0x180008017
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x180008017
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 0x180008025
call fcn.1800a22f0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 8], 1
mov rax, qword [rbx + 0x10]
mov byte [rax], dil
mov qword [rbx + 0x18], rdi
mov dword [r14], edi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18000804f
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18000805f
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x40], 0
je 0x180008087
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], rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 1
jmp 0x1800083a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x18000835c
mov r12b, 1
mov eax, 0xa00000
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xd0], edi
je 0x18000811f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r13d
cmp eax, dword [rsp + 0xd0]
jbe 0x180008118
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800080d9
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800080e9
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x40], 0
je 0x180008111
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], rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x1800083a6
mov eax, dword [rsp + 0xc0]
add eax, 1
mov esi, eax
cmp rsi, qword [rbx + 8]
je 0x180008177
mov rbp, rdi
test eax, eax
je 0x180008161
mov rcx, rsi
call fcn.1800a09e0
mov rbp, rax
cmp qword [rbx + 8], rdi
jbe 0x180008161
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x180008161
mov rcx, qword [rbx + 8]
mov r8, rsi
cmp rcx, rsi
cmovb r8, rcx
mov rcx, rax
call fcn.1800a2480
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18000816f
call fcn.1800a22f0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 8], rsi
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15d, eax
mov r13d, edi
mov r8d, dword [rsp + 0xc0]
add r8d, 1
xor edx, edx
mov rcx, qword [rbx + 0x10]
call fcn.1800a3870
mov ebp, edi
cmp dword [rsp + 0xc0], edi
jbe 0x18000828d
mov r14, qword [rsp + 0xc8]
test r14, r14
je 0x1800081cb
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180008285
cmp dword [rsp + 0xd0], edi
je 0x1800081eb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x30]
cmp eax, dword [rsp + 0xd0]
ja 0x180008285
mov r8d, 0x1000
test r12b, r12b
jne 0x180008206
mov eax, dword [rsp + 0xc0]
sub eax, esi
cmp eax, r8d
cmovb r8d, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180008285
mov dword [rsp + 0xa0], edi
mov edx, esi
add rdx, qword [rbx + 0x10]
lea r9, [rsp + 0xa0]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x180008285
add esi, dword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, r15d
je 0x180008253
mov ecx, eax
sub ecx, r13d
cmp ecx, 0x3e8
cmova r13d, eax
mov r15d, eax
mov eax, dword [rsp + 0xa0]
cmp eax, 0xffffffff
je 0x180008285
test eax, eax
jne 0x180008278
test r12b, r12b
jne 0x180008285
lea ecx, [rax + 0xa]
call sub.KERNEL32.dll_Sleep
add ebp, 1
cmp ebp, 3
ja 0x180008285
cmp esi, dword [rsp + 0xc0]
jb 0x1800081b3
mov r14, qword [rsp + 0xb8]
cmp esi, dword [rsp + 0xc0]
je 0x1800082ea
test r12b, r12b
jne 0x1800082ef
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800082ab
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800082bb
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x40], 0
je 0x1800082e3
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], rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x1800083a6
test r12b, r12b
je 0x180008306
mov dword [r14], esi
cmp esi, 0xa00000
jae 0x180008310
mov eax, esi
add rax, qword [rbx + 0x10]
xor ecx, ecx
mov byte [rax], cl
jmp 0x180008310
mov eax, dword [rsp + 0xc0]
mov dword [r14], eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180008320
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180008330
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x40], 0
je 0x180008358
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], rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 1
jmp 0x1800083a6
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18000836c
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18000837c
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x40], 0
je 0x1800083a4
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], rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret