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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, 0xd
mov dword [esp + 0x3c], eax
mov dword [esp + 4], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 8
push ebx
push esi
push edi
je 0x418581
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 0x34]
lea ecx, [esp + 0x10]
push ecx
mov edi, eax
push str.PaintType
mov ecx, edi
call fcn.004057e0
mov ecx, dword [eax]
mov ebx, 1
cmp ecx, ebx
jne 0x4185b1
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
jmp 0x4185c4
push str.Invalid_or_missing_PaintType_in_pattern
push 0xffffffffffffffff
mov dword [esp + 0x2c], ebx
call fcn.00405880
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042c240
lea eax, [esp + 0x10]
push eax
push str.TilingType
mov ecx, edi
call fcn.004057e0
cmp dword [eax], ebx
jne 0x4185ec
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
jmp 0x4185ff
push str.Invalid_or_missing_TilingType_in_pattern
push 0xffffffffffffffff
mov dword [esp + 0x28], ebx
call fcn.00405880
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042c240
fld qword [0x450118]
fstp qword [esp + 0x60]
lea edx, [esp + 0x10]
fld qword [0x450118]
push edx
fstp qword [esp + 0x5c]
push str.BBox
fld qword [0x450110]
mov ecx, edi
fstp qword [esp + 0x78]
fld qword [0x450110]
fstp qword [esp + 0x70]
call fcn.004057e0
cmp dword [eax], 6
jne 0x418691
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xc], 4
jne 0x418691
xor esi, esi
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
call fcn.004014b0
mov eax, dword [eax]
cmp eax, ebx
je 0x41866c
cmp eax, 2
jne 0x418680
cmp dword [esp + 0x28], ebx
jne 0x418678
fild dword [esp + 0x30]
jmp 0x41867c
fld qword [esp + 0x30]
fstp qword [esp + esi*8 + 0x58]
lea ecx, [esp + 0x28]
call fcn.0042c240
inc esi
cmp esi, 4
jl 0x418652
jmp 0x4186a0
push str.Invalid_or_missing_BBox_in_pattern
push 0xffffffffffffffff
call fcn.00405880
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042c240
lea edx, [esp + 0x10]
push edx
push str.XStep
mov ecx, edi
call fcn.004057e0
mov eax, dword [eax]
cmp eax, ebx
je 0x4186c5
cmp eax, 2
jne 0x4186df
cmp dword [esp + 0x10], ebx
jne 0x4186d5
fild dword [esp + 0x18]
fstp qword [esp + 0x38]
jmp 0x4186f8
fld qword [esp + 0x18]
fstp qword [esp + 0x38]
jmp 0x4186f8
fld qword [0x450110]
push str.Invalid_or_missing_XStep_in_pattern
push 0xffffffffffffffff
fstp qword [esp + 0x40]
call fcn.00405880
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042c240
lea eax, [esp + 0x10]
push eax
push str.YStep
mov ecx, edi
call fcn.004057e0
mov eax, dword [eax]
cmp eax, ebx
je 0x41871d
cmp eax, 2
jne 0x418737
cmp dword [esp + 0x10], ebx
jne 0x41872d
fild dword [esp + 0x18]
fstp qword [esp + 0x40]
jmp 0x418750
fld qword [esp + 0x18]
fstp qword [esp + 0x40]
jmp 0x418750
fld qword [0x450110]
push str.Invalid_or_missing_YStep_in_pattern
push 0xffffffffffffffff
fstp qword [esp + 0x48]
call fcn.00405880
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042c240
lea ecx, [esp + 0x48]
push ecx
push str.Resources
mov ecx, edi
call fcn.004057e0
cmp dword [eax], 7
je 0x41878f
lea ecx, [esp + 0x48]
call fcn.0042c240
push str.Invalid_or_missing_Resources_in_pattern
push 0xffffffffffffffff
mov dword [esp + 0x50], 5
call fcn.00405880
add esp, 8
fld qword [0x450110]
lea edx, [esp + 0x10]
fstp qword [esp + 0x78]
push edx
fld qword [0x450118]
push str.Matrix
fstp qword [esp + 0x88]
mov ecx, edi
fld qword [0x450118]
fstp qword [esp + 0x90]
fld qword [0x450110]
fstp qword [esp + 0x98]
fld qword [0x450118]
fstp qword [esp + 0xa0]
fld qword [0x450118]
fstp qword [esp + 0xa8]
call fcn.004057e0
cmp dword [eax], 6
jne 0x41883d
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xc], 6
jne 0x41883d
xor esi, esi
lea esp, [esp]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
call fcn.004014b0
mov eax, dword [eax]
cmp eax, ebx
je 0x41881a
cmp eax, 2
jne 0x41882e
cmp dword [esp + 0x28], ebx
jne 0x418826
fild dword [esp + 0x30]
jmp 0x41882a
fld qword [esp + 0x30]
fstp qword [esp + esi*8 + 0x78]
lea ecx, [esp + 0x28]
call fcn.0042c240
inc esi
cmp esi, 6
jl 0x418800
lea ecx, [esp + 0x10]
call fcn.0042c240
push 0x90
call fcn.0043f7ed
add esp, 4
test eax, eax
je 0x4188a1
mov edx, dword [ebp + 8]
fld qword [esp + 0x40]
push edx
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0x2c]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x74]
fld qword [esp + 0x54]
fstp qword [esp]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push ecx
mov ecx, eax
call fcn.00415e70
lea ecx, [esp + 0x48]
mov esi, eax
call fcn.0042c240
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x48]
xor esi, esi
call fcn.0042c240
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret