Function at 0x1001b520
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x100a6430]
mov ecx, dword [0x100a53c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x1001b5b2
push 0x100a6430
call fcn.1004fb5e
add esp, 4
cmp dword [0x100a6430], 0xffffffff
jne 0x1001b5b2
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 0x1001b8bb
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 0x1001b8c5
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 [0x100a642c], eax
push 0x100a6430
call fcn.1004fb5e
add esp, 4
cmp dword [0x100a642c], 3
jge 0x1001b73f
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [0x100a6428]
jne 0x1001b761
cmp dword [0x100a64e0], 0
je 0x1001b776
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
push 0x100a64c0
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [0x100a64d8], esi
xor edi, edi
cmp dword [0x100a64e4], 0
jne 0x1001b78b
mov ebx, dword [0x100a64e0]
test ebx, ebx
je 0x1001b6c8
mov ecx, dword [ebx + 0x68]
cmp ecx, 0x10
jae 0x1001b7b8
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0xf
mov byte [ebx + 0x54], 0
mov ecx, dword [ebx + 0x50]
cmp ecx, 0x10
jae 0x1001b7ea
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0xf
mov byte [ebx + 0x3c], 0
mov eax, dword [ebx + 0x30]
cmp eax, 4
jne 0x1001b81c
mov esi, dword [ebx + 0x24]
mov eax, dword [ebx + 0x28]
test eax, eax
jg 0x1001b82b
cmp esi, 4
jne 0x1001b84d
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
test eax, eax
jle 0x1001b6b0
mov dword [ebp - 0x10], edi
lea eax, [esi + eax*4]
mov dword [ebp - 0x14], eax
mov edi, dword [esi]
mov dword [esi], 0
test edi, edi
je 0x1001b6a2
mov ecx, edi
call fcn.1001b8e0
push edi
call sym.mozglue.dll__aligned_free
add esp, 4
add esi, 4
cmp esi, dword [ebp - 0x14]
jb 0x1001b686
mov esi, dword [ebx + 0x18]
mov edi, dword [ebp - 0x10]
cmp esi, 4
je 0x1001b6bf
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push ebx
call sym.mozglue.dll__aligned_free
add esp, 4
mov dword [0x100a64e0], 0
mov eax, dword [0x100a53c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 8], 0
je 0x1001b85c
mov eax, dword [0x100a53c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0x10], 0
mov eax, dword [0x100a53c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [0x100a64d8], ecx
push 0x100a64c0
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
test edi, edi
jne 0x1001b891
add esp, 8
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_shutdown_n
call fcn.1005c480
add esp, 0xc
jmp 0x1001b5bf
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 0x1001b7ac
cmp byte [eax], 0
je 0x1001b7ac
xor edx, edx
inc edx
mov ecx, eax
call fcn.10060dc0
call fcn.10061100
mov edi, eax
jmp 0x1001b606
mov eax, dword [ebx + 0x54]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
ja 0x1001b7dc
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1001b8d9
mov eax, ecx
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x1001b620
mov eax, dword [ebx + 0x3c]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
ja 0x1001b80e
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1001b8d9
mov eax, ecx
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x1001b63e
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x1001b65c
mov dword [ebp - 0x10], edi
lea edi, [esi + eax*4]
mov ecx, dword [esi]
test ecx, ecx
jne 0x1001b8cf
add esi, 4
cmp esi, edi
jb 0x1001b831
mov esi, dword [ebx + 0x24]
mov edi, dword [ebp - 0x10]
jmp 0x1001b66a
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x1001b673
call fcn.1004f684
mov eax, dword [0x100a53c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0x10], 0
cmp byte [eax + 8], 0
jne 0x1001b707
call fcn.1004f684
jmp 0x1001b707
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 0x1001b8ad
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
call sym.mozglue.dll__aligned_free
add esp, 0xc
jmp 0x1001b73a
mov eax, 5
jmp 0x1001b5a0
mov eax, 4
jmp 0x1001b5a0
call sym.mozglue.dll_public:_void___thiscall_mozilla::baseprofiler::PageInformation::Release_void_const
jmp 0x1001b83b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3