Function at 0x140001280
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1a8
mov r14, r8
mov rsi, rdx
mov edi, ecx
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rcx, [rsp + 0x60]
mov dl, 1
call qword [sym.imp.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::baseprofiler::profiler_init_void____ptr64_]
call qword [sym.imp.mozglue.dll_public:_static_class_mozilla::baseprofiler::ProfilingStack____ptr64___cdecl_mozilla::baseprofiler::AutoProfilerLabel::GetProfilingStack_void_]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400012db
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.1400019e0
cmp edi, 2
jl 0x140001380
mov rcx, qword [rsi + 8]
lea rdx, str.contentproc
call fcn.140001770
test al, al
je 0x140001380
mov ecx, dword [0x14005b898]
or ecx, 1
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
cmp qword [sym.firefox.exe_g_shared_section], 0
jne 0x1400014ef
xor ecx, ecx
call fcn.1400018c0
test eax, eax
js 0x140001509
mov rcx, qword [0x14005b890]
mov edx, edi
mov r8, rsi
call fcn.140001680
mov esi, eax
mov rcx, qword [0x14005b890]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14000135b
mov ecx, dword [rax + 0x10]
add ecx, 0xffffffff
mov dword [rax + 0x10], ecx
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::baseprofiler::profiler_shutdown_void_]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14004ce20
mov eax, esi
add rsp, 0x1a8
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, dword [0x14005b898]
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
mov ecx, 1
call fcn.1400018c0
test eax, eax
js 0x140001509
mov rcx, qword [0x14005b890]
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x30], xmm0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
mov edx, 1
call qword [rax + 0x28]
mov rcx, qword [0x14005b890]
mov rax, qword [rcx]
call qword [rax + 0x60]
mov dword [rsp + 0x7c], edi
lea rcx, str.XUL_APP_FILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
jne 0x140001513
cmp edi, 1
jle 0x140001436
mov rcx, qword [rsi + 8]
lea rdx, [0x1400509f5]
call fcn.140001770
test al, al
jne 0x14000152a
cmp edi, 2
jl 0x14000142d
mov rcx, qword [rsi + 8]
lea rdx, str.xpcshell
call fcn.140001770
test al, al
jne 0x14000153f
test rbx, rbx
jne 0x140001648
lea rbx, str.browser
lea rax, str.Mozilla
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rbx
call fcn.140047bc0
mov rdi, rax
call fcn.140047ca0
test rdi, rdi
je 0x1400015ea
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x14004e2a0]
movaps xmmword [rsp + 0x80], xmm0
lea rcx, [rsp + 0x7c]
lea r8, [rsp + 0x80]
mov rdx, rsi
call fcn.140001bb0
mov rcx, qword [0x14005b890]
mov edx, dword [rsp + 0x7c]
mov rax, qword [rcx]
lea r9, [rsp + 0x90]
mov r8, rsi
call qword [rax + 0x30]
mov esi, eax
mov rcx, qword [0x14005b890]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [0x14005b890]
mov qword [0x14005b890], 0
test rcx, rcx
je 0x140001348
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140001348
call fcn.140047a80
test rax, rax
jne 0x140001319
lea rcx, str.Failed_to_initialize_the_sandbox_target_services.
call fcn.1400017b0
mov esi, 0xff
jmp 0x140001348
cmp byte [rbx], 0
jne 0x140001410
cmp edi, 2
jge 0x1400013f8
jmp 0x140001410
cmp edi, 2
jne 0x140001600
lea rcx, str.Incorrect_number_of_arguments_passed_to__app
jmp 0x1400015f1
movsxd rcx, edi
add edi, 0xffffffff
lea rbx, [rcx - 2]
mov eax, edi
and eax, 7
mov edx, 1
cmp rbx, 7
jb 0x140001591
sub rcx, rax
mov edx, 1
movups xmm0, xmmword [rsi + rdx*8 + 8]
movups xmm1, xmmword [rsi + rdx*8 + 0x18]
movups xmm2, xmmword [rsi + rdx*8 + 0x28]
movups xmm3, xmmword [rsi + rdx*8 + 0x38]
movups xmmword [rsi + rdx*8], xmm0
movups xmmword [rsi + rdx*8 + 0x10], xmm1
movups xmmword [rsi + rdx*8 + 0x20], xmm2
movups xmmword [rsi + rdx*8 + 0x30], xmm3
add rdx, 8
cmp rcx, rdx
jne 0x140001561
test rax, rax
je 0x1400015b2
lea rcx, [rsi + rdx*8]
add rcx, 8
xor edx, edx
mov rbx, qword [rcx + rdx*8]
mov qword [rcx + rdx*8 - 8], rbx
add rdx, 1
cmp rax, rdx
jne 0x1400015a0
call fcn.140047bc0
mov qword [rsp + 0x90], rax
mov rcx, qword [0x14005b890]
mov dword [rsp + 0x7c], edi
mov rax, qword [rcx]
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x20], rdx
mov edx, edi
mov r8, rsi
mov r9, r14
call qword [rax + 0x40]
jmp 0x1400014ba
lea rcx, str.Couldnt_initialize_the_broker_services._n
call fcn.1400017b0
mov esi, 0xff
jmp 0x1400014bc
mov rbx, qword [rsi + 0x10]
lea r14, [rsp + 0x90]
mov rcx, r14
mov r8, rbx
call fcn.140001b30
mov rcx, r14
call qword [sym.imp.mozglue.dll_strdup]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
test eax, eax
jne 0x140001658
mov rax, qword [rsi]
mov qword [rsi + 0x10], rax
add rsi, 0x10
add edi, 0xfffffffe
mov dword [rsp + 0x7c], edi
test rbx, rbx
je 0x140001436
cmp byte [rbx], 0
je 0x140001436
xor eax, eax
jmp 0x140001444
lea rcx, str.Couldnt_set__s._n
lea rdx, [rsp + 0x90]
call fcn.1400017b0
mov esi, 0xff
jmp 0x1400014bc