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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe0
mov dword [esp + 8], edx
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [esp + 0xd8], eax
mov esi, dword [ecx]
cmp byte [esi + 0x38], 0
je 0x1003989e
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov edi, eax
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [esi + 0x30], edi
mov edi, dword [esi + 0x3c]
test edi, edi
je 0x10039a2c
mov eax, dword [edi]
mov ebx, dword [eax + 0x2c]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
lea ebx, [esp + 0x34]
mov ecx, ebx
mov edx, eax
mov dword [esp + 0xc], esi
push dword [esi + 0x44]
call fcn.10039da0
add esp, 4
cmp dword [ebx], 0
je 0x10039a17
lea esi, [esp + 0x34]
mov eax, dword [esp + 8]
add eax, 4
mov dword [esp + 4], eax
mov ecx, esi
call fcn.10039e30
test eax, eax
je 0x10039a17
mov ebx, edi
mov ecx, esi
lea edi, [esp + 0x10]
mov edx, edi
push eax
call fcn.10039ed0
add esp, 4
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x18]
je 0x10039a15
mov ecx, edi
push 1
lea eax, [esp + 0x44]
push eax
call fcn.10034f90
cmp byte [esp + 0x40], 0x1a
mov edi, ebx
jne 0x100399ff
mov esi, dword [ebp + 8]
test esi, esi
sete bl
mov eax, 0
mov dword [esp + 0x40], eax
xorpd xmm0, xmm0
movupd xmmword [esp + 0x48], xmm0
mov byte [esp + 0x58], al
mov ecx, 1
mov word [esp + 0x59], cx
movupd xmmword [esp + 0x60], xmm0
mov byte [esp + 0x70], al
mov word [esp + 0x71], cx
mov byte [esp + 0x78], al
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.1003a170
add esp, 0xc
cmp dword [esp + 0x40], esi
sete al
or al, bl
cmp al, 1
je 0x10039a59
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x84], 0
test ebx, ebx
je 0x100399f7
mov ecx, ebx
mov byte [esp + 3], al
call fcn.1000fd90
push ebx
call sym.mozglue.dll__aligned_free
mov al, byte [esp + 7]
add esp, 4
test al, al
lea esi, [esp + 0x34]
jne 0x10039a08
lea ecx, [esp + 0x10]
call fcn.1003a520
cmp dword [esp + 0x34], 0
jne 0x100398e9
jmp 0x10039a17
mov edi, ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
call esi
mov esi, dword [esp + 0xc]
cmp byte [esi + 0x38], 0
je 0x10039a43
mov dword [esi + 0x30], 0
add esi, 0x18
push esi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 0xd8]
xor ecx, ebp
call fcn.1002cad0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esp + 3], al
mov ecx, dword [esp + 4]
mov edx, 0x1006b228
push 0
push 0x1006b248
call fcn.100119c0
add esp, 8
lea esi, [esp + 0x10]
push esi
lea eax, [esp + 0xb4]
push eax
call fcn.10034d40
add esp, 8
mov edx, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0x98], ebx
test edx, edx
setne al
mov ecx, 1
cmovne ecx, edx
mov dword [esp + 0x9c], ecx
cmp ebx, 0xffffffff
setne cl
or ebx, edx
je 0x10039ac5
and cl, al
je 0x10039d76
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x10039d22
lea eax, [esp + 0x98]
push eax
call sym.mozglue.dll_private:_unsigned_int___thiscall_mozilla::baseprofiler::UniqueJSONStrings::GetOrAddIndex_class_mozilla::Span_char_const____1__const__
mov ebx, dword [esp + 4]
mov ecx, ebx
mov edx, 0x1006b228
push 0
push eax
call fcn.10005db0
add esp, 8
cmp dword [esp + 0xb8], 2
jne 0x10039b10
mov eax, dword [esp + 0xb0]
test eax, eax
jne 0x10039d8b
lea ecx, [esp + 0x48]
call fcn.1003a1b0
mov ecx, ebx
mov edx, 0x1006b228
call fcn.10037070
lea ecx, [esp + 0x60]
call fcn.1003a1b0
mov ecx, ebx
mov edx, 0x1006b228
call fcn.10037070
movzx eax, byte [esp + 0x78]
mov ecx, ebx
mov edx, 0x1006b228
push 0
push eax
call fcn.10005db0
add esp, 8
push esi
call fcn.10034f30
add esp, 4
cmp eax, 0x37
jae 0x10039d37
lea eax, [eax + eax*2]
mov ecx, ebx
mov edx, 0x1006b228
push 0
push dword [eax*4 + 0x1006af80]
call fcn.10005db0
add esp, 8
mov ecx, esi
push 1
lea eax, [esp + 0xb4]
push eax
call fcn.10034f90
movzx esi, byte [esp + 0xb0]
test esi, esi
je 0x10039c17
mov ecx, ebx
mov edx, 0x1006b228
push 1
push 0x1006b220
call fcn.100119c0
add esp, 8
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov edx, eax
or edx, ecx
jne 0x10039c2c
mov ebx, dword [esp + 0x88]
test ebx, ebx
jne 0x10039c76
mov eax, dword [0x1007b518]
cmp eax, esi
jb 0x10039d4c
lea eax, [esi + esi*2]
mov ecx, dword [eax*4 + 0x1007a910]
test ecx, ecx
je 0x10039d61
call dword [section..00cfg]
push dword [esp + 8]
lea eax, [esp + 0x14]
push eax
call ecx
add esp, 8
mov ebx, dword [esp + 4]
mov ecx, ebx
mov edx, 0x1006b230
call fcn.100144d0
mov ecx, ebx
mov edx, 0x1006b270
call fcn.100144d0
mov al, byte [esp + 3]
jmp 0x100399c9
movd xmm1, eax
movd xmm0, ecx
punpckldq xmm1, xmm0
punpckldq xmm1, xmmword [0x1006ae90]
subpd xmm1, xmmword [0x1006aea0]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
lea edx, [esp + 0xb0]
mov dword [edx], 0xe
mov dword [edx + 4], str.innerWindowID
mov ecx, dword [esp + 4]
call fcn.10037070
jmp 0x10039bc5
lea edx, [esp + 0xb0]
mov dword [edx], 6
mov dword [edx + 4], 0x1006d67d
xor eax, eax
mov ecx, dword [esp + 4]
push eax
push 0x1006b220
call fcn.100119c0
add esp, 8
lea eax, [esp + 0xb0]
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea ecx, [esp + 0xb0]
push 0x10071325
call fcn.10002500
lea eax, [esp + 0xb0]
xor ecx, ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
xor ecx, ecx
mov ebx, eax
push ecx
lea eax, [esp + 0x9c]
push eax
call sym.mozglue.dll_public:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::ProcessCreation_bool__
add esp, 8
mov ecx, ebx
mov edx, dword [esp + 8]
push dword [ebp + 0xc]
lea eax, [esp + 0x9c]
push eax
call fcn.1003a2d0
add esp, 8
mov ecx, ebx
call fcn.1003a4e0
mov ecx, dword [esp + 4]
mov edx, 0x1006b230
call fcn.100144d0
jmp 0x10039bd4
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_mUniqueStrings_
int3
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_categoryPairIndex___uint32_t_ProfilingCategoryPair::LAST__
int3
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_
int3
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_deserializer_
int3
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT___elements__extentSize__0____elements__extentSize___dynamic_extent__
int3
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x10039b10