Function at 0x140001050
Capabilities:
Check if file exists
Delete file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rax - 0x218]
sub rsp, 0x300
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400110b8]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov r12, rcx
mov qword [rbp - 0x70], 0xf
xor r13d, r13d
mov qword [rbp - 0x78], r13
mov byte [rsp + 0x78], r13b
lea r8d, [r13 + 0x18]
lea rdx, str.C:Windowsmysavepro.dat
lea rcx, [rsp + 0x78]
call fcn.140002ac0
nop
mov byte [rbp - 0x30], r13b
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp - 0x2f]
call fcn.140006a50
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r13 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov dword [rsp + 0x40], r13d
cmp rax, 0xffffffffffffffff
je 0x14000113d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, 0x104
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [rbp + 0xd3], r13b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x30]
repne scasb al, byte [rdi]
not rcx
lea rax, [rcx - 2]
test eax, eax
jle 0x14000116f
lea rcx, [rbp - 0x30]
mov edx, eax
nop word [rax + rax]
movzx eax, byte [rcx]
not al
mov byte [rcx], al
inc rcx
dec rdx
jne 0x140001160
cmp qword [r12 + 0x18], 0x10
jb 0x14000117d
mov rcx, qword [r12]
jmp 0x140001180
mov rcx, r12
lea rdx, [rbp - 0x30]
call fcn.140008808
test eax, eax
jne 0x140001192
jmp 0x1400016d8
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x30]
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 0xc
jne 0x1400015c4
cmp byte [rbp - 0x30], 0x4b
jne 0x1400015c4
cmp byte [rbp - 0x2f], 0x43
jne 0x1400015c4
cmp byte [rbp - 0x28], 0x2e
jne 0x1400015c4
cmp byte [rbp - 0x27], 0x64
jne 0x1400015c4
cmp byte [rbp - 0x26], 0x6c
jne 0x1400015c4
cmp byte [rbp - 0x25], 0x6c
jne 0x1400015c4
mov r8d, 0x104
lea rdx, [rbp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], r13
mov byte [rsp + 0x50], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0xe0]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x50]
call fcn.140002ac0
nop
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x140001381
cmp r8, 0xffffffffffffffff
jbe 0x140001254
or r8, 0xffffffffffffffff
jmp 0x140001257
dec r8
lea rdi, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdi, qword [rsp + 0x50]
add rdi, r8
movsx edx, byte [rdi]
mov r8d, 1
lea rcx, [0x14000e63c]
call fcn.140003f9c
test rax, rax
jne 0x1400012b5
lea rcx, [rsp + 0x50]
call fcn.1400022d0
cmp rdi, rax
je 0x140001373
dec rdi
movsx edx, byte [rdi]
mov r8d, 1
lea rcx, [0x14000e63c]
call fcn.140003f9c
test rax, rax
je 0x140001285
lea rax, [rsp + 0x50]
mov r9, qword [rsp + 0x68]
cmp r9, 0x10
cmovae rax, qword [rsp + 0x50]
sub rdi, rax
cmp rdi, 0xffffffffffffffff
je 0x14000137a
lea r8, [rdi + 1]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x50]
call fcn.1400022e0
mov rdi, rax
lea rax, [rsp + 0x50]
cmp rax, rdi
je 0x140001363
cmp qword [rsp + 0x68], 0x10
jb 0x140001307
mov rcx, qword [rsp + 0x50]
call fcn.140003a6c
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], r13
mov byte [rsp + 0x50], 0
cmp qword [rdi + 0x18], 0x10
jae 0x140001337
mov r8, qword [rdi + 0x10]
inc r8
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140003c60
jmp 0x140001342
mov rax, qword [rdi]
mov qword [rsp + 0x50], rax
mov qword [rdi], r13
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x60], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x68], rax
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r13
mov byte [rdi], 0
cmp qword [rbp - 0x48], 0x10
jb 0x140001373
mov rcx, qword [rbp - 0x60]
call fcn.140003a6c
mov r8, qword [rsp + 0x60]
jmp 0x140001381
mov r8, qword [rsp + 0x60]
jmp 0x140001386
mov r9, qword [rsp + 0x68]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x30]
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
cmp r9, 0x10
cmovae rax, rcx
lea rdx, [rbp - 0x30]
cmp rdx, rax
jb 0x1400014ab
lea rax, [rsp + 0x50]
cmp r9, 0x10
cmovae rax, rcx
add rax, r8
lea rdx, [rbp - 0x30]
cmp rax, rdx
jbe 0x1400014ab
lea rax, [rsp + 0x50]
cmp r9, 0x10
cmovae rax, rcx
lea rsi, [rbp - 0x30]
sub rsi, rax
cmp r8, rsi
jae 0x1400013fb
lea rcx, [0x14000e6b8]
call fcn.1400039e0
int3
mov rax, r8
sub rax, rsi
cmp rax, rdi
cmovb rdi, rax
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, rdi
ja 0x140001421
lea rcx, [0x14000e6d0]
call fcn.140003984
int3
test rdi, rdi
je 0x140001565
lea rbx, [r8 + rdi]
cmp rbx, 0xfffffffffffffffe
jbe 0x140001441
lea rcx, [0x14000e6d0]
call fcn.140003984
int3
cmp r9, rbx
jae 0x140001455
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140002e60
jmp 0x140001470
test rbx, rbx
jne 0x14000147d
mov qword [rsp + 0x60], r13
lea rax, [rsp + 0x50]
cmp r9, 0x10
cmovae rax, qword [rsp + 0x50]
mov byte [rax], bl
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x68]
test rbx, rbx
setne al
test al, al
je 0x140001565
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
cmp r9, 0x10
cmovae rdx, rcx
lea rax, [rsp + 0x50]
cmovae rax, rcx
add rdx, rsi
jmp 0x14000153a
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, rdi
ja 0x1400014c4
lea rcx, [0x14000e6d0]
call fcn.140003984
int3
test rdi, rdi
je 0x140001565
lea rbx, [r8 + rdi]
cmp rbx, 0xfffffffffffffffe
jbe 0x1400014e4
lea rcx, [0x14000e6d0]
call fcn.140003984
int3
cmp r9, rbx
jae 0x1400014f8
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140002e60
jmp 0x140001513
test rbx, rbx
jne 0x140001520
mov qword [rsp + 0x60], r13
lea rax, [rsp + 0x50]
cmp r9, 0x10
cmovae rax, qword [rsp + 0x50]
mov byte [rax], bl
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x68]
test rbx, rbx
setne al
test al, al
je 0x140001565
lea rax, [rsp + 0x50]
cmp r9, 0x10
cmovae rax, qword [rsp + 0x50]
lea rdx, [rbp - 0x30]
lea rcx, [r8 + rax]
mov r8, rdi
call fcn.140003c60
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
mov qword [rsp + 0x60], rbx
cmovae rax, qword [rsp + 0x50]
mov byte [rbx + rax], 0
mov r9, qword [rsp + 0x68]
lea rcx, [rsp + 0x50]
cmp r9, 0x10
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1400015b2
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rcx, qword [rsp + 0x50]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
cmp qword [rsp + 0x68], 0x10
jb 0x1400015c4
mov rcx, qword [rsp + 0x50]
call fcn.140003a6c
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x14000160f
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400016d8
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp - 0x30]
call fcn.140006a50
cmp qword [r12 + 0x18], 0x10
jb 0x14000166d
mov r12, qword [r12]
mov r8d, 0x103
mov rdx, r12
lea rcx, [rbp - 0x30]
call fcn.140004320
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x30]
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea eax, [rcx - 2]
test eax, eax
jle 0x1400016af
lea rdx, [rbp - 0x30]
mov ecx, eax
nop
movzx eax, byte [rdx]
not al
mov byte [rdx], al
inc rdx
dec rcx
jne 0x1400016a0
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, edi
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp - 0x70], 0x10
jb 0x1400016e9
mov rcx, qword [rsp + 0x78]
call fcn.140003a6c
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140003a90
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret