Function at 0x18002f700
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push rbp
sub rsp, 0x350
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rbp + 0x328], rbx
mov qword [rbp + 0x330], rsi
mov qword [rbp + 0x338], rdi
mov rax, qword [0x1801c2938]
xor rax, rbp
mov qword [rbp + 0x300], rax
mov rbx, rcx
mov qword [rbp + 0x18], rcx
mov byte [rcx], 0
add rcx, 8
mov qword [rbp], rcx
call fcn.18003d370
nop
lea rcx, [rbx + 0x48]
call fcn.180001830
nop
lea rcx, [rbx + 0x78]
call fcn.180030440
nop
lea rcx, [rbp]
call fcn.1800c0ee8
mov rdx, qword [rbp]
mov qword [rbx + 0x180], rdx
cmp byte [rbx], 0
jne 0x18002fb95
lea rdx, [0x18014a920]
lea rcx, [rbp + 0x98]
call fcn.180012480
nop
mov r8d, 7
lea rdx, [0x18014a928]
lea rcx, [rbp + 0x98]
call fcn.180001ba0
lea r8, str.debug.txt
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x20]
call fcn.180030590
nop
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rcx, qword [rbp + 0x20]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18002fa3f
mov qword [rbp + 8], rsi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x18002f825
lea rdx, [rbp + 8]
mov ecx, eax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
cmp qword [rbp + 8], rsi
je 0x18002fa3f
lea rcx, [rbp + 0x48]
call fcn.180014410
nop
mov qword [rbp], rsi
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp + 8]
lea edx, [r9 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
js 0x18002f8c6
mov rdi, qword [rbp]
test rdi, rdi
je 0x18002f8c6
mov word [rbp + 0xf0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0xf2]
call fcn.1800c6a90
lea rdx, [rbp + 0xf0]
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x18002f8bc
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0xf0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0x48]
call fcn.18001c940
mov rcx, qword [rbp]
call qword [sym.imp.SHELL32.dll_ILFree]
lea r8, str._fxlog_
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x70]
call fcn.180022bc0
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x18002f8e7
mov rdi, qword [rax]
test rdi, rdi
jne 0x18002f8f1
mov rdx, rsi
jmp 0x18002f949
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x18002f908
mov rdx, rsi
jmp 0x18002f949
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x18002f924
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1800ce0d0
sub rsp, rcx
lea rcx, [rsp + 0x40]
mov r9d, 3
mov rdx, rdi
call fcn.180030670
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x98]
call fcn.180001ce0
nop
lea rcx, [rbp + 0x70]
call fcn.1800a20a0
lea r8, str.debug.txt
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x70]
call fcn.180030590
mov rdi, rax
lea rax, [rbp + 0x20]
cmp rax, rdi
je 0x18002f9f9
cmp qword [rbp + 0x38], 0x10
jb 0x18002f9a4
mov rcx, qword [rbp + 0x20]
call fcn.1800be828
mov qword [rbp + 0x38], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp + 0x30], rsi
mov byte [rbp + 0x20], 0
cmp qword [rdi + 0x18], 0x10
jae 0x18002f9d0
mov r8, qword [rdi + 0x10]
inc r8
mov rdx, rdi
lea rcx, [rbp + 0x20]
call fcn.1800be2a0
jmp 0x18002f9da
mov rax, qword [rdi]
mov qword [rbp + 0x20], rax
mov qword [rdi], rsi
mov rax, qword [rdi + 0x10]
mov qword [rbp + 0x30], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp + 0x38], rax
mov qword [rdi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rdi + 0x10], rsi
mov byte [rdi], 0
lea rcx, [rbp + 0x70]
call fcn.180001850
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rcx, qword [rbp + 0x20]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
lea rcx, [rbp + 0x48]
call fcn.1800a20a0
lea rcx, [rbp + 0x70]
call fcn.1800325d0
nop
mov rdx, rax
lea rcx, [rbp + 0xc0]
call fcn.1800346a0
nop
lea rcx, [rbp + 0x70]
call fcn.1800a20a0
cmp rdi, 0xffffffffffffffff
je 0x18002fad1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea r8, [rbp + 0xc0]
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x70]
call fcn.18002c170
nop
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
mov r9d, 3
lea r8d, [r9 + 0x12]
mov rdx, rax
mov rcx, rbx
call fcn.18002fbd0
nop
lea rcx, [rbp + 0x70]
call fcn.180001850
jmp 0x18002fb6f
lea rdx, [0x18014a950]
lea rcx, [rbp + 0x48]
call fcn.180014430
nop
mov r8d, 6
lea rdx, str._fxlog
lea rcx, [rbp + 0x48]
call fcn.180018aa0
cmp qword [rbp + 0x58], 0
je 0x18002fb65
lea rcx, [rbp + 0x48]
cmp qword [rbp + 0x60], 8
cmovae rcx, qword [rbp + 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x18002fb65
lea r8, [rbp + 0xc0]
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x70]
call fcn.18002c170
nop
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
mov r9d, 3
lea r8d, [r9 + 0x13]
mov rdx, rax
mov rcx, rbx
call fcn.18002fbd0
nop
lea rcx, [rbp + 0x70]
call fcn.180001850
nop
lea rcx, [rbp + 0x48]
call fcn.1800a20a0
nop
lea rcx, [rbp + 0xc0]
call fcn.180001850
nop
lea rcx, [rbp + 0x20]
call fcn.180001850
nop
lea rcx, [rbp + 0x98]
call fcn.180001850
nop
jmp 0x18002fb95
mov rax, rbx
mov rcx, qword [rbp + 0x300]
xor rcx, rbp
call fcn.1800bdf20
mov rbx, qword [rbp + 0x328]
mov rsi, qword [rbp + 0x330]
mov rdi, qword [rbp + 0x338]
lea rsp, [rbp + 0x310]
pop rbp
ret