Function at 0x140027cf4
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov rbx, rcx
xor r12d, r12d
mov rcx, qword [rcx + 0x2a0]
mov esi, r12d
mov rax, qword [rcx]
movabs r10, 0x9f3d271d50d78370
mov rax, qword [rax + 0x38]
lea rdx, [rsp + 0x40]
call qword [0x1400401a8]
cmp dword [rsp + 0x44], r12d
jl 0x140027d62
cmp dword [rbx + 0x27c], r12d
je 0x140027d8c
mov dword [rbx + 0x274], r12d
mov rcx, qword [rbx + 0x268]
test rcx, rcx
je 0x140027d88
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rbx + 0x268], r12
mov esi, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
mov r14d, 2
test ecx, ecx
je 0x140027e5c
sub ecx, 1
je 0x140027e4e
sub ecx, 1
je 0x140027e31
sub ecx, 1
je 0x140027ddd
sub ecx, 1
je 0x140027dd3
cmp ecx, 1
je 0x140027dc9
mov edi, 0x2779
jmp 0x140027ebc
mov edi, 0x2778
jmp 0x140027e53
mov edi, 0x2777
jmp 0x140027ebc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
sub eax, dword [rbx + 0x24]
cmp eax, 0x1d4c0
jbe 0x140027e27
mov dword [rbx + 0x274], r12d
mov edi, 0x277a
mov rcx, qword [rbx + 0x268]
test rcx, rcx
je 0x140027e1e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rbx + 0x268], r12
lea rdx, str.ERROR:_Download_Manager_timed_out_connecting._r_n
jmp 0x140027ea4
mov edi, 0x2775
jmp 0x140027ebc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
sub eax, dword [rbx + 0x24]
cmp eax, 0x1d4c0
ja 0x140027e72
mov edi, 0x2776
jmp 0x140027ebc
mov edi, 0x277a
mov dword [rbx + 0x274], r12d
jmp 0x140027ebc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
sub eax, dword [rbx + 0x24]
cmp eax, 0x1d4c0
jbe 0x140027eb7
mov dword [rbx + 0x274], r12d
mov edi, 0x277a
mov rcx, qword [rbx + 0x268]
test rcx, rcx
je 0x140027e9d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rbx + 0x268], r12
lea rdx, str.ERROR:_Download_Manager_timed_out._r_n
mov esi, 0x80072efd
mov ecx, r14d
mov dword [rsp + 0x44], esi
call fcn.140019050
jmp 0x140027ebc
mov edi, 0x2774
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x140027ee5
lea rdx, str.ERROR:_Package_download_failure_has_occured.__Result:_0x_x._r_n
mov ecx, r14d
call fcn.140018ed8
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x48]
mov ebx, pe_nt_image_headers64
cmp ecx, 0xffffffff
jne 0x140027f38
mov rcx, qword [0x140051e60]
lea r15d, [rbx - 0x80]
mov r9d, r15d
lea r8, [rsp + 0x60]
mov edx, 0x26e8
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
jne 0x140027fd9
lea r8, [0x140046848]
mov edx, r15d
lea rcx, [rsp + 0x60]
call fcn.1400104bc
jmp 0x140027fd9
sub ecx, dword [rsp + 0x4c]
mov r10d, 0x88888889
mov r8d, dword [rsp + 0x50]
test r8d, r8d
je 0x140027f58
xor edx, edx
mov eax, ecx
div r8d
mov r8d, eax
jmp 0x140027f66
mov eax, 0x10624dd3
mul ecx
mov r8d, edx
shr r8d, 0xa
mov eax, r10d
mov ecx, r8d
mul r8d
mov r9d, edx
shr r9d, 5
imul eax, r9d, 0x3c
sub ecx, eax
mov eax, r10d
mul r9d
shr edx, 5
imul eax, edx, 0x3c
sub r9d, eax
cmp r8d, 0xe10
jb 0x140027fc1
mov dword [rsp + 0x28], ecx
mov eax, 0x91a2b3c5
mul r8d
mov dword [rsp + 0x20], r9d
lea r8, str._2.2u:_2.2u:_2.2u
shr edx, 0xb
lea rcx, [rsp + 0x60]
mov r9d, edx
mov rdx, rbx
call fcn.140010420
jmp 0x140027fd9
mov dword [rsp + 0x20], ecx
lea r8, str._2.2u:_2.2u
lea rcx, [rsp + 0x60]
mov rdx, rbx
call fcn.140010420
mov rcx, qword [0x140051e60]
lea r8, [rbp + 0xe0]
mov r9d, ebx
mov edx, edi
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
je 0x1400280c5
or r8, 0xffffffffffffffff
lea rax, [rbp + 0xe0]
mov rcx, r8
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x14002800e
lea rax, [rsp + 0x60]
mov rdx, r8
inc rdx
cmp word [rax + rdx*2], r12w
jne 0x140028020
lea r15, [rdx + 0x21]
mov rax, r14
add r15, rcx
mul r15
cmovo rax, r8
mov rcx, rax
call fcn.14000130c
mov rdi, rax
test rax, rax
je 0x1400280c5
mov ebx, dword [rsp + 0x4c]
lea rcx, [rsp + 0x30]
mov r14d, 0x80004005
call fcn.14003bd0c
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.14001b780
test eax, eax
js 0x140028086
mov r8d, 0x40
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14003bf94
mov r14d, eax
lea rcx, [rsp + 0x30]
call fcn.14003bff8
test r14d, r14d
js 0x1400280bd
lea rax, [rbp + 0x60]
mov rdx, r15
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0xe0]
mov rcx, rdi
call fcn.1400104f4
mov rcx, rdi
call fcn.140018428
mov rcx, rdi
call fcn.1400012c0
mov ecx, dword [rsp + 0x48]
mov r8d, 1
test ecx, ecx
cmovne r8d, ecx
imul eax, dword [rsp + 0x4c], 0x64
xor edx, edx
div r8d
mov ecx, eax
call fcn.140018480
mov eax, esi
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret