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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [esp + 0x50], eax
xor eax, eax
mov byte [esp + 0x28], al
mov byte [esp + 0x48], al
mov byte [esp + 0x27], al
mov byte [esp + 0x26], al
cmp dword [ecx + 0x3c], 0
je 0x1004c07e
mov edi, dword [edx]
mov esi, dword [edx + 4]
mov esi, dword [esi]
mov dword [edi], esi
mov edx, dword [edx]
mov edi, dword [edx]
mov edx, edi
movzx eax, al
inc eax
shr edx, 7
jne 0x1004bf05
movzx esi, al
add esi, edi
mov dword [esp], ecx
push ebx
call fcn.100354a0
test eax, eax
je 0x1004c109
mov edi, eax
mov eax, dword [eax + 4]
mov ecx, dword [edi + 0x20]
sub ecx, eax
cmp esi, ecx
jbe 0x1004c00b
mov byte [esp + 0x27], 1
mov ecx, dword [esp]
push ebx
call fcn.10035530
test eax, eax
je 0x1004c109
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0x20]
mov dword [edi + 4], ecx
sub ecx, edx
inc dword [edi + 0x24]
mov dword [esp + 8], ecx
cmp ecx, 0xffffffff
je 0x1004c114
mov dword [esp + 4], edx
mov edx, dword [edi + 0x2c]
mov ebx, dword [edi + 0x28]
add ebx, dword [esp + 4]
mov dword [esp + 0xc], ebx
adc edx, 0
mov ecx, dword [esp]
movsd xmm0, qword [ecx + 0x50]
movsd qword [eax + 0x28], xmm0
mov ebx, dword [eax + 0x20]
add dword [ecx + 0x50], ebx
adc dword [ecx + 0x54], 0
mov ebx, esi
sub ebx, dword [esp + 8]
mov dword [eax], ebx
mov dword [eax + 4], ebx
cmp ebx, 0xffffffff
je 0x1004c114
mov ecx, dword [esp + 4]
add edi, ecx
add edi, 0x40
mov ecx, dword [esp + 8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edi
add eax, 0x40
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
add eax, esi
mov dword [esp + 0x3c], edx
adc edx, 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov byte [esp + 0x26], 1
test ecx, ecx
jne 0x1004bff1
test ebx, ebx
jne 0x1004c129
mov byte [esp + 0x48], 1
mov ecx, dword [esp]
add dword [ecx + 0x60], esi
adc dword [ecx + 0x64], 0
lea eax, [ecx + 0x68]
xor esi, esi
inc esi
mov ebx, dword [ebp + 0xc]
jmp 0x1004c078
sete byte [esp + 0x27]
cmp ecx, esi
cmova ecx, esi
lea edx, [ecx + eax]
mov dword [edi + 4], edx
inc dword [edi + 0x24]
cmp ecx, 0xffffffff
je 0x1004c114
lea edx, [edi + eax]
add edx, 0x40
add eax, dword [edi + 0x28]
mov edi, dword [edi + 0x2c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
adc edi, 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], eax
add eax, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], eax
adc edi, 0
mov dword [esp + 0x44], edi
mov byte [esp + 0x48], 1
mov ecx, dword [esp]
add dword [ecx + 0x60], esi
adc dword [ecx + 0x64], 0
lea eax, [ecx + 0x68]
xor esi, esi
inc esi
add dword [eax], esi
adc dword [eax + 4], 0
lea eax, [esp + 0x27]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x26]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], 1
cmp byte [esp + 0x48], 0
je 0x1004c0bc
mov esi, dword [ebp + 8]
mov eax, dword [esi]
lea edi, [esp + 0x28]
push edi
push dword [eax]
call fcn.100355f0
add esp, 8
cmp byte [edi + 0x20], 0
jne 0x1004c0dc
xor ebx, ebx
lea ecx, [esp + 0x10]
call fcn.10048ce0
mov ecx, dword [esp + 0x50]
xor ecx, ebp
call fcn.1002cad0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
or edx, dword [ecx + 4]
jne 0x1004c0f2
movsd xmm0, qword [esp + 0x38]
movsd qword [ecx], xmm0
mov eax, dword [eax + 4]
mov edx, dword [eax + 8]
add edx, dword [eax]
lea ecx, [esp + 0x28]
push edx
push eax
call fcn.10035fd0
mov bl, 1
jmp 0x1004c0be
mov ecx, dword [esp]
lea eax, [ecx + 0x78]
jmp 0x1004c078
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT___elements__extentSize__0____elements__extentSize___dynamic_extent__
int3
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT__mCurrentSpan.IsEmpty____mNextSpanOrEmpty.IsEmpty___
int3