Function at 0x1002b860
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
mov eax, 0x2310
call fcn.1006a040
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [esp + 0x2308], eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
push 0x1007b4e0
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [0x1007b4f8], esi
mov ecx, dword [0x1007b500]
mov eax, dword [ecx + 0x9c]
test eax, eax
je 0x1002ba5c
mov edi, dword [ecx + 0x98]
lea ecx, [eax*4 - 4]
mov ebx, dword [edi]
mov esi, dword [ebx + 0x20]
test esi, esi
je 0x1002b8ca
lock inc dword [esi + 0x38]
mov ebx, dword [edi]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], ecx
cmp dword [esi + 0x30], eax
jne 0x1002b989
cmp byte [esi + 0x34], 0
je 0x1002b900
mov dword [esp + 4], ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov dword [esp + 8], ecx
call dword [section..00cfg]
mov ecx, ebx
mov ebx, dword [esp + 4]
call dword [esp + 8]
push 0x2004
push 0
lea eax, [esp + 0x40]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 1
lea eax, [esp + 0x14]
push eax
call sym.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::NowUnfuzzed_bool_
add esp, 8
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
test eax, eax
je 0x1002b981
push 0x2cc
push 0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x2044]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1002b981
lea eax, [esp + 0x203c]
mov dword [esp + 0x203c], 0x10001
push eax
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetThreadContext]
test eax, eax
jne 0x1002b9c0
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov ecx, dword [esp + 0xc]
mov bl, 1
jmp 0x1002b98b
xor ebx, ebx
lock dec dword [esi + 0x38]
jne 0x1002b9a5
mov ecx, esi
call fcn.1001a3d0
push esi
call sym.mozglue.dll__aligned_free
mov ecx, dword [esp + 0x10]
add esp, 4
add edi, 4
test ecx, ecx
setne al
xor bl, 1
add ecx, 0xfffffffc
test al, bl
jne 0x1002b8bb
jmp 0x1002ba5c
mov edx, dword [esp + 0x20f4]
cmp byte [ebp + 0x14], 0
mov eax, dword [esp + 0x20f0]
mov ecx, dword [esp + 0x2100]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
je 0x1002ba1b
lea eax, [esp + 0x38]
mov ecx, ebx
lea edx, [esp + 0x28]
push eax
call fcn.10039f90
add esp, 4
xor ecx, ecx
mov edx, ebx
push dword [ebp + 0x10]
lea eax, [esp + 0x3c]
push eax
call fcn.10039d80
add esp, 8
jmp 0x1002b977
mov dword [esp + 8], edx
xor ecx, ecx
mov edx, ebx
push dword [ebp + 0x10]
lea eax, [esp + 0x3c]
push eax
call fcn.10039d80
add esp, 8
mov eax, dword [ebp + 0xc]
test al, 4
je 0x1002b977
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, dword [ebp + 0x10]
push dword [esp + 8]
call ebx
jmp 0x1002b977
mov dword [0x1007b4f8], 0
push 0x1007b4e0
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 0x2308]
xor ecx, ebp
call fcn.10069260
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret