Function at 0x140111358
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rax, qword [rbp + 0x3f8]
xor esi, esi
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x50], rax
mov eax, dword [rbp + 0x400]
mov r13, r9
mov dword [rsp + 0x48], eax
mov eax, dword [rbp + 0x408]
mov qword [rsp + 0x58], r8
mov r15, rdx
mov r12, rcx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], eax
mov ebx, 0x80004005
test r9, r9
je 0x14011165b
cmp dword [rbp + 0x3f0], 0x104
jb 0x14011165b
mov word [rbp + 0x170], si
mov word [rsp + 0x60], si
test rdx, rdx
jne 0x140111430
lea rcx, [rbp + 0x170]
mov edx, 0x104
call fcn.140111120
mov ebx, eax
test eax, eax
jns 0x140111429
mov rcx, qword [0x140148ea8]
lea rsi, [0x140148ea8]
cmp rcx, rsi
je 0x14011163c
test byte [rcx + 0x1c], 1
je 0x14011163c
lea edx, [rdi + 0xf]
jmp 0x14011160e
lea r15, [rbp + 0x170]
mov edi, dword [rsp + 0x40]
lea rsi, [0x140148ea8]
lea r9, [rsp + 0x60]
lea rdx, [0x1401116b0]
xor r8d, r8d
mov rcx, r15
call sub.KERNEL32.dll_GetTempFileNameW
test eax, eax
je 0x140111551
mov rdi, qword [rsp + 0x58]
lea rcx, [rsp + 0x60]
test rdi, rdi
je 0x1401114d9
call sub.KERNEL32.dll_DeleteFileW
lea rcx, [rsp + 0x60]
mov r8, rdi
mov edx, 0x104
call fcn.140044c28
test eax, eax
jns 0x1401114ae
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x1401114ae
test byte [rcx + 0x1c], 1
je 0x1401114ae
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001368]
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroy
mov r9d, ebx
call fcn.14000fd64
lea rcx, [rsp + 0x60]
call sub.KERNEL32.dll_DeleteFileW
mov eax, dword [rsp + 0x44]
lea rcx, [rsp + 0x60]
bts eax, 7
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
jmp 0x1401114f3
mov eax, dword [rsp + 0x44]
bts eax, 7
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x48]
mov edx, 0xc0000000
call sub.KERNEL32.dll_CreateFileW
lea rcx, [rsp + 0x60]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140111576
mov edx, dword [rsp + 0x44]
or edx, 0x2080
call sub.KERNEL32.dll_SetFileAttributesW
test eax, eax
jne 0x14011154d
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x14011154d
test byte [rcx + 0x1c], 2
je 0x14011154d
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x11]
lea r8, [0x140001368]
call fcn.14000fcb0
mov edi, dword [rsp + 0x40]
inc edi
mov ecx, 0x64
mov dword [rsp + 0x40], edi
call sub.KERNEL32.dll_Sleep
cmp edi, 0x32
jb 0x14011143b
mov ebx, 0x80004005
mov eax, ebx
jmp 0x14011168e
mov r8d, dword [rbp + 0x3f0]
mov rdx, r13
call sub.KERNEL32.dll_GetLongPathNameW
test eax, eax
je 0x140111595
cmp eax, dword [rbp + 0x3f0]
jb 0x140111623
call sub.KERNEL32.dll_GetLastError
mov ebx, 0x80004005
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
test r9d, r9d
cmovns r9d, ebx
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x1401115de
test byte [rcx + 0x1c], 2
je 0x1401115de
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001368]
mov edx, SafeArrayUnlock
call fcn.14000fd64
mov edx, dword [rbp + 0x3f0]
lea r8, [rsp + 0x60]
mov rcx, r13
call fcn.140044bb0
mov ebx, eax
test eax, eax
jns 0x140111623
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x14011163c
test byte [rcx + 0x1c], 1
je 0x14011163c
mov edx, SafeArrayAccessData
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001368]
mov r9d, eax
call fcn.14000fd64
jmp 0x14011163c
test r12, r12
je 0x14011162e
mov qword [r12], rdi
jmp 0x14011163a
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
or rdi, 0xffffffffffffffff
xor ebx, ebx
test ebx, ebx
jns 0x14011156f
cmp rdi, 0xffffffffffffffff
je 0x14011156f
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
jmp 0x14011156f
mov rcx, qword [0x140148ea8]
lea rsi, [0x140148ea8]
cmp rcx, rsi
je 0x140111689
test byte [rcx + 0x1c], 1
je 0x140111689
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001368]
mov edx, reloc.Cabinet.dll_FCIFlushCabinet
call fcn.14000fcb0
mov eax, 0x80070057
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140001000
add rsp, 0x490
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret