Function at 0x14000c220
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, 0x948
mov rax, qword [0x1407fb600]
xor rax, rsp
mov qword [rsp + 0x930], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
mov qword [rsp + 0x50], 0xffffffffffffffff
mov dword [rsp + 0x68], 0
lea rax, [rsp + 0x710]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x820]
lea r8, [rsp + 0x600]
lea rdx, [rsp + 0x4f0]
mov rcx, qword [rsp + 0x958]
call fcn.1401f08dc
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, qword [rsp + 0x958]
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, [0x14021d598]
lea rcx, [rsp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x14000c319
jmp 0x14000c5aa
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 + 0x1c0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x14000c35d
jmp 0x14000c5aa
cmp dword [rsp + 0x960], 0xffffffff
jne 0x14000c379
mov rax, qword [rsp + 0x950]
mov eax, dword [rax + 0x4c]
mov dword [rsp + 0x960], eax
movsxd rax, dword [rsp + 0x960]
lea rcx, section..data
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.1401ecd90
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x950]
add rax, 0x58
mov rcx, rax
call fcn.14000a220
mov dword [rsp + 0x60], eax
call fcn.1401ce2a0
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x40], 0
jmp 0x14000c3d4
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x40], eax
jge 0x14000c4af
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x950]
add rcx, 0x58
mov rdx, rax
call fcn.140008cf0
mov eax, dword [rax + 8]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jle 0x14000c463
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x950]
add rcx, 0x58
mov rdx, rax
call fcn.140008cf0
mov rcx, qword [rax]
call fcn.14000d890
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x5c]
mov r8d, dword [rsp + 0x58]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000c454
jmp 0x14000c5aa
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x58], eax
je 0x14000c463
jmp 0x14000c5aa
mov eax, dword [rsp + 0x60]
dec eax
cmp dword [rsp + 0x40], eax
jge 0x14000c4aa
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x5c]
mov r8d, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000c49b
jmp 0x14000c5aa
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x64], eax
je 0x14000c4aa
jmp 0x14000c5aa
jmp 0x14000c3ca
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0xffffffffffffffff
mov rax, qword [rsp + 0x950]
cmp dword [rax + 0x50], 0
je 0x14000c537
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x958]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x14000c535
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x2d0]
mov rcx, qword [rsp + 0x958]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x14000c521
jmp 0x14000c5aa
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x50], 0xffffffffffffffff
jmp 0x14000c545
mov rcx, qword [rsp + 0x958]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rsp + 0x958]
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x14000c561
jmp 0x14000c5aa
cmp dword [rsp + 0x968], 0
je 0x14000c5a2
mov rax, qword [rsp + 0x950]
mov rax, qword [rax]
xor edx, edx
mov rcx, qword [rsp + 0x950]
call qword [rax + 0xa8]
mov rax, qword [rsp + 0x950]
mov rcx, qword [rsp + 0x950]
mov ecx, dword [rcx + 0xa8]
mov dword [rax + 0xac], ecx
mov dword [rsp + 0x68], 1
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x14000c5bd
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x14000c5d0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x930]
xor rcx, rsp
call fcn.1401e8670
add rsp, 0x948
ret