Function at 0x401e11
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x348
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x220], xmm6
movaps xmmword [rbp + 0x230], xmm7
movaps xmmword [rbp + 0x240], xmm8
movaps xmmword [rbp + 0x250], xmm9
movaps xmmword [rbp + 0x260], xmm10
movaps xmmword [rbp + 0x270], xmm11
movaps xmmword [rbp + 0x280], xmm12
movaps xmmword [rbp + 0x290], xmm13
movaps xmmword [rbp + 0x2a0], xmm14
movaps xmmword [rbp + 0x2b0], xmm15
mov qword [rbp + 0x310], rcx
lea rax, [sym.__gxx_personality_sj0]
mov qword [rbp - 0x20], rax
lea rax, [0x004f91c4]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x10]
lea rbx, [rbp + 0x220]
mov qword [rax], rbx
lea rdx, [0x004020cd]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rsp
lea rax, [rbp - 0x50]
mov rcx, rax
call dbg._Unwind_SjLj_Register
mov r8d, 0xa
mov edx, 0x65
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [rbp - 0x48], 0xffffffff
call rax
mov qword [rbp + 0x218], rax
cmp qword [rbp + 0x218], 0
jne 0x401f33
mov ecx, 0x10
call sym.__cxa_allocate_exception
mov dword [rbp - 0x48], 1
lea rdx, str.Failed_to_find_resource.
mov qword [rbp + 0x18], rax
mov rcx, rax
call method.std::runtime_error.runtime_error_char_const_
mov dword [rbp - 0x48], 0xffffffff
mov r8, qword [method.std::runtime_error.runtime_error__]
lea rdx, [0x004e68d0]
mov rcx, qword [rbp + 0x18]
call sym.__cxa_throw
mov rax, qword [rbp + 0x218]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [rbp - 0x48], 0xffffffff
call rax
mov qword [rbp + 0x210], rax
cmp qword [rbp + 0x210], 0
jne 0x401fa5
mov ecx, 0x10
call sym.__cxa_allocate_exception
mov dword [rbp - 0x48], 2
lea rdx, str.Failed_to_load_resource.
mov qword [rbp - 0x58], rax
mov rcx, rax
call method.std::runtime_error.runtime_error_char_const_
mov dword [rbp - 0x48], 0xffffffff
mov r8, qword [method.std::runtime_error.runtime_error__]
lea rdx, [0x004e68d0]
mov rcx, qword [rbp - 0x58]
call sym.__cxa_throw
mov rax, qword [rbp + 0x210]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LockResource]
mov dword [rbp - 0x48], 0xffffffff
call rax
mov qword [rbp + 0x208], rax
mov rax, qword [rbp + 0x218]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SizeofResource]
call rax
mov dword [rbp + 0x204], eax
lea rax, [rbp + 0x20]
mov r8d, 4
mov rdx, qword [rbp + 0x310]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.basic_ofstream_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::_Ios_Openmode_
lea rax, [rbp + 0x20]
add rax, 0xd0
mov dword [rbp - 0x48], 3
mov rcx, rax
call method.std::basic_ios_char__std::char_traits_char___.operator____const
test al, al
je 0x40205c
mov ecx, 0x10
call sym.__cxa_allocate_exception
mov dword [rbp - 0x48], 4
lea rdx, str.Failed_to_create_output_file.
mov qword [rbp - 0x60], rax
mov rcx, rax
call method.std::runtime_error.runtime_error_char_const_
mov dword [rbp - 0x48], 3
mov r8, qword [method.std::runtime_error.runtime_error__]
lea rdx, [0x004e68d0]
mov rcx, qword [rbp - 0x60]
call sym.__cxa_throw
mov ecx, dword [rbp + 0x204]
mov rdx, qword [rbp + 0x208]
lea rax, [rbp + 0x20]
mov dword [rbp - 0x48], 3
mov r8, rcx
mov rcx, rax
call method.std::ostream.write_char_const__long_long_
lea rax, [rbp + 0x20]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.close__
lea rdx, str.Extracted_document_to
mov rcx, qword [0x004e4150]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [rbp + 0x310]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
lea rax, [rbp + 0x20]
mov rcx, rax
call fcn.004a71e0
jmp 0x402173
lea rax, [rbp - 0x50]
mov rcx, rax
call sym._Unwind_SjLj_Unregister
nop
movaps xmm6, xmmword [rbp + 0x220]
movaps xmm7, xmmword [rbp + 0x230]
movaps xmm8, xmmword [rbp + 0x240]
movaps xmm9, xmmword [rbp + 0x250]
movaps xmm10, xmmword [rbp + 0x260]
movaps xmm11, xmmword [rbp + 0x270]
movaps xmm12, xmmword [rbp + 0x280]
movaps xmm13, xmmword [rbp + 0x290]
movaps xmm14, xmmword [rbp + 0x2a0]
movaps xmm15, xmmword [rbp + 0x2b0]
add rsp, 0x348
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret