Function at 0x140068aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x180
mov rbp, r8
mov rbx, rdx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x140068ae8
lea rdx, str.Failed_to_get_module_handle
call fcn.1400798a0
mov rcx, rax
call fcn.140079b80
xor al, al
jmp 0x140068cb4
cmp qword [rbx + 0x18], 0xf
jbe 0x140068af2
mov rbx, qword [rbx]
mov r8, rbx
mov edx, 0x66
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x140068b26
lea rdx, str.Failed_to_find_resource
call fcn.1400798a0
mov rcx, rax
call fcn.140079b80
xor al, al
jmp 0x140068cb4
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140068b52
lea rdx, str.Failed_to_load_resource
call fcn.1400798a0
mov rcx, rax
call fcn.140079b80
xor al, al
jmp 0x140068cb4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
jne 0x140068b7e
lea rdx, str.Failed_to_lock_resource
call fcn.1400798a0
mov rcx, rax
call fcn.140079b80
xor al, al
jmp 0x140068cb4
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
jne 0x140068bab
lea rdx, str.Resource_size_is_zero
call fcn.1400798a0
mov rcx, rax
call fcn.140079b80
xor al, al
jmp 0x140068cb4
mov r8d, 0x20
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.1400766c0
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x40], 6
je 0x140068be7
lea rdx, str.Failed_to_open_output_file
call fcn.1400798a0
mov rcx, rax
call fcn.140079b80
xor bl, bl
jmp 0x140068c3b
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140076890
lea rcx, [rsp + 0x38]
call fcn.140078750
test rax, rax
jne 0x140068c39
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rsp + rcx + 0x78], 0
cmovne eax, edx
or eax, dword [rsp + rcx + 0x40]
and eax, 0x17
mov dword [rsp + rcx + 0x40], eax
mov edx, dword [rsp + rcx + 0x44]
and edx, eax
jne 0x140068ccd
mov bl, 1
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x38]
call fcn.1400777a0
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rcx, qword [rsp + 0x30]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rsp + rdx + 0x2c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xd8], rax
lea rcx, [rsp + 0xd8]
call fcn.14007e1e0
nop
movzx eax, bl
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
test dl, 4
je 0x140068cdb
lea rbx, str.ios_base::badbit_set
jmp 0x140068cf0
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x140]
call fcn.14004bd00
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x150]
call fcn.14004c7d0
lea rdx, [0x1400ce5f8]
lea rcx, [rsp + 0x150]
call fcn.14007fdc0
int3