Function at 0x140005e34
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x940
mov rax, qword [0x1405e0190]
xor rax, rsp
mov qword [rsp + 0x930], rax
mov dword [rsp + 0x48], r9d
mov r14d, r8d
mov r15, rdx
mov r13, rcx
or rbx, 0xffffffffffffffff
mov rsi, rbx
mov qword [rsp + 0x50], rbx
mov r12, rbx
mov qword [rsp + 0x60], rbx
xor edi, edi
lea rax, [r11 - 0x158]
mov qword [rsp + 0x20], rax
lea r9, [r11 - 0x268]
lea r8, [r11 - 0x378]
lea rdx, [r11 - 0x488]
mov rcx, r15
call fcn.140060970
lea rdx, [rsp + 0x4f0]
lea rcx, [rsp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rsp + 0x600]
lea rcx, [rsp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rdx, r15
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str..bak
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea r9, [rsp + 0x1c0]
xor r8d, r8d
lea rdx, [0x1400818d0]
lea rcx, [rsp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp eax, edi
je 0x140006107
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
mov qword [rsp + 0x50], rax
cmp rax, rbx
je 0x140006107
cmp r14d, ebx
jne 0x140005f6a
mov r14d, dword [r13 + 0x4c]
movsxd rcx, r14d
lea rax, [0x1400ae1c8]
mov rax, qword [rax + rcx*8]
mov qword [rsp + 0x78], rax
mov rcx, rax
call fcn.14005eea0
mov qword [rsp + 0x68], rax
lea rcx, [r13 + 0x58]
call fcn.1400598dc
mov qword [rsp + 0x70], rax
mov r14d, edi
mov dword [rsp + 0x58], edi
cmp r14d, eax
jge 0x140006056
movsxd rdx, r14d
lea rcx, [r13 + 0x58]
call fcn.1400051e4
mov eax, dword [rax + 8]
mov dword [rsp + 0x44], eax
cmp eax, edi
jle 0x140006004
movsxd rdx, r14d
lea rcx, [r13 + 0x58]
call fcn.1400051e4
mov rcx, qword [rax]
call fcn.14001ca08
mov rdx, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, edi
je 0x140006107
mov eax, dword [rsp + 0x44]
cmp eax, dword [rsp + 0x40]
jne 0x140006107
mov rax, qword [rsp + 0x70]
dec eax
cmp r14d, eax
jge 0x140006044
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x78]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, edi
je 0x140006107
mov rax, qword [rsp + 0x68]
cmp eax, dword [rsp + 0x40]
jne 0x140006107
inc r14d
mov dword [rsp + 0x58], r14d
mov rax, qword [rsp + 0x70]
jmp 0x140005f9f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, rbx
mov qword [rsp + 0x50], rbx
cmp dword [r13 + 0x50], edi
je 0x1400060c1
lea rdx, [rsp + 0x80]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r12, rax
mov qword [rsp + 0x60], rax
cmp rax, rbx
je 0x1400060ca
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x2d0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileA]
cmp eax, edi
je 0x140006107
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r12, rbx
mov qword [rsp + 0x60], rbx
jmp 0x1400060ca
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, r15
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
cmp eax, edi
je 0x140006107
cmp dword [rsp + 0x48], edi
je 0x140006102
mov rax, qword [r13]
xor edx, edx
mov rcx, r13
call qword [rax + 0xa8]
mov r11d, dword [r13 + 0xa8]
mov dword [r13 + 0xac], r11d
mov edi, 1
cmp r12, rbx
je 0x140006115
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp rsi, rbx
je 0x140006123
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
mov rcx, qword [rsp + 0x930]
xor rcx, rsp
call fcn.140060110
add rsp, 0x940
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret