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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1150
call fcn.1401d7280
sub rsp, rax
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x1168], rbx
mov rax, qword [0x141719df0]
xor rax, rbp
mov qword [rbp + 0x1100], rax
mov dword [rbp + 0x10], r9d
mov r15d, r8d
mov r13, rdx
mov r14, rcx
or rdi, 0xffffffffffffffff
mov qword [rbp + 0x20], rdi
or rsi, rdi
mov qword [rbp + 0x18], rsi
xor ebx, ebx
lea rax, [rbp + 0xce0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xef0]
lea r8, [rbp + 0xad0]
lea rdx, [rbp + 0x8c0]
mov rcx, r13
call fcn.1401df2b0
lea rdx, [rbp + 0x8c0]
lea rcx, [rbp + 0x6b0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rbp + 0xad0]
lea rcx, [rbp + 0x6b0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, r13
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str..bak
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rbp + 0x290]
xor r8d, r8d
lea rdx, [0x14020e550]
lea rcx, [rbp + 0x6b0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1400086af
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rbp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x1400086af
cmp r15d, 0xffffffff
jne 0x1400084d7
mov r15d, dword [r14 + 0x4c]
movsxd rcx, r15d
lea rax, section..data
mov rax, qword [rax + rcx*8]
mov qword [rbp + 0x30], rax
or r12, 0xffffffffffffffff
inc r12
cmp byte [rax + r12], bl
jne 0x1400084ed
lea rcx, [r14 + 0x58]
call fcn.140007184
mov qword [rbp + 0x28], rax
call fcn.140002adc
mov dword [rbp + 8], eax
mov r15d, ebx
mov dword [rbp + 0xc], ebx
cmp r15d, dword [rbp + 0x28]
jge 0x14000860c
movsxd rdx, r15d
lea rcx, [r14 + 0x58]
call fcn.140006494
mov eax, dword [rax + 8]
mov dword [rbp + 4], eax
test eax, eax
jle 0x1400085ca
movsxd rdx, r15d
lea rcx, [r14 + 0x58]
call fcn.140006494
mov rdx, qword [rax]
test rdx, rdx
je 0x14000855f
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x14000854d
inc eax
cmp eax, 0x3fffffff
jle 0x140008564
mov rax, rbx
jmp 0x14000859d
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140008580
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401d7280
sub rsp, rcx
lea rcx, [rsp + 0x40]
mov r9d, dword [rbp + 8]
call fcn.1400068e8
mov qword [rsp + 0x20], rbx
lea r9, [rbp]
mov r8d, dword [rbp + 4]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400086af
mov eax, dword [rbp + 4]
cmp eax, dword [rbp]
jne 0x1400086af
mov rax, qword [rbp + 0x28]
dec eax
cmp r15d, eax
jge 0x140008600
mov qword [rsp + 0x20], rbx
lea r9, [rbp]
mov r8d, r12d
mov rdx, qword [rbp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400086af
cmp r12d, dword [rbp]
jne 0x1400086af
inc r15d
mov dword [rbp + 0xc], r15d
jmp 0x140008511
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rdi, 0xffffffffffffffff
mov qword [rbp + 0x20], rdi
mov rcx, r13
cmp dword [r14 + 0x50], ebx
je 0x14000866f
lea rdx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov qword [rbp + 0x18], rax
cmp rax, rdi
je 0x140008675
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x4a0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1400086af
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
or rsi, rdi
mov qword [rbp + 0x18], rsi
jmp 0x140008675
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, r13
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1400086af
cmp dword [rbp + 0x10], ebx
je 0x1400086aa
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0xa8]
mov eax, dword [r14 + 0xa8]
mov dword [r14 + 0xac], eax
mov ebx, 1
cmp rsi, 0xffffffffffffffff
je 0x1400086be
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp rdi, 0xffffffffffffffff
je 0x1400086cd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
mov rcx, qword [rbp + 0x1100]
xor rcx, rbp
call fcn.1401d72f0
mov rbx, qword [rbp + 0x1168]
lea rsp, [rbp + 0x1110]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret