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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x978
mov rax, qword [0x1405291a0]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov qword [rsp + 0x278], 0xffffffffffffffff
mov qword [rsp + 0x280], 0xffffffffffffffff
mov dword [rsp + 0x270], 0
lea rax, [rsp + 0x4c0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3b0]
lea r8, [rsp + 0x6f0]
lea rdx, [rsp + 0x5d0]
mov rcx, qword [rsp + 0x988]
call fcn.1400715f0
lea rdx, [rsp + 0x5d0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rsp + 0x6f0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rdx, qword [rsp + 0x988]
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str..bak
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea r9, [rsp + 0x160]
xor r8d, r8d
lea rdx, [0x1400938a0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x1400078c9
jmp 0x140007bc0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x278], rax
cmp qword [rsp + 0x278], 0xffffffffffffffff
jne 0x140007913
jmp 0x140007bc0
cmp dword [rsp + 0x990], 0xffffffff
jne 0x14000792f
mov rax, qword [rsp + 0x980]
mov eax, dword [rax + 0x4c]
mov dword [rsp + 0x990], eax
movsxd rcx, dword [rsp + 0x990]
lea rax, [0x1400c01c8]
mov rax, qword [rax + rcx*8]
mov qword [rsp + 0x808], rax
mov rcx, qword [rsp + 0x808]
call fcn.140070230
mov dword [rsp + 0x6e4], eax
mov rcx, qword [rsp + 0x980]
add rcx, 0x58
call fcn.14000a740
mov dword [rsp + 0x3a4], eax
call fcn.140003290
mov dword [rsp + 0x6e0], eax
mov dword [rsp + 0x810], 0
jmp 0x1400079a0
mov eax, dword [rsp + 0x810]
add eax, 1
mov dword [rsp + 0x810], eax
mov eax, dword [rsp + 0x3a4]
cmp dword [rsp + 0x810], eax
jge 0x140007aaf
movsxd rdx, dword [rsp + 0x810]
mov rcx, qword [rsp + 0x980]
add rcx, 0x58
call fcn.14000a220
mov eax, dword [rax + 8]
mov dword [rsp + 0x818], eax
cmp dword [rsp + 0x818], 0
jle 0x140007a4a
movsxd rdx, dword [rsp + 0x810]
mov rcx, qword [rsp + 0x980]
add rcx, 0x58
call fcn.14000a220
mov rcx, qword [rax]
call fcn.140014050
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x814]
mov r8d, dword [rsp + 0x818]
mov rdx, rax
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140007a35
jmp 0x140007bc0
mov eax, dword [rsp + 0x814]
cmp dword [rsp + 0x818], eax
je 0x140007a4a
jmp 0x140007bc0
mov eax, dword [rsp + 0x3a4]
sub eax, 1
cmp dword [rsp + 0x810], eax
jge 0x140007aaa
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x814]
mov r8d, dword [rsp + 0x6e4]
mov rdx, qword [rsp + 0x808]
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140007a95
jmp 0x140007bc0
mov eax, dword [rsp + 0x814]
cmp dword [rsp + 0x6e4], eax
je 0x140007aaa
jmp 0x140007bc0
jmp 0x14000798f
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x278], 0xffffffffffffffff
mov rax, qword [rsp + 0x980]
cmp dword [rax + 0x50], 0
je 0x140007b49
lea rdx, [rsp + 0x820]
mov rcx, qword [rsp + 0x988]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x280], rax
cmp qword [rsp + 0x280], 0xffffffffffffffff
je 0x140007b47
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x988]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x140007b2d
jmp 0x140007bc0
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x280], 0xffffffffffffffff
jmp 0x140007b57
mov rcx, qword [rsp + 0x988]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rsp + 0x988]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x140007b73
jmp 0x140007bc0
cmp dword [rsp + 0x998], 0
je 0x140007bb5
mov rax, qword [rsp + 0x980]
mov rax, qword [rax]
xor edx, edx
mov rcx, qword [rsp + 0x980]
call qword [rax + 0xa8]
mov r11, qword [rsp + 0x980]
mov rax, qword [rsp + 0x980]
mov eax, dword [rax + 0xa8]
mov dword [r11 + 0xac], eax
mov dword [rsp + 0x270], 1
cmp qword [rsp + 0x280], 0xffffffffffffffff
je 0x140007bd9
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp qword [rsp + 0x278], 0xffffffffffffffff
je 0x140007bf2
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [rsp + 0x270]
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.140070830
add rsp, 0x978
ret