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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov rdi, r9
mov rsi, r8
mov r15b, dl
mov rbx, rcx
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x60], r9
and dword [rsp + 0x30], 0
mov r14d, 0x104
cmp qword [r9 + 0x18], 0
jne 0x1400a5c6c
mov r8d, r14d
lea rdx, [rsp + 0x38]
mov rcx, r9
call fcn.140009620
nop
mov byte [rax + 8], 1
mov rcx, qword [rax]
call fcn.140002ef0
mov rdx, qword [rax]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop
lea rcx, [rsp + 0x38]
call fcn.140009c60
lea rdx, [rbp + 0x10]
mov rcx, rdi
call fcn.14003c1a0
mov rcx, rax
call fcn.1400a65c4
lea r13, [0x140102478]
mov qword [rbp - 0x40], r13
lea rax, [0x1401025f8]
mov qword [rbp], rax
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x40]
call fcn.1400047b0
nop
xor r14d, r14d
test r15b, r15b
jne 0x1400a5d4e
lea rcx, [rbp + 0x60]
call fcn.1400a5418
nop
mov r8, rax
lea rdx, [0x1400f4850]
lea rcx, [rbp + 0xb0]
call fcn.14000ccf0
nop
lea r8, [0x1400f480c]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14000cde0
nop
mov r8, rax
lea rdx, [rbp + 0x10]
mov rcx, rdi
call fcn.14000e500
nop
test rax, rax
je 0x1400a5d05
lea rdx, [rax + 8]
jmp 0x1400a5d07
xor edx, edx
lea rax, [rbp - 0x38]
cmp rax, rdx
je 0x1400a5d21
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x38]
call fcn.140004680
nop
lea rcx, [rbp + 0x10]
call fcn.1400048d0
nop
lea rcx, [rsp + 0x70]
call fcn.1400048d0
nop
lea rcx, [rbp + 0xb0]
call fcn.1400048d0
nop
lea rcx, [rbp + 0x60]
call fcn.1400048d0
jmp 0x1400a5db4
mov r8d, 0x104
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x40]
call fcn.140009620
nop
mov byte [rax + 8], 1
mov rcx, qword [rax]
call fcn.140002ef0
lea rcx, [rdi + 8]
cmp qword [rcx + 0x18], 8
jb 0x1400a5d7d
mov rcx, qword [rcx]
mov r9, qword [rax]
mov r8d, r14d
lea rdx, [0x1400f4858]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
nop
lea rcx, [rsp + 0x38]
call fcn.140009c60
test r14d, r14d
jne 0x1400a5db4
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rsi + 0x18], 0
jne 0x1400a5e18
mov r9d, 1
lea r8, [rsp + 0x20]
lea rdx, [0x1400fc414]
lea rcx, [rbp + 0x10]
call fcn.140003cb0
nop
mov r9d, 1
lea r8, [rsp + 0x21]
lea rdx, str..tmp
lea rcx, [rsp + 0x70]
call fcn.140003cb0
nop
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x40]
call fcn.14003c250
nop
lea rcx, [rsp + 0x70]
call fcn.1400048d0
nop
lea rcx, [rbp + 0x10]
jmp 0x1400a5e4e
mov qword [rsp + 0x70], r13
lea rax, [0x1401025f8]
mov qword [rbp - 0x50], rax
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140006eb0
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 0x40]
call fcn.140041b20
lea rcx, [rbp + 0x60]
call fcn.1400048d0
test r15b, r15b
jne 0x1400a5e96
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 0x40]
call fcn.14003c1a0
nop
test rax, rax
je 0x1400a5e71
lea rdx, [rax + 8]
jmp 0x1400a5e73
xor edx, edx
lea rax, [rbp - 0x38]
cmp rax, rdx
je 0x1400a5e8d
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x38]
call fcn.140004680
nop
lea rcx, [rbp + 0x60]
call fcn.1400048d0
mov qword [rsp + 0x70], r13
lea rax, [0x1401025f8]
mov qword [rbp - 0x50], rax
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x70]
call fcn.140006eb0
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rcx, [rsp + 0x70]
call fcn.1400a2ea4
test al, al
je 0x1400a5efb
add r14d, 1
jns 0x1400a5cab
mov qword [rbx], r13
lea rax, [0x1401025f8]
mov qword [rbx + 0x40], rax
xor r9d, r9d
lea r8, [rsp + 0x21]
lea rdx, [0x1400fc414]
mov rcx, rbx
call fcn.140003cb0
jmp 0x1400a5f49
test r15b, r15b
jne 0x1400a5f2b
mov qword [rsp + 0x70], r13
lea rax, [0x1401025f8]
mov qword [rbp - 0x50], rax
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x70]
call fcn.140006eb0
lea rcx, [rsp + 0x70]
call fcn.1400a65c4
mov qword [rbx], r13
lea rax, [0x1401025f8]
mov qword [rbx + 0x40], rax
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.140006eb0
nop
lea rcx, [rbp - 0x40]
call fcn.1400048d0
nop
mov rcx, rsi
call fcn.1400048d0
nop
mov rcx, rdi
call fcn.1400048d0
mov rax, rbx
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1400b31f0
add rsp, 0x210
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret