Function at 0x418c40
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 0x418c71
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.004057f0
mov ecx, dword [eax]
mov ebx, 1
cmp ecx, ebx
jne 0x418ca1
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
jmp 0x418cb4
push str.Invalid_or_missing_PaintType_in_pattern
push 0xffffffffffffffff
mov dword [esp + 0x2c], ebx
call fcn.004058b0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042ccb0
lea eax, [esp + 0x10]
push eax
push str.TilingType
mov ecx, edi
call fcn.004057f0
cmp dword [eax], ebx
jne 0x418cdc
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
jmp 0x418cef
push str.Invalid_or_missing_TilingType_in_pattern
push 0xffffffffffffffff
mov dword [esp + 0x28], ebx
call fcn.004058b0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042ccb0
fld qword [0x45b118]
fstp qword [esp + 0x60]
lea edx, [esp + 0x10]
fld qword [0x45b118]
push edx
fstp qword [esp + 0x5c]
push str.BBox
fld qword [0x45b110]
mov ecx, edi
fstp qword [esp + 0x78]
fld qword [0x45b110]
fstp qword [esp + 0x70]
call fcn.004057f0
cmp dword [eax], 6
jne 0x418d81
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xc], 4
jne 0x418d81
xor esi, esi
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
call fcn.004014d0
mov eax, dword [eax]
cmp eax, ebx
je 0x418d5c
cmp eax, 2
jne 0x418d70
cmp dword [esp + 0x28], ebx
jne 0x418d68
fild dword [esp + 0x30]
jmp 0x418d6c
fld qword [esp + 0x30]
fstp qword [esp + esi*8 + 0x58]
lea ecx, [esp + 0x28]
call fcn.0042ccb0
inc esi
cmp esi, 4
jl 0x418d42
jmp 0x418d90
push str.Invalid_or_missing_BBox_in_pattern
push 0xffffffffffffffff
call fcn.004058b0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042ccb0
lea edx, [esp + 0x10]
push edx
push str.XStep
mov ecx, edi
call fcn.004057f0
mov eax, dword [eax]
cmp eax, ebx
je 0x418db5
cmp eax, 2
jne 0x418dcf
cmp dword [esp + 0x10], ebx
jne 0x418dc5
fild dword [esp + 0x18]
fstp qword [esp + 0x38]
jmp 0x418de8
fld qword [esp + 0x18]
fstp qword [esp + 0x38]
jmp 0x418de8
fld qword [0x45b110]
push str.Invalid_or_missing_XStep_in_pattern
push 0xffffffffffffffff
fstp qword [esp + 0x40]
call fcn.004058b0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042ccb0
lea eax, [esp + 0x10]
push eax
push str.YStep
mov ecx, edi
call fcn.004057f0
mov eax, dword [eax]
cmp eax, ebx
je 0x418e0d
cmp eax, 2
jne 0x418e27
cmp dword [esp + 0x10], ebx
jne 0x418e1d
fild dword [esp + 0x18]
fstp qword [esp + 0x40]
jmp 0x418e40
fld qword [esp + 0x18]
fstp qword [esp + 0x40]
jmp 0x418e40
fld qword [0x45b110]
push str.Invalid_or_missing_YStep_in_pattern
push 0xffffffffffffffff
fstp qword [esp + 0x48]
call fcn.004058b0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042ccb0
lea ecx, [esp + 0x48]
push ecx
push str.Resources
mov ecx, edi
call fcn.004057f0
cmp dword [eax], 7
je 0x418e7f
lea ecx, [esp + 0x48]
call fcn.0042ccb0
push str.Invalid_or_missing_Resources_in_pattern
push 0xffffffffffffffff
mov dword [esp + 0x50], 5
call fcn.004058b0
add esp, 8
fld qword [0x45b110]
lea edx, [esp + 0x10]
fstp qword [esp + 0x78]
push edx
fld qword [0x45b118]
push str.Matrix
fstp qword [esp + 0x88]
mov ecx, edi
fld qword [0x45b118]
fstp qword [esp + 0x90]
fld qword [0x45b110]
fstp qword [esp + 0x98]
fld qword [0x45b118]
fstp qword [esp + 0xa0]
fld qword [0x45b118]
fstp qword [esp + 0xa8]
call fcn.004057f0
cmp dword [eax], 6
jne 0x418f2d
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xc], 6
jne 0x418f2d
xor esi, esi
lea esp, [esp]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
call fcn.004014d0
mov eax, dword [eax]
cmp eax, ebx
je 0x418f0a
cmp eax, 2
jne 0x418f1e
cmp dword [esp + 0x28], ebx
jne 0x418f16
fild dword [esp + 0x30]
jmp 0x418f1a
fld qword [esp + 0x30]
fstp qword [esp + esi*8 + 0x78]
lea ecx, [esp + 0x28]
call fcn.0042ccb0
inc esi
cmp esi, 6
jl 0x418ef0
lea ecx, [esp + 0x10]
call fcn.0042ccb0
push 0x90
call fcn.0044a5dd
add esp, 4
test eax, eax
je 0x418f91
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.00416310
lea ecx, [esp + 0x48]
mov esi, eax
call fcn.0042ccb0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x48]
xor esi, esi
call fcn.0042ccb0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret