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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0xd
mov dword [esp + 0xc], eax
mov dword [esp + 0x44], eax
mov eax, dword [esi]
xor ebx, ebx
cmp eax, 7
push edi
jne 0x41db9a
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push str.ShadingType
call fcn.00409ad0
cmp dword [eax], 1
je 0x41d88a
push str.Invalid_ShadingType_in_shading_dictionary
jmp 0x41d8df
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
call fcn.0042a5e0
cmp edi, 2
je 0x41d8b5
push edi
push str.Unimplemented_shading_type__d
push 0xffffffffffffffff
call fcn.0042a9c0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 8]
push str.ColorSpace
call fcn.00409ad0
lea edx, [esp + 0x10]
push edx
call fcn.00419c40
mov esi, eax
add esp, 4
test esi, esi
jne 0x41d8fb
push str.Bad_color_space_in_shading_dictionary
push 0xffffffffffffffff
call fcn.0042a9c0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042a5e0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.0042a5e0
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x58]
mov dword [esp + 0x44], eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
push str.Background
mov ecx, dword [ecx + 8]
call fcn.00409ad0
cmp dword [eax], 6
jne 0x41d9a1
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
mov ecx, esi
mov edi, dword [edx + 0xc]
call dword [eax + 0x18]
cmp edi, eax
jne 0x41d992
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x44], 1
xor edi, edi
call dword [edx + 0x18]
test eax, eax
jle 0x41d9a1
lea ebx, [esp + 0x58]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
push edi
call fcn.00401420
cmp dword [eax], 1
jne 0x41d973
fild dword [eax + 8]
jmp 0x41d976
fld qword [eax + 8]
fstp qword [ebx]
lea ecx, [esp + 0x48]
call fcn.0042a5e0
mov edx, dword [esi]
mov ecx, esi
inc edi
add ebx, 8
call dword [edx + 0x18]
cmp edi, eax
jl 0x41d95a
jmp 0x41d9a1
push str.Bad_Background_in_shading_dictionary
push 0xffffffffffffffff
call fcn.0042a9c0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042a5e0
mov edi, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
push str.BBox
mov ecx, dword [edi + 8]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], 0
call fcn.00409ad0
cmp dword [eax], 6
jne 0x41db10
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0xc], 4
jne 0x41db01
lea edx, [esp + 0x48]
mov dword [esp + 0x40], 1
push edx
push 0
call fcn.00401420
cmp dword [eax], 1
jne 0x41da40
fild dword [eax + 8]
fstp qword [esp + 0x30]
jmp 0x41da4e
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x48]
call fcn.0042a5e0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
push 1
call fcn.00401420
cmp dword [eax], 1
jne 0x41da75
fild dword [eax + 8]
fstp qword [esp + 0x38]
jmp 0x41da83
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
lea ecx, [esp + 0x48]
call fcn.0042a5e0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
push 2
call fcn.00401420
cmp dword [eax], 1
jne 0x41daaa
fild dword [eax + 8]
fstp qword [esp + 0x20]
jmp 0x41dab8
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
lea ecx, [esp + 0x48]
call fcn.0042a5e0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
push 3
call fcn.00401420
cmp dword [eax], 1
jne 0x41dae8
fild dword [eax + 8]
lea ecx, [esp + 0x48]
fstp qword [esp + 0x28]
call fcn.0042a5e0
jmp 0x41db10
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x2c], edx
call fcn.0042a5e0
jmp 0x41db10
push str.Bad_BBox_in_shading_dictionary
push 0xffffffffffffffff
call fcn.0042a9c0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042a5e0
mov eax, dword [edi + 8]
push eax
call fcn.0041dd30
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41db92
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov dword [ebx + 0xc], esi
lea edi, [ebx + 0x10]
mov ecx, 0x10
lea esi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x58], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 0x5c], edx
mov edx, dword [esp + 0x20]
mov dword [ebx + 0x60], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x68], edx
mov edx, dword [esp + 0x2c]
mov dword [ebx + 0x64], ecx
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x6c], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x70], ecx
mov dword [ebx + 0x78], eax
mov dword [ebx + 8], 2
mov dword [ebx + 0x74], edx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret