Function at 0x1400046d0
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x80
call fcn.14000ecd0
sub rsp, rax
mov r14, rcx
cmp byte [rcx + 0x18], 0
jne 0x14000484c
lea rcx, [0x140011210]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14000484c
lea rcx, [rsp + 0x28]
call qword [sym.imp.mergedlo.dll_public:_static_class_rtl::OUString___cdecl_Application::GetAppFileName_void_]
nop
mov r8d, 0x2f
mov rax, qword [rsp + 0x28]
lea rcx, [rax + 8]
mov edx, dword [rax + 4]
call qword [sym.imp.sal3.dll_rtl_ustr_lastIndexOfChar_WithLength]
mov ebx, eax
mov r8d, 0x5c
mov rdx, qword [rsp + 0x28]
lea rcx, [rdx + 8]
mov edx, dword [rdx + 4]
call qword [sym.imp.sal3.dll_rtl_ustr_lastIndexOfChar_WithLength]
cmp eax, ebx
jle 0x14000476f
mov r8d, 0x5c
mov rax, qword [rsp + 0x28]
lea rcx, [rax + 8]
mov edx, dword [rax + 4]
call qword [sym.imp.sal3.dll_rtl_ustr_lastIndexOfChar_WithLength]
mov ebx, eax
xor edi, edi
mov qword [rsp + 0x20], rdi
mov r9d, ebx
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
call qword [sym.imp.sal3.dll_rtl_uString_newFromSubString]
mov rsi, qword [rsp + 0x20]
mov qword [rsp + 0x20], rsi
mov r13d, dword [rsi + 4]
add r13d, 6
mov ecx, r13d
call qword [sym.imp.sal3.dll_rtl_uString_alloc]
mov rbx, rax
mov qword [rsp + 0x40], rax
test r13d, r13d
je 0x1400047f1
lea r12, [rax + 8]
movsxd r15, dword [rsi + 4]
lea rdx, [rsi + 8]
test r15, r15
je 0x1400047d1
lea r8, [r15 + r15]
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
lea rax, [r12 + r15*2]
mov dword [rax], 0x2e002f
mov dword [rax + 4], 0x2f002e
mov dword [rax + 8], 0x2e002e
mov dword [rbx + 4], r13d
mov word [rax + 0xc], di
mov qword [rsp + 0x30], rdi
xor r9d, r9d
lea r8d, [r9 + 0x12]
lea rdx, [0x140011210]
lea rcx, [rsp + 0x30]
call qword [sym.imp.sal3.dll_rtl_uString_newFromLiteral]
nop
mov rdx, rbx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.sal3.dll_osl_setEnvironment]
nop
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.sal3.dll_rtl_uString_release]
nop
mov rcx, rbx
call qword [sym.imp.sal3.dll_rtl_uString_release]
nop
mov rcx, rsi
call qword [sym.imp.sal3.dll_rtl_uString_release]
nop
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.sal3.dll_rtl_uString_release]
jmp 0x14000484e
xor edi, edi
lea rcx, [rsp + 0x60]
call qword [sym.imp.cppuhelper3MSC.dll_class_com::sun::star::uno::Reference_class_com::sun::star::uno::XComponentContext____cdecl_cppu::defaultBootstrap_InitialComponentContext_void_]
nop
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [rax + 0x20]
nop
mov rsi, qword [rax]
call fcn.1400027e0
test rsi, rsi
je 0x1400048bb
mov rdx, qword [rsi]
mov r9, qword [rdx]
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, rsi
call r9
mov rax, qword [rsp + 0x40]
lea rdx, [0x140001ec0]
lea rcx, [rsp + 0x40]
cmp dword [rax + 8], 0x16
jne 0x1400048b5
mov rsi, qword [rsp + 0x50]
mov qword [rsp + 0x50], rdi
call qword [sym.imp.cppu3.dll_uno_any_destruct]
jmp 0x1400048be
call qword [sym.imp.cppu3.dll_uno_any_destruct]
mov rsi, rdi
mov rcx, qword [r14 + 0x20]
mov qword [r14 + 0x20], rsi
test rcx, rcx
je 0x1400048d2
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400048e3
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
cmp qword [r14 + 0x20], 0
jne 0x14000490f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Failed_to_bootstrap_n
mov rcx, rax
call fcn.140001080
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea rcx, [r14 + 0x20]
call qword [sym.imp.mergedlo.dll_void___cdecl_comphelper::setProcessServiceFactory_class_com::sun::star::uno::Reference_class_com::sun::star::lang::XMultiServiceFactory__const____ptr64_]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.1400035f0
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14000493a
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000494b
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret