Function at 0x180001e40
Capabilities:
Check if file exists
Delete file
Get common file path
Get startup folder

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 [0x1800ea550]
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.18001cec0
nop
mov qword [rbx + 0x60], 0xf
xor esi, esi
mov qword [rbx + 0x58], rsi
mov byte [rbx + 0x48], sil
lea rcx, [rbx + 0x78]
call fcn.180003bf0
nop
lea rcx, [rbp]
call fcn.1800748f4
mov rdx, qword [rbp]
mov qword [rbx + 0x180], rdx
cmp byte [rbx], sil
jne 0x180002434
mov qword [rbp + 0xb0], 0xf
mov qword [rbp + 0xa8], rsi
mov byte [rbp + 0x98], sil
lea r8d, [rsi + 2]
lea rdx, [0x1800b6990]
lea rcx, [rbp + 0x98]
call fcn.1800071c0
nop
lea r8d, [rsi + 7]
lea rdx, [0x1800b6998]
lea rcx, [rbp + 0x98]
call fcn.180007080
lea r8, str.debug.txt
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x48]
call fcn.180009430
nop
lea rcx, [rbp + 0x48]
cmp qword [rbp + 0x60], 0x10
cmovae rcx, qword [rbp + 0x48]
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 0x1800021fb
mov qword [rbp + 8], rsi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x180001f86
lea rdx, [rbp + 8]
mov ecx, eax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
cmp qword [rbp + 8], 0
je 0x1800021fb
mov qword [rbp + 0x88], 7
mov qword [rbp + 0x80], rsi
mov word [rbp + 0x70], si
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 0x180002034
mov rdi, qword [rbp]
test rdi, rdi
je 0x180002034
mov word [rbp + 0xf0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0xf2]
call fcn.180073cb0
lea rdx, [rbp + 0xf0]
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x18000202a
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 + 0x70]
call fcn.180007850
mov rcx, qword [rbp]
call qword [sym.imp.SHELL32.dll_ILFree]
lea r8, str._fxlog_
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x20]
call fcn.180009510
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x180002055
mov rdi, qword [rax]
test rdi, rdi
jne 0x18000205f
mov rdx, rsi
jmp 0x1800020b7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x180002076
mov rdx, rsi
jmp 0x1800020b7
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x180002092
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.180074590
sub rsp, rcx
lea rcx, [rsp + 0x40]
mov r9d, 3
mov rdx, rdi
call fcn.18000a5b0
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.1800071c0
nop
cmp qword [rbp + 0x38], 8
jb 0x1800020e6
mov rcx, qword [rbp + 0x20]
call fcn.18007309c
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], rsi
mov word [rbp + 0x20], si
lea r8, str.debug.txt
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x20]
call fcn.180009430
mov rdi, rax
lea rax, [rbp + 0x48]
cmp rax, rdi
je 0x18000217e
cmp qword [rbp + 0x60], 0x10
jb 0x180002129
mov rcx, qword [rbp + 0x48]
call fcn.18007309c
mov qword [rbp + 0x60], 0xf
mov qword [rbp + 0x58], rsi
mov byte [rbp + 0x48], 0
cmp qword [rdi + 0x18], 0x10
jae 0x180002155
mov r8, qword [rdi + 0x10]
inc r8
mov rdx, rdi
lea rcx, [rbp + 0x48]
call fcn.180073f20
jmp 0x18000215f
mov rax, qword [rdi]
mov qword [rbp + 0x48], rax
mov qword [rdi], rsi
mov rax, qword [rdi + 0x10]
mov qword [rbp + 0x58], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp + 0x60], rax
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rsi
mov byte [rdi], 0
cmp qword [rbp + 0x38], 0x10
jb 0x18000218e
mov rcx, qword [rbp + 0x20]
call fcn.18007309c
mov qword [rbp + 0x38], 0xf
mov qword [rbp + 0x30], rsi
mov byte [rbp + 0x20], 0
lea rcx, [rbp + 0x48]
cmp qword [rbp + 0x60], 0x10
cmovae rcx, qword [rbp + 0x48]
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
cmp qword [rbp + 0x88], 8
jb 0x1800021e5
mov rcx, qword [rbp + 0x70]
call fcn.18007309c
mov qword [rbp + 0x88], 7
mov qword [rbp + 0x80], rsi
mov word [rbp + 0x70], si
lea rcx, [rbp + 0x20]
call fcn.180018a60
nop
mov rdx, rax
lea rcx, [rbp + 0xc0]
call fcn.180011e10
nop
cmp qword [rbp + 0x38], 8
jb 0x180002225
mov rcx, qword [rbp + 0x20]
call fcn.18007309c
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], rsi
mov word [rbp + 0x20], si
cmp rdi, 0xffffffffffffffff
je 0x1800022bf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x48]
cmp qword [rbp + 0x60], 0x10
cmovae rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea r8, [rbp + 0xc0]
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x20]
call fcn.1800095f0
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.180002500
nop
cmp qword [rbp + 0x38], 0x10
jb 0x1800022aa
mov rcx, qword [rbp + 0x20]
call fcn.18007309c
mov qword [rbp + 0x38], 0xf
mov qword [rbp + 0x30], rsi
mov byte [rbp + 0x20], 0
jmp 0x1800023b4
mov qword [rbp + 0x88], 7
mov qword [rbp + 0x80], rsi
mov word [rbp + 0x70], si
mov r8d, 2
lea rdx, [0x1800b69c0]
lea rcx, [rbp + 0x70]
call fcn.180007850
nop
mov r8d, 6
lea rdx, str._fxlog
lea rcx, [rbp + 0x70]
call fcn.1800076f0
cmp qword [rbp + 0x80], 0
je 0x18000238b
lea rcx, [rbp + 0x70]
cmp qword [rbp + 0x88], 8
cmovae rcx, qword [rbp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x18000238b
lea r8, [rbp + 0xc0]
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x20]
call fcn.1800095f0
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.180002500
nop
cmp qword [rbp + 0x38], 0x10
jb 0x18000237b
mov rcx, qword [rbp + 0x20]
call fcn.18007309c
mov qword [rbp + 0x38], 0xf
mov qword [rbp + 0x30], rsi
mov byte [rbp + 0x20], 0
cmp qword [rbp + 0x88], 8
jb 0x18000239e
mov rcx, qword [rbp + 0x70]
call fcn.18007309c
mov qword [rbp + 0x88], 7
mov qword [rbp + 0x80], rsi
mov word [rbp + 0x70], si
cmp qword [rbp + 0xd8], 0x10
jb 0x1800023ca
mov rcx, qword [rbp + 0xc0]
call fcn.18007309c
mov qword [rbp + 0xd8], 0xf
mov qword [rbp + 0xd0], rsi
mov byte [rbp + 0xc0], 0
cmp qword [rbp + 0x60], 0x10
jb 0x1800023f3
mov rcx, qword [rbp + 0x48]
call fcn.18007309c
mov qword [rbp + 0x60], 0xf
mov qword [rbp + 0x58], rsi
mov byte [rbp + 0x48], 0
cmp qword [rbp + 0xb0], 0x10
jb 0x180002419
mov rcx, qword [rbp + 0x98]
call fcn.18007309c
mov qword [rbp + 0xb0], 0xf
mov qword [rbp + 0xa8], rsi
mov byte [rbp + 0x98], 0
jmp 0x180002434
mov rax, rbx
mov rcx, qword [rbp + 0x300]
xor rcx, rbp
call fcn.180073c80
mov rbx, qword [rbp + 0x328]
mov rsi, qword [rbp + 0x330]
mov rdi, qword [rbp + 0x338]
lea rsp, [rbp + 0x310]
pop rbp
ret