Function at 0x100113e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x1007e388]
mov ecx, dword [0x1007d328]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x10011472
push 0x1007e388
call fcn.1002ff22
add esp, 4
cmp dword [0x1007e388], 0xffffffff
jne 0x10011472
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 0x10011736
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 0x10011740
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 [0x1007e384], eax
push 0x1007e388
call fcn.1002ff22
add esp, 4
cmp dword [0x1007e384], 3
jge 0x10011644
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [0x1007e400]
jne 0x10011666
cmp dword [0x1007e3ac], 0
je 0x1001167b
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
push 0x1007e38c
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [0x1007e3a4], esi
xor edi, edi
cmp dword [0x1007e3b0], 0
jne 0x10011690
mov ebx, dword [0x1007e3ac]
test ebx, ebx
je 0x100115ba
mov ecx, dword [ebx + 0xe8]
cmp ecx, 0x10
jae 0x10011602
mov dword [ebx + 0xe4], 0
mov dword [ebx + 0xe8], 0xf
mov byte [ebx + 0xd4], 0
mov ecx, dword [ebx + 0xd0]
cmp ecx, 0x10
jae 0x10011623
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 0x100116b8
mov edi, dword [ebx + 0xa4]
mov eax, dword [ebx + 0xa8]
test eax, eax
jg 0x100116c7
cmp edi, 4
jne 0x100116fd
mov esi, dword [ebx + 0x98]
mov eax, dword [ebx + 0x9c]
test eax, eax
jle 0x10011597
lea eax, [esi + eax*4]
mov dword [ebp - 0x10], eax
mov edi, dword [esi]
mov dword [esi], 0
test edi, edi
je 0x10011589
mov ecx, edi
call fcn.10011780
push edi
call sym.mozglue.dll__aligned_free
add esp, 4
add esi, 4
cmp esi, dword [ebp - 0x10]
jb 0x1001156d
mov esi, dword [ebx + 0x98]
cmp esi, 4
mov edi, dword [ebp - 0x14]
je 0x100115a9
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.10011840
push ebx
call sym.mozglue.dll__aligned_free
add esp, 4
xor eax, eax
mov dword [0x1007e3ac], eax
mov ecx, dword [0x1007d328]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [0x1007e3a4], 0
push 0x1007e38c
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
test edi, edi
jne 0x1001170c
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0xd4]
inc ecx
cmp ecx, 0x1000
jae 0x1001174a
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x100114e3
mov eax, dword [ebx + 0xbc]
inc ecx
cmp ecx, 0x1000
jae 0x1001175e
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x1001150d
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.1003e210
add esp, 0xc
jmp 0x1001147f
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 0x100116ac
xor edx, edx
inc edx
mov ecx, eax
call fcn.10043930
call fcn.10043be0
mov edi, eax
jmp 0x100114c6
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x1001153a
lea eax, [edi + eax*4]
mov dword [ebp - 0x10], eax
mov esi, dword [edi]
test esi, esi
je 0x100116ea
lock dec dword [esi + 0x40]
je 0x100116ea
lea ecx, [esi + 0x10]
call fcn.1002e4b0
push esi
call sym.mozglue.dll__aligned_free
add esp, 4
add edi, 4
cmp edi, dword [ebp - 0x10]
jb 0x100116cd
mov edi, dword [ebx + 0xa4]
jmp 0x1001154e
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x10011557
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 0x10011728
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
call sym.mozglue.dll__aligned_free
add esp, 0xc
jmp 0x100115fd
mov eax, 5
jmp 0x10011460
mov eax, 4
jmp 0x10011460
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x10011772
mov eax, ecx
jmp 0x10011615
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x10011772
mov eax, ecx
jmp 0x10011636
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3