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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov eax, 0xd
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
xor edi, edi
push str.ColorSpace
mov ecx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
call fcn.1001d860
lea ecx, [esp + 0x10]
push ecx
call fcn.100451b0
mov esi, dword [ebp + 8]
add esp, 4
mov dword [esi + 0xc], eax
cmp eax, edi
jne 0x1004adf2
push str.Bad_color_space_in_shading_dictionary
or edx, 0xffffffff
call fcn.1001d950
add esp, 4
lea ecx, [esp + 0x10]
call fcn.10076130
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
call fcn.10076130
xor eax, eax
lea edi, [esi + 0x10]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
mov dword [esi + 0x90], eax
push str.Background
mov eax, ebx
call fcn.1001d730
test eax, eax
je 0x1004af93
mov ecx, dword [ebx]
add eax, 8
cmp dword [eax], 9
jne 0x1004af82
test ecx, ecx
je 0x1004af82
lea edx, [esp + 0x10]
push edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push edx
push eax
call fcn.100a4540
cmp dword [eax], 6
jne 0x1004aff8
mov eax, dword [esp + 0x10]
cmp eax, 6
je 0x1004aeca
push 6
push eax
push str.Call_to_Object_where_the_object_was_type__d__not_the_expected_type__d
xor edx, edx
call fcn.1001d950
add esp, 0xc
call fcn.10105849
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0xc]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov dword [esp + 0xc], edx
mov edx, dword [eax + 0x20]
call edx
cmp dword [esp + 0xc], eax
jne 0x1004b0db
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x90], 1
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
xor ebx, ebx
call eax
test eax, eax
jle 0x1004aff2
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x10]
cmp eax, 6
je 0x1004af2e
push 6
push eax
push str.Call_to_Object_where_the_object_was_type__d__not_the_expected_type__d
xor edx, edx
call fcn.1001d950
add esp, 0xc
call fcn.10105849
test ebx, ebx
jl 0x1004afa5
mov eax, dword [esp + 0x18]
cmp ebx, dword [eax + 0xc]
jge 0x1004afa5
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax + 4]
add ecx, dword [esp + 0x10]
push edx
call fcn.100760f0
mov esi, eax
mov eax, dword [esi]
cmp eax, 1
je 0x1004af7d
cmp eax, 2
je 0x1004af78
mov eax, dword [esi]
push 2
push 1
push eax
push str.Call_to_Object_where_the_object_was_type__d__not_the_expected_type__d_or__d
xor edx, edx
call fcn.1001d950
add esp, 0x10
call fcn.10105849
cmp dword [esi], 1
jne 0x1004afbb
fild dword [esi + 8]
jmp 0x1004afbe
lea esi, [esp + 0x10]
call fcn.10076070
mov esi, dword [ebp + 8]
jmp 0x1004aea1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 5
jmp 0x1004aff8
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 5
lea esi, [esp + 0x20]
jmp 0x1004af5d
fld qword [esi + 8]
fmul qword [0x1026bd30]
call fcn.1010cd70
lea ecx, [esp + 0x20]
mov dword [edi], eax
call fcn.10076130
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
add dword [esp + 0xc], 0x10
inc ebx
add edi, 4
call eax
cmp ebx, eax
jl 0x1004af0e
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x10]
call fcn.10076130
fldz
fst qword [esi + 0xb0]
xor edi, edi
fst qword [esi + 0xa8]
push str.BBox
fst qword [esi + 0xa0]
mov eax, ebx
fstp qword [esi + 0x98]
mov dword [esi + 0xb8], edi
call fcn.1001d730
cmp eax, edi
je 0x1004b103
mov ecx, dword [ebx]
add eax, 8
cmp dword [eax], 9
jne 0x1004b0f0
cmp ecx, edi
je 0x1004b0f0
lea edx, [esp + 0x10]
push edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push edx
push eax
call fcn.100a4540
cmp dword [eax], 6
jne 0x1004b355
mov eax, dword [esp + 0x10]
cmp eax, 6
je 0x1004b08c
push 6
push eax
push str.Call_to_Object_where_the_object_was_type__d__not_the_expected_type__d
xor edx, edx
call fcn.1001d950
add esp, 0xc
call fcn.10105849
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0xc], 4
jne 0x1004b345
mov dword [esi + 0xb8], 1
cmp eax, 6
je 0x1004b0c4
push 6
push eax
push str.Call_to_Object_where_the_object_was_type__d__not_the_expected_type__d
xor edx, edx
call fcn.1001d950
add esp, 0xc
call fcn.10105849
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0xc], edi
jg 0x1004b114
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], 5
lea esi, [esp + 0x20]
jmp 0x1004b132
push str.Bad_Background_in_shading_dictionary
or edx, 0xffffffff
call fcn.1001d950
add esp, 4
jmp 0x1004aff8
lea esi, [esp + 0x10]
call fcn.10076070
mov esi, dword [ebp + 8]
xor edi, edi
jmp 0x1004b05f
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], 5
jmp 0x1004b355
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.100760f0
mov esi, eax
mov eax, dword [esi]
cmp eax, 1
je 0x1004b152
cmp eax, 2
je 0x1004b14d
mov ecx, dword [esi]
push 2
push 1
push ecx
push str.Call_to_Object_where_the_object_was_type__d__not_the_expected_type__d_or__d
xor edx, edx
call fcn.1001d950
add esp, 0x10
call fcn.10105849
cmp dword [esi], 1
jne 0x1004b157
fild dword [esi + 8]
jmp 0x1004b15a
fld qword [esi + 8]
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x20]
fstp qword [edi + 0x98]
call fcn.10076130
mov eax, dword [esp + 0x10]
cmp eax, 6
je 0x1004b18c
push 6
push eax
push str.Call_to_Object_where_the_object_was_type__d__not_the_expected_type__d
xor edx, edx
call fcn.1001d950
add esp, 0xc
call fcn.10105849
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xc], 1
jg 0x1004b1ac
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 5
lea esi, [esp + 0x20]
jmp 0x1004b1cd
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push ecx
mov ecx, dword [eax + 4]
add ecx, 0x10
call fcn.100760f0
mov esi, eax
mov eax, dword [esi]
cmp eax, 1
je 0x1004b1ed
cmp eax, 2
je 0x1004b1e8
mov edx, dword [esi]
push 2
push 1
push edx
push str.Call_to_Object_where_the_object_was_type__d__not_the_expected_type__d_or__d
xor edx, edx
call fcn.1001d950
add esp, 0x10
call fcn.10105849
cmp dword [esi], 1
jne 0x1004b1f2
fild dword [esi + 8]
jmp 0x1004b1f5
fld qword [esi + 8]
lea ecx, [esp + 0x20]
fstp qword [edi + 0xa0]
call fcn.10076130
mov eax, dword [esp + 0x10]
cmp eax, 6
je 0x1004b224
push 6
push eax
push str.Call_to_Object_where_the_object_was_type__d__not_the_expected_type__d
xor edx, edx
call fcn.1001d950
add esp, 0xc
call fcn.10105849
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xc], 2
jg 0x1004b244
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 5
lea esi, [esp + 0x20]
jmp 0x1004b265
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax + 4]
push edx
add ecx, 0x20
call fcn.100760f0
mov esi, eax
mov eax, dword [esi]
cmp eax, 1
je 0x1004b285
cmp eax, 2
je 0x1004b280
mov eax, dword [esi]
push 2
push 1
push eax
push str.Call_to_Object_where_the_object_was_type__d__not_the_expected_type__d_or__d
xor edx, edx
call fcn.1001d950
add esp, 0x10
call fcn.10105849
cmp dword [esi], 1
jne 0x1004b28a
fild dword [esi + 8]
jmp 0x1004b28d
fld qword [esi + 8]
lea ecx, [esp + 0x20]
fstp qword [edi + 0xa8]
call fcn.10076130
mov eax, dword [esp + 0x10]
cmp eax, 6
je 0x1004b2bc
push 6
push eax
push str.Call_to_Object_where_the_object_was_type__d__not_the_expected_type__d
xor edx, edx
call fcn.1001d950
add esp, 0xc
call fcn.10105849
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xc], 3
jg 0x1004b2dc
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 5
lea esi, [esp + 0x20]
jmp 0x1004b2fd
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax + 4]
push edx
add ecx, 0x30
call fcn.100760f0
mov esi, eax
mov eax, dword [esi]
cmp eax, 1
je 0x1004b31d
cmp eax, 2
je 0x1004b318
mov eax, dword [esi]
push 2
push 1
push eax
push str.Call_to_Object_where_the_object_was_type__d__not_the_expected_type__d_or__d
xor edx, edx
call fcn.1001d950
add esp, 0x10
call fcn.10105849
cmp dword [esi], 1
jne 0x1004b331
fild dword [esi + 8]
lea ecx, [esp + 0x20]
fstp qword [edi + 0xb0]
call fcn.10076130
jmp 0x1004b355
fld qword [esi + 8]
lea ecx, [esp + 0x20]
fstp qword [edi + 0xb0]
call fcn.10076130
jmp 0x1004b355
push str.Bad_BBox_in_shading_dictionary
or edx, 0xffffffff
call fcn.1001d950
add esp, 4
lea ecx, [esp + 0x10]
call fcn.10076130
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8