Function at 0x1400e2b70
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get common file path
Get file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1403285e8]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rcx
lea rcx, str.CRicochetDriver::Load
call qword [sym.imp.VMProtectSDK64.dll_VMProtectBeginMutation]
cmp byte [rbx + 0x44], 0
je 0x1400e2bc8
mov eax, 1
jmp 0x1400e2feb
lea rcx, [rsp + 0x40]
call fcn.1400e3020
mov rcx, rax
call fcn.1400bd7c0
mov rcx, rax
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x1400e2c32
cmp rax, 0xffffffffffffffff
je 0x1400e2c32
lea rcx, [rsp + 0x40]
call fcn.1400e3040
mov rcx, rax
call fcn.1400bdb20
mov rcx, rax
call fcn.1400efc30
xor eax, eax
jmp 0x1400e2feb
lea rcx, [rsp + 0x40]
call fcn.1400e3060
mov rcx, rax
call fcn.1400bd760
mov rdx, rax
mov rcx, rbx
call fcn.1400e4790
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call fcn.14023c420
lea rdx, [rbp - 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1400e2ca0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10d, eax
lea rcx, [rsp + 0x40]
call fcn.1400e3080
mov rcx, rax
call fcn.1400bdb20
mov edx, r10d
mov rcx, rax
call fcn.1400efc30
xor eax, eax
jmp 0x1400e2feb
lea rdx, [rbp - 0x80]
lea rcx, [rbx + 0x20]
call fcn.1400e4790
mov rdx, rbx
lea rcx, [rbx + 0x20]
call fcn.1400e4780
lea rcx, [rsp + 0x40]
call fcn.1400e30a0
mov rcx, rax
call fcn.1400bd760
mov rdx, rax
lea rcx, [rbx + 0x20]
call fcn.1400e4770
lea rcx, [rbx + 0x20]
call fcn.1400c84e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e2d12
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400e4a40
nop
lea rcx, [rsp + 0x40]
call fcn.1400e28e0
nop
lea rcx, [rsp + 0x40]
call fcn.1400e24a0
mov edi, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov edx, 0x81
lea r8d, [rdx - 0x77]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
jne 0x1400e2d5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10d, eax
lea rcx, [rsp + 0x40]
call fcn.1400e30c0
mov rcx, rax
call fcn.1400bdb20
mov edx, r10d
mov rcx, rax
call fcn.1400efc30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
jne 0x1400e2d9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10d, eax
lea rcx, [rsp + 0x40]
call fcn.1400e30e0
mov rcx, rax
call fcn.1400bdb20
mov edx, r10d
mov rcx, rax
call fcn.1400efc30
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
jne 0x1400e2dd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10d, eax
lea rcx, [rsp + 0x40]
call fcn.1400e3100
mov rcx, rax
call fcn.1400bdb20
mov edx, r10d
mov rcx, rax
call fcn.1400efc30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r15d, eax
test eax, eax
jne 0x1400e2e17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10d, eax
lea rcx, [rsp + 0x40]
call fcn.1400e3120
mov rcx, rax
call fcn.1400bdb20
mov edx, r10d
mov rcx, rax
call fcn.1400efc30
movsxd rax, dword [r12 + 0x3c]
mov eax, dword [rax + r12 + 8]
mov dword [rbx + 0x40], eax
lea rcx, [rbx + 0x20]
call fcn.1400c84e0
mov rcx, rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x82
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x10000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
lea rcx, [rax + 1]
test rcx, 0xfffffffffffffffe
jne 0x1400e2e8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10d, eax
lea rcx, [rsp + 0x40]
call fcn.1400e3140
mov rcx, rax
call fcn.1400bdb20
mov edx, r10d
mov rcx, rax
call fcn.1400efc30
xor eax, eax
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
mov r8d, r15d
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400e2ebe
cmp dword [rsp + 0x70], r15d
jb 0x1400e2ebe
mov edi, 1
jmp 0x1400e2ee4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10d, eax
lea rcx, [rsp + 0x40]
call fcn.1400e3160
mov rcx, rax
call fcn.1400bdb20
mov edx, r10d
mov rcx, rax
call fcn.1400efc30
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x1400e2efb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x1400e2c2b
xor edi, edi
mov dword [rsp + 0x74], edi
lea r8, [rsp + 0x74]
mov rdx, rbx
lea rcx, [rbx + 0x20]
call fcn.1400e5980
test al, al
jne 0x1400e2f6b
mov r10d, dword [rsp + 0x74]
lea rcx, [rsp + 0x40]
call fcn.1400e3180
mov rcx, rax
call fcn.1400bdb20
mov edx, r10d
mov rcx, rax
call fcn.1400efc30
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400e4a40
nop
lea rcx, [rsp + 0x40]
call fcn.1400e28e0
nop
lea rcx, [rsp + 0x40]
call fcn.1400e24a0
xor eax, eax
jmp 0x1400e2feb
lea rcx, [rsp + 0x40]
call fcn.1400e3020
mov rcx, rax
call fcn.1400bd7c0
mov rcx, rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x48], rax
dec rax
cmp rax, 0xfffffffffffffffd
setbe al
mov byte [rbx + 0x44], al
test al, al
jne 0x1400e2fe1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10d, eax
lea rcx, [rsp + 0x40]
call fcn.1400e31a0
mov rcx, rax
call fcn.1400bdb20
mov edx, r10d
mov rcx, rax
call fcn.1400efc30
call qword [sym.imp.VMProtectSDK64.dll_VMProtectEnd]
movzx eax, byte [rbx + 0x44]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140239380
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret