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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [eax + 0x48]
push ecx
mov dword [ebp - 0xc], edi
call fcn.004c74c0
mov dword [ebp - 8], eax
add esp, 4
mov ebx, 0x7c
mov eax, edi
call fcn.004d1410
mov esi, eax
mov dword [ebp - 0x20], esi
push ebx
test esi, esi
jne 0x4e91cd
push 1
push str.calloc___d_x__d_bytes__failed
push 1
push 0x7a
push str..mupdf_source_fitzmemory.c
push edi
call fcn.004b35a0
xor edi, edi
push edi
push esi
call fcn.0065b340
mov ebx, dword [ebp - 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
lea eax, [esi + 0x3c]
mov dword [eax], edi
mov dword [esi + 0x40], eax
add esp, 0xc
mov dword [esi + 0x48], edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x4c], edi
cmp ebx, edi
je 0x4e91ff
inc dword [ebx]
mov dword [esi + 0x50], ebx
mov dword [esi + 0x78], edi
cmp ebx, edi
je 0x4e9247
cmp byte [ebx + 4], 0x72
jne 0x4e921a
push ebx
call fcn.004c74c0
add esp, 4
mov ebx, eax
cmp ebx, edi
je 0x4e9247
cmp byte [ebx + 4], 0x64
jne 0x4e9247
push edi
push str.UserUnit
call fcn.004bb9f0
add esp, 8
test eax, eax
js 0x4e9241
mov edx, dword [ebx + 0x18]
mov esi, dword [edx + eax*8 + 4]
xor edi, edi
jmp 0x4e9249
xor esi, esi
xor edi, edi
jmp 0x4e9249
xor esi, esi
mov eax, esi
cmp esi, edi
je 0x4e925e
cmp byte [esi + 4], 0x72
jne 0x4e925e
push esi
call fcn.004c74c0
add esp, 4
cmp eax, edi
je 0x4e92a3
xor ecx, ecx
cmp byte [eax + 4], 0x66
sete cl
cmp ecx, edi
je 0x4e92a3
mov eax, esi
cmp esi, edi
je 0x4e9284
cmp byte [esi + 4], 0x72
jne 0x4e9284
push esi
call fcn.004c74c0
add esp, 4
cmp eax, edi
jne 0x4e928c
fldz
jmp 0x4e92a5
mov cl, byte [eax + 4]
cmp cl, 0x66
jne 0x4e9299
fld dword [eax + 0x10]
jmp 0x4e92a5
cmp cl, 0x69
jne 0x4e9288
fild dword [eax + 0x10]
jmp 0x4e92a5
fld1
mov edx, dword [ebp - 8]
fstp dword [ebp - 0x14]
mov eax, dword [ebp + 8]
push str.MediaBox
push edx
push eax
call fcn.004e8280
add esp, 0xc
lea edi, [ebp - 0x38]
mov esi, eax
call fcn.004d1e40
fld dword [ebp - 0x38]
fld dword [ebp - 0x30]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4e92e5
fld dword [ebp - 0x34]
fld dword [ebp - 0x2c]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4e931f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
inc ecx
push ecx
push str.cannot_find_page_size_for_page__d
push 0x1ca
push str..mupdf_sourcepdfpdf_page.c
push edx
call fcn.004b3370
fldz
fst dword [ebp - 0x38]
add esp, 0x14
fstp dword [ebp - 0x34]
fld dword [0x9adfb4]
fstp dword [ebp - 0x30]
fld dword [0x9adfb0]
fstp dword [ebp - 0x2c]
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 8]
push str.CropBox
push ebx
push eax
call fcn.004e8280
add esp, 0xc
lea edi, [ebp - 0x58]
mov esi, eax
call fcn.004d1e40
fld dword [ebp - 0x58]
fld dword [ebp - 0x50]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4e9374
fld dword [ebp - 0x54]
fld dword [ebp - 0x4c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4e9374
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.004be770
fld dword [ebp - 0x2c]
fld dword [ebp - 0x30]
fld dword [ebp - 0x34]
fld dword [ebp - 0x38]
jmp 0x4e9388
fld dword [ebp - 0x38]
fld dword [ebp - 0x34]
fld dword [ebp - 0x30]
fld dword [ebp - 0x2c]
fxch st(3)
fxch st(1)
fxch st(2)
fxch st(1)
fcom st(2)
fnstsw ax
test ah, 5
jp 0x4e9396
fst dword [ebp - 0x1c]
jmp 0x4e939d
fxch st(2)
fst dword [ebp - 0x1c]
fxch st(2)
fld dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
fld dword [ebp - 0x14]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esi + 0x18]
fxch st(2)
fcom st(4)
fnstsw ax
test ah, 5
jp 0x4e93bf
fst dword [ebp - 0x1c]
jmp 0x4e93c6
fxch st(4)
fst dword [ebp - 0x1c]
fxch st(4)
fld dword [ebp - 0x1c]
fmul st(3)
fstp dword [esi + 0x1c]
fxch st(1)
fcom st(3)
fnstsw ax
test ah, 0x41
jne 0x4e93dd
fstp st(3)
jmp 0x4e93df
fstp st(0)
fxch st(2)
fstp dword [ebp - 0x1c]
fld dword [ebp - 0x1c]
fmul st(1)
fstp dword [esi + 0x20]
fxch st(1)
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x4e93fb
fstp st(2)
jmp 0x4e93fd
fstp st(0)
fxch st(1)
fstp dword [ebp - 0x1c]
fmul dword [ebp - 0x1c]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fst dword [esi + 0x24]
fld dword [esi + 0x20]
fsub dword [esi + 0x18]
fld1
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
je 0x4e9468
fld dword [esi + 0x1c]
fsubp st(2)
fcompp
fnstsw ax
test ah, 0x41
je 0x4e946c
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push str.Rotate
push ebx
push eax
call fcn.004e8280
add esp, 0xc
test eax, eax
je 0x4e94c6
cmp byte [eax + 4], 0x72
jne 0x4e9457
push eax
call fcn.004c74c0
add esp, 4
test eax, eax
je 0x4e94c6
mov cl, byte [eax + 4]
cmp cl, 0x69
jne 0x4e94b1
mov eax, dword [eax + 0x10]
jmp 0x4e94c8
fstp st(1)
fstp st(0)
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0xc]
inc ecx
push ecx
push str.invalid_page_size_in_page__d
push 0x1dc
push str..mupdf_sourcepdfpdf_page.c
push edi
call fcn.004b3370
mov edx, dword [0x7b9cfc]
mov eax, dword [0x7b9d00]
mov ecx, dword [0x7b9d04]
mov dword [esi + 0x18], edx
mov edx, dword [0x7b9d08]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
add esp, 0x14
mov dword [esi + 0x24], edx
jmp 0x4e9432
cmp cl, 0x66
jne 0x4e94c6
fld dword [eax + 0x10]
fadd qword [0x9ad788]
call fcn.0065d070
jmp 0x4e94c8
xor eax, eax
mov dword [esi + 0x28], eax
test eax, eax
jns 0x4e94e0
neg eax
cdq
mov ecx, 0x168
idiv ecx
mov eax, ecx
sub eax, edx
mov dword [esi + 0x28], eax
cmp dword [esi + 0x28], 0x168
jl 0x4e94f7
mov eax, dword [esi + 0x28]
cdq
mov ecx, 0x168
idiv ecx
mov dword [esi + 0x28], edx
mov ecx, dword [esi + 0x28]
add ecx, 0x2d
mov eax, 0xb60b60b7
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x5a
mov dword [esi + 0x28], eax
cmp eax, 0x168
jle 0x4e9524
mov dword [esi + 0x28], 0
fld1
push ecx
fstp dword [esi]
fldz
fst dword [esi + 4]
fst dword [esi + 8]
fld dword [0x9ad780]
fstp dword [esi + 0xc]
fst dword [esi + 0x10]
fstp dword [esi + 0x14]
mov edx, dword [esi + 0x28]
neg edx
mov dword [ebp - 0x20], edx
fild dword [ebp - 0x20]
fstp dword [esp]
call fcn.004bdec0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
add esp, 4
mov ecx, esi
lea edx, [ebp - 0x48]
mov dword [ebp - 0x3c], eax
call fcn.004beb60
fld dword [ebp - 0x48]
fchs
lea ecx, [ebp - 0x70]
fstp dword [ebp - 0x24]
mov edx, esi
fld dword [ebp - 0x44]
mov eax, esi
fchs
fstp dword [ebp - 0x28]
fld dword [ebp - 0x24]
fstp dword [ebp - 0x60]
fld dword [ebp - 0x28]
fstp dword [ebp - 0x5c]
fld dword [ebp - 0x14]
fst dword [ebp - 0x28]
fld dword [ebp - 0x28]
fst dword [ebp - 0x70]
fxch st(1)
fmul qword [0x9ad6f0]
fstp dword [ebp - 0x28]
fld dword [ebp - 0x28]
fst dword [ebp - 0x6c]
fstp dword [ebp - 0x68]
fstp dword [ebp - 0x64]
call fcn.004bdca0
mov eax, dword [edi + 0xc]
call fcn.004b3520
test eax, eax
je 0x4e9670
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
mov edx, ecx
shl edx, 4
add edx, ecx
lea eax, [eax + edx*4 + 8]
push 0
push eax
call fcn.0065e2c0
mov edi, dword [ebp - 0xc]
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov esi, edx
shl esi, 4
add esi, edx
add esp, 8
mov dword [ecx + esi*4 + 4], eax
test eax, eax
jne 0x4e966d
mov esi, dword [ebp - 8]
test esi, esi
je 0x4e966d
cmp byte [esi + 4], 0x72
jne 0x4e961d
push esi
call fcn.004c74c0
add esp, 4
mov esi, eax
test esi, esi
je 0x4e966d
cmp byte [esi + 4], 0x64
jne 0x4e966d
push 0
push str.Annots
mov ebx, esi
call fcn.004bb9f0
add esp, 8
test eax, eax
js 0x4e9645
mov ecx, dword [esi + 0x18]
mov ebx, dword [ecx + eax*8 + 4]
jmp 0x4e9647
xor ebx, ebx
test ebx, ebx
je 0x4e966a
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
push edi
push ebx
push esi
call fcn.004e1600
add esp, 0xc
push ebx
push edi
push esi
mov dword [edi + 0x38], eax
call fcn.004e5b20
add esp, 0xc
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
mov edx, ecx
shl edx, 4
add edx, ecx
mov edx, dword [eax + edx*4 + 4]
dec ecx
mov dword [eax], ecx
cmp edx, 1
jle 0x4e96b6
mov eax, dword [edi + 0xc]
mov esi, 2
cmp dword [eax + 0x4404], esi
je 0x4e96b0
push str.unexpectedly_failed_to_load_page_annotations
push 0x1fd
push str..mupdf_sourcepdfpdf_page.c
push edi
call fcn.004b3370
add esp, 0x10
mov eax, dword [ebp - 0x10]
or dword [eax + 0x78], esi
mov esi, ebx
test ebx, ebx
je 0x4e96cd
cmp byte [ebx + 4], 0x72
jne 0x4e96cd
push ebx
call fcn.004c74c0
add esp, 4
mov esi, eax
test esi, esi
je 0x4e96f8
cmp byte [esi + 4], 0x64
jne 0x4e96f8
push 0
push 0x992b54
mov ebx, esi
call fcn.004bb9f0
mov ebx, dword [ebp - 8]
add esp, 8
test eax, eax
js 0x4e96f8
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + eax*8 + 4]
jmp 0x4e96fa
xor eax, eax
test eax, eax
je 0x4e9728
cmp byte [eax + 4], 0x72
jne 0x4e970d
push eax
call fcn.004c74c0
add esp, 4
test eax, eax
je 0x4e9728
mov cl, byte [eax + 4]
cmp cl, 0x66
jne 0x4e971e
fld dword [eax + 0x10]
jmp 0x4e972a
cmp cl, 0x69
jne 0x4e9728
fild dword [eax + 0x10]
jmp 0x4e972a
fldz
mov edi, dword [ebp - 0x10]
fstp dword [ebp - 0x18]
fld dword [ebp - 0x18]
mov esi, ebx
fstp dword [edi + 0x54]
test ebx, ebx
je 0x4e974d
cmp byte [ebx + 4], 0x72
jne 0x4e974d
push ebx
call fcn.004c74c0
add esp, 4
mov esi, eax
test esi, esi
je 0x4e9778
cmp byte [esi + 4], 0x64
jne 0x4e9778
push 0
push str.Trans
mov ebx, esi
call fcn.004bb9f0
mov ebx, dword [ebp - 8]
add esp, 8
test eax, eax
js 0x4e9778
mov edx, dword [esi + 0x18]
mov eax, dword [edx + eax*8 + 4]
jmp 0x4e977a
xor eax, eax
xor ecx, ecx
test eax, eax
setne cl
mov dword [edi + 0x58], ecx
test eax, eax
je 0x4e9790
mov edi, dword [ebp - 0x10]
call fcn.004e8c00
mov edx, dword [ebp + 8]
push str.Resources
push ebx
push edx
call fcn.004e8280
add esp, 0xc
mov dword [edi + 0x30], eax
test eax, eax
je 0x4e97ab
inc dword [eax]
mov esi, ebx
test ebx, ebx
je 0x4e97c2
cmp byte [ebx + 4], 0x72
jne 0x4e97c2
push ebx
call fcn.004c74c0
add esp, 4
mov esi, eax
test esi, esi
je 0x4e97ed
cmp byte [esi + 4], 0x64
jne 0x4e97ed
push 0
push str.Contents
mov ebx, esi
call fcn.004bb9f0
add esp, 8
test eax, eax
js 0x4e97ed
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + eax*8 + 4]
mov dword [ebp - 0x1c], edx
jmp 0x4e97f4
mov dword [ebp - 0x1c], 0
mov esi, dword [ebp - 0xc]
mov eax, dword [esi + 0xc]
call fcn.004b3520
test eax, eax
je 0x4e9909
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, ecx
shl edx, 4
add edx, ecx
lea eax, [eax + edx*4 + 8]
push 0
push eax
call fcn.0065e2c0
mov esi, dword [ebp - 0xc]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edi, edx
shl edi, 4
add edi, edx
add esp, 8
mov dword [ecx + edi*4 + 4], eax
test eax, eax
jne 0x4e9906
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4e9846
inc dword [eax]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
mov dword [esi + 0x34], eax
mov ecx, dword [esi + 0x30]
push ecx
push ebx
call fcn.004e8880
add esp, 8
test eax, eax
jne 0x4e98c9
mov edx, dword [ebp - 8]
push edx
mov ecx, str.Group_S
call fcn.004bbbe0
add esp, 4
test eax, eax
je 0x4e9893
cmp byte [eax + 4], 0x72
jne 0x4e9884
push eax
call fcn.004c74c0
add esp, 4
test eax, eax
je 0x4e9893
cmp byte [eax + 4], 0x6e
jne 0x4e9893
add eax, 0x10
jmp 0x4e9898
mov eax, 0x925010
mov ecx, str.Transparency
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4e98c0
test dl, dl
je 0x4e98bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4e98c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4e98a0
xor eax, eax
jmp 0x4e98c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4e98d0
mov dword [esi + 0x2c], 1
mov edi, dword [esi + 0x3c]
test edi, edi
je 0x4e9903
cmp dword [esi + 0x2c], 0
jne 0x4e9903
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4e98fc
mov eax, dword [eax + 0x40]
push eax
push ebx
call fcn.004e8880
add esp, 8
test eax, eax
je 0x4e98fc
mov dword [esi + 0x2c], 1
mov edi, dword [edi + 0x48]
test edi, edi
jne 0x4e98d7
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, ecx
shl edx, 4
add edx, ecx
mov edx, dword [eax + edx*4 + 4]
dec ecx
mov dword [eax], ecx
cmp edx, 1
jle 0x4e996d
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x4404], 2
je 0x4e9969
mov ecx, dword [ebp + 8]
push edi
push ecx
call fcn.004e9a00
mov eax, dword [ebp + 0x10]
add esp, 8
test eax, eax
je 0x4e994c
cmp byte [eax + 4], 0x72
jne 0x4e994c
mov eax, dword [eax + 0x10]
jmp 0x4e994e
xor eax, eax
mov edx, dword [ebp + 0xc]
push eax
inc edx
push edx
push str.cannot_load_page__d_contents___d_0_R_
push 0x222
push str..mupdf_sourcepdfpdf_page.c
push esi
call fcn.004b3660
or dword [edi + 0x78], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret