Function at 0x140001310
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x198
mov r14, r8
mov rsi, rdx
mov edi, ecx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x190], rax
lea rcx, [rsp + 0x58]
mov dl, 1
call qword [sym.imp.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_]
lea rcx, [rsp + 0x50]
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 + 0x48], rax
test rax, rax
je 0x14000136b
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.140001a30
cmp edi, 2
jl 0x14000143b
mov rcx, qword [rsi + 8]
mov al, byte [rcx]
cmp al, 0x2f
je 0x1400013a2
cmp al, 0x2d
jne 0x14000143b
lea rax, [rcx + 1]
lea rdx, [rcx + 2]
cmp byte [rcx + 1], 0x2d
cmove rax, rdx
lea rdx, str.contentproc
mov rcx, rax
jmp 0x1400013ad
add rcx, 1
lea rdx, str.contentproc
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000143b
mov ecx, 1
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
cmp qword [sym.firefox.exe_g_shared_section], 0
jne 0x1400015fe
xor ecx, ecx
call fcn.140001930
test eax, eax
js 0x140001618
mov rcx, qword [0x140054880]
mov edx, edi
mov r8, rsi
call fcn.140001730
mov esi, eax
mov rcx, qword [0x140054880]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140001416
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 + 0x190]
xor rcx, rsp
call fcn.140045f60
mov eax, esi
add rsp, 0x198
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, dword [0x140054888]
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
mov ecx, 1
call fcn.140001930
test eax, eax
js 0x140001618
mov rcx, qword [0x140054880]
movups xmm0, xmmword [rsp + 0x58]
movaps xmmword [rsp + 0x30], xmm0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
mov edx, 1
call qword [rax + 0x28]
mov rcx, qword [0x140054880]
mov rax, qword [rcx]
call qword [rax + 0x60]
mov dword [rsp + 0x2c], 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 0x140001622
cmp edi, 1
jle 0x14000154b
mov rcx, qword [rsi + 8]
mov al, byte [rcx]
cmp al, 0x2f
je 0x1400014e1
cmp al, 0x2d
jne 0x1400014fa
lea rax, [rcx + 1]
lea rdx, [rcx + 2]
cmp byte [rcx + 1], 0x2d
cmove rax, rdx
lea rdx, [0x14004a742]
mov rcx, rax
jmp 0x1400014ec
add rcx, 1
lea rdx, [0x14004a742]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000164f
cmp edi, 2
jl 0x140001542
mov rcx, qword [rsi + 8]
mov al, byte [rcx]
cmp al, 0x2f
je 0x140001529
cmp al, 0x2d
jne 0x140001542
lea rax, [rcx + 1]
lea rdx, [rcx + 2]
cmp byte [rcx + 1], 0x2d
cmove rax, rdx
lea rdx, str.xpcshell
mov rcx, rax
jmp 0x140001534
add rcx, 1
lea rdx, str.xpcshell
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000165d
test rbx, rbx
jne 0x140001718
lea rbx, str.browser
lea rax, str.Mozilla
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rbx
call fcn.140041800
mov rdi, rax
call fcn.140014250
test rdi, rdi
je 0x140001639
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x140048270]
movaps xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x2c]
lea r8, [rsp + 0x70]
mov rdx, rsi
call fcn.140001c00
mov rcx, qword [0x140054880]
mov edx, dword [rsp + 0x2c]
mov rax, qword [rcx]
lea r9, [rsp + 0x80]
mov r8, rsi
call qword [rax + 0x30]
mov esi, eax
mov rcx, qword [0x140054880]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [0x140054880]
mov qword [0x140054880], 0
test rcx, rcx
je 0x140001403
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140001403
call fcn.1400416e0
test rax, rax
jne 0x1400013d4
lea rcx, str.Failed_to_initialize_the_sandbox_target_services.
call fcn.140001820
mov esi, 0xff
jmp 0x140001403
cmp byte [rbx], 0
jne 0x1400014fa
cmp edi, 2
jge 0x1400014b7
jmp 0x1400014fa
lea rcx, str.Couldnt_initialize_the_broker_services._n
call fcn.140001820
mov esi, 0xff
jmp 0x1400015cb
cmp edi, 2
jne 0x1400016b2
lea rcx, str.Incorrect_number_of_arguments_passed_to__app
jmp 0x140001640
movsxd rax, edi
mov ecx, 1
mov rdx, qword [rsi + rcx*8 + 8]
mov qword [rsi + rcx*8], rdx
add rcx, 1
cmp rcx, rax
jl 0x140001665
call fcn.140041800
mov qword [rsp + 0x80], rax
mov rcx, qword [0x140054880]
add edi, 0xffffffff
mov dword [rsp + 0x2c], edi
mov rax, qword [rcx]
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x20], rdx
mov edx, edi
mov r8, rsi
mov r9, r14
call qword [rax + 0x40]
jmp 0x1400015c9
mov rbx, qword [rsi + 0x10]
lea r14, [rsp + 0x80]
mov rcx, r14
mov r8, rbx
call fcn.140001b80
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
je 0x1400016fd
lea rcx, str.Couldnt_set__s._n
lea rdx, [rsp + 0x80]
call fcn.140001820
mov esi, 0xff
jmp 0x1400015cb
mov rax, qword [rsi]
mov qword [rsi + 0x10], rax
add rsi, 0x10
add edi, 0xfffffffe
mov dword [rsp + 0x2c], edi
test rbx, rbx
je 0x14000154b
cmp byte [rbx], 0
je 0x14000154b
xor eax, eax
jmp 0x140001559