Function at 0x18000ea58
Capabilities:
Delete file
Get common file path
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x18004e5f0]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r12, rcx
lea r13, [0x180050c80]
lea rcx, [0x180050ff0]
mov rdx, r13
call fcn.180006d84
test al, al
je 0x18000ed62
lea rdx, [0x18003f44c]
mov rcx, r13
call fcn.18001b560
mov rbx, rax
test rax, rax
je 0x18000ed59
mov r8d, 4
lea rcx, [rsp + 0x34]
mov r9, rax
lea r15d, [r8 - 3]
mov edx, r15d
call fcn.18001e510
cmp rax, 4
jne 0x18000ed51
mov eax, dword [rsp + 0x34]
cmp eax, 0x104
ja 0x18000ed51
inc eax
movsxd rcx, eax
call fcn.18001b978
mov rdi, rax
test rax, rax
je 0x18000ed51
movsxd r8, dword [rsp + 0x34]
mov r9, rbx
mov edx, r15d
mov rcx, rax
call fcn.18001e510
movsxd rcx, dword [rsp + 0x34]
cmp rax, rcx
jne 0x18000ed51
lea rcx, [rsp + 0x30]
mov r9, rbx
mov r8d, r15d
mov edx, r15d
mov byte [rsp + 0x30], 0
call fcn.18001e510
cmp rax, r15
je 0x18000eb58
mov rcx, rbx
call fcn.18001a170
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rbx
call fcn.18001a170
movsxd r11, dword [rsp + 0x34]
mov byte [r11 + rdi], 0
mov eax, dword [rdi + 4]
test eax, eax
je 0x18000ebbd
cmp eax, dword [rdi]
jae 0x18000ebbd
lea rdx, str.__MNBVCXZ_LKJHGFDSAPOIUYTREWQ_______
lea rcx, [rdi + 8]
call fcn.18001c168
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x40], 0
mov rbx, rax
call fcn.180019880
test rbx, rbx
jne 0x18000ecba
lea rdx, [0x18003f8b0]
lea rcx, [rdi + 8]
call fcn.18001c168
test rax, rax
jne 0x18000ebd3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rdi
call fcn.18001a1d8
jmp 0x18000ed62
cmp byte [rsp + 0x30], 0
je 0x18000ed59
mov eax, dword [0x1800531d8]
cmp eax, 2
je 0x18000ec27
cmp eax, 3
je 0x18000ec27
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rcx, [rsp + 0x40]
call fcn.18001b8d0
cmp byte [rsp + rax + 0x3f], 0x5c
je 0x18000ec1e
lea rcx, [rsp + 0x40]
call fcn.18001b8d0
mov byte [rsp + rax + 0x40], 0x5c
lea rdx, str.Debug_
jmp 0x18000ec66
lea rdx, [rsp + 0x40]
mov r9d, r15d
mov r8d, 0x23
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea rcx, [rsp + 0x40]
call fcn.18001b8d0
cmp byte [rsp + rax + 0x3f], 0x5c
je 0x18000ec5f
lea rdx, [0x18003df60]
lea rcx, [rsp + 0x40]
call fcn.180019f40
lea rdx, str.Windows_
lea rcx, [rsp + 0x40]
call fcn.180019f40
lea rcx, [rdi + 8]
mov edx, 0x5c
call fcn.18001c6b0
lea rcx, [rsp + 0x40]
lea rdx, [rax + 1]
test rax, rax
jne 0x18000ec90
lea rdx, [rdi + 8]
call fcn.180019f40
lea rcx, [rsp + 0x40]
mov edx, 0x2e
call fcn.18001c6b0
lea rdx, str..exe
mov rcx, rax
call fcn.180019fe0
lea rbx, [rsp + 0x40]
jmp 0x18000ecbd
add rbx, r15
lea rdx, [r12 + 0xf4d9]
mov rcx, rbx
call fcn.18001e5e0
test eax, eax
jne 0x18000ece8
lea rcx, [r12 + 0xf4d9]
xor edx, edx
mov r8d, 0x104
call fcn.180019880
jmp 0x18000ed62
lea rdx, [0x18003f8a4]
mov rcx, rbx
call fcn.18001b560
mov rsi, rax
test rax, rax
je 0x18000ed2b
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.18001eac8
mov rcx, rsi
call fcn.18001ef34
mov rcx, rsi
mov ebx, eax
call fcn.18001a170
mov dword [rdi + 4], ebx
cmp ebx, dword [rdi]
jne 0x18000ed2f
jmp 0x18000ebbd
and dword [rdi + 4], 0
cmp byte [rsp + 0x30], 0
mov r8, rdi
mov dl, r15b
setne r9b
and qword [rsp + 0x20], 0
mov rcx, r12
call fcn.18000e680
jmp 0x18000ebc6
mov rcx, rbx
call fcn.18001a170
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.180019850
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret