Function at 0x1000f930
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
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 0x1000f9c2
push 0x1007b4d8
call fcn.1002d432
add esp, 4
cmp dword [0x1007b4d8], 0xffffffff
jne 0x1000f9c2
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 0x1000fc86
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 0x1000fc90
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 0x1000fb94
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [sym.mozglue.dll_int_mozilla::baseprofiler::scProfilerMainThreadId]
jne 0x1000fbb6
cmp dword [0x1007b500], 0
je 0x1000fbcb
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
push 0x1007b4e0
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [0x1007b4f8], esi
xor edi, edi
cmp dword [0x1007b504], 0
jne 0x1000fbe0
mov ebx, dword [0x1007b500]
test ebx, ebx
je 0x1000fb0a
mov ecx, dword [ebx + 0xe8]
cmp ecx, 0x10
jae 0x1000fb52
mov dword [ebx + 0xe4], 0
mov dword [ebx + 0xe8], 0xf
mov byte [ebx + 0xd4], 0
mov ecx, dword [ebx + 0xd0]
cmp ecx, 0x10
jae 0x1000fb73
mov dword [ebp - 0x14], edi
mov dword [ebx + 0xcc], 0
mov dword [ebx + 0xd0], 0xf
mov byte [ebx + 0xbc], 0
mov eax, dword [ebx + 0xb0]
cmp eax, 4
jne 0x1000fc08
mov edi, dword [ebx + 0xa4]
mov eax, dword [ebx + 0xa8]
test eax, eax
jg 0x1000fc17
cmp edi, 4
jne 0x1000fc4d
mov esi, dword [ebx + 0x98]
mov eax, dword [ebx + 0x9c]
test eax, eax
jle 0x1000fae7
lea eax, [esi + eax*4]
mov dword [ebp - 0x10], eax
mov edi, dword [esi]
mov dword [esi], 0
test edi, edi
je 0x1000fad9
mov ecx, edi
call fcn.1000fcd0
push edi
call sym.mozglue.dll__aligned_free
add esp, 4
add esi, 4
cmp esi, dword [ebp - 0x10]
jb 0x1000fabd
mov esi, dword [ebx + 0x98]
cmp esi, 4
mov edi, dword [ebp - 0x14]
je 0x1000faf9
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [ebx + 0x18]
call fcn.1000fd90
push ebx
call sym.mozglue.dll__aligned_free
add esp, 4
xor eax, eax
mov dword [0x1007b500], eax
mov ecx, dword [0x1007a2f0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [0x1007b4f8], 0
push 0x1007b4e0
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
test edi, edi
jne 0x1000fc5c
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0xd4]
inc ecx
cmp ecx, 0x1000
jae 0x1000fc9a
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x1000fa33
mov eax, dword [ebx + 0xbc]
inc ecx
cmp ecx, 0x1000
jae 0x1000fcae
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x1000fa5d
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_shutdown_n
call fcn.1003e700
add esp, 0xc
jmp 0x1000f9cf
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_profiler_is_main_thread___
int3
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_CorePS::Exists___
int3
push str.MOZ_PROFILER_SHUTDOWN
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x1000fbfc
xor edx, edx
inc edx
mov ecx, eax
call fcn.10043e00
call fcn.100440b0
mov edi, eax
jmp 0x1000fa16
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x1000fa8a
lea eax, [edi + eax*4]
mov dword [ebp - 0x10], eax
mov esi, dword [edi]
test esi, esi
je 0x1000fc3a
lock dec dword [esi + 0x40]
je 0x1000fc3a
lea ecx, [esi + 0x10]
call fcn.1002b790
push esi
call sym.mozglue.dll__aligned_free
add esp, 4
add edi, 4
cmp edi, dword [ebp - 0x10]
jb 0x1000fc1d
mov edi, dword [ebx + 0xa4]
jmp 0x1000fa9e
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x1000faa7
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov esi, edi
mov eax, dword [edi + 0xc]
cmp eax, 0xffffffff
je 0x1000fc78
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
call sym.mozglue.dll__aligned_free
add esp, 0xc
jmp 0x1000fb4d
mov eax, 5
jmp 0x1000f9b0
mov eax, 4
jmp 0x1000f9b0
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1000fcc2
mov eax, ecx
jmp 0x1000fb65
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1000fcc2
mov eax, ecx
jmp 0x1000fb86
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3