Function at 0x418620
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 0x418651
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.00405830
mov ecx, dword [eax]
mov ebx, 1
cmp ecx, ebx
jne 0x418681
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
jmp 0x418694
push str.Invalid_or_missing_PaintType_in_pattern
push 0xffffffffffffffff
mov dword [esp + 0x2c], ebx
call fcn.004058d0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042c5d0
lea eax, [esp + 0x10]
push eax
push str.TilingType
mov ecx, edi
call fcn.00405830
cmp dword [eax], ebx
jne 0x4186bc
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
jmp 0x4186cf
push str.Invalid_or_missing_TilingType_in_pattern
push 0xffffffffffffffff
mov dword [esp + 0x28], ebx
call fcn.004058d0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042c5d0
fld qword [0x44b118]
fstp qword [esp + 0x60]
lea edx, [esp + 0x10]
fld qword [0x44b118]
push edx
fstp qword [esp + 0x5c]
push str.BBox
fld qword [0x44b110]
mov ecx, edi
fstp qword [esp + 0x78]
fld qword [0x44b110]
fstp qword [esp + 0x70]
call fcn.00405830
cmp dword [eax], 6
jne 0x418761
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xc], 4
jne 0x418761
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 0x41873c
cmp eax, 2
jne 0x418750
cmp dword [esp + 0x28], ebx
jne 0x418748
fild dword [esp + 0x30]
jmp 0x41874c
fld qword [esp + 0x30]
fstp qword [esp + esi*8 + 0x58]
lea ecx, [esp + 0x28]
call fcn.0042c5d0
inc esi
cmp esi, 4
jl 0x418722
jmp 0x418770
push str.Invalid_or_missing_BBox_in_pattern
push 0xffffffffffffffff
call fcn.004058d0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042c5d0
lea edx, [esp + 0x10]
push edx
push str.XStep
mov ecx, edi
call fcn.00405830
mov eax, dword [eax]
cmp eax, ebx
je 0x418795
cmp eax, 2
jne 0x4187af
cmp dword [esp + 0x10], ebx
jne 0x4187a5
fild dword [esp + 0x18]
fstp qword [esp + 0x38]
jmp 0x4187c8
fld qword [esp + 0x18]
fstp qword [esp + 0x38]
jmp 0x4187c8
fld qword [0x44b110]
push str.Invalid_or_missing_XStep_in_pattern
push 0xffffffffffffffff
fstp qword [esp + 0x40]
call fcn.004058d0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042c5d0
lea eax, [esp + 0x10]
push eax
push str.YStep
mov ecx, edi
call fcn.00405830
mov eax, dword [eax]
cmp eax, ebx
je 0x4187ed
cmp eax, 2
jne 0x418807
cmp dword [esp + 0x10], ebx
jne 0x4187fd
fild dword [esp + 0x18]
fstp qword [esp + 0x40]
jmp 0x418820
fld qword [esp + 0x18]
fstp qword [esp + 0x40]
jmp 0x418820
fld qword [0x44b110]
push str.Invalid_or_missing_YStep_in_pattern
push 0xffffffffffffffff
fstp qword [esp + 0x48]
call fcn.004058d0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042c5d0
lea ecx, [esp + 0x48]
push ecx
push str.Resources
mov ecx, edi
call fcn.00405830
cmp dword [eax], 7
je 0x41885f
lea ecx, [esp + 0x48]
call fcn.0042c5d0
push str.Invalid_or_missing_Resources_in_pattern
push 0xffffffffffffffff
mov dword [esp + 0x50], 5
call fcn.004058d0
add esp, 8
fld qword [0x44b110]
lea edx, [esp + 0x10]
fstp qword [esp + 0x78]
push edx
fld qword [0x44b118]
push str.Matrix
fstp qword [esp + 0x88]
mov ecx, edi
fld qword [0x44b118]
fstp qword [esp + 0x90]
fld qword [0x44b110]
fstp qword [esp + 0x98]
fld qword [0x44b118]
fstp qword [esp + 0xa0]
fld qword [0x44b118]
fstp qword [esp + 0xa8]
call fcn.00405830
cmp dword [eax], 6
jne 0x41890d
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xc], 6
jne 0x41890d
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 0x4188ea
cmp eax, 2
jne 0x4188fe
cmp dword [esp + 0x28], ebx
jne 0x4188f6
fild dword [esp + 0x30]
jmp 0x4188fa
fld qword [esp + 0x30]
fstp qword [esp + esi*8 + 0x78]
lea ecx, [esp + 0x28]
call fcn.0042c5d0
inc esi
cmp esi, 6
jl 0x4188d0
lea ecx, [esp + 0x10]
call fcn.0042c5d0
push 0x90
call fcn.0043a99d
add esp, 4
test eax, eax
je 0x418971
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.0042c5d0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x48]
xor esi, esi
call fcn.0042c5d0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret