Function at 0x140001780
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x198
mov r14, r8
mov rsi, rdx
mov r12d, ecx
mov r15, qword [0x1400f6380]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x190], rax
lea rcx, [rsp + 0x58]
mov dl, 1
call qword [method.mozilla::TimeStamp.Now_bool_]
lea rcx, [rsp + 0x38]
call qword [method.mozilla::baseprofiler.profiler_init_void_]
call qword [method.mozilla::baseprofiler::AutoProfilerLabel.GetProfilingStack__]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140001819
mov rbx, rax
mov edi, dword [rax + 0x10]
cmp edi, dword [rax]
jae 0x140001d60
mov rax, qword [rbx + 8]
lea rcx, [rdi + rdi*4]
lea rdx, str.nsBrowserApp_main
mov qword [rax + rcx*8], rdx
mov qword [rax + rcx*8 + 8], 0
lea rdx, [rsp + 0x30]
mov qword [rax + rcx*8 + 0x10], rdx
mov dword [rax + rcx*8 + 0x24], 0x10001
add dword [rbx + 0x10], 1
cmp r12d, 2
jl 0x140001862
mov rcx, qword [rsi + 8]
mov al, byte [rcx]
cmp al, 0x2f
je 0x140001849
cmp al, 0x2d
jne 0x140001862
lea rax, [rcx + 1]
lea rdx, [rcx + 2]
cmp byte [rcx + 1], 0x2d
cmove rax, rdx
lea rdx, str.contentproc
mov rcx, rax
jmp 0x140001854
add rcx, 1
lea rdx, str.contentproc
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400019c8
mov ecx, dword [0x1401302a0]
call qword [sym.imp.mozglue.dll_DllBlocklist_Initialize_unsigned_int_]
call qword [method.mozilla.WindowsDpiInitialization__]
call fcn.1400150d0
mov rcx, qword [0x1400f6378]
call sub.ntdll.dll_RtlRunOnceInitialize
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov edx, r12d
mov r8, rsi
call qword [method.mozilla.CreateAndStorePreXULSkeletonUI_HINSTANCE____int__char_]
mov ecx, 1
call fcn.140001f80
test eax, eax
js 0x140001d59
mov rcx, qword [0x1401302a8]
movups xmm0, xmmword [rsp + 0x58]
movaps xmmword [rsp + 0x40], xmm0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
mov edx, 1
call qword [rax + 0x30]
mov rcx, qword [0x1401302a8]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov dword [rsp + 0x3c], r12d
lea rcx, str.XUL_APP_FILE
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rbx, rax
test rax, rax
je 0x14000191e
mov al, byte [rbx]
cmp r12d, 2
jl 0x14000190b
test al, al
je 0x140001928
cmp r12d, 1
jg 0x14000196b
test al, al
jne 0x1400019c1
jmp 0x140001c53
cmp r12d, 1
jle 0x140001c53
mov rcx, qword [rsi + 8]
mov al, byte [rcx]
cmp al, 0x2f
je 0x140001952
cmp al, 0x2d
jne 0x14000196b
lea rax, [rcx + 1]
lea rdx, [rcx + 2]
cmp byte [rcx + 1], 0x2d
cmove rax, rdx
lea rdx, [0x1400f62a9]
mov rcx, rax
jmp 0x14000195d
add rcx, 1
lea rdx, [0x1400f62a9]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140001bb3
mov rcx, qword [rsi + 8]
mov al, byte [rcx]
cmp al, 0x2f
je 0x140001995
cmp al, 0x2d
jne 0x1400019ae
lea rax, [rcx + 1]
lea rdx, [rcx + 2]
cmp byte [rcx + 1], 0x2d
cmove rax, rdx
lea rdx, str.xpcshell
mov rcx, rax
jmp 0x1400019a0
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 0x140001aa9
test rbx, rbx
je 0x140001c53
mov al, byte [rbx]
test al, al
je 0x140001c53
xor eax, eax
jmp 0x140001c61
mov ecx, dword [0x1401302a0]
or ecx, 1
call qword [sym.imp.mozglue.dll_DllBlocklist_Initialize_unsigned_int_]
call qword [method.mozilla.WindowsDpiInitialization__]
call sym.firefox.exe_IsSandboxedProcess
test al, al
je 0x1400019f4
call fcn.14006cd80
test rax, rax
je 0x140001c10
xor ecx, ecx
call fcn.140001f80
test eax, eax
js 0x140001d59
mov rbx, qword [0x1401302a8]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
call sym.firefox.exe_IsSandboxedProcess
test al, al
je 0x140001a4f
call fcn.14006cd80
mov qword [rsp + 0x80], rax
test rax, rax
je 0x140001d4f
lea rax, [0x14001c440]
mov qword [rsp + 0x88], rax
add r12d, 0xffffffff
mov rdx, qword [rsi + r12*8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x50]
cmp eax, 9
jne 0x140001a7b
call fcn.14006cf20
mov qword [rsp + 0x90], rax
mov rax, qword [rbx]
lea r9, [rsp + 0x80]
mov rcx, rbx
mov edx, r12d
mov r8, rsi
call qword [rax + 0x60]
mov esi, eax
shr esi, 0x1f
mov rcx, qword [0x1401302a8]
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x140001d12
cmp r12d, 2
mov eax, 2
cmovg eax, r12d
lea r8, [rax - 1]
mov ecx, 1
cmp r8, 4
jb 0x140001b60
mov rcx, r8
and rcx, 0xfffffffffffffffc
lea rdx, [rcx - 4]
mov r9, rdx
shr r9, 2
add r9, 1
test rdx, rdx
je 0x140001c26
mov rbx, r9
and rbx, 0xfffffffffffffffe
neg rbx
mov edx, 1
nop word [rax + rax]
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
add rbx, 2
jne 0x140001b00
test r9b, 1
je 0x140001b4a
movups xmm0, xmmword [rsi + rdx*8 + 8]
movups xmm1, xmmword [rsi + rdx*8 + 0x18]
movups xmmword [rsi + rdx*8], xmm0
movups xmmword [rsi + rdx*8 + 0x10], xmm1
cmp r8, rcx
je 0x140001b75
or rcx, 1
nop word cs:[rax + rax]
nop dword [rax]
mov rdx, qword [rsi + rcx*8 + 8]
mov qword [rsi + rcx*8], rdx
lea rdx, [rcx + 1]
mov rcx, rdx
cmp rax, rdx
jne 0x140001b60
call fcn.14006cf20
mov qword [rsp + 0x80], rax
mov rcx, qword [0x1401302a8]
add r12d, 0xffffffff
mov dword [rsp + 0x3c], r12d
mov rax, qword [rcx]
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x20], rdx
mov edx, r12d
mov r8, rsi
mov r9, r14
call qword [rax + 0x48]
jmp 0x140001ccd
cmp r12d, 2
jne 0x140001bc5
lea rcx, str.Incorrect_number_of_arguments_passed_to__app
jmp 0x140001cd8
mov rbx, qword [rsi + 0x10]
lea rdx, str.XUL_APP_FILE_s
lea rdi, [rsp + 0x80]
mov rcx, rdi
mov r8, rbx
call fcn.140002130
mov rcx, rdi
call sub.mozglue.dll_strdup
mov rcx, rax
call sub.api_ms_win_crt_environment_l1_1_0.dll__putenv
test eax, eax
je 0x140001c3a
lea rcx, str.Couldnt_set__s._n
lea rdx, [rsp + 0x80]
call fcn.140001e70
jmp 0x140001cdd
lea rcx, str.Failed_to_initialize_the_sandbox_target_services.
call fcn.140001e70
mov esi, 0xff
jmp 0x140001d12
mov edx, 1
test r9b, 1
jne 0x140001b37
jmp 0x140001b4a
mov rax, qword [rsi]
mov qword [rsi + 0x10], rax
add rsi, 0x10
add dword [rsp + 0x3c], 0xfffffffe
test rbx, rbx
jne 0x1400019b7
lea rbx, str.browser
lea rax, str.Mozilla
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rbx
call fcn.14006cf20
mov rdi, rax
call fcn.14006d000
test rdi, rdi
je 0x140001cd1
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400f6340]
movaps xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x3c]
lea r8, [rsp + 0x70]
mov rdx, rsi
call fcn.1400021f0
mov rcx, qword [0x1401302a8]
mov edx, dword [rsp + 0x3c]
mov rax, qword [rcx]
lea r9, [rsp + 0x80]
mov r8, rsi
call qword [rax + 0x38]
mov esi, eax
jmp 0x140001ce2
lea rcx, str.Couldnt_initialize_the_broker_services._n
call fcn.140001e70
mov esi, 0xff
call qword [method.mozilla.CleanupProcessRuntime__]
mov rcx, qword [0x1401302a8]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [0x1401302a8]
mov qword [0x1401302a8], 0
test rcx, rcx
je 0x140001d12
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140001d23
add dword [rax + 0x10], 0xffffffff
call qword [method.mozilla::baseprofiler.profiler_shutdown__]
mov rax, qword [rsp + 0x190]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140001d6e
mov eax, esi
add rsp, 0x198
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 1
jmp 0x140001a97
mov esi, 0xff
jmp 0x140001d12
mov rcx, rbx
call qword [method.mozilla::baseprofiler::ProfilingStack.ensureCapacitySlow__]
jmp 0x1400017e4
call fcn.140072349
int3