Function at 0x1400174dc
Capabilities:
Check for time delay via gettickcount
Delete file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [0x140023128]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
xor r14d, r14d
mov dword [rsp + 0x54], r9d
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x68], r8
cmp dword [0x1400246bc], r14d
mov r15, rdx
mov qword [rbp - 0x78], rcx
mov r12d, r14d
mov dword [rsp + 0x50], r14d
lea edx, [rdi + 2]
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0x70], r14
mov qword [rbp - 0x70], r14
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x5c], r14d
je 0x140017561
cmp byte [0x1400231e0], r14b
je 0x140017561
mov ecx, edx
mov qword [rbp - 0x68], rdx
jmp 0x140017568
mov ecx, r14d
mov qword [rbp - 0x68], r14
mov rax, qword [rbp + 0x820]
mov ebx, r14d
cmp rax, qword [0x1400243d8]
jge 0x1400175de
mov qword [rbp - 0x80], rdx
mov esi, 0x10000
mov word [rbp - 0x50], r14w
test ecx, ecx
je 0x1400175ae
mov rcx, qword [0x140023f08]
lea r8, [rbp - 0x50]
mov r9d, 0x100
lea edx, [r9 - 0x21]
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
mov ecx, esi
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov qword [rbp - 0x58], rax
mov r13, rax
test rax, rax
jne 0x14001760a
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140017a59
mov eax, dword [0x1400243d0]
mov qword [rbp - 0x80], r14
test eax, eax
je 0x14001757f
mov esi, 0x418
cmp eax, esi
jbe 0x140017601
mov edx, 0x20000
mov esi, eax
cmp eax, edx
cmovae esi, edx
mov qword [rbp - 0x80], r14
jmp 0x140017584
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xa000000
mov edx, 0x80000000
mov rcx, r15
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14001794a
mov r15, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov edx, 0x40000000
mov dword [rsp + 0x28], 0xa000080
mov rcx, r15
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001770e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x11a
jne 0x1400176d5
and qword [rsp + 0x30], rbx
lea r8d, [rdi + 2]
mov dword [rsp + 0x28], 0xa000080
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001770e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp dword [0x1400245c4], r12d
mov ebx, eax
je 0x14001797f
mov r8d, eax
lea rcx, str._n_____ERROR:_CreateFile_Dst_s__FAILED___d_
mov rdx, r15
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
jmp 0x14001797f
mov r15d, dword [0x1400243d4]
shl r15, 0xa
mov qword [rbp - 0x60], r15
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x60], 1
jmp 0x14001789a
mov r8d, dword [rsp + 0x50]
test r8d, r8d
je 0x140017940
lea rax, [rbp - 0x70]
mov rdx, r13
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x58]
and dword [rsp + 0x28], ebx
mov rcx, rdi
and dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_BackupWrite]
nop dword [rax + rax]
test eax, eax
je 0x140017920
mov eax, dword [rsp + 0x54]
mov rdx, r12
neg eax
sbb rcx, rcx
and rcx, qword [rbp - 0x78]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rbp + 0x820]
mov qword [rsp + 0x38], rdi
call fcn.14000a488
mov eax, dword [rsp + 0x58]
add r12, rax
cmp r12, qword [rbp + 0x820]
cmovg r12, qword [rbp + 0x820]
cmp qword [rbp - 0x80], rbx
jne 0x1400177f1
test r15, r15
je 0x1400177f1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov ecx, eax
xor edx, edx
sub ecx, dword [rsp + 0x78]
imul rax, r12, 0x3e8
div r15
cmp eax, ecx
jbe 0x1400177f1
sub eax, ecx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
cmp qword [rbp - 0x68], rbx
je 0x14001789a
mov rax, qword [rbp - 0x78]
xor r13d, r13d
test byte [rax + 0x70], 0x10
je 0x14001780e
or r15, 0xffffffffffffffff
jmp 0x140017815
mov r15, qword [rax + 0x88]
call fcn.14000b8b8
test eax, eax
js 0x140017892
cmp byte [0x1400231e0], bl
je 0x140017892
mov r9, qword [0x1400231c8]
xor eax, eax
mov rcx, qword [0x1400231e8]
cmp r9, rcx
jbe 0x140017841
mov rax, r9
sub rax, rcx
cmp r15, rax
jbe 0x140017892
test rax, rax
jne 0x140017892
mov r8d, r13d
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x3b0]
call fcn.140016c10
lea rdx, [rbp + 0x3b0]
call fcn.14000f8d8
mov rcx, qword [0x140024128]
call qword [sym.imp.msvcrt.dll_fflush]
nop dword [rax + rax]
mov ecx, dword [0x140023140]
inc r13d
mov edx, r13d
call fcn.14000ba44
test eax, eax
jne 0x140017815
mov r13, qword [rbp - 0x58]
mov r15, qword [rbp - 0x60]
lea rax, [rsp + 0x70]
mov r8d, esi
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x50]
and dword [rsp + 0x28], ebx
mov rdx, r13
and dword [rsp + 0x20], ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_BackupRead]
nop dword [rax + rax]
test eax, eax
jne 0x14001773a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp dword [0x1400245c4], 0
mov ebx, eax
je 0x1400178fa
lea rcx, str._n_____ERROR:_BackupRead_Src__FAILED___d__n
mov edx, eax
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
neg dword [rsp + 0x54]
mov rdx, r12
mov rcx, qword [rbp + 0x820]
sbb rax, rax
and rax, qword [rbp - 0x78]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.14000a488
jmp 0x14001797a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp dword [0x1400245c4], 0
mov ebx, eax
je 0x1400178fa
lea rcx, str._n_____ERROR:_BackupWrite_Dst__FAILED___d__n
jmp 0x1400178ec
mov dword [rsp + 0x5c], 1
jmp 0x1400178fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp dword [0x1400245c4], r12d
mov ebx, eax
je 0x14001797a
mov r8d, eax
lea rcx, str._n_____ERROR:_CreateFile_Src_s__FAILED___d_
mov rdx, r15
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
mov r15, qword [rsp + 0x68]
cmp qword [rbp - 0x70], 0
je 0x1400179b3
lea rax, [rbp - 0x70]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
and dword [rsp + 0x28], 0
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_BackupWrite]
nop dword [rax + rax]
cmp rdi, 0xffffffffffffffff
je 0x1400179c8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
cmp qword [rsp + 0x70], 0
je 0x1400179fe
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
and dword [rsp + 0x28], 0
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_BackupRead]
nop dword [rax + rax]
cmp r14, 0xffffffffffffffff
je 0x140017a13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, r13
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov edi, dword [rsp + 0x5c]
test edi, edi
jne 0x140017a57
cmp dword [rsp + 0x60], edi
je 0x140017a3f
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test ebx, ebx
mov eax, 0x6e
cmove ebx, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.140001800
mov rbx, qword [rsp + 0x918]
add rsp, 0x8c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret