Function at 0x140001790
Capabilities:
Extract resource via kernel32 functions

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 - 0x170]
sub rsp, 0x270
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rbp + 0x168], rax
mov rbx, rcx
xor r15d, r15d
mov dword [rsp + 0x24], r15d
mov edx, 0x65
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x140001810
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x20]
lea rcx, str.Failed_to_find_embedded_driver_resource._Error_code:_
call fcn.140007540
xor al, al
jmp 0x140001c33
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
jne 0x140001845
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x20]
lea rcx, str.Failed_to_load_embedded_driver_resource._Error_code:_
call fcn.140007540
xor al, al
jmp 0x140001c33
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x20], edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov rsi, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140001881
mov rsi, qword [rbx]
lea rax, [0x140000000]
lea rax, [rax + 0xe8c8]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x24], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], r12
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 qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea r13, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x38], r13
mov byte [rbp - 0x4c], 0
mov byte [rbp - 0x57], 0
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x48], r15
mov rax, qword [0x140014c68]
mov qword [rbp - 0x54], rax
mov qword [rbp - 0x60], r15
mov r8d, 0x22
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140006e40
test rax, rax
jne 0x14000195b
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x30], r12
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], r8d
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x1400019af
mov rdx, rbx
lea rcx, str.Failed_to_create_output_file_for_driver:_
call fcn.140007830
xor bl, bl
jmp 0x140001c26
mov r8, rdi
mov rdx, r14
lea rcx, [rsp + 0x30]
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 + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x140001a21
lea rdx, [rsp + 0x20]
lea rcx, str.Failed_to_write_data_to_output_file._Size:_
call fcn.140007540
lea rcx, [rsp + 0x38]
call fcn.140006ae0
test rax, rax
jne 0x140001a1a
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xor bl, bl
jmp 0x140001c26
lea rcx, [rsp + 0x38]
call fcn.140006ae0
test rax, rax
jne 0x140001a4f
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov rsi, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140001a6d
mov rsi, qword [rbx]
lea rax, [0x140000000]
lea rax, [rax + 0xe960]
mov qword [rbp + 0x40], rax
lea rcx, [rbp + 0xf0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x24], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x40], r14
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x3c], edx
lea rcx, [rbp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
mov qword [rbp + 0x50], r13
mov byte [rbp + 0xcc], 0
mov byte [rbp + 0xc1], 0
lea rcx, [rbp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0xd0], r15
mov rax, qword [0x140014c68]
mov qword [rbp + 0xc4], rax
mov qword [rbp + 0xb8], r15
mov r8d, 0x21
mov rdx, rsi
lea rcx, [rbp + 0x50]
call fcn.140006e40
test rax, rax
jne 0x140001b47
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x40]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x40], r14
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x3c], edx
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x40]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x140001b95
mov rdx, rbx
lea rcx, str.Failed_to_open_the_created_file_for_verification:_
call fcn.140007830
xor bl, bl
jmp 0x140001c1c
xor edx, edx
mov r8d, 2
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
lea rcx, [rbp + 0x50]
call fcn.140006ae0
test rax, rax
jne 0x140001be3
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x40]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rdx, qword [rbp + 0x158]
add rdx, qword [rbp + 0x150]
cmp rdx, rdi
je 0x140001c0b
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0x150]
call fcn.140007b20
xor bl, bl
jmp 0x140001c1c
mov rdx, rbx
lea rcx, str.Driver_file_extracted_successfully_to:_
call fcn.140007830
mov bl, 1
lea rcx, [rbp + 0x40]
call fcn.140001d30
nop
lea rcx, [rsp + 0x30]
call fcn.140001c70
movzx eax, bl
mov rcx, qword [rbp + 0x168]
xor rcx, rsp
call fcn.14000b470
lea r11, [rsp + 0x270]
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