Function at 0x14012a010
Capabilities:
Check for time delay via gettickcount
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r12, rdx
mov r15, rcx
mov rcx, qword [0x14017b048]
lea rbx, [0x14017b048]
lea r14, [0x140164b28]
cmp rcx, rbx
je 0x14012a06d
test byte [rcx + 0x1c], 1
je 0x14012a06d
cmp byte [rcx + 0x19], 4
jb 0x14012a06d
mov rcx, qword [rcx + 0x10]
mov edx, 0x34
mov r8, r14
call fcn.140004c10
mov rcx, qword [0x14017b048]
and qword [rbp + 0x40], 0
cmp rcx, rbx
je 0x14012a09c
test byte [rcx + 0x1c], 1
je 0x14012a09c
cmp byte [rcx + 0x19], 4
jb 0x14012a09c
mov rcx, qword [rcx + 0x10]
mov edx, 0x35
mov r9, r15
mov qword [rsp + 0x20], r12
mov r8, r14
call fcn.140010880
lea r9, [rbp - 8]
mov rcx, r15
lea r8, [rbp + 0x48]
xor edi, edi
lea rdx, [rbp - 0x10]
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
nop dword [rax + rax]
test eax, eax
jne 0x14012a0cb
mov rcx, r15
call fcn.140137834
mov ebx, eax
jmp 0x14012a0d5
mov rdi, qword [rbp + 0x48]
mov rsi, qword [rbp - 0x10]
xor ebx, ebx
test ebx, ebx
jns 0x14012a127
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14012a113
test byte [rcx + 0x1c], 1
je 0x14012a113
cmp byte [rcx + 0x19], 2
jb 0x14012a113
mov edx, 0x36
mov r9d, ebx
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.140004c3c
mov rcx, qword [0x14017b048]
lea r8, [0x14017b048]
test ebx, ebx
jns 0x14012a253
jmp 0x14012a21f
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor r8d, r8d
lea rdx, [rbp + 0x40]
mov rcx, r15
call fcn.140129ad4
mov ebx, eax
test eax, eax
jns 0x14012a16a
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14012a113
test byte [rcx + 0x1c], 1
je 0x14012a113
cmp byte [rcx + 0x19], 2
jb 0x14012a113
mov edx, 0x37
jmp 0x14012a0fd
mov rdx, qword [rbp + 0x40]
mov rax, rdi
sub rax, rdx
mov rbx, rdi
sub rax, rsi
lea r14, [rax + r12]
sub rbx, r14
mov rcx, qword [0x14017b048]
lea r8, [0x14017b048]
cmp rcx, r8
je 0x14012a1d3
test byte [rcx + 0x1c], 1
je 0x14012a1d3
cmp byte [rcx + 0x19], 4
jb 0x14012a1d3
mov rcx, qword [rcx + 0x10]
mov r9, rdi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rsi
call fcn.1401290d0
mov rcx, qword [0x14017b048]
lea r8, [0x14017b048]
cmp r14, rdi
jb 0x14012a29c
mov ebx, 0x80780030
cmp rcx, r8
je 0x14012a280
test byte [rcx + 0x1c], 1
je 0x14012a21f
cmp byte [rcx + 0x19], 2
jb 0x14012a21f
mov edx, 0x39
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164b28]
mov r9d, 0x80780030
call fcn.140004c3c
mov rcx, qword [0x14017b048]
lea r8, [0x14017b048]
cmp rcx, r8
je 0x14012a280
test byte [rcx + 0x1c], 1
je 0x14012a253
cmp byte [rcx + 0x19], 2
jb 0x14012a253
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164b28]
mov edx, 0x3d
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140005d40
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x14012a280
test byte [rcx + 0x1c], 1
je 0x14012a280
cmp byte [rcx + 0x19], 4
jb 0x14012a280
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164b28]
mov edx, 0x3e
call fcn.140004c10
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
shr rdi, 3
cmp rbx, rdi
jae 0x14012a2cd
mov ebx, 0x80780030
cmp rcx, r8
je 0x14012a280
test byte [rcx + 0x1c], 1
je 0x14012a21f
cmp byte [rcx + 0x19], 2
jb 0x14012a21f
mov edx, 0x3a
jmp 0x14012a1fb
mov r8b, 1
mov rdx, rbx
mov rcx, r15
call fcn.140129590
mov ebx, eax
test eax, eax
jns 0x14012a320
mov rcx, qword [0x14017b048]
lea r8, [0x14017b048]
cmp rcx, r8
je 0x14012a11a
test byte [rcx + 0x1c], 1
je 0x14012a11a
cmp byte [rcx + 0x19], 2
jb 0x14012a11a
mov edx, 0x3b
mov r9d, eax
lea r8, [0x140164b28]
jmp 0x14012a103
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov esi, eax
lea r9, [rbp + 0x48]
mov rcx, r15
lea r8, [rbp - 8]
xor edi, edi
lea rdx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
nop dword [rax + rax]
test eax, eax
jne 0x14012a35b
mov rcx, r15
call fcn.140137834
mov ebx, eax
jmp 0x14012a361
mov rdi, qword [rbp + 0x40]
xor ebx, ebx
test ebx, ebx
js 0x14012a211
cmp rdi, r12
ja 0x14012a10c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
sub eax, esi
cmp eax, 0x3a98
jb 0x14012a32e
mov ebx, 0x8078005b
mov rcx, qword [0x14017b048]
lea r8, [0x14017b048]
cmp rcx, r8
je 0x14012a280
test byte [rcx + 0x1c], 1
je 0x14012a21f
cmp byte [rcx + 0x19], 2
jb 0x14012a21f
mov edx, 0x3c
mov r9d, 0x8078005b
jmp 0x14012a314