Function at 0x140072e70
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
call fcn.14006fde0
test al, al
je 0x140073287
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140073287
lea rsi, [rdi + 0x10]
mov rdi, rsi
cmp qword [rsi + 0x18], 8
jb 0x140072eef
mov rdi, qword [rsi]
lea rdx, [rbp - 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x140073273
lea r9, [rbp + 0x1a0]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140073273
lea rcx, [rbp + 0x1a0]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140072f40
lea r8, [rbp + 0x1a0]
mov edx, 0x104
lea rcx, [rbp - 0x70]
cmp rax, rdx
jae 0x140072f67
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x140072f7b
mov r9d, 0x103
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [rbp + 0x196], r14w
mov r8d, 1
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140073277
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], r14w
jne 0x140072fc5
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140003530
nop
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r14w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140073002
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140003530
nop
lea r11, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae r11, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
cmp rcx, 1
jb 0x1400730b0
dec rcx
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r10, [r11 + rax*2]
lea rdi, [0x1401f1088]
mov r9, r10
sub r9, rdi
nop dword [rax]
cmp word [r10], 0x5c
jne 0x140073099
mov ecx, 1
mov rax, rdi
mov edx, 0x5c
mov r8d, edx
cmp dx, r8w
ja 0x140073099
cmp rcx, 1
je 0x1400730a8
dec rcx
add rax, 2
movzx edx, word [rax + r9]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x14007307b
cmp r10, r11
je 0x1400730b0
sub r10, 2
sub r9, 2
jmp 0x140073060
sub r10, r11
sar r10, 1
jmp 0x1400730b7
mov r10, 0xffffffffffffffff
lea r8, [r10 + 1]
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], r14
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r14w
cmp qword [rsp + 0x58], r8
cmovb r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140003530
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae r9, qword [rsp + 0x68]
cmp qword [rsi + 0x18], 8
jb 0x14007311f
mov rsi, qword [rsi]
mov r8d, 0x104
lea rdx, [rbp - 0x70]
mov rcx, rsi
call fcn.1401910a0
cmp eax, 0xffffffff
sete dil
mov eax, 1
and eax, 0xfffffffe
mov dword [rsp + 0x20], eax
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140073188
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140073183
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140073183
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007ea0
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r14w
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1400731e0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400731db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400731db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007ea0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r14w
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140073239
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140073234
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140073234
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007ea0
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
test dil, dil
jne 0x140073273
mov r8d, 1
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140073277
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
jmp 0x140073289
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov al, 1
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1401c5190
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret