Function at 0x10012dc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x1009b42c]
mov ecx, dword [0x1009a3c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x10012e52
push 0x1009b42c
call fcn.10046148
add esp, 4
cmp dword [0x1009b42c], 0xffffffff
jne 0x10012e52
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 0x100130ea
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 0x100130f4
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 [0x1009b428], eax
push 0x1009b42c
call fcn.100460fe
add esp, 4
cmp dword [0x1009b428], 3
jge 0x10012ff6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x1009b424]
jne 0x10013018
cmp dword [0x1009b4d8], 0
je 0x1001302d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
push 0x1009b4b8
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [0x1009b4d0], esi
xor edi, edi
cmp dword [0x1009b4dc], 0
jne 0x10013042
mov ebx, dword [0x1009b4d8]
test ebx, ebx
je 0x10012f68
mov ecx, dword [ebx + 0x68]
cmp ecx, 0x10
jae 0x10012fb0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0xf
mov byte [ebx + 0x54], 0
mov ecx, dword [ebx + 0x50]
cmp ecx, 0x10
jae 0x10012fd3
mov dword [ebp - 0x14], edi
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0xf
mov byte [ebx + 0x3c], 0
mov eax, dword [ebx + 0x30]
cmp eax, 4
jne 0x1001306f
mov edi, dword [ebx + 0x24]
mov eax, dword [ebx + 0x28]
test eax, eax
jg 0x1001307e
cmp edi, 4
jne 0x100130b1
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
test eax, eax
jle 0x10012f4d
lea eax, [esi + eax*4]
mov dword [ebp - 0x10], eax
mov edi, dword [esi]
mov dword [esi], 0
test edi, edi
je 0x10012f42
mov ecx, edi
call fcn.10013130
push edi
call sym.mozglue.dll__aligned_free
add esp, 4
add esi, 4
cmp esi, dword [ebp - 0x10]
jb 0x10012f26
mov esi, dword [ebx + 0x18]
cmp esi, 4
mov edi, dword [ebp - 0x14]
je 0x10012f5f
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
xor eax, eax
mov dword [0x1009b4d8], eax
mov ecx, dword [0x1009a3c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [0x1009b4d0], 0
push 0x1009b4b8
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
jne 0x100130c0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x54]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
jbe 0x100130fe
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x10012ec0
mov eax, dword [ebx + 0x3c]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
jbe 0x10013112
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x10012ede
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.10053340
add esp, 0xc
jmp 0x10012e5f
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 0x10013063
cmp byte [eax], 0
je 0x10013063
xor edx, edx
inc edx
mov ecx, eax
call fcn.10057a80
call fcn.10057d80
mov edi, eax
jmp 0x10012ea6
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x10012eff
lea eax, [edi + eax*4]
mov dword [ebp - 0x10], eax
mov esi, dword [edi]
test esi, esi
je 0x100130a1
lock dec dword [esi + 0x40]
je 0x100130a1
lea ecx, [esi + 0x10]
call fcn.100326c0
push esi
call sym.mozglue.dll__aligned_free
add esp, 4
add edi, 4
cmp edi, dword [ebp - 0x10]
jb 0x10013084
mov edi, dword [ebx + 0x24]
jmp 0x10012f0d
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x10012f16
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 0x100130dc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sym.mozglue.dll__aligned_free
add esp, 0xc
jmp 0x10012fab
mov eax, 5
jmp 0x10012e40
mov eax, 4
jmp 0x10012e40
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x10013126
mov eax, ecx
jmp 0x10012fc5
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x10013126
mov eax, ecx
jmp 0x10012fe8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3