Function at 0x1400026e0
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.140010e20
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea r8, str..prev
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.140010e88
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 0x14000276d
test eax, eax
je 0x1400027b5
jmp 0x140002771
test eax, eax
je 0x140002793
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000278e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140002a33
test r15d, r15d
je 0x1400027b5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400027b5
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140002a33
test rdi, rdi
jne 0x1400027f1
test r14d, r14d
je 0x140002a2c
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 0x140002a35
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140002a33
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 0x140002a2c
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 0x140002a33
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 0x140002a00
lea r8, [0x140027bb8]
mov edx, 0x104
lea rcx, [rbp + 0x3e0]
call fcn.140010e88
lea rdx, [rbp + 0x3e0]
sub rdx, rbx
nop word [rax + rax]
movzx ecx, word [rbx]
movzx eax, word [rbx + rdx]
sub ecx, eax
jne 0x1400028c3
add rbx, 2
test eax, eax
jne 0x1400028b0
test ecx, ecx
jne 0x140002a00
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 0x1400029be
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 0x1400029b5
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 0x1400029ac
add rax, 0x4e
je 0x140002986
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm1
jmp 0x1400029a3
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call fcn.1400113d8
mov dword [rax], 0x16
call fcn.140011284
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 0x140002a33
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140002a35
xor eax, eax
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.140005530
mov rbx, qword [rsp + 0x740]
add rsp, 0x700
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret