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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x940
mov rax, qword [0x1402827b0]
xor rax, rsp
mov qword [rsp + 0x930], rax
mov r15, rdx
mov qword [rsp + 0x60], rdx
mov rsi, rcx
mov qword [rsp + 0x78], rcx
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
mov r14, rdi
mov qword [rsp + 0x48], rdi
xor r12d, r12d
lea rax, [rsp + 0x710]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x820]
lea r8, [rsp + 0x600]
lea rdx, [rsp + 0x4f0]
mov rcx, r15
call fcn.1401c53e0
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, [0x1402478ec]
lea rcx, [rsp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x140007497
mov qword [rsp + 0x30], r12
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 rdi, rax
mov qword [rsp + 0x50], rax
cmp rax, r14
je 0x140007497
movsxd rcx, dword [rsi + 0x4c]
lea rax, [0x140247980]
mov rax, qword [rax + rcx*8]
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.1401c1570
mov qword [rsp + 0x68], rax
lea rcx, [rsi + 0x58]
mov qword [rsp + 0x58], rcx
call fcn.140008ae0
mov r13, rax
mov ebx, r12d
mov dword [rsp + 0x44], ebx
cmp ebx, r13d
jge 0x1400073e3
movsxd r15, ebx
mov rdx, r15
call fcn.140008d80
mov esi, dword [rax + 8]
test esi, esi
jle 0x14000739d
mov rdx, r15
mov rcx, qword [rsp + 0x58]
call fcn.140008d80
mov rcx, qword [rax]
call fcn.140006800
mov rdx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140007497
cmp esi, dword [rsp + 0x40]
jne 0x140007497
lea eax, [r13 - 1]
cmp ebx, eax
jge 0x1400073d7
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov rsi, qword [rsp + 0x68]
mov r8d, esi
mov rdx, qword [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140007497
cmp esi, dword [rsp + 0x40]
jne 0x140007497
inc ebx
mov rcx, qword [rsp + 0x58]
jmp 0x14000733e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
mov rsi, qword [rsp + 0x78]
mov r15, qword [rsp + 0x60]
mov rcx, r15
cmp dword [rsi + 0x50], 0
je 0x14000745c
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r14, rax
mov qword [rsp + 0x48], rax
cmp rax, rdi
je 0x140007462
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]
test eax, eax
je 0x140007497
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r14, rdi
mov qword [rsp + 0x48], rdi
jmp 0x140007462
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, r15
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x140007497
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax + 0xa8]
mov eax, dword [rsi + 0xa8]
mov dword [rsi + 0xac], eax
mov r12d, 1
cmp r14, 0xffffffffffffffff
je 0x1400074a6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp rdi, 0xffffffffffffffff
je 0x1400074b5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, r12d
mov rcx, qword [rsp + 0x930]
xor rcx, rsp
call fcn.1401bad70
lea r11, [rsp + 0x940]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret