Function at 0x140001670
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2d0]
sub rsp, 0x3d0
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov r12, rdx
movsxd r15, ecx
mov dl, 1
lea rcx, [rsp + 0x70]
mov r14, r8
call qword [sym.imp.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_]
cmp r15d, 1
jle 0x1400016d0
mov rcx, qword [r12 + 8]
mov rdx, rcx
movzx eax, byte [rcx]
cmp al, 0x2d
je 0x14000841e
cmp al, 0x2f
je 0x140008441
xor ecx, ecx
mov qword [rsp + 0x3c8], rbx
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
cmp byte [0x140038a08], 0
jne 0x14000170d
mov r8d, 0x104
lea rdx, [0x140038800]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000866f
mov byte [0x140038a08], 1
lea r8, [0x140038800]
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 0x14000866f
xor ebx, ebx
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rbx
lea r8, [rbp + 0xa0]
mov qword [rsp + 0x30], rbx
or r9d, 0xffffffff
mov dword [rsp + 0x28], 0x104
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rbp - 0x70]
call qword [sym.imp.mozglue.dll_strdup]
mov qword [rsp + 0x48], rax
mov rdi, rax
test rax, rax
je 0x140008676
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140001220
mov rcx, qword [rax]
mov qword [rax], rbx
mov rdx, qword [0x14003a290]
mov qword [0x14003a290], rcx
test rdx, rdx
jne 0x1400084bf
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x40], rbx
test rdx, rdx
jne 0x1400084d4
test rcx, rcx
je 0x1400084e9
mov rax, qword [rcx]
mov qword [rsp + 0x3c0], rsi
call qword [rax + 0x10]
mov rcx, rdi
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [0x14003a290]
lea r8, [rsp + 0x50]
movups xmm0, xmmword [rsp + 0x70]
mov edx, 1
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 [0x14003a290]
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 0x1400084f5
cmp r15d, 1
jle 0x140001876
mov rdi, qword [r12 + 8]
mov rax, rdi
movzx ecx, byte [rdi]
cmp cl, 0x2d
je 0x140008502
cmp cl, 0x2f
je 0x140008526
cmp r15d, 1
jle 0x140001876
mov rcx, qword [r12 + 8]
lea rdi, [r12 + 8]
mov rdx, rcx
movzx eax, byte [rcx]
cmp al, 0x2d
je 0x1400085ba
cmp al, 0x2f
je 0x1400085dd
test rsi, rsi
jne 0x14000863a
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 [0x14003a30c], eax
jle 0x140001a1b
lea rcx, [0x14003a30c]
call fcn.1400073e0
cmp dword [0x14003a30c], 0xffffffff
jne 0x140001a1b
cmp qword [sym.firefox.exe_g_shared_section], rbx
jne 0x140008651
mov r14, qword [0x14003a270]
test r14, r14
jne 0x1400019d8
mov ecx, 0x80
call fcn.1400071fc
mov rdi, rax
lea ecx, [r14 + 0x18]
lea rax, [0x14002e988]
mov qword [rdi], rax
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x48], rbx
mov qword [rdi + 0x50], rbx
mov qword [rdi + 0x58], rbx
call fcn.1400071fc
test rax, rax
je 0x14000192d
mov qword [rax], rax
lea rcx, [rax + 8]
test rcx, rcx
je 0x140001939
mov qword [rcx], rax
mov qword [rdi + 0x50], rax
mov ecx, 0x30
mov qword [rdi + 0x60], rbx
mov qword [rdi + 0x68], rbx
call fcn.1400071fc
test rax, rax
je 0x140001957
mov qword [rax], rax
lea rcx, [rax + 8]
test rcx, rcx
je 0x140001963
mov qword [rcx], rax
lea rcx, [rax + 0x10]
test rcx, rcx
je 0x14000196f
mov qword [rcx], rax
mov word [rax + 0x18], 0x101
mov ecx, 0x20
mov qword [rdi + 0x60], rax
mov qword [rdi + 0x70], rbx
mov qword [rdi + 0x78], rbx
call fcn.1400071fc
test rax, rax
je 0x140001993
mov qword [rax], rax
lea rcx, [rax + 8]
test rcx, rcx
je 0x14000199f
mov qword [rcx], rax
lea rcx, [rax + 0x10]
test rcx, rcx
je 0x1400019ab
mov qword [rcx], rax
mov word [rax + 0x18], 0x101
lea rcx, [0x140001aac]
mov qword [rdi + 0x70], rax
mov qword [0x14003a270], rdi
call fcn.140007184
mov r14, qword [0x14003a270]
test r14, r14
je 0x140008651
mov rax, qword [r14]
mov rcx, r14
call qword [rax]
test eax, eax
jne 0x140008651
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 8]
mov dl, 1
mov rcx, rax
mov rsi, rax
mov rdi, qword [rax]
call qword [rdi + 0x58]
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 8]
lea rcx, [0x14003a30c]
mov qword [0x14003a288], r14
call fcn.140007380
mov rdi, qword [0x14003a288]
call fcn.140005b00
test rdi, rdi
je 0x140008659
mov rcx, qword [0x14003a290]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x50], rdi
mov r8, r12
mov qword [rsp + 0x58], rax
mov edx, r15d
mov rax, qword [rcx]
call qword [rax + 0x30]
mov edi, eax
mov rcx, qword [0x14003a290]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [0x14003a290]
mov rsi, qword [rsp + 0x3c0]
mov qword [0x14003a290], rbx
test rcx, rcx
je 0x140001a82
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, edi
mov rbx, qword [rsp + 0x3c8]
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140006f20
add rsp, 0x3d0
pop r15
pop r14
pop r12
pop rdi
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 0x140008459
jmp 0x1400016d0
inc rcx
lea rdx, str.contentproc
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400016d0
mov ecx, 1
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
cmp qword [sym.firefox.exe_g_shared_section], 0
je 0x14000848e
call fcn.14002d1c0
test rax, rax
jne 0x14000848e
lea rcx, str.Failed_to_initialize_the_sandbox_target_services.
call fcn.14000c1a4
mov eax, 0xff
jmp 0x140001a8c
call fcn.14000c0ac
test eax, eax
js 0x140008484
mov rcx, qword [0x14003a290]
mov r8, r12
mov edx, r15d
call fcn.14000c380
mov rcx, qword [0x14003a290]
mov edi, eax
mov rdx, qword [rcx]
call qword [rdx + 0x18]
mov eax, edi
jmp 0x140001a8c
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 8]
mov rcx, qword [0x14003a290]
jmp 0x1400017a8
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 8]
mov rcx, qword [0x14003a290]
jmp 0x1400017bb
lea rcx, str.Couldnt_load_XPCOM._n
jmp 0x14000867d
cmp byte [rax], bl
jne 0x140001850
jmp 0x14000182d
inc rdi
lea rdx, [0x14002f350]
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 0x14000853f
jmp 0x140001850
lea rcx, [rdi + 1]
lea rdx, [0x14002f350]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140001850
cmp r15d, 2
jne 0x14000855b
lea rcx, str.Incorrect_number_of_arguments_passed_to__app
call fcn.14000c1a4
mov edi, 0xff
jmp 0x140001a54
mov rsi, qword [r12 + 0x10]
lea rdx, str.XUL_APP_FILE_s
mov r8, rsi
lea rcx, [rbp - 0x70]
call fcn.14000bf40
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 0x1400085a4
lea rdx, [rbp - 0x70]
lea rcx, str.Couldnt_set__s._n
call fcn.14000c1a4
mov edi, 0xff
jmp 0x140001a54
mov rax, qword [r12]
mov qword [r12 + 0x10], rax
add r12, 0x10
add r15d, 0xfffffffe
jmp 0x140001876
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 0x1400085f5
jmp 0x140001876
inc rcx
lea rdx, str.xpcshell
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140001876
mov rcx, r15
cmp r15, 1
jle 0x140008609
lea rsi, [r12 + 0x10]
dec rcx
rep movsq qword [rdi], qword [rsi]
call fcn.14002d164
mov rcx, qword [0x14003a290]
lea rdi, [rsp + 0x40]
mov qword [rsp + 0x40], rax
lea edx, [r15 - 1]
mov r9, r14
mov qword [rsp + 0x20], rdi
mov r8, r12
mov rax, qword [rcx]
call qword [rax + 0x40]
nop
jmp 0x140001a52
cmp byte [rsi], bl
je 0x14000187f
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
jmp 0x140001897
mov r14, rbx
jmp 0x140001a08
lea rcx, str.Couldnt_initialize_the_broker_services._n
call fcn.14000c1a4
mov edi, 0xff
jmp 0x140001a54
xor ebx, ebx
mov qword [rsp + 0x48], rbx
lea rcx, str.Couldnt_find_the_application_directory._n
call fcn.14000c1a4
lea rcx, [rsp + 0x48]
call fcn.14000b048
mov eax, 0xff
jmp 0x140001a84