Function at 0x100103d0
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 [0x1007a00c]
xor eax, ebp
mov dword [esp + 0x68], eax
mov eax, dword [0x1007b4d8]
mov ecx, dword [0x1007a2f0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x10010470
push 0x1007b4d8
call fcn.1002d432
add esp, 4
cmp dword [0x1007b4d8], 0xffffffff
jne 0x10010470
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 0x100106a5
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 0x100106af
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 [0x1007b4d4], eax
push 0x1007b4d8
call fcn.1002d432
add esp, 4
cmp dword [0x1007b4d4], 3
jge 0x1001062e
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [sym.mozglue.dll_int_mozilla::baseprofiler::scProfilerMainThreadId], eax
cmp dword [0x1007b500], 0
jne 0x10010650
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 0x10010665
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.10010bc0
test al, al
je 0x1001066c
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 0x1007b4e0
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [0x1007b4f8], 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 [0x1006ad30]
movups xmmword [edi + 0x64], xmm0
mov dword [edi + 0x74], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x78], 1
movaps xmm0, xmmword [0x1006ad20]
movups xmmword [edi + 0xa0], xmm0
movupd xmmword [edi + 0x80], xmm1
movapd xmm0, xmmword [0x1006aef0]
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 [0x1007b500], edi
mov ecx, str.GeckoMain
mov edx, dword [ebp + 8]
call fcn.10010ce0
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 0x10010681
mov dword [0x1007b4f8], 0
push 0x1007b4e0
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esp + 0x40]
cmp eax, 4
je 0x10010613
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 0x10010697
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.1002cad0
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.1003e700
add esp, 0xc
jmp 0x1001047d
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT__CorePS::Exists___
int3
xor ecx, ecx
call fcn.10042cb0
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_filters.append_kMainThreadName__
int3
mov cl, byte [eax]
cmp cl, 0x4d
jg 0x100106b9
test cl, cl
je 0x100105eb
cmp cl, 0x30
je 0x100106c3
jmp 0x100106cd
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x1001061b
mov eax, 5
jmp 0x1001045e
mov eax, 4
jmp 0x1001045e
cmp cl, 0x6e
je 0x100106c3
cmp cl, 0x4e
jne 0x100106cd
cmp byte [eax + 1], 0
je 0x100105eb
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 0x100105eb
mov ecx, 3
call fcn.1003e650
test al, al
je 0x1001070e
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.1003e700
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 0x10010733
mov edi, eax
cmp byte [eax], 0
jne 0x100107fb
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 0x10010750
mov edi, eax
cmp byte [eax], 0
jne 0x1001088e
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 [0x1006af30]
movsd qword [esp + 8], xmm0
test eax, eax
je 0x1001077b
mov edi, eax
cmp byte [eax], 0
jne 0x1001095e
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 0x10010798
mov ebx, eax
cmp byte [eax], 0
jne 0x10010a19
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, 0x80a0c
test eax, eax
je 0x100107b8
cmp byte [eax], 0
jne 0x10010aef
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 0x100107d5
mov ebx, eax
cmp byte [eax], 0
jne 0x10010a7c
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.100430b0
add esp, 0xc
jmp 0x100105eb
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 0x10010ba2
cmp dword [eax], 0
jne 0x10010ba2
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 0x1001084b
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.1003e650
test al, al
je 0x10010733
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.1003e700
add esp, 0x10
jmp 0x10010733
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.10002500
lea ebx, [esp + 0x18]
mov ecx, ebx
mov edx, esi
call fcn.10037150
sub esp, 0xc
movsd xmm0, qword [ebx]
movsd qword [esp + 4], xmm0
lea ebx, [esp + 0x2c]
mov dword [esp], ebx
call fcn.10042f20
add esp, 0xc
mov ecx, esi
call fcn.1002b790
cmp byte [ebx + 8], 0
je 0x10010b84
movsd xmm0, qword [esp + 0x20]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jb 0x10010b84
jbe 0x10010907
movsd qword [esp + 0x30], xmm0
mov byte [esp + 0x38], 1
mov ecx, 3
call fcn.1003e650
test al, al
je 0x10010750
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.1003e700
add esp, 0x14
jmp 0x10010750
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 0x10010b6f
sub esp, 0xc
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
lea esi, [esp + 0x5c]
mov dword [esp], esi
call fcn.10042f20
add esp, 0xc
cmp byte [esi + 8], 0
je 0x10010b8c
movsd xmm1, qword [esp + 0x50]
xorpd xmm0, xmm0
movsd qword [esp + 8], xmm1
ucomisd xmm1, xmm0
jbe 0x10010b8c
movsd xmm0, qword [0x1006aed0]
ucomisd xmm0, qword [esp + 8]
jb 0x10010b8c
mov ecx, 3
call fcn.1003e650
test al, al
je 0x1001077b
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.1003e700
add esp, 0x14
jmp 0x1001077b
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 0x10010baa
cmp dword [eax], 0
jne 0x10010baa
mov ecx, 3
call fcn.1003e650
test al, al
je 0x100107b8
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.1003e700
add esp, 0x10
jmp 0x100107b8
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x50]
mov edx, ebx
push eax
call fcn.10042fb0
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, 4
je 0x10010aa2
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.1003e650
test al, al
je 0x100107d5
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.1003e700
add esp, 0x10
jmp 0x100107d5
lea edi, [esp + 0x20]
mov dword [edi], 0
lea esi, [esp + 0x50]
mov ecx, esi
mov edx, eax
push edi
call fcn.10042fb0
add esp, 4
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.100429e0
mov edi, eax
mov ecx, 3
call fcn.1003e650
test al, al
je 0x10010b42
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.1003e700
add esp, 0x10
mov eax, dword [esp + 0x50]
cmp eax, 4
je 0x10010b55
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 0x100107b8
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x100107b8
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 0x10010b92
push edi
push str.__MOZ_PROFILER_STARTUP_INTERVAL_not_a_valid_float:__s
call fcn.1003e700
add esp, 8
xor ecx, ecx
inc ecx
call fcn.10042cb0
push edi
push str.__MOZ_PROFILER_STARTUP_ENTRIES_not_a_valid_integer:__s
jmp 0x10010b92
push ebx
push str.__MOZ_PROFILER_STARTUP_FEATURES_BITFIELD_not_a_valid_integer:__s
jmp 0x10010b92