Function at 0x4178c0
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 0x4178f1
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.00405780
mov ecx, dword [eax]
mov ebx, 1
cmp ecx, ebx
jne 0x417921
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
jmp 0x417934
push str.Invalid_or_missing_PaintType_in_pattern
push 0xffffffffffffffff
mov dword [esp + 0x2c], ebx
call fcn.00405840
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042aad0
lea eax, [esp + 0x10]
push eax
push str.TilingType
mov ecx, edi
call fcn.00405780
cmp dword [eax], ebx
jne 0x41795c
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
jmp 0x41796f
push str.Invalid_or_missing_TilingType_in_pattern
push 0xffffffffffffffff
mov dword [esp + 0x28], ebx
call fcn.00405840
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042aad0
fld qword [0x449118]
fstp qword [esp + 0x60]
lea edx, [esp + 0x10]
fld qword [0x449118]
push edx
fstp qword [esp + 0x5c]
push str.BBox
fld qword [0x449110]
mov ecx, edi
fstp qword [esp + 0x78]
fld qword [0x449110]
fstp qword [esp + 0x70]
call fcn.00405780
cmp dword [eax], 6
jne 0x417a01
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xc], 4
jne 0x417a01
xor esi, esi
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
call fcn.00401440
mov eax, dword [eax]
cmp eax, ebx
je 0x4179dc
cmp eax, 2
jne 0x4179f0
cmp dword [esp + 0x28], ebx
jne 0x4179e8
fild dword [esp + 0x30]
jmp 0x4179ec
fld qword [esp + 0x30]
fstp qword [esp + esi*8 + 0x58]
lea ecx, [esp + 0x28]
call fcn.0042aad0
inc esi
cmp esi, 4
jl 0x4179c2
jmp 0x417a10
push str.Invalid_or_missing_BBox_in_pattern
push 0xffffffffffffffff
call fcn.00405840
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042aad0
lea edx, [esp + 0x10]
push edx
push str.XStep
mov ecx, edi
call fcn.00405780
mov eax, dword [eax]
cmp eax, ebx
je 0x417a35
cmp eax, 2
jne 0x417a4f
cmp dword [esp + 0x10], ebx
jne 0x417a45
fild dword [esp + 0x18]
fstp qword [esp + 0x38]
jmp 0x417a68
fld qword [esp + 0x18]
fstp qword [esp + 0x38]
jmp 0x417a68
fld qword [0x449110]
push str.Invalid_or_missing_XStep_in_pattern
push 0xffffffffffffffff
fstp qword [esp + 0x40]
call fcn.00405840
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042aad0
lea eax, [esp + 0x10]
push eax
push str.YStep
mov ecx, edi
call fcn.00405780
mov eax, dword [eax]
cmp eax, ebx
je 0x417a8d
cmp eax, 2
jne 0x417aa7
cmp dword [esp + 0x10], ebx
jne 0x417a9d
fild dword [esp + 0x18]
fstp qword [esp + 0x40]
jmp 0x417ac0
fld qword [esp + 0x18]
fstp qword [esp + 0x40]
jmp 0x417ac0
fld qword [0x449110]
push str.Invalid_or_missing_YStep_in_pattern
push 0xffffffffffffffff
fstp qword [esp + 0x48]
call fcn.00405840
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042aad0
lea ecx, [esp + 0x48]
push ecx
push str.Resources
mov ecx, edi
call fcn.00405780
cmp dword [eax], 7
je 0x417aff
lea ecx, [esp + 0x48]
call fcn.0042aad0
push str.Invalid_or_missing_Resources_in_pattern
push 0xffffffffffffffff
mov dword [esp + 0x50], 5
call fcn.00405840
add esp, 8
fld qword [0x449110]
lea edx, [esp + 0x10]
fstp qword [esp + 0x78]
push edx
fld qword [0x449118]
push str.Matrix
fstp qword [esp + 0x88]
mov ecx, edi
fld qword [0x449118]
fstp qword [esp + 0x90]
fld qword [0x449110]
fstp qword [esp + 0x98]
fld qword [0x449118]
fstp qword [esp + 0xa0]
fld qword [0x449118]
fstp qword [esp + 0xa8]
call fcn.00405780
cmp dword [eax], 6
jne 0x417bad
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xc], 6
jne 0x417bad
xor esi, esi
lea esp, [esp]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
call fcn.00401440
mov eax, dword [eax]
cmp eax, ebx
je 0x417b8a
cmp eax, 2
jne 0x417b9e
cmp dword [esp + 0x28], ebx
jne 0x417b96
fild dword [esp + 0x30]
jmp 0x417b9a
fld qword [esp + 0x30]
fstp qword [esp + esi*8 + 0x78]
lea ecx, [esp + 0x28]
call fcn.0042aad0
inc esi
cmp esi, 6
jl 0x417b70
lea ecx, [esp + 0x10]
call fcn.0042aad0
push 0x90
call fcn.0043878d
add esp, 4
test eax, eax
je 0x417c11
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.004155d0
lea ecx, [esp + 0x48]
mov esi, eax
call fcn.0042aad0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x48]
xor esi, esi
call fcn.0042aad0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret