Function at 0x140009520
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 [0x1400408d8]
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.14000d540
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.14000ac10
nop
lea rcx, [rbp]
call fcn.1400136e4
mov rdx, qword [rbp]
mov qword [rbx + 0x180], rdx
cmp byte [rbx], sil
jne 0x140009aff
mov qword [rbp + 0xb0], 0xf
mov qword [rbp + 0xa8], rsi
mov byte [rbp + 0x98], sil
lea r8d, [rsi + 2]
lea rdx, [0x1400336a4]
lea rcx, [rbp + 0x98]
call fcn.1400028a0
nop
lea r8d, [rsi + 7]
lea rdx, [0x1400336a8]
lea rcx, [rbp + 0x98]
call fcn.1400076e0
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x48]
call fcn.14000c160
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 0x1400098c6
mov qword [rbp + 8], rsi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x14000965f
lea rdx, [rbp + 8]
mov ecx, eax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
cmp qword [rbp + 8], 0
je 0x1400098c6
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 0x14000970d
mov rdi, qword [rbp]
test rdi, rdi
je 0x14000970d
mov word [rbp + 0xf0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0xf2]
call fcn.140017010
lea rdx, [rbp + 0xf0]
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140009703
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.140002c50
mov rcx, qword [rbp]
call qword [sym.imp.SHELL32.dll_ILFree]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x20]
call fcn.140007f40
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x140009727
mov rdi, qword [rax]
test rdi, rdi
jne 0x140009731
mov rdx, rsi
jmp 0x140009789
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x140009748
mov rdx, rsi
jmp 0x140009789
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140009764
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14001a090
sub rsp, rcx
lea rcx, [rsp + 0x40]
mov r9d, 3
mov rdx, rdi
call fcn.14000c840
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.1400028a0
nop
cmp qword [rbp + 0x38], 8
jb 0x1400097b8
mov rcx, qword [rbp + 0x20]
call fcn.140011c44
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], rsi
mov word [rbp + 0x20], si
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x20]
call fcn.14000c160
mov rdi, rax
lea rax, [rbp + 0x48]
cmp rax, rdi
je 0x140009849
cmp qword [rbp + 0x60], 0x10
jb 0x1400097f4
mov rcx, qword [rbp + 0x48]
call fcn.140011c44
mov qword [rbp + 0x60], 0xf
mov qword [rbp + 0x58], rsi
mov byte [rbp + 0x48], 0
cmp qword [rdi + 0x18], 0x10
jae 0x140009820
mov r8, qword [rdi + 0x10]
inc r8
mov rdx, rdi
lea rcx, [rbp + 0x48]
call fcn.140011910
jmp 0x14000982a
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 0x140009859
mov rcx, qword [rbp + 0x20]
call fcn.140011c44
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 0x1400098b0
mov rcx, qword [rbp + 0x70]
call fcn.140011c44
mov qword [rbp + 0x88], 7
mov qword [rbp + 0x80], rsi
mov word [rbp + 0x70], si
lea rcx, [rbp + 0x20]
call fcn.140003f30
nop
mov rdx, rax
lea rcx, [rbp + 0xc0]
call fcn.140008750
nop
cmp qword [rbp + 0x38], 8
jb 0x1400098f0
mov rcx, qword [rbp + 0x20]
call fcn.140011c44
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], rsi
mov word [rbp + 0x20], si
cmp rdi, 0xffffffffffffffff
je 0x14000998a
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.14000c220
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.140009bc0
nop
cmp qword [rbp + 0x38], 0x10
jb 0x140009975
mov rcx, qword [rbp + 0x20]
call fcn.140011c44
mov qword [rbp + 0x38], 0xf
mov qword [rbp + 0x30], rsi
mov byte [rbp + 0x20], 0
jmp 0x140009a7f
mov qword [rbp + 0x88], 7
mov qword [rbp + 0x80], rsi
mov word [rbp + 0x70], si
mov r8d, 2
lea rdx, [0x1400336d0]
lea rcx, [rbp + 0x70]
call fcn.140002c50
nop
mov r8d, 6
lea rdx, str._fxlog
lea rcx, [rbp + 0x70]
call fcn.140002410
cmp qword [rbp + 0x80], 0
je 0x140009a56
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 0x140009a56
lea r8, [rbp + 0xc0]
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x20]
call fcn.14000c220
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.140009bc0
nop
cmp qword [rbp + 0x38], 0x10
jb 0x140009a46
mov rcx, qword [rbp + 0x20]
call fcn.140011c44
mov qword [rbp + 0x38], 0xf
mov qword [rbp + 0x30], rsi
mov byte [rbp + 0x20], 0
cmp qword [rbp + 0x88], 8
jb 0x140009a69
mov rcx, qword [rbp + 0x70]
call fcn.140011c44
mov qword [rbp + 0x88], 7
mov qword [rbp + 0x80], rsi
mov word [rbp + 0x70], si
cmp qword [rbp + 0xd8], 0x10
jb 0x140009a95
mov rcx, qword [rbp + 0xc0]
call fcn.140011c44
mov qword [rbp + 0xd8], 0xf
mov qword [rbp + 0xd0], rsi
mov byte [rbp + 0xc0], 0
cmp qword [rbp + 0x60], 0x10
jb 0x140009abe
mov rcx, qword [rbp + 0x48]
call fcn.140011c44
mov qword [rbp + 0x60], 0xf
mov qword [rbp + 0x58], rsi
mov byte [rbp + 0x48], 0
cmp qword [rbp + 0xb0], 0x10
jb 0x140009ae4
mov rcx, qword [rbp + 0x98]
call fcn.140011c44
mov qword [rbp + 0xb0], 0xf
mov qword [rbp + 0xa8], rsi
mov byte [rbp + 0x98], 0
jmp 0x140009aff
mov rax, rbx
mov rcx, qword [rbp + 0x300]
xor rcx, rbp
call fcn.1400114c0
mov rbx, qword [rbp + 0x328]
mov rsi, qword [rbp + 0x330]
mov rdi, qword [rbp + 0x338]
lea rsp, [rbp + 0x310]
pop rbp
ret