Function at 0x401230
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x150
mov eax, dword [0x448010]
mov esi, edx
mov edi, ecx
xor eax, ebp
mov dword [esp + 0x148], eax
lea eax, [esp + 0x20]
push 1
push eax
call dword [sym.imp.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_]
add esp, 8
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.mozglue.dll_void___cdecl_mozilla::baseprofiler::profiler_init_void__]
add esp, 4
call dword [sym.imp.mozglue.dll_public:_static_class_mozilla::baseprofiler::ProfilingStack____cdecl_mozilla::baseprofiler::AutoProfilerLabel::GetProfilingStack_void_]
test eax, eax
mov dword [esp + 0x18], eax
je 0x401288
lea edx, [esp + 0x18]
mov ecx, eax
call fcn.00401860
cmp edi, 2
jl 0x40131b
mov ecx, dword [esi + 4]
mov edx, str.contentproc
call fcn.00401670
test al, al
je 0x40131b
mov eax, dword [0x448528]
or eax, 1
push eax
call dword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
add esp, 4
cmp dword [sym.firefox.exe_g_shared_section], 0
jne 0x40148e
xor ecx, ecx
call fcn.00401760
test eax, eax
js 0x4014a8
mov ecx, dword [0x448524]
mov edx, edi
push esi
call fcn.004015a0
add esp, 4
mov ecx, dword [0x448524]
mov esi, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4012fd
mov ecx, dword [eax + 8]
dec ecx
mov dword [eax + 8], ecx
call dword [sym.imp.mozglue.dll_void___cdecl_mozilla::baseprofiler::profiler_shutdown_void_]
mov ecx, dword [esp + 0x148]
xor ecx, ebp
call fcn.0043c380
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [0x448528]
call dword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
add esp, 4
mov ecx, 1
call fcn.00401760
test eax, eax
js 0x4014a8
movsd xmm0, qword [esp + 0x20]
movsd xmm1, qword [esp + 0x28]
mov ecx, dword [0x448524]
movsd qword [esp], xmm0
movsd xmm0, qword [esp + 0x30]
movsd qword [esp + 8], xmm1
movsd qword [esp + 0x10], xmm0
mov eax, dword [ecx]
sub esp, 0x1c
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp + 0x14], xmm0
movsd xmm0, qword [esp + 0x1c]
movsd xmm1, qword [esp + 0x24]
movsd qword [esp + 0xc], xmm1
movsd qword [esp + 4], xmm0
mov dword [esp], 1
call dword [eax + 0x14]
mov ecx, dword [0x448524]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [esp + 0x40], edi
push str.XUL_APP_FILE
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov ebx, eax
test eax, eax
jne 0x4014b2
cmp edi, 1
jle 0x4013fb
mov ecx, dword [esi + 4]
mov edx, 0x4405a0
call fcn.00401670
test al, al
jne 0x4014c9
cmp edi, 2
jl 0x4013f3
mov ecx, dword [esi + 4]
mov edx, str.xpcshell
call fcn.00401670
test al, al
jne 0x4014d5
test ebx, ebx
jne 0x401572
mov ebx, str.browser
mov eax, 0x43e160
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
call fcn.00439ab0
mov edi, eax
call fcn.00439b80
test edi, edi
je 0x40150f
movsd xmm0, qword [0x43e1a0]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], eax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x40]
mov edx, esi
movsd qword [esp + 0x38], xmm0
push eax
call fcn.004019e0
add esp, 4
mov ecx, dword [0x448524]
lea edx, [esp + 0x44]
mov eax, dword [ecx]
push edx
push esi
push dword [esp + 0x48]
call dword [eax + 0x18]
mov esi, eax
mov ecx, dword [0x448524]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x448524]
mov dword [0x448524], 0
test ecx, ecx
je 0x4012ee
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4012ee
call fcn.004399a0
test eax, eax
jne 0x4012c1
push str.Failed_to_initialize_the_sandbox_target_services.
call fcn.004016a0
add esp, 4
mov esi, 0xff
jmp 0x4012ee
cmp byte [ebx], 0
jne 0x4013d9
cmp edi, 2
jge 0x4013c4
jmp 0x4013d9
cmp edi, 2
jne 0x401526
push str.Incorrect_number_of_arguments_passed_to__app
jmp 0x401514
mov ebx, dword [ebp + 8]
mov eax, 1
mov ecx, dword [esi + eax*4 + 4]
mov dword [esi + eax*4], ecx
inc eax
cmp edi, eax
jne 0x4014dd
call fcn.00439ab0
mov ecx, dword [0x448524]
dec edi
mov dword [esp + 0x44], eax
lea edx, [esp + 0x44]
mov dword [esp + 0x40], edi
mov eax, dword [ecx]
push edx
push ebx
push esi
push edi
call dword [eax + 0x20]
jmp 0x40145f
push str.Couldnt_initialize_the_broker_services._n
call fcn.004016a0
add esp, 4
mov esi, 0xff
jmp 0x401461
mov ebx, dword [esi + 8]
sub esp, 0xc
lea eax, [esp + 0x50]
mov dword [esp + 8], ebx
mov dword [esp], eax
call fcn.00401980
add esp, 0xc
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.mozglue.dll_strdup]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
add esp, 4
test eax, eax
jne 0x401582
mov eax, dword [esi]
add edi, 0xfffffffe
mov dword [esi + 8], eax
add esi, 8
mov dword [esp + 0x40], edi
test ebx, ebx
je 0x4013fb
xor eax, eax
cmp byte [ebx], 0
je 0x4013fb
jmp 0x401405
lea eax, [esp + 0x44]
push eax
push str.Couldnt_set__s._n
call fcn.004016a0
add esp, 8
mov esi, 0xff
jmp 0x401461