Function at 0x140004010
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f]
mov eax, 0xb0
call fcn.14000ecd0
sub rsp, rax
mov r12, r9
mov r15, r8
mov rbx, rdx
mov rdi, rcx
lea ecx, [rax + 0x70]
call fcn.14000d530
mov r14, rax
mov qword [rbp + 0x67], rax
movaps xmm0, xmmword [rbx]
movdqa xmmword [rbp - 0x21], xmm0
lea rdx, [rbp - 0x21]
mov rcx, rax
call qword [sym.imp.mergedlo.dll___0Gallery__QEAA_V__basic_string_view__SU__char_traits__S_std___std___Z]
lea rax, vtable.Gallery.0
mov qword [r14], rax
mov qword [rbp - 0x21], r14
movaps xmm1, xmmword [rbx]
xor r13d, r13d
mov qword [rbp + 0x67], r13
lea r9d, [r13 + 0x4c]
mov dword [rsp + 0x20], 0x566
movdqa xmm0, xmm1
psrldq xmm0, 8
movd r8d, xmm0
movq rdx, xmm1
lea rcx, [rbp + 0x67]
call qword [sym.imp.sal3.dll_rtl_uString2String]
mov rax, qword [rbp + 0x67]
test rax, rax
je 0x140004424
lea rbx, [rax + 8]
lea ecx, [r13 + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Work_on_gallery__s_n
mov rcx, rax
call fcn.140001080
nop
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.sal3.dll_rtl_string_release]
mov rcx, r14
call qword [sym.imp.mergedlo.dll_public:_unsigned_long_long_unsigned___int64____cdecl_Gallery::GetThemeCount_void_const___ptr64]
mov rbx, rax
lea ecx, [r13 + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Existing_themes:__Iu_n
mov rcx, rax
call fcn.140001080
mov rax, qword [rdi]
lea rdx, [rax + 8]
mov ecx, dword [rax + 4]
mov qword [rbp - 0x51], rdx
mov qword [rbp - 0x49], rcx
movaps xmm0, xmmword [rbp - 0x51]
movdqa xmmword [rbp - 0x51], xmm0
lea rdx, [rbp - 0x51]
mov rcx, r14
call qword [sym.imp.mergedlo.dll__HasTheme_Gallery__QEAA_NV__basic_string_view__SU__char_traits__S_std___std___Z]
test al, al
jne 0x14000416b
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.mergedlo.dll_public:_bool___cdecl_Gallery::CreateTheme_class_rtl::OUString_const____ptr64____ptr64]
test al, al
jne 0x14000416b
lea ecx, [r13 + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Failed_to_create_theme_n
call fcn.140001080
lea ecx, [r13 + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, r14
call qword [sym.imp.mergedlo.dll_public:_unsigned_long_long_unsigned___int64____cdecl_Gallery::GetThemeCount_void_const___ptr64]
mov rbx, rax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Existing_themes:__Iu_n
mov rcx, rax
call fcn.140001080
lea rcx, [rbp + 7]
call qword [sym.imp.mergedlo.dll_public:_void___cdecl_SfxListener::constructor_void____ptr64]
nop
mov rax, qword [rdi]
lea rdx, [rax + 8]
mov ecx, dword [rax + 4]
mov qword [rbp - 0x51], rdx
mov qword [rbp - 0x49], rcx
movaps xmm0, xmmword [rbp - 0x51]
movdqa xmmword [rbp - 0x51], xmm0
lea r8, [rbp + 7]
lea rdx, [rbp - 0x51]
mov rcx, r14
call qword [sym.imp.mergedlo.dll__AcquireTheme_Gallery__QEAAPEAVGalleryTheme__V__basic_string_view__SU__char_traits__S_std___std__AEAVSfxListe]
mov rsi, rax
test rax, rax
jne 0x1400041f5
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Failed_to_acquire_theme_n
call fcn.140001080
lea ecx, [rsi + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [r15]
lea rdx, [rax + 8]
mov r8d, dword [rax + 4]
mov qword [rbp + 0x67], r13
mov r9d, 0x4c
mov dword [rsp + 0x20], 0x566
lea rcx, [rbp + 0x67]
call qword [sym.imp.sal3.dll_rtl_uString2String]
mov rax, qword [rbp + 0x67]
test rax, rax
je 0x14000443e
lea rbx, [rax + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Using_DestDir:__s_n
mov rcx, rax
call fcn.140001080
nop
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.sal3.dll_rtl_string_release]
movzx r8d, byte [rbp + 0x7f]
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.mergedlo.dll_public:_void___cdecl_GalleryTheme::SetDestDir_class_rtl::OUString_const____ptr64__bool____ptr64]
mov rdi, qword [r12]
mov r12, qword [r12 + 8]
cmp rdi, r12
je 0x1400043b7
mov r8d, 0xffffffff
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.mergedlo.dll_public:_bool___cdecl_GalleryTheme::InsertURL_class_INetURLObject_const____ptr64__unsigned_long_int____ptr64]
test al, al
jne 0x14000431d
mov r9d, 0x4c
xor r8d, r8d
lea rdx, [rbp - 0x29]
mov rcx, rdi
call qword [sym.imp.mergedlo.dll_public:_class_rtl::OUString___cdecl_INetURLObject::GetMainURL_enum_INetURLObject::DecodeMechanism__unsigned_short_int____ptr64]
nop
mov rax, qword [rax]
lea rdx, [rax + 8]
mov r8d, dword [rax + 4]
mov qword [rbp + 0x67], r13
mov r9d, 0x4c
mov dword [rsp + 0x20], 0x566
lea rcx, [rbp + 0x67]
call qword [sym.imp.sal3.dll_rtl_uString2String]
mov rax, qword [rbp + 0x67]
test rax, rax
je 0x140004458
lea rbx, [rax + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Failed_to_import__s_n
mov rcx, rax
call fcn.140001080
nop
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.sal3.dll_rtl_string_release]
nop
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.sal3.dll_rtl_uString_release]
add rdi, 0x58
jmp 0x14000426f
mov rcx, rsi
call qword [sym.imp.mergedlo.dll_public:_unsigned_long_int___cdecl_GalleryTheme::GetObjectCount_void_const___ptr64]
mov r15d, eax
mov r9d, 0x4c
xor r8d, r8d
lea rdx, [rbp - 0x51]
mov rcx, rdi
call qword [sym.imp.mergedlo.dll_public:_class_rtl::OUString___cdecl_INetURLObject::GetMainURL_enum_INetURLObject::DecodeMechanism__unsigned_short_int____ptr64]
nop
mov rcx, qword [rax]
lea rdx, [rcx + 8]
mov r8d, dword [rcx + 4]
mov qword [rbp - 0x31], r13
mov r9d, 0x4c
mov dword [rsp + 0x20], 0x566
lea rcx, [rbp - 0x31]
call qword [sym.imp.sal3.dll_rtl_uString2String]
mov rax, qword [rbp - 0x31]
test rax, rax
je 0x14000440a
lea rbx, [rax + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r15d
mov r8, rbx
lea rdx, str.Imported_file__s___lu__n
mov rcx, rax
call fcn.140001080
nop
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.sal3.dll_rtl_string_release]
nop
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.sal3.dll_rtl_uString_release]
add rdi, 0x58
jmp 0x14000426f
lea r8, [rbp + 7]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.mergedlo.dll_public:_void___cdecl_Gallery::ReleaseTheme_class_GalleryTheme____ptr64__class_SfxListener____ptr64____ptr64]
nop
lea rcx, [rbp + 7]
call qword [sym.imp.mergedlo.dll_public_virtual:_void___cdecl_SfxListener::destructor_void____ptr64]
nop
mov rcx, r14
call qword [sym.imp.mergedlo.dll_public_virtual:_void___cdecl_Gallery::destructor_void____ptr64]
mov edx, 0x120
mov rcx, r14
call fcn.14000d9b8
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, [rbp - 0x11]
call fcn.140001210
lea rdx, [0x140015630]
lea rcx, [rbp - 0x11]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rbp - 0x51]
call fcn.140001210
lea rdx, [0x140015630]
lea rcx, [rbp - 0x51]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rbp - 0x51]
call fcn.140001210
lea rdx, [0x140015630]
lea rcx, [rbp - 0x51]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rbp - 0x11]
call fcn.140001210
lea rdx, [0x140015630]
lea rcx, [rbp - 0x11]
call sub.VCRUNTIME140.dll__CxxThrowException
int3