Function at 0x140001660
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rdi
push r14
push r15
lea rbp, [rsp - 0x2d0]
sub rsp, 0x3d0
mov rax, qword [0x140036018]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov r15, rdx
movsxd r14, ecx
mov dl, 1
lea rcx, [rsp + 0x70]
mov rbx, r8
call qword [sym.imp.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_]
cmp r14d, 1
jle 0x1400016be
mov rcx, qword [r15 + 8]
mov rdx, rcx
movzx eax, byte [rcx]
cmp al, 0x2d
je 0x140007290
cmp al, 0x2f
je 0x1400072b3
xor ecx, ecx
mov qword [rsp + 0x3c0], r12
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
xor r12d, r12d
cmp byte [0x140036a18], r12b
jne 0x1400016fe
mov r8d, 0x104
lea rdx, [0x140036810]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000733b
mov byte [0x140036a18], 1
lea r8, [0x140036810]
mov edx, 0x104
lea rcx, [rbp + 0xa0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
jne 0x140007345
mov eax, r12d
test eax, eax
js 0x14000734f
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], r12
lea r8, [rbp + 0xa0]
mov dword [rsp + 0x28], 0x104
or r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, r12d
test eax, eax
js 0x14000734f
lea rcx, [rbp - 0x70]
call qword [sym.imp.mozglue.dll_strdup]
mov qword [rsp + 0x48], rax
mov rdi, rax
test rax, rax
je 0x140007357
mov al, 1
test al, al
je 0x14000735e
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140001220
mov rcx, qword [rax]
mov qword [rax], r12
mov rdx, qword [0x1400382a0]
mov qword [0x1400382a0], rcx
test rdx, rdx
jne 0x140007387
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x40], r12
test rdx, rdx
jne 0x14000739c
test rcx, rcx
je 0x1400073b1
mov al, 1
test al, al
je 0x140007367
mov rax, qword [rcx]
call qword [rax + 0x10]
test rdi, rdi
je 0x1400017f1
mov rcx, rdi
call qword [sym.imp.mozglue.dll_free]
mov ecx, r12d
test ecx, ecx
jne 0x1400073b8
mov rcx, qword [0x1400382a0]
lea r8, [rsp + 0x50]
movups xmm0, xmmword [rsp + 0x70]
mov edx, 1
mov qword [rsp + 0x3c8], rsi
movsd xmm1, qword [rbp - 0x80]
mov rax, qword [rcx]
movaps xmmword [rsp + 0x50], xmm0
movsd qword [rsp + 0x60], xmm1
call qword [rax + 0x28]
mov rcx, qword [0x1400382a0]
mov rax, qword [rcx]
call qword [rax + 0x60]
lea rcx, str.XUL_APP_FILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rsi, rax
test rax, rax
jne 0x1400073c2
cmp r14d, 1
jle 0x14000189c
mov rdi, qword [r15 + 8]
mov rax, rdi
movzx ecx, byte [rdi]
cmp cl, 0x2d
je 0x1400073d0
cmp cl, 0x2f
je 0x1400073f4
cmp r14d, 1
jle 0x14000189c
mov rcx, qword [r15 + 8]
lea rdi, [r15 + 8]
mov rdx, rcx
movzx eax, byte [rcx]
cmp al, 0x2d
je 0x140007485
cmp al, 0x2f
je 0x1400074a8
test rsi, rsi
jne 0x140007504
lea rax, str.Mozilla
mov qword [rsp + 0x60], rax
lea rax, str.browser
mov qword [rsp + 0x68], rax
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14003831c], eax
jle 0x140001a0b
lea rcx, [0x14003831c]
call fcn.140006190
cmp dword [0x14003831c], 0xffffffff
jne 0x140001a0b
cmp qword [sym.firefox.exe_g_shared_section], r12
jne 0x14000751c
mov rdi, qword [0x140038280]
test rdi, rdi
jne 0x1400019c8
mov ecx, 0x80
call fcn.140005f80
mov rdi, rax
mov ecx, 0x18
lea rax, [0x14002c998]
mov qword [rdi], rax
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x48], r12
mov qword [rdi + 0x50], r12
mov qword [rdi + 0x58], r12
call fcn.140005f80
mov ecx, 0x30
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rdi + 0x50], rax
mov qword [rdi + 0x60], r12
mov qword [rdi + 0x68], r12
call fcn.140005f80
mov ecx, 0x20
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rdi + 0x60], rax
mov qword [rdi + 0x70], r12
mov qword [rdi + 0x78], r12
call fcn.140005f80
lea rcx, [0x140001a9c]
mov qword [0x140038280], rdi
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rdi + 0x70], rax
call fcn.140005f08
mov rdi, qword [0x140038280]
test rdi, rdi
je 0x14000751c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
test eax, eax
jne 0x14000751c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov dl, 1
mov rcx, rax
mov rbx, rax
mov rsi, qword [rax]
call qword [rsi + 0x58]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 8]
lea rcx, [0x14003831c]
mov qword [0x140038298], rdi
call fcn.140006130
mov rdi, qword [0x140038298]
call fcn.140004980
test rdi, rdi
je 0x140007524
mov rcx, qword [0x1400382a0]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x50], rdi
mov r8, r15
mov qword [rsp + 0x58], rax
mov edx, r14d
mov rax, qword [rcx]
call qword [rax + 0x30]
mov edi, eax
mov rcx, qword [0x1400382a0]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [0x1400382a0]
mov rsi, qword [rsp + 0x3c8]
mov qword [0x1400382a0], r12
test rcx, rcx
je 0x140001a72
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, edi
mov r12, qword [rsp + 0x3c0]
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140005c90
add rsp, 0x3d0
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret
inc rcx
cmp byte [rcx], 0x2d
cmovne rcx, rdx
lea rdx, str.contentproc
inc rcx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400072cb
jmp 0x1400016be
inc rcx
lea rdx, str.contentproc
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400016be
mov ecx, 1
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
cmp qword [sym.firefox.exe_g_shared_section], 0
setne al
test al, al
je 0x140007305
call fcn.14002be28
test rax, rax
jne 0x140007305
lea rcx, str.Failed_to_initialize_the_sandbox_target_services.
call fcn.14000a754
mov eax, 0xff
jmp 0x140001a7c
call fcn.14000a65c
mov ecx, 0x80000000
test ecx, eax
jne 0x1400072fb
mov rcx, qword [0x1400382a0]
mov r8, r15
mov edx, r14d
call fcn.14000a930
mov rcx, qword [0x1400382a0]
mov edi, eax
mov rdx, qword [rcx]
call qword [rdx + 0x18]
mov eax, edi
jmp 0x140001a7c
mov eax, 0x80004005
jmp 0x140001722
mov eax, 0x80004005
jmp 0x140001722
mov rdi, r12
mov qword [rsp + 0x48], r12
xor al, al
jmp 0x140001785
lea rcx, str.Couldnt_find_the_application_directory._n
jmp 0x14000736e
lea rcx, str.Couldnt_load_XPCOM._n
call fcn.14000a754
lea rcx, [rsp + 0x48]
call fcn.140009658
mov ecx, 0x80000000
jmp 0x1400017f4
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 8]
mov rcx, qword [0x1400382a0]
jmp 0x1400017b7
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 8]
mov rcx, qword [0x1400382a0]
jmp 0x1400017ca
xor al, al
jmp 0x1400017d5
mov eax, 0xff
jmp 0x140001a74
cmp byte [rax], r12b
jne 0x140001878
jmp 0x140001856
inc rdi
lea rdx, [0x14002d400]
cmp byte [rdi], 0x2d
cmovne rdi, rax
lea rcx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000740d
jmp 0x140001878
lea rcx, [rdi + 1]
lea rdx, [0x14002d400]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140001878
cmp r14d, 2
jne 0x140007429
lea rcx, str.Incorrect_number_of_arguments_passed_to__app
call fcn.14000a754
mov edi, 0xff
jmp 0x140001a44
mov rsi, qword [r15 + 0x10]
lea rdx, str.XUL_APP_FILE_s
mov r8, rsi
lea rcx, [rbp - 0x70]
call fcn.14000a4f0
lea rcx, [rbp - 0x70]
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 0x140007471
lea rdx, [rbp - 0x70]
lea rcx, str.Couldnt_set__s._n
call fcn.14000a754
mov edi, 0xff
jmp 0x140001a44
mov rax, qword [r15]
mov qword [r15 + 0x10], rax
add r15, 0x10
add r14d, 0xfffffffe
jmp 0x14000189c
inc rcx
cmp byte [rcx], 0x2d
cmovne rcx, rdx
lea rdx, str.xpcshell
inc rcx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400074c0
jmp 0x14000189c
inc rcx
lea rdx, str.xpcshell
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000189c
mov rcx, r14
cmp r14, 1
jle 0x1400074d3
lea rsi, [r15 + 0x10]
dec rcx
rep movsq qword [rdi], qword [rsi]
call fcn.14002bdcc
mov rcx, qword [0x1400382a0]
lea rdi, [rsp + 0x40]
mov qword [rsp + 0x40], rax
lea edx, [r14 - 1]
mov r9, rbx
mov qword [rsp + 0x20], rdi
mov r8, r15
mov rax, qword [rcx]
call qword [rax + 0x40]
nop
jmp 0x140001a42
cmp byte [rsi], r12b
je 0x1400018a5
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], rsi
jmp 0x1400018bd
mov rdi, r12
jmp 0x1400019f8
lea rcx, str.Couldnt_initialize_the_broker_services._n
call fcn.14000a754
mov edi, 0xff
jmp 0x140001a44