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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, eax
mov ebx, 0x9c
mov eax, ebp
call fcn.004d1410
mov esi, eax
xor ebx, ebx
push 0x9c
cmp esi, ebx
jne 0x501fd9
push 1
push str.calloc___d_x__d_bytes__failed
push 1
push 0x7a
push str..mupdf_source_fitzmemory.c
push ebp
call fcn.004b35a0
push ebx
push esi
call fcn.0065b340
add esp, 0xc
lea ebp, [esi + 4]
mov dword [esi], 1
mov edx, ebp
cmp edi, ebx
je 0x50201e
mov eax, edi
mov edi, 0x1f
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
cmp cl, bl
je 0x50200f
dec edi
jne 0x502000
jmp 0x502013
cmp edi, ebx
jne 0x502047
mov byte [edx], bl
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x502015
jmp 0x502047
mov ecx, str._null_
mov edi, 0x1f
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
cmp al, bl
je 0x502037
dec edi
jne 0x502028
jmp 0x50203b
cmp edi, ebx
jne 0x502047
mov byte [edx], bl
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x502040
fldz
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov eax, dword [0x7b7da4]
mov dword [esi + 0x40], eax
mov ecx, dword [0x7b7da8]
mov dword [esi + 0x44], ecx
mov edx, dword [0x7b7dac]
mov dword [esi + 0x48], edx
mov eax, dword [0x7b7db0]
mov dword [esi + 0x4c], eax
mov ecx, dword [0x7b7db4]
mov eax, dword [esp + 0x18]
mov dword [esi + 0x50], ecx
mov edx, dword [0x7b7db8]
fst dword [esi + 0x78]
fstp dword [esi + 0x7c]
mov dword [esi + 0x54], edx
fld1
mov dword [esi + 0x58], ebx
fst dword [esi + 0x80]
mov dword [esi + 0x5c], ebx
fstp dword [esi + 0x84]
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x88], eax
cmp eax, ebx
je 0x5021af
mov edi, dword [esp + 0x1c]
cmp edi, 0x1000
jg 0x502194
mov dword [esi + 0x8c], edi
cmp edi, ebx
je 0x502139
cmp edi, 0xfffffff
jbe 0x50210a
mov eax, dword [esp + 0x14]
push 0x10
push edi
push str.malloc_of_array___d_x__d_bytes__failed__integer_overflow_
push 1
push 0x53
push str..mupdf_source_fitzmemory.c
push eax
call fcn.004b35a0
mov ebp, dword [esp + 0x14]
mov ebx, edi
shl ebx, 4
mov eax, ebp
call fcn.004d1410
test eax, eax
jne 0x502135
push 0x10
push edi
push str.malloc_of_array___d_x__d_bytes__failed
push 1
push 0x57
push str..mupdf_source_fitzmemory.c
push ebp
call fcn.004b35a0
xor ebx, ebx
jmp 0x50213b
xor eax, eax
mov dword [esi + 0x90], eax
cmp edi, ebx
jle 0x5021bb
xor ecx, ecx
mov edx, edi
lea esp, [esp]
mov eax, dword [esi + 0x90]
mov edi, dword [0x7b7efc]
add eax, ecx
mov dword [eax], edi
mov edi, dword [0x7b7f00]
mov dword [eax + 4], edi
mov edi, dword [0x7b7f04]
mov dword [eax + 8], edi
mov edi, dword [0x7b7f08]
add ecx, 0x10
dec edx
mov dword [eax + 0xc], edi
jne 0x502150
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x14]
push edi
push ebp
push str.not_building_glyph_bbox_table_for_font__s_with__d_glyphs
push 0x3f
push str..mupdf_source_fitz_font.c
push ecx
call fcn.004b3370
add esp, 0x18
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
pop edi
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov eax, esi
pop esi
pop ebp
pop ebx
ret