Function at 0x10027df0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [0x1007a2f0]
mov edx, dword fs:[0x2c]
mov eax, dword [0x1007b4d8]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x10027e82
push 0x1007b4d8
call fcn.10069281
add esp, 4
cmp dword [0x1007b4d8], 0xffffffff
jne 0x10027e82
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 0x10028145
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 0x1002814f
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.10069281
add esp, 4
cmp dword [0x1007b4d4], 3
jge 0x10028056
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [sym.mozglue.dll_int_mozilla::baseprofiler::scProfilerMainThreadId]
jne 0x10028078
cmp dword [0x1007b500], 0
je 0x10028089
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
push 0x1007b4e0
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [0x1007b4f8], esi
mov dword [ebp - 0x14], 0
cmp dword [0x1007b504], 0
jne 0x1002809e
mov ebx, dword [0x1007b500]
test ebx, ebx
je 0x10027fc9
mov ecx, dword [ebx + 0xe8]
cmp ecx, 0x10
jae 0x10028014
mov dword [ebx + 0xe4], 0
mov dword [ebx + 0xe8], 0xf
mov byte [ebx + 0xd4], 0
mov ecx, dword [ebx + 0xd0]
cmp ecx, 0x10
jae 0x10028035
mov dword [ebx + 0xcc], 0
mov dword [ebx + 0xd0], 0xf
mov byte [ebx + 0xbc], 0
mov eax, dword [ebx + 0xb0]
cmp eax, 4
jne 0x100280f1
mov eax, dword [ebx + 0xa8]
mov edi, dword [ebx + 0xa4]
test eax, eax
jg 0x10028100
cmp edi, 4
jne 0x10028136
mov eax, dword [ebx + 0x9c]
mov esi, dword [ebx + 0x98]
test eax, eax
jle 0x10027fa9
lea eax, [esi + eax*4]
mov dword [ebp - 0x10], eax
mov edi, dword [esi]
mov dword [esi], 0
test edi, edi
je 0x10027f9b
mov ecx, edi
call fcn.10022d10
push edi
call sym.mozglue.dll__aligned_free
add esp, 4
add esi, 4
cmp esi, dword [ebp - 0x10]
jb 0x10027f7f
mov esi, dword [ebx + 0x98]
cmp esi, 4
je 0x10027fb8
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.10018c30
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]
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x100280c7
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0xd4]
inc ecx
cmp ecx, 0x1000
jae 0x10028159
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x10027ef8
mov eax, dword [ebx + 0xbc]
inc ecx
cmp ecx, 0x1000
jae 0x1002816d
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x10027f22
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.10022e80
add esp, 0xc
jmp 0x10027e8f
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_profiler_is_main_thread___
mov ecx, 0xad0
jmp 0x10028098
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_CorePS::Exists___
mov ecx, 0xad1
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 0x100280ba
xor edx, edx
mov ecx, eax
inc edx
call fcn.10028190
call fcn.10028440
mov dword [ebp - 0x14], eax
jmp 0x10027edb
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x100280e1
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x14]
call sym.mozglue.dll__aligned_free
add esp, 0xc
jmp 0x1002800f
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x10027f4c
lea eax, [edi + eax*4]
mov dword [ebp - 0x10], eax
mov esi, dword [edi]
test esi, esi
je 0x10028123
lock dec dword [esi + 0x40]
je 0x10028123
lea ecx, [esi + 0x10]
call fcn.1001a3d0
push esi
call sym.mozglue.dll__aligned_free
add esp, 4
add edi, 4
cmp edi, dword [ebp - 0x10]
jb 0x10028106
mov edi, dword [ebx + 0xa4]
jmp 0x10027f60
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x10027f69
mov eax, 5
jmp 0x10027e70
mov eax, 4
jmp 0x10027e70
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x10028181
mov eax, ecx
jmp 0x10028027
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x10028181
mov eax, ecx
jmp 0x10028048
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3