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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov ebx, edx
mov edi, ecx
mov eax, dword [0x1009a00c]
xor eax, ebp
mov dword [esp + 0x60], eax
xor eax, eax
mov byte [esp + 0x38], al
mov byte [esp + 0x58], al
mov byte [esp + 0x37], al
mov byte [esp + 0x36], al
cmp dword [ecx + 0x3c], 0
je 0x1005b6e8
mov dword [esp], ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov esi, dword [esi]
mov dword [edx], esi
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov edx, ecx
mov esi, ecx
movzx eax, al
inc eax
shr esi, 7
cmp edx, 0x7f
mov edx, esi
ja 0x1005b5ae
movzx esi, al
add esi, ecx
mov ecx, edi
push dword [ebp + 0x10]
call fcn.1005b7f0
test eax, eax
je 0x1005b77b
mov ebx, eax
mov eax, dword [eax + 0x38]
mov ecx, eax
sub ecx, dword [ebx + 4]
cmp esi, ecx
jbe 0x1005b677
cmp esi, eax
jae 0x1005b77b
mov byte [esp + 0x37], 1
mov ecx, edi
push dword [ebp + 0x10]
call fcn.1005b8e0
test eax, eax
je 0x1005b77b
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x38]
sub eax, dword [ebx + 4]
lea edx, [esp + 8]
mov ecx, ebx
push eax
mov ebx, edx
push edx
call fcn.1005b880
movsd xmm0, qword [edi + 0x50]
mov ecx, dword [esp + 4]
movsd qword [ecx + 0x40], xmm0
mov eax, dword [ecx + 0x38]
add dword [edi + 0x50], eax
adc dword [edi + 0x54], 0
mov eax, esi
sub eax, dword [ebx]
lea edx, [esp + 0x2c]
push eax
push edx
call fcn.1005b9a0
lea ebx, [esp + 0x10]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
add edx, esi
adc ecx, 0
mov byte [esp + 0x36], 1
lea eax, [esp + 0x20]
mov dword [eax + 4], ecx
mov dword [eax], edx
lea ecx, [esp + 0x38]
push eax
push ebx
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.1005ba20
jmp 0x1005b6d6
sete byte [esp + 0x37]
lea eax, [esp + 8]
mov ecx, ebx
push esi
push eax
call fcn.1005b880
cmp byte [esp + 0x58], 0
jne 0x1005b787
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], ecx
add ecx, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
adc eax, 0
mov dword [esp + 0x54], eax
mov byte [esp + 0x58], 1
add dword [edi + 0x60], esi
adc dword [edi + 0x64], 0
add dword [edi + 0x68], 1
adc dword [edi + 0x6c], 0
mov ebx, dword [esp]
lea eax, [esp + 0x37]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
lea eax, [esp + 0x36]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 1
xor eax, eax
cmp byte [esp + 0x58], 0
mov ecx, 0
je 0x1005b758
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
lea edi, [esp + 0x38]
push edi
push dword [eax]
call fcn.1005c0d0
add esp, 8
xor eax, eax
cmp byte [edi + 0x20], 0
mov ecx, 0
je 0x1005b758
mov eax, dword [esi + 4]
lea esi, [esp + 0x38]
mov ecx, esi
push dword [eax + 4]
push dword [eax]
call fcn.1005c240
cmp byte [esi + 0x20], 0
je 0x1005b79c
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
lea ecx, [esp + 8]
call fcn.1005c310
mov ecx, dword [esp + 0x60]
xor ecx, ebp
call fcn.100468e0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
add dword [edi + 0x78], esi
adc dword [edi + 0x7c], 0
jmp 0x1005b6e5
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT__isSome___
int3
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_isSome___
int3