Function at 0x14000c4e0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140022040]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov rbx, rdx
mov qword [rbp + 0x18], rdx
mov edx, 0x65
xor ecx, ecx
lea r8d, [rdx - 0x5b]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14000c772
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000c7f6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test r14, r14
je 0x14000c6ee
test eax, eax
je 0x14000c6ee
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14000c57d
mov rcx, qword [rbx]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000c87a
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x20]
mov r8d, edi
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000c661
cmp dword [rbp + 0x20], edi
jne 0x14000c661
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x14000c621
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000c61c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000c65a
mov rcx, r8
call fcn.140014ee0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140014ec0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x40]
call fcn.14000c140
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 8]
call fcn.140001260
mov rbx, rax
mov edx, 0x65
lea rcx, [rbp - 0x28]
call fcn.14000c080
nop
mov r8, rax
lea rdx, str.Failed_to_write_to_temporary_file._Resource:
lea rcx, [rbp - 0x48]
call fcn.14000a830
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.14000d4d0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000d530
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000c1f0
lea rdx, [0x14001f398]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x40]
call fcn.14000c140
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 8]
call fcn.140001260
mov rbx, rax
mov edx, 0x65
lea rcx, [rbp - 0x28]
call fcn.14000c080
nop
mov r8, rax
lea rdx, str.Failed_to_find_resource
lea rcx, [rbp - 0x48]
call fcn.14000a830
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.14000d4d0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000d530
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000c1f0
lea rdx, [0x14001f398]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x40]
call fcn.14000c140
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.140001260
mov rbx, rax
mov edx, 0x65
lea rcx, [rbp - 0x68]
call fcn.14000c080
nop
mov r8, rax
lea rdx, str.Failed_to_find_resource
lea rcx, [rbp - 0x48]
call fcn.14000a830
nop
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.14000d4d0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.14000d530
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000c1f0
lea rdx, [0x14001f398]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x40]
call fcn.14000c140
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 8]
call fcn.140001260
mov rbx, rax
mov edx, 0x65
lea rcx, [rbp - 0x28]
call fcn.14000c080
nop
mov r8, rax
lea rdx, str.Failed_to_find_resource
lea rcx, [rbp - 0x48]
call fcn.14000a830
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.14000d4d0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000d530
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000c1f0
lea rdx, [0x14001f398]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x40]
call fcn.14000c140
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 8]
call fcn.140001260
mov rbx, rax
mov edx, 0x65
lea rcx, [rbp - 0x28]
call fcn.14000c080
nop
mov r8, rax
lea rdx, str.Failed_to_create_temporary_file._Resource:
lea rcx, [rbp - 0x48]
call fcn.14000a830
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.14000d4d0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000d530
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000c1f0
lea rdx, [0x14001f398]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3