Function at 0x140001930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x160
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
lea r8, [0x140006a00]
mov edx, 0x65
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x1400019b5
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 0xf
mov byte [rbx], cl
lea r8d, [rax + 0x1a]
lea rdx, str.Error:_Resource_not_found.
mov rcx, rbx
call fcn.140003670
jmp 0x140001b92
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400019f1
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 0xf
mov byte [rbx], cl
lea r8d, [rax + 0x1f]
lea rdx, str.Error:_Failed_to_load_resource.
mov rcx, rbx
call fcn.140003670
jmp 0x140001b92
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
jne 0x140001a2d
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 0xf
mov byte [rbx], cl
lea r8d, [rax + 0x31]
lea rdx, str.Error:_Failed_to_obtain_pointer_to_resource_data.
mov rcx, rbx
call fcn.140003670
jmp 0x140001b92
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
jne 0x140001a6a
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 0xf
mov byte [rbx], cl
lea r8d, [rax + 0x1a]
lea rdx, str.Error:_Resource_size_is_0.
mov rcx, rbx
call fcn.140003670
jmp 0x140001b92
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 0x10
jb 0x140001a86
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140003300
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x50], 6
je 0x140001add
mov r8d, 0x27
lea rdx, str.Error:_Failed_to_open_file_for_writing.
jmp 0x140001b6c
mov r8, rsi
mov rdx, r14
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x50], 6
lea rcx, [rsp + 0x48]
je 0x140001b3a
call fcn.140003250
test rax, rax
jne 0x140001b2b
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov r8d, 0x24
lea rdx, str.Error:_Failed_to_write_data_to_file.
jmp 0x140001b6c
call fcn.140003250
test rax, rax
jne 0x140001b62
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xor r8d, r8d
lea rdx, [0x1400065e8]
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 0xf
mov byte [rbx], cl
mov rcx, rbx
call fcn.140003670
nop
lea rcx, [rsp + 0x40]
call fcn.140001bc0
mov rax, rbx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140004460
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret