Function at 0x1400098c0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1d8
movaps xmmword [rsp + 0x1c0], xmm6
mov r13, rdx
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
mov dword [rsp + 0x4c], ecx
lea rcx, [0x140053898]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140009990
mov ebx, eax
mov ecx, eax
add rcx, rcx
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rsi, rax
mov ebp, ebx
dec ebp
lea rcx, [0x140053898]
mov rdx, rax
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp ebp, eax
jne 0x140009987
mov rcx, rsi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140009987
mov ebp, eax
mov ecx, eax
add rcx, rcx
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
mov rcx, rsi
mov rdx, rax
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14000997e
lea rcx, [0x140053898]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call qword [sym.imp.mozglue.dll_free]
mov rcx, rsi
call qword [sym.imp.mozglue.dll_free]
lea rcx, [0x140053a7e]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
lea r9, str.Mozilla
lea rsi, [rsp + 0x40]
lea rdx, [rsp + 0x4c]
mov rcx, rsi
mov r8, r13
call fcn.14000b300
cmp byte [rsi + 4], 0
jne 0x140009eea
movsxd rax, dword [rsp + 0x4c]
inc rax
mov ebx, 8
mul rbx
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
mov rcx, rax
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbp, rax
mov eax, dword [rsp + 0x4c]
test eax, eax
jle 0x140009a6e
xor r14d, r14d
xorps xmm6, xmm6
mov r15, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r12, rbp
mov rbp, qword [r13 + r14*8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rsi, rax
lea rdi, [rax + rax*2]
lea rcx, [rax + rax*2]
add rcx, 2
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
inc edi
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbp
mov rbp, r12
mov r9d, esi
call r15
cdqe
mov byte [rbx + rax], 0
mov qword [r12 + r14*8], rbx
inc r14
movsxd rax, dword [rsp + 0x4c]
cmp r14, rax
jl 0x1400099ff
mov rsi, 0xffffffffffffffff
mov ebx, 8
cdqe
mov qword [rbp + rax*8], 0
inc eax
cdqe
mul rbx
cmovno rsi, rax
mov rcx, rsi
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rdi, rax
mov r8d, dword [rsp + 0x4c]
test r8d, r8d
jle 0x140009aa9
shl r8, 3
mov rcx, rdi
mov rdx, rbp
call sub.ntdll.dll_memcpy
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll___p__environ]
mov r15, qword [rax]
mov r12d, dword [rsp + 0x4c]
lea rcx, [rsp + 0x80]
mov dl, 1
call qword [sym.imp.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_]
lea rcx, [rsp + 0x78]
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 + 0x70], rax
test rax, rax
je 0x140009b38
mov rbx, rax
mov esi, dword [rax + 0x10]
cmp esi, dword [rax]
jb 0x140009b02
mov rcx, rbx
call qword [sym.imp.mozglue.dll_private:_void___cdecl_mozilla::baseprofiler::ProfilingStack::ensureCapacitySlow_void____ptr64]
mov rax, qword [rbx + 8]
lea rcx, [rsi + rsi*4]
lea rdx, str.nsBrowserApp_main
mov qword [rax + rcx*8], rdx
mov qword [rax + rcx*8 + 8], 0
lea rdx, [rsp + 0x70]
mov qword [rax + rcx*8 + 0x10], rdx
mov dword [rax + rcx*8 + 0x24], 0x10001
mov eax, dword [rbx + 0x10]
inc eax
mov dword [rbx + 0x10], eax
cmp r12d, 2
jl 0x140009ef3
mov rcx, qword [rbp + 8]
mov al, byte [rcx]
cmp al, 0x2d
jne 0x140009cbb
lea rax, [rcx + 1]
lea rdx, [rcx + 2]
cmp byte [rcx + 1], 0x2d
cmove rax, rdx
lea rdx, str.contentproc
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140009cc3
mov ecx, dword [0x14005c890]
or ecx, 1
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
call qword [sym.imp.mozglue.dll_enum_mozilla::WindowsDpiInitializationResult___cdecl_mozilla::WindowsDpiInitialization_void_]
cmp qword [sym.firefox.exe_g_shared_section], 0
jne 0x140009f04
xor ecx, ecx
call fcn.14000a180
test eax, eax
js 0x140009f1e
mov rbx, qword [0x14005cab8]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0xc0], 0
cmp qword [sym.firefox.exe_g_shared_section], 0
jne 0x140009f28
dec r12d
mov rdx, qword [rbp + r12*8]
mov rax, qword [rbx]
mov rax, qword [rax + 0x50]
mov rcx, rbx
call qword [case.0x14001b2ee.0]
mov rax, qword [rbx]
mov rax, qword [rax + 0x48]
mov rcx, rbx
call qword [case.0x14001b2ee.0]
cmp eax, 9
je 0x140009f52
mov rax, qword [rbx]
mov rax, qword [rax + 0x58]
lea r9, [rsp + 0xb0]
mov rcx, rbx
mov edx, r12d
mov r8, rbp
call qword [case.0x14001b2ee.0]
mov ebx, eax
shr ebx, 0x1f
mov rcx, qword [0x14005cab8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x14001b2ee.0]
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140009c50
mov ecx, dword [rax + 0x10]
dec ecx
mov dword [rax + 0x10], ecx
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::baseprofiler::profiler_shutdown_void_]
mov rcx, rbp
call qword [sym.imp.mozglue.dll_free]
movsxd rsi, dword [rsp + 0x4c]
test rsi, rsi
je 0x140009c84
mov rbp, qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rdi + rsi*8 - 8]
dec rsi
test rcx, rcx
je 0x140009c7f
call rbp
test rsi, rsi
jne 0x140009c70
mov rcx, rdi
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.14001bc70
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x1c0]
add rsp, 0x1d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp al, 0x2f
je 0x140009f64
mov ecx, dword [0x14005c890]
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
mov rcx, qword [rbp + 8]
mov al, byte [rcx]
cmp al, 0x2d
jne 0x140009d18
lea rax, [rcx + 1]
lea rdx, [rcx + 2]
cmp byte [rcx + 1], 0x2d
cmove rax, rdx
lea rdx, str.silentmode
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140009d20
lea rcx, str.MOZ_APP_SILENT_START1
mov rsi, qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
call rsi
lea rcx, str.MOZ_APP_ALLOW_WINDOWLESS1
call rsi
jmp 0x140009d20
cmp al, 0x2f
je 0x14000a090
call qword [sym.imp.mozglue.dll_enum_mozilla::WindowsDpiInitializationResult___cdecl_mozilla::WindowsDpiInitialization_void_]
call fcn.14000a0c0
lea rcx, [0x14005cbb0]
call sub.ntdll.dll_RtlRunOnceInitialize
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov edx, r12d
mov r8, rbp
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::CreateAndStorePreXULSkeletonUI_struct_HINSTANCE______ptr64__int__char____ptr64____ptr64_]
mov ecx, 1
call fcn.14000a180
test eax, eax
js 0x140009f1e
mov rcx, qword [0x14005cab8]
movups xmm0, xmmword [rsp + 0x80]
lea r8, [rsp + 0x50]
movaps xmmword [r8], xmm0
mov rax, qword [rsp + 0x90]
mov qword [r8 + 0x10], rax
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
mov edx, 1
call qword [case.0x14001b2ee.0]
mov rcx, qword [0x14005cab8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [case.0x14001b2ee.0]
mov dword [rsp + 0x9c], r12d
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 0x140009f73
cmp r12d, 1
jle 0x140009f8b
mov rcx, qword [rbp + 8]
lea rdx, [0x140050bef]
call fcn.14001d660
test al, al
jne 0x140009f93
cmp r12d, 2
jl 0x140009fb3
mov rcx, qword [rbp + 8]
lea rdx, str.xpcshell
call fcn.14001d660
mov rsi, rbp
test al, al
jne 0x140009fbb
test rbx, rbx
jne 0x140009fd7
lea rax, str.Mozilla
lea rbx, str.browser
mov r14, rbp
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rbx
call fcn.14001d710
mov rbx, rax
call fcn.14001d6a0
test rbx, rbx
je 0x140009fe7
lea rbp, [rsp + 0xb0]
mov qword [rbp], rbx
mov qword [rbp + 8], rax
movaps xmm0, xmmword [0x14004e2a0]
lea r8, [rsp + 0xa0]
movaps xmmword [r8], xmm0
lea rbx, [rsp + 0x9c]
mov rcx, rbx
mov rdx, rsi
call fcn.14000a350
mov rcx, qword [0x14005cab8]
mov edx, dword [rbx]
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov r8, rsi
mov r9, rbp
call qword [case.0x14001b2ee.0]
mov ebx, eax
mov rbp, r14
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::CleanupProcessRuntime_void_]
mov rcx, qword [0x14005cab8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x14001b2ee.0]
mov rcx, qword [0x14005cab8]
mov qword [0x14005cab8], 0
test rcx, rcx
je 0x140009c3e
mov rax, qword [rcx]
mov rax, qword [rax + 8]
jmp 0x140009c38
mov ebx, dword [rsp + 0x40]
jmp 0x140009c8d
mov ecx, dword [0x14005c890]
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
jmp 0x140009d20
call fcn.14001f920
test rax, rax
jne 0x140009b9b
lea rcx, str.Failed_to_initialize_the_sandbox_target_services.
call fcn.14001dc10
mov ebx, 0xff
jmp 0x140009c3e
call fcn.14001f920
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x14000a039
lea rax, [0x14004c360]
mov qword [rsp + 0xb8], rax
jmp 0x140009bd6
call fcn.14001d710
mov qword [rsp + 0xc0], rax
jmp 0x140009c07
inc rcx
lea rdx, str.contentproc
jmp 0x140009b6a
cmp r12d, 2
jl 0x140009ded
cmp byte [rbx], 0
je 0x140009dd5
jmp 0x140009ded
mov rsi, rbp
jmp 0x140009e1b
cmp r12d, 2
jne 0x14000a043
lea rcx, str.Incorrect_number_of_arguments_passed_to__app
call fcn.14001dc10
mov ebx, 0xff
jmp 0x140009ea9
mov rsi, rbp
jmp 0x140009e12
mov eax, 2
mov rdx, rbp
mov rcx, qword [rbp + rax*8]
mov qword [rbp + rax*8 - 8], rcx
cmp r12, rax
je 0x140009ffd
inc rax
jmp 0x140009fc0
cmp byte [rbx], 0
je 0x140009e1b
xor eax, eax
jmp 0x140009e29
lea rcx, str.Couldnt_initialize_the_broker_services._n
call fcn.14001dc10
mov ebx, 0xff
jmp 0x140009ea6
call fcn.14001d710
lea rdx, [rsp + 0xb0]
mov qword [rdx], rax
mov rcx, qword [0x14005cab8]
dec r12d
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x20], rdx
mov edx, r12d
mov r8, rbp
mov r9, r15
call qword [case.0x14001b2ee.0]
mov ebx, eax
jmp 0x140009ea9
mov ebx, 1
jmp 0x140009c2a
mov rbx, qword [rbp + 0x10]
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov r8, rbx
call fcn.14001f980
mov rcx, rsi
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
jne 0x14000a09f
mov rsi, rbp
add rsi, 0x10
mov rax, qword [rbp]
mov qword [rbp + 0x10], rax
add r12d, 0xfffffffe
mov dword [rsp + 0x9c], r12d
jmp 0x140009e12
inc rcx
lea rdx, str.silentmode
jmp 0x140009cf3
lea rcx, str.Couldnt_set__s._n
lea rdx, [rsp + 0xb0]
call fcn.14001dc10
jmp 0x140009fa9