Function at 0x1400797e0
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6e0
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x6d0], rax
xor r15d, r15d
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
or r13, 0xffffffffffffffff
mov ebx, r15d
mov rcx, qword [str.P5_n_]
lea r12, str.P5_n_
lea r14d, [r15 + 2]
cmp rcx, r12
je 0x140079853
test byte [rcx + 0x1c], r14b
je 0x140079853
cmp byte [rcx + 0x19], 5
jb 0x140079853
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x3f]
lea r8, [0x140008e18]
call fcn.14000ffa8
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r15d
jne 0x140079871
mov dword [rsi], 1
xor eax, eax
jmp 0x140079b97
lea r9, [rsp + 0xb0]
lea rdx, [0x14000d078]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, r15d
jne 0x1400798da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x140079b95
test byte [rcx + 0x1c], r14b
je 0x140079b95
cmp byte [rcx + 0x19], r14b
jb 0x140079b95
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008e18]
mov edx, 0x40
mov r9d, eax
call fcn.1400100e0
jmp 0x140079b95
mov eax, 3
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0xb0]
xor r9d, r9d
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], eax
call fcn.140079cec
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14007994d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
lea rdi, str.P5_n_
cmp rcx, rdi
je 0x140079a9a
test byte [rcx + 0x1c], r14b
je 0x140079a9a
cmp byte [rcx + 0x19], r14b
jb 0x140079a9a
lea edx, [r12 + 0x42]
jmp 0x140079c8f
lea rcx, [rsp + 0xb0]
mov edx, 0x5c
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov r9d, 0x208
lea rdx, [rsp + 0x2c0]
mov r11, rax
lea rax, [rsp + 0x2c0]
mov r8, r9
sub rbp, rax
mov edi, r15d
lea rcx, [r8 + 0x7ffffdf6]
cmp rcx, r15
je 0x1400799a4
movzx eax, word [rdx + rbp]
cmp ax, r15w
je 0x1400799a4
mov word [rdx], ax
add rdx, r14
sub r8, 1
jne 0x140079982
cmp r8, r15
jne 0x1400799b1
sub rdx, r14
mov edi, 0x8007007a
cmp edi, r15d
mov word [rdx], r15w
jge 0x1400799fa
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x1400799f2
test byte [rcx + 0x1c], r14b
je 0x1400799f2
cmp byte [rcx + 0x19], r14b
jb 0x1400799f2
mov edx, 0x42
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008e18]
movzx r9d, di
call fcn.1400100e0
movzx ebx, di
jmp 0x140079a93
lea rcx, [rsp + 0x2c0]
mov r8, r11
mov rdx, r9
call fcn.140019338
cmp eax, r15d
mov edi, eax
jge 0x140079a3a
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x1400799f2
test byte [rcx + 0x1c], r14b
je 0x1400799f2
cmp byte [rcx + 0x19], r14b
jb 0x1400799f2
mov edx, 0x43
jmp 0x1400799de
mov dword [rsp + 0x38], r14d
mov r8d, 3
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x2c0]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r8d
call fcn.140079cec
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x140079bf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 8
je 0x140079bc2
cmp eax, 0xe
je 0x140079bc2
mov ebx, r15d
mov dword [rsi], r15d
lea rdi, str.P5_n_
cmp r12, 0xffffffffffffffff
je 0x140079aeb
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, r15d
jne 0x140079aeb
mov rax, qword [str.P5_n_]
cmp rax, rdi
je 0x140079aeb
test byte [rax + 0x1c], r14b
je 0x140079aeb
cmp byte [rax + 0x19], r14b
jb 0x140079aeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
lea r8, [0x140008e18]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x47
call fcn.1400100e0
cmp r13, 0xffffffffffffffff
je 0x140079b3c
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, r15d
jne 0x140079b3c
mov rax, qword [str.P5_n_]
cmp rax, rdi
je 0x140079b3c
test byte [rax + 0x1c], r14b
je 0x140079b3c
cmp byte [rax + 0x19], r14b
jb 0x140079b3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
lea r8, [0x140008e18]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x48
call fcn.1400100e0
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, r15d
jne 0x140079b95
mov rax, qword [str.P5_n_]
cmp rax, rdi
je 0x140079b95
test byte [rax + 0x1c], r14b
je 0x140079b95
cmp byte [rax + 0x19], r14b
jb 0x140079b95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
lea r9, [rsp + 0xb0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008e18]
mov edx, 0x49
mov dword [rsp + 0x20], eax
call fcn.140011a18
mov eax, ebx
mov rcx, qword [rsp + 0x6d0]
xor rcx, rsp
call fcn.14008c5b0
mov rbx, qword [rsp + 0x738]
add rsp, 0x6e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [str.P5_n_]
lea rdi, str.P5_n_
cmp rcx, rdi
je 0x140079a9a
test byte [rcx + 0x1c], r14b
je 0x140079a9a
cmp byte [rcx + 0x19], r14b
jb 0x140079a9a
mov edx, 0x44
jmp 0x140079c8f
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
cmp eax, r15d
jne 0x140079c44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
lea rdi, str.P5_n_
cmp rcx, rdi
je 0x140079a9a
test byte [rcx + 0x1c], r14b
je 0x140079a9a
cmp byte [rcx + 0x19], r14b
jb 0x140079a9a
mov edx, 0x45
jmp 0x140079c8f
lea rdx, [rsp + 0x78]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
cmp eax, r15d
jne 0x140079ca7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
lea rdi, str.P5_n_
cmp rcx, rdi
je 0x140079a9a
test byte [rcx + 0x1c], r14b
je 0x140079a9a
cmp byte [rcx + 0x19], r14b
jb 0x140079a9a
mov edx, 0x46
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008e18]
mov r9d, eax
call fcn.1400100e0
jmp 0x140079a9a
mov eax, dword [rsp + 0xa4]
cmp dword [rsp + 0x6c], eax
jne 0x140079a90
mov eax, dword [rsp + 0xa8]
cmp dword [rsp + 0x70], eax
jne 0x140079a90
mov eax, dword [rsp + 0x94]
cmp dword [rsp + 0x5c], eax
jne 0x140079a90
mov dword [rsi], 1
jmp 0x140079a93