Function at 0x140001310
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 [0x140055018]
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 0x14000136b
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140001a60
cmp edi, 2
jl 0x14000143f
mov rcx, qword [rsi + 8]
mov al, byte [rcx]
cmp al, 0x2f
je 0x1400013a2
cmp al, 0x2d
jne 0x14000143f
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 0x14000143f
mov ecx, dword [0x140055888]
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 0x140001608
xor ecx, ecx
call fcn.140001940
test eax, eax
js 0x140001622
mov rcx, qword [0x140055880]
mov edx, edi
mov r8, rsi
call fcn.140001740
mov esi, eax
mov rcx, qword [0x140055880]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14000141a
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.1400477a0
mov eax, esi
add rsp, 0x1a8
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, dword [0x140055888]
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
mov ecx, 1
call fcn.140001940
test eax, eax
js 0x140001622
mov rcx, qword [0x140055880]
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 [0x140055880]
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 0x14000162c
cmp edi, 1
jle 0x14000154f
mov rcx, qword [rsi + 8]
mov al, byte [rcx]
cmp al, 0x2f
je 0x1400014e5
cmp al, 0x2d
jne 0x1400014fe
lea rax, [rcx + 1]
lea rdx, [rcx + 2]
cmp byte [rcx + 1], 0x2d
cmove rax, rdx
lea rdx, [0x14004b762]
mov rcx, rax
jmp 0x1400014f0
add rcx, 1
lea rdx, [0x14004b762]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140001659
cmp edi, 2
jl 0x140001546
mov rcx, qword [rsi + 8]
mov al, byte [rcx]
cmp al, 0x2f
je 0x14000152d
cmp al, 0x2d
jne 0x140001546
lea rax, [rcx + 1]
lea rdx, [rcx + 2]
cmp byte [rcx + 1], 0x2d
cmove rax, rdx
lea rdx, str.xpcshell
mov rcx, rax
jmp 0x140001538
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 0x140001667
test rbx, rbx
jne 0x140001722
lea rbx, str.browser
lea rax, str.Mozilla
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rbx
call fcn.140042dc0
mov rdi, rax
call fcn.140015340
test rdi, rdi
je 0x140001643
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x140049270]
movaps xmmword [rsp + 0x80], xmm0
lea rcx, [rsp + 0x7c]
lea r8, [rsp + 0x80]
mov rdx, rsi
call fcn.140001c30
mov rcx, qword [0x140055880]
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 [0x140055880]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [0x140055880]
mov qword [0x140055880], 0
test rcx, rcx
je 0x140001407
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140001407
call fcn.140042c90
test rax, rax
jne 0x1400013d8
lea rcx, str.Failed_to_initialize_the_sandbox_target_services.
call fcn.140001830
mov esi, 0xff
jmp 0x140001407
cmp byte [rbx], 0
jne 0x1400014fe
cmp edi, 2
jge 0x1400014bb
jmp 0x1400014fe
lea rcx, str.Couldnt_initialize_the_broker_services._n
call fcn.140001830
mov esi, 0xff
jmp 0x1400015d5
cmp edi, 2
jne 0x1400016bc
lea rcx, str.Incorrect_number_of_arguments_passed_to__app
jmp 0x14000164a
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 0x14000166f
call fcn.140042dc0
mov qword [rsp + 0x90], rax
mov rcx, qword [0x140055880]
add edi, 0xffffffff
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 0x1400015d3
mov rbx, qword [rsi + 0x10]
lea r14, [rsp + 0x90]
mov rcx, r14
mov r8, rbx
call fcn.140001bb0
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 0x140001707
lea rcx, str.Couldnt_set__s._n
lea rdx, [rsp + 0x90]
call fcn.140001830
mov esi, 0xff
jmp 0x1400015d5
mov rax, qword [rsi]
mov qword [rsi + 0x10], rax
add rsi, 0x10
add edi, 0xfffffffe
mov dword [rsp + 0x7c], edi
test rbx, rbx
je 0x14000154f
cmp byte [rbx], 0
je 0x14000154f
xor eax, eax
jmp 0x14000155d