Function at 0x18001a2a0
Capabilities:
Check for time delay via gettickcount
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1078
call fcn.1800bfef0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1800f0938]
xor rax, rsp
mov qword [rsp + 0x1060], rax
mov rsi, r9
mov r13, r8
mov rdi, rdx
mov r15, rcx
xor bpl, bpl
mov dword [rsp + 0x38], 4
xor r12d, r12d
mov dword [rsp + 0x34], r12d
mov rcx, qword [rcx]
mov ebx, dword [rsp + 0x10e0]
test rcx, rcx
je 0x18001a32c
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 0x18001a32c
mov eax, dword [rsp + 0x34]
jmp 0x18001a34a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x18001a5fc
mov bpl, 1
test ebx, ebx
je 0x18001a366
mov eax, ebx
mov dword [rsp + 0x34], ebx
test eax, eax
jne 0x18001a36f
test bpl, bpl
jne 0x18001a36f
test rsi, rsi
je 0x18001a35f
mov dword [rsi + 0x2c], 0xe0000006
xor al, al
jmp 0x18001a606
mov eax, 0x3200000
mov dword [rsp + 0x34], eax
test ebx, ebx
je 0x18001a38a
cmp eax, ebx
je 0x18001a38a
test rsi, rsi
je 0x18001a383
mov dword [rsi + 0x2c], 0xe0000006
xor al, al
jmp 0x18001a606
lea rbx, [0x1800cdd88]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 0xffffffffffffffff
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov r9d, 3
mov r8d, 0x40000000
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.18003fee0
test al, al
jne 0x18001a3f7
test rsi, rsi
je 0x18001a3da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x2c], eax
mov qword [rsp + 0x40], rbx
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x18001a3f0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x18001a606
mov byte [rsp + 0x30], 0
test rsi, rsi
je 0x18001a40d
mov rbx, rsi
mov ecx, dword [rsp + 0x34]
mov dword [rsi + 8], ecx
jmp 0x18001a45b
mov byte [rsp + 0x30], 1
mov ecx, 0x30
call fcn.180099da0
mov rbx, rax
test rax, rax
je 0x18001a454
mov eax, dword [rsp + 0x34]
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx], eax
mov dword [rbx + 4], eax
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x20], r12
mov dword [rbx + 0x18], r12d
mov dword [rbx + 0x1c], r12d
mov dword [rbx + 0x28], r12d
mov dword [rbx + 0x2c], r12d
jmp 0x18001a457
mov rbx, r12
mov ecx, dword [rsp + 0x34]
mov r14b, 1
cmp dword [rbx + 0xc], ecx
jae 0x18001a5b1
test r13, r13
je 0x18001a483
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18001a5ad
mov ecx, dword [rsp + 0x34]
mov r8d, 0x1000
test bpl, bpl
jne 0x18001a4a0
mov edx, dword [rbx + 0xc]
mov eax, ecx
sub eax, edx
cmp eax, r8d
jae 0x18001a4a0
mov r8d, ecx
sub r8d, edx
mov rax, qword [r15]
test rax, rax
je 0x18001a5b1
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x18001a5ad
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x38]
add ecx, eax
mov dword [rbx + 0xc], ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
cmp eax, dword [rbx + 4]
je 0x18001a537
mov ecx, eax
sub ecx, dword [rbx + 0x18]
cmp ecx, 0x3e8
jbe 0x18001a518
mov r8d, dword [rbx + 0xc]
mov eax, r8d
sub eax, dword [rbx + 0x1c]
xor edx, edx
div ecx
mov ecx, eax
cvtsi2sd xmm0, rcx
movsd qword [rbx + 0x10], xmm0
mov dword [rbx + 0x18], r11d
mov dword [rbx + 0x1c], r8d
mov eax, dword [rbx + 0xc]
cvtsi2sd xmm1, rax
mov eax, r11d
sub eax, dword [rbx]
cvtsi2sd xmm0, rax
divsd xmm1, xmm0
movsd qword [rbx + 0x20], xmm1
mov dword [rbx + 4], r11d
mov edi, dword [rsp + 0x38]
cmp edi, 0xffffffff
je 0x18001a5ad
test edi, edi
jne 0x18001a55b
test bpl, bpl
jne 0x18001a5ad
lea ecx, [rdi + 0xa]
call sub.KERNEL32.dll_Sleep
add r12d, 1
cmp r12d, 3
ja 0x18001a5ad
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x18001a59a
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, edi
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001a59a
cmp edi, dword [rsp + 0x3c]
jne 0x18001a59a
mov ecx, dword [rsp + 0x34]
cmp dword [rbx + 0xc], ecx
jae 0x18001a5b1
jmp 0x18001a467
test rsi, rsi
je 0x18001a5a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x2c], eax
xor r14b, r14b
jmp 0x18001a5ca
mov ecx, dword [rsp + 0x34]
cmp dword [rbx + 0xc], ecx
je 0x18001a5ca
test bpl, bpl
jne 0x18001a5ca
test rsi, rsi
je 0x18001a5c7
mov dword [rsi + 0x2c], 0xe0000006
xor r14b, r14b
cmp byte [rsp + 0x30], 0
je 0x18001a5da
mov rcx, rbx
call fcn.180098980
nop
lea rax, [0x1800cdd88]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x18001a5f7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, r14b
jmp 0x18001a606
test rsi, rsi
je 0x18001a604
mov dword [rsi + 0x2c], eax
xor al, al
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.180099050
add rsp, 0x1078
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret