Function at 0x140002680
Capabilities:
Check if file exists
Copy file
Delete file
Extract resource via kernel32 functions
Get common file path
Move file
Read file via mapping
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
mov rdi, r8
mov rsi, rdx
mov r14d, ecx
mov r8, r9
mov edx, 0x104
lea rcx, [rbp - 0x40]
mov rbx, r9
call fcn.14000e368
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea r8, str..prev
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.14000e3d0
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rcx, [rbp - 0x40]
mov r15d, eax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test r15d, r15d
jne 0x14000270d
test eax, eax
je 0x140002755
jmp 0x140002711
test eax, eax
je 0x140002733
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000272e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400029d3
test r15d, r15d
je 0x140002755
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140002755
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1400029d3
test rdi, rdi
jne 0x140002791
test r14d, r14d
je 0x1400029cc
mov r8d, 0x104
lea rdx, [rbp + 0x1d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r8d, r8d
lea rcx, [rbp + 0x1d0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x1400029d5
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400029d3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rdi
mov rcx, rsi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r15d, eax
test r14d, r14d
je 0x1400029cc
xor r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x30], r13
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
test rax, rax
je 0x1400029d3
mov edx, 0x104
mov dword [rsp + 0x40], r13d
lea rcx, [rbp + 0x3e0]
mov edi, r13d
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1400029a0
lea r8, [0x140024bb8]
mov edx, 0x104
lea rcx, [rbp + 0x3e0]
call fcn.14000e3d0
lea rdx, [rbp + 0x3e0]
sub rdx, rbx
nop word [rax + rax]
movzx ecx, word [rbx]
movzx eax, word [rbx + rdx]
sub ecx, eax
jne 0x140002863
add rbx, 2
test eax, eax
jne 0x140002850
test ecx, ecx
jne 0x1400029a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
lea rdx, [rbp + 0x1d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x30], r13
lea rcx, [rbp + 0x1d0]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000295e
mov qword [rsp + 0x28], r13
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r13d
mov r8d, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x140002955
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov edx, 4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
je 0x14000294c
add rax, 0x4e
je 0x140002926
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm1
jmp 0x140002943
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call fcn.14000e920
mov dword [rax], 0x16
call fcn.14000e7cc
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov r8d, 0x4e
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov r8d, 0x20
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [rsp + 0x40]
sub r15d, edi
movsxd rdx, edi
add rdx, r12
mov qword [rsp + 0x20], r13
mov r8d, r15d
lea r9, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400029d3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400029d5
xor eax, eax
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.140005550
mov rbx, qword [rsp + 0x740]
add rsp, 0x700
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret