Function at 0x10020490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe8
mov eax, dword [0x1007a00c]
mov edi, edx
mov esi, ecx
xor eax, ebp
mov dword [esp + 0xe0], eax
cmp byte [ecx + 0x38], 0
je 0x100204cc
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov ebx, eax
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [esi + 0x30], ebx
mov ebx, dword [esi + 0x3c]
test ebx, ebx
je 0x10020511
mov eax, dword [ebx]
mov dword [esp + 0x14], edi
mov edi, dword [eax + 0x2c]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
lea edi, [esp + 0x3c]
mov edx, eax
mov ecx, edi
push dword [esi + 0x44]
call fcn.10035ae0
add esp, 4
cmp dword [edi], 0
jne 0x1002053e
mov eax, dword [ebx]
mov edi, dword [eax + 0x30]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
cmp byte [esi + 0x38], 0
je 0x10020528
mov dword [esi + 0x30], 0
add esi, 0x18
push esi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 0xe0]
xor ecx, ebp
call fcn.10069260
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [esp + 0x3c]
mov ecx, edi
call fcn.1002e2e0
test eax, eax
je 0x10020500
mov ecx, edi
lea edx, [esp + 0x18]
push eax
call fcn.1002e040
add esp, 4
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x20]
je 0x10020500
lea ecx, [esp + 0x18]
push 1
lea eax, [esp + 0x4c]
push eax
call fcn.1001b220
cmp byte [esp + 0x48], 0x1a
jne 0x1002066f
mov ecx, dword [esp + 0x14]
mov dword [esp], 0
lea edx, [esp + 0x48]
mov eax, dword [ecx]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov eax, dword [eax]
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], ecx
mov byte [esp + 0x60], cl
mov dword [esp + 4], eax
mov eax, 1
mov word [esp + 0x61], ax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], ecx
mov byte [esp + 0x78], cl
mov word [esp + 0x79], ax
lea eax, [esp + 0x98]
mov byte [esp + 0x80], cl
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x98], ecx
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.1003aea0
mov eax, dword [esp + 0x10]
add esp, 0xc
test eax, eax
je 0x10020688
cmp dword [esp + 0x48], eax
je 0x10020688
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x8c], 0
test eax, eax
je 0x10020669
mov ecx, eax
mov dword [esp + 4], eax
call fcn.10018c30
push dword [esp + 4]
call sym.mozglue.dll__aligned_free
add esp, 4
cmp byte [esp], 0
jne 0x10020678
lea ecx, [esp + 0x18]
call fcn.1002e5d0
cmp dword [esp + 0x3c], 0
je 0x10020500
jmp 0x10020542
mov eax, dword [esp + 8]
mov edx, 0x1006bff8
lea ecx, [eax + 4]
mov dword [esp], ecx
push 0
push 0x1006c018
call fcn.1002c060
add esp, 8
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xbc]
push eax
call fcn.1001b190
add esp, 8
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xbc]
mov ecx, 1
test edx, edx
mov dword [esp + 4], edx
mov dword [esp + 0xa0], eax
cmove edx, ecx
mov ecx, eax
test eax, eax
mov dword [esp + 0xa4], edx
jne 0x100206f2
cmp dword [esp + 4], 0
je 0x10020706
cmp ecx, 0xffffffff
je 0x100209be
cmp dword [esp + 4], 0
je 0x100209be
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x100209cf
lea eax, [esp + 0xa0]
push eax
call sym.mozglue.dll_private:_unsigned_int___thiscall_mozilla::baseprofiler::UniqueJSONStrings::GetOrAddIndex_class_mozilla::Span_char_const____1__const__
mov ecx, dword [esp]
mov edx, 0x1006bff8
push 0
push eax
call fcn.1002ce40
add esp, 8
cmp dword [esp + 0xc0], 2
je 0x100209a1
lea ecx, [esp + 0x50]
call fcn.1003b820
mov ecx, dword [esp]
mov edx, 0x1006bff8
call fcn.1002cf20
lea ecx, [esp + 0x68]
call fcn.1003b820
mov ecx, dword [esp]
mov edx, 0x1006bff8
call fcn.1002cf20
movzx eax, byte [esp + 0x80]
mov ecx, dword [esp]
mov edx, 0x1006bff8
push 0
push eax
call fcn.1002ce40
add esp, 8
lea eax, [esp + 0x18]
push eax
call fcn.1001b320
add esp, 4
cmp eax, 0x37
jae 0x100209e0
mov ecx, dword [esp]
lea eax, [eax + eax*2]
mov edx, 0x1006bff8
push 0
push dword [eax*4 + 0x1006bd50]
call fcn.1002ce40
add esp, 8
lea ecx, [esp + 0x18]
push 1
lea eax, [esp + 0xbc]
push eax
call fcn.1001b220
movzx ecx, byte [esp + 0xb8]
test ecx, ecx
mov eax, ecx
mov dword [esp + 4], ecx
je 0x10020869
mov ecx, dword [esp]
mov edx, 0x1006bff8
push 1
push 0x1006bff0
call fcn.1002c060
add esp, 8
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov edx, eax
or edx, ecx
jne 0x10020880
mov eax, dword [esp + 0x90]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x100208d2
mov eax, dword [0x1007b518]
cmp eax, dword [esp + 4]
jb 0x100209f1
mov eax, dword [esp + 4]
lea eax, [eax + eax*2]
mov ecx, dword [eax*4 + 0x1007a910]
test ecx, ecx
je 0x10020a02
call dword [section..00cfg]
push dword [esp + 8]
lea eax, [esp + 0x1c]
push eax
call ecx
add esp, 8
mov ecx, dword [esp]
mov edx, 0x1006c000
call fcn.1002c330
mov ecx, dword [esp]
mov edx, 0x1006c040
call fcn.1002c330
mov al, 1
mov dword [esp], eax
jmp 0x1002063c
movd xmm0, ecx
movd xmm1, eax
mov ecx, dword [esp]
lea edx, [esp + 0xb8]
mov dword [esp + 0xb8], 0xe
mov dword [esp + 0xbc], str.innerWindowID
punpckldq xmm1, xmm0
punpckldq xmm1, xmmword [0x1006bcc0]
subpd xmm1, xmmword [0x1006bcd0]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
call fcn.1002cf20
jmp 0x10020810
mov ecx, dword [esp]
xor eax, eax
mov dword [esp + 0xb8], 6
mov dword [esp + 0xbc], 0x1006e389
lea edx, [esp + 0xb8]
push eax
push 0x1006bff0
call fcn.1002c060
add esp, 8
xor eax, eax
mov dword [esp + 0xcc], 0xf
lea ecx, [esp + 0xb8]
mov dword [esp + 0xc8], eax
mov byte [esp + 0xb8], 0
push 0x10072015
call fcn.1001a420
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], eax
xor eax, eax
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xdc], ecx
push eax
lea eax, [esp + 0xa4]
push eax
call sym.mozglue.dll_public:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::ProcessCreation_bool__
add esp, 8
mov edx, dword [esp + 8]
lea ecx, [esp + 0xb8]
push dword [esp + 0x10]
lea eax, [esp + 0xa4]
push eax
call fcn.10022370
add esp, 8
lea ecx, [esp + 0xb8]
call fcn.10022330
mov ecx, dword [esp]
mov edx, 0x1006c000
call fcn.1002c330
jmp 0x10020823
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x10020743
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x10020743
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT___elements__extentSize__0____elements__extentSize___dynamic_extent__
mov ecx, 0x321
jmp 0x10020a11
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_mUniqueStrings_
mov ecx, 0x17d
jmp 0x10020a11
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_categoryPairIndex___uint32_t_ProfilingCategoryPair::LAST__
mov ecx, 0x42
jmp 0x10020a11
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_aTag___0__static_cast_DeserializerTagAtomic__aTag____static_cast_DeserializerTagAtomic__sDeserializerCount____Out_of_range_tag_value_
mov ecx, 0x44
jmp 0x10020a11
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_deserializer_
mov ecx, 0x16d
int3