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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x508
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x78]
call fcn.180073cf0
nop
cmp qword [rsp + 0x520], 0
je 0x1801e09a9
mov rdx, qword [rsp + 0x520]
lea rcx, [rsp + 0x78]
call fcn.1800aac90
jmp 0x1801e0a07
lea rdx, [rsp + 0xe0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x1801e0a07
cmp dword [rsp + 0x4c], 0xf4
ja 0x1801e0a07
lea r9, [rsp + 0x2f0]
xor r8d, r8d
lea rdx, [0x180326948]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1801e0a07
lea rdx, [rsp + 0x2f0]
lea rcx, [rsp + 0x78]
call fcn.1800aac90
lea rcx, [rsp + 0x98]
call fcn.180073cf0
nop
lea rcx, [rsp + 0x78]
call fcn.1800738f0
movzx eax, al
test eax, eax
jne 0x1801e0d30
cmp qword [0x1803cb4d0], 0
je 0x1801e0a70
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x518]
call qword [0x1803cb4d0]
mov qword [rsp + 0x58], rax
jmp 0x1801e0aaa
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x518]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x1801e0b59
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1801e0b59
cmp qword [0x1803cb4d0], 0
je 0x1801e0b15
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rcx, qword [rsp + 0x518]
call qword [0x1803cb4d0]
mov qword [rsp + 0x60], rax
jmp 0x1801e0b4f
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rcx, qword [rsp + 0x518]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x1801e0bfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1801e0bfe
cmp qword [0x1803cb4d0], 0
je 0x1801e0bba
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 5
mov edx, 0x80000000
mov rcx, qword [rsp + 0x518]
call qword [0x1803cb4d0]
mov qword [rsp + 0x68], rax
jmp 0x1801e0bf4
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 5
mov edx, 0x80000000
mov rcx, qword [rsp + 0x518]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x1801e0ca3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1801e0ca3
cmp qword [0x1803cb4d0], 0
je 0x1801e0c5f
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rcx, qword [rsp + 0x518]
call qword [0x1803cb4d0]
mov qword [rsp + 0x50], rax
jmp 0x1801e0c99
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rcx, qword [rsp + 0x518]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1801e0d09
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x1801e0d09
lea rcx, [rsp + 0x78]
call fcn.180074060
mov r9, qword [rsp + 0x528]
mov r8, rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xc0]
call fcn.1801e0640
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x98]
call fcn.180073df0
lea rcx, [rsp + 0xc0]
call fcn.180073fc0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x98]
call fcn.1800738f0
movzx eax, al
test eax, eax
je 0x1801e0d30
lea rcx, [rsp + 0x78]
call fcn.180074060
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x510]
call fcn.180073d90
mov eax, dword [rsp + 0x48]
or eax, 1
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x98]
call fcn.180073fc0
nop
lea rcx, [rsp + 0x78]
call fcn.180073fc0
mov rax, qword [rsp + 0x510]
add rsp, 0x508
ret