Function at 0x14001eac8
Capabilities:
Access peb ldr_data
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x318]
sub rsp, 0x3f0
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov rbx, rcx
mov r14d, 0x100
mov r8d, r14d
lea rcx, [rsp + 0x60]
xor edx, edx
call sub.msvcrt.dll_memset
mov rax, qword gs:[0x58]
xor r12d, r12d
mov ecx, 4
or r15, 0xffffffffffffffff
mov esi, r12d
mov rdx, qword [rax]
mov eax, dword [rcx + rdx]
cmp dword [0x140051da4], eax
jle 0x14001eb7a
lea rcx, [0x140051da4]
call fcn.14003cf58
cmp dword [0x140051da4], r15d
jne 0x14001eb7a
mov rax, qword [rbx + 0xc0]
test rax, rax
je 0x14001eb64
mov rcx, qword [rax + 0x78]
jmp 0x14001eb67
mov rcx, r12
mov qword [0x140051d88], rcx
lea rcx, [0x140051da4]
call fcn.14003cee8
mov rcx, qword [rbx + 0xb8]
lea rdx, [rsp + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [0x14003f118]
cmp dword [rsp + 0x44], r12d
jl 0x14001ebaf
mov rax, qword [0x140051d88]
test rax, rax
je 0x14001ebca
cmp dword [rax + 0x27c], r12d
je 0x14001ebca
mov dword [rbx + 0x68], r12d
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14001ebc6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x60], r12
mov esi, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
mov r13d, 2
test ecx, ecx
je 0x14001ec78
sub ecx, 1
je 0x14001ec6d
sub ecx, 1
je 0x14001ec53
sub ecx, 1
je 0x14001ec14
sub ecx, 1
je 0x14001ec0a
cmp ecx, 1
je 0x14001ec03
mov edi, 0x2779
jmp 0x14001ecc6
mov edi, 0x2778
jmp 0x14001ec72
mov edi, 0x2777
jmp 0x14001ecc6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x98]
cmp eax, 0x1d4c0
jbe 0x14001ec4c
mov dword [rbx + 0x68], r12d
mov edi, 0x277a
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14001ec43
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x60], r12
lea rdx, str.ERROR:_Download_Manager_timed_out_connecting._r_n
jmp 0x14001ecae
mov edi, 0x2775
jmp 0x14001ecc6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x98]
cmp eax, 0x1d4c0
ja 0x14001ec8b
mov edi, 0x2776
jmp 0x14001ecc6
mov edi, 0x277a
mov dword [rbx + 0x68], r12d
jmp 0x14001ecc6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x98]
cmp eax, 0x1d4c0
jbe 0x14001ecc1
mov dword [rbx + 0x68], r12d
mov edi, 0x277a
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14001eca7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x60], r12
lea rdx, str.ERROR:_Download_Manager_timed_out._r_n
mov esi, 0x80072efd
mov ecx, r13d
mov dword [rsp + 0x44], esi
call fcn.14001676c
jmp 0x14001ecc6
mov edi, 0x2774
mov r9d, dword [rsp + 0x44]
test r9d, r9d
je 0x14001ecf9
cmp qword [rbx + 8], r12
lea r8, [0x140042350]
lea rdx, str.ERROR:_Package_download_failure_for__S.__Result:_0x_x._r_n
mov ecx, r13d
cmovne r8, qword [rbx + 8]
call fcn.1400168a8
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [rsp + 0x48]
cmp ecx, 0xffffffff
jne 0x14001ed41
mov rcx, qword [0x140050d10]
lea r8, [rsp + 0x60]
mov ebx, 0x80
mov edx, 0x26e8
mov r9d, ebx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x14001ede2
lea r8, [0x140045198]
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.140001470
jmp 0x14001ede2
sub ecx, dword [rsp + 0x4c]
mov r10d, 0x88888889
mov r8d, dword [rsp + 0x50]
test r8d, r8d
je 0x14001ed61
xor edx, edx
mov eax, ecx
div r8d
mov r8d, eax
jmp 0x14001ed6f
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 0x14001edca
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, r14
call fcn.1400017b4
jmp 0x14001ede2
mov dword [rsp + 0x20], ecx
lea r8, str._2.2u:_2.2u
lea rcx, [rsp + 0x60]
mov rdx, r14
call fcn.1400017b4
mov rcx, qword [0x140050d10]
lea r8, [rbp + 0xe0]
mov r9d, r14d
mov edx, edi
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x14001eed8
lea rax, [rbp + 0xe0]
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x14001ee0d
lea rax, [rsp + 0x60]
mov rdx, r15
inc rdx
cmp word [rax + rdx*2], r12w
jne 0x14001ee1f
lea r15, [rdx + 0x21]
mov rax, r13
add r15, rcx
mov rcx, 0xffffffffffffffff
mul r15
cmovo rax, rcx
mov rcx, rax
call fcn.14003c460
mov rdi, rax
test rax, rax
je 0x14001eed8
mov ebx, dword [rsp + 0x4c]
lea rcx, [rsp + 0x30]
mov r14d, 0x80004005
call fcn.14003a4e4
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.14001abd4
test eax, eax
js 0x14001ee90
mov r8d, 0x40
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14003ad3c
mov r14d, eax
lea rcx, [rsp + 0x30]
call fcn.14003aa74
test r14d, r14d
js 0x14001eed0
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.140001734
cmp qword [0x1400516d8], r12
je 0x14001eed0
mov rcx, rdi
call fcn.140015b70
mov rcx, rdi
call fcn.14003c408
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.140015b2c
mov eax, esi
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret