Function at 0x1001bb20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x100a5434]
mov ecx, dword [0x100a43c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x1001bbb2
push 0x100a5434
call fcn.1004f9c2
add esp, 4
cmp dword [0x100a5434], 0xffffffff
jne 0x1001bbb2
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 0x1001bebb
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 0x1001bec5
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 [0x100a5430], eax
push 0x100a5434
call fcn.1004f9c2
add esp, 4
cmp dword [0x100a5430], 3
jge 0x1001bd3f
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [0x100a542c]
jne 0x1001bd61
cmp dword [0x100a54e0], 0
je 0x1001bd76
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
push 0x100a54c0
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [0x100a54d8], esi
xor edi, edi
cmp dword [0x100a54e4], 0
jne 0x1001bd8b
mov ebx, dword [0x100a54e0]
test ebx, ebx
je 0x1001bcc8
mov ecx, dword [ebx + 0x68]
cmp ecx, 0x10
jae 0x1001bdb8
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0xf
mov byte [ebx + 0x54], 0
mov ecx, dword [ebx + 0x50]
cmp ecx, 0x10
jae 0x1001bdea
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0xf
mov byte [ebx + 0x3c], 0
mov eax, dword [ebx + 0x30]
cmp eax, 4
jne 0x1001be1c
mov esi, dword [ebx + 0x24]
mov eax, dword [ebx + 0x28]
test eax, eax
jg 0x1001be2b
cmp esi, 4
jne 0x1001be4d
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
test eax, eax
jle 0x1001bcb0
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 0x1001bca2
mov ecx, edi
call fcn.1001bee0
push edi
call sym.mozglue.dll__aligned_free
add esp, 4
add esi, 4
cmp esi, dword [ebp - 0x14]
jb 0x1001bc86
mov esi, dword [ebx + 0x18]
mov edi, dword [ebp - 0x10]
cmp esi, 4
je 0x1001bcbf
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 [0x100a54e0], 0
mov eax, dword [0x100a43c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 8], 0
je 0x1001be5c
mov eax, dword [0x100a43c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0x10], 0
mov eax, dword [0x100a43c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [0x100a54d8], ecx
push 0x100a54c0
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
test edi, edi
jne 0x1001be91
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.1005bb70
add esp, 0xc
jmp 0x1001bbbf
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 0x1001bdac
cmp byte [eax], 0
je 0x1001bdac
xor edx, edx
inc edx
mov ecx, eax
call fcn.10060510
call fcn.10060850
mov edi, eax
jmp 0x1001bc06
mov eax, dword [ebx + 0x54]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
ja 0x1001bddc
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1001bed9
mov eax, ecx
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x1001bc20
mov eax, dword [ebx + 0x3c]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
ja 0x1001be0e
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1001bed9
mov eax, ecx
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x1001bc3e
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x1001bc5c
mov dword [ebp - 0x10], edi
lea edi, [esi + eax*4]
mov ecx, dword [esi]
test ecx, ecx
jne 0x1001becf
add esi, 4
cmp esi, edi
jb 0x1001be31
mov esi, dword [ebx + 0x24]
mov edi, dword [ebp - 0x10]
jmp 0x1001bc6a
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x1001bc73
call fcn.1004eb54
mov eax, dword [0x100a43c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0x10], 0
cmp byte [eax + 8], 0
jne 0x1001bd07
call fcn.1004eb54
jmp 0x1001bd07
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 0x1001bead
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
call sym.mozglue.dll__aligned_free
add esp, 0xc
jmp 0x1001bd3a
mov eax, 5
jmp 0x1001bba0
mov eax, 4
jmp 0x1001bba0
call sym.mozglue.dll_public:_void___thiscall_mozilla::baseprofiler::PageInformation::Release_void_const
jmp 0x1001be3b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3