Function at 0x10012e60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [esp + 0x68], eax
mov eax, dword [0x1007e388]
mov ecx, dword [0x1007d328]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x10012f00
push 0x1007e388
call fcn.1002f5e1
add esp, 4
cmp dword [0x1007e388], 0xffffffff
jne 0x10012f00
push str.MOZ_BASE_PROFILER_VERBOSE_LOGGING
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x1001313e
push str.MOZ_BASE_PROFILER_DEBUG_LOGGING
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x10013148
push str.MOZ_BASE_PROFILER_LOGGING
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
xor ecx, ecx
test eax, eax
setne cl
lea eax, [ecx + ecx*2]
mov dword [0x1007e384], eax
push 0x1007e388
call fcn.1002f5e1
add esp, 4
cmp dword [0x1007e384], 3
jge 0x100130c7
cmp dword [0x1007e400], 0
jne 0x10012f21
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [0x1007e400], eax
cmp dword [0x1007e3ac], 0
jne 0x100130e9
push str.MOZ_BASE_PROFILER_HELP
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x100130fe
xor ebx, ebx
mov dword [esp + 0x4c], ebx
lea ecx, [esp + 0x40]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx], 4
push 1
call fcn.10013650
test al, al
je 0x10013105
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [eax + ecx*4], str.GeckoMain
inc dword [esp + 0x44]
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov edi, eax
push 0x1007e38c
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [0x1007e3a4], edi
push 0xf0
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov edi, eax
push ebx
push eax
call sym.mozglue.dll_public:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::ProcessCreation_bool__
add esp, 8
lea eax, [edi + 0x18]
mov esi, dword [sym.imp.kernel32.dll_InitializeSRWLock]
push eax
call esi
mov byte [edi + 0x50], bl
lea eax, [edi + 0x30]
push eax
call esi
mov eax, 0xf
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
mov byte [edi + 0x50], 1
xorpd xmm1, xmm1
movupd xmmword [edi + 0x54], xmm1
movaps xmm0, xmmword [0x1006d2f0]
movups xmmword [edi + 0x64], xmm0
mov dword [edi + 0x74], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x78], 1
movaps xmm0, xmmword [0x1006d2e0]
movups xmmword [edi + 0xa0], xmm0
movupd xmmword [edi + 0x80], xmm1
movapd xmm0, xmmword [0x1006d2d0]
movupd xmmword [edi + 0x90], xmm0
mov dword [edi + 0xb4], ebx
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xb0], 4
mov dword [edi + 0xd0], eax
mov dword [edi + 0xcc], ebx
mov byte [edi + 0xbc], bl
mov dword [edi + 0xe8], eax
mov dword [edi + 0xe4], ebx
mov byte [edi + 0xd4], bl
mov dword [0x1007e3ac], edi
mov ecx, str.GeckoMain
mov edx, dword [ebp + 8]
call fcn.10013770
push str.MOZ_PROFILER_STARTUP
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x1001311a
mov dword [0x1007e3a4], 0
push 0x1007e38c
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esp + 0x40]
cmp eax, 4
je 0x100130ac
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x10013130
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.1002f5c0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
push esi
push eax
push str._I__d__d__profiler_init_n
call fcn.1003e210
add esp, 0xc
jmp 0x10012f0d
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT__CorePS::Exists___
int3
xor ecx, ecx
call fcn.10042740
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_filters.append_kMainThreadName__
int3
mov cl, byte [eax]
cmp cl, 0x4d
jg 0x10013152
test cl, cl
je 0x10013084
cmp cl, 0x30
je 0x1001315c
jmp 0x10013166
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x100130b4
mov eax, 5
jmp 0x10012eee
mov eax, 4
jmp 0x10012eee
cmp cl, 0x6e
je 0x1001315c
cmp cl, 0x4e
jne 0x10013166
cmp byte [eax + 1], 0
je 0x10013084
push str.MOZ_PROFILER_STARTUP_NO_BASE
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x10013084
mov ecx, 3
call fcn.1003e160
test al, al
je 0x100131a7
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
push esi
push eax
push str._I__d__d____MOZ_PROFILER_STARTUP_is_set_n
call fcn.1003e210
add esp, 0xc
push str.MOZ_PROFILER_STARTUP_ENTRIES
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov dword [esp + 4], 0x400000
test eax, eax
je 0x100131cc
mov edi, eax
cmp byte [eax], 0
jne 0x10013294
push str.MOZ_PROFILER_STARTUP_DURATION
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x100131e9
mov edi, eax
cmp byte [eax], 0
jne 0x10013327
push str.MOZ_PROFILER_STARTUP_INTERVAL
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
movsd xmm0, qword [0x1006d330]
movsd qword [esp + 8], xmm0
test eax, eax
je 0x10013214
mov edi, eax
cmp byte [eax], 0
jne 0x100133f7
push str.MOZ_PROFILER_STARTUP_FEATURES_BITFIELD
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10013231
mov ebx, eax
cmp byte [eax], 0
jne 0x100134b2
push str.MOZ_PROFILER_STARTUP_FEATURES
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov edi, 0x4060c
test eax, eax
je 0x10013251
cmp byte [eax], 0
jne 0x10013588
push str.MOZ_PROFILER_STARTUP_FILTERS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x1001326e
mov ebx, eax
cmp byte [eax], 0
jne 0x10013515
lea eax, [esp + 0x30]
mov ecx, dword [esp + 4]
movsd xmm0, qword [esp + 8]
mov edx, edi
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
call fcn.10042b40
add esp, 0xc
jmp 0x10013084
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call ebx
xor ecx, ecx
mov dword [eax], ecx
push 0xa
push ecx
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
mov esi, eax
call ebx
test esi, esi
jle 0x1001363b
cmp dword [eax], 0
jne 0x1001363b
mov eax, sym.mozglue.dll_Ordinal_0
cmp esi, eax
cmovb eax, esi
mov ecx, 0x20000
cmp eax, ecx
cmovbe eax, ecx
mov ecx, 0x20
dec eax
je 0x100132e4
bsr ecx, eax
xor ecx, 0x1f
neg cl
xor eax, eax
inc eax
shl eax, cl
mov dword [esp + 4], eax
mov ecx, 3
call fcn.1003e160
test al, al
je 0x100131cc
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov edi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
push dword [esp + 4]
push edi
push eax
push str._I__d__d____MOZ_PROFILER_STARTUP_ENTRIES___u_n
call fcn.1003e210
add esp, 0x10
jmp 0x100131cc
lea esi, [esp + 0x50]
mov eax, 0xf
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ecx, esi
push edi
call fcn.100019b0
lea ebx, [esp + 0x18]
mov ecx, ebx
mov edx, esi
call fcn.100364c0
sub esp, 0xc
movsd xmm0, qword [ebx]
movsd qword [esp + 4], xmm0
lea ebx, [esp + 0x2c]
mov dword [esp], ebx
call fcn.100429b0
add esp, 0xc
mov ecx, esi
call fcn.1002e4b0
cmp byte [ebx + 8], 0
je 0x1001361d
movsd xmm0, qword [esp + 0x20]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jb 0x1001361d
jbe 0x100133a0
movsd qword [esp + 0x30], xmm0
mov byte [esp + 0x38], 1
mov ecx, 3
call fcn.1003e160
test al, al
je 0x100131e9
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 8], xmm0
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
sub esp, 0x14
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 0xc], xmm0
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], str._I__d__d____MOZ_PROFILER_STARTUP_DURATION___f_n
call fcn.1003e210
add esp, 0x14
jmp 0x100131e9
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
cmp eax, 0xffffffff
je 0x10013608
sub esp, 0xc
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
lea esi, [esp + 0x5c]
mov dword [esp], esi
call fcn.100429b0
add esp, 0xc
cmp byte [esi + 8], 0
je 0x10013625
movsd xmm1, qword [esp + 0x50]
xorpd xmm0, xmm0
movsd qword [esp + 8], xmm1
ucomisd xmm1, xmm0
jbe 0x10013625
movsd xmm0, qword [0x1006d2b0]
ucomisd xmm0, qword [esp + 8]
jb 0x10013625
mov ecx, 3
call fcn.1003e160
test al, al
je 0x10013214
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
sub esp, 0x14
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 0xc], xmm0
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], str._I__d__d____MOZ_PROFILER_STARTUP_INTERVAL___f_n
call fcn.1003e210
add esp, 0x14
jmp 0x10013214
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call esi
xor ecx, ecx
mov dword [eax], ecx
push 0xa
push ecx
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
mov edi, eax
call esi
test edi, edi
je 0x10013643
cmp dword [eax], 0
jne 0x10013643
mov ecx, 3
call fcn.1003e160
test al, al
je 0x10013251
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
push edi
push esi
push eax
push str._I__d__d____MOZ_PROFILER_STARTUP_FEATURES_BITFIELD___d_n
call fcn.1003e210
add esp, 0x10
jmp 0x10013251
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x50]
mov edx, ebx
push eax
call fcn.10042a40
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, 4
je 0x1001353b
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], eax
mov ecx, 3
call fcn.1003e160
test al, al
je 0x1001326e
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
push ebx
push esi
push eax
push str._I__d__d____MOZ_PROFILER_STARTUP_FILTERS___s_n
call fcn.1003e210
add esp, 0x10
jmp 0x1001326e
lea edi, [esp + 0x20]
mov dword [edi], 0
lea esi, [esp + 0x50]
mov ecx, esi
mov edx, eax
push edi
call fcn.10042a40
add esp, 4
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.10042470
mov edi, eax
mov ecx, 3
call fcn.1003e160
test al, al
je 0x100135db
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
push edi
push esi
push eax
push str._I__d__d____MOZ_PROFILER_STARTUP_FEATURES___d_n
call fcn.1003e210
add esp, 0x10
mov eax, dword [esp + 0x50]
cmp eax, 4
je 0x100135ee
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10013251
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x10013251
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT___elements__extentSize__0____elements__extentSize___dynamic_extent__
int3
push edi
push str.__MOZ_PROFILER_STARTUP_DURATION_not_a_valid_float:__s
jmp 0x1001362b
push edi
push str.__MOZ_PROFILER_STARTUP_INTERVAL_not_a_valid_float:__s
call fcn.1003e210
add esp, 8
xor ecx, ecx
inc ecx
call fcn.10042740
push edi
push str.__MOZ_PROFILER_STARTUP_ENTRIES_not_a_valid_integer:__s
jmp 0x1001362b
push ebx
push str.__MOZ_PROFILER_STARTUP_FEATURES_BITFIELD_not_a_valid_integer:__s
jmp 0x1001362b