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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4468a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
push 1
mov dword [esp + 0x10], esi
call fcn.0041d260
mov edi, dword [ebp + 8]
mov eax, 0xd
mov dword [esi + 0x40], eax
mov dword [esi + 0x80], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push str.PaintType
mov ecx, edi
mov dword [esp + 0x40], ebx
mov dword [esi], 0x449da0
call fcn.00409ad0
cmp dword [eax], 1
jne 0x41d3e2
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], ecx
jmp 0x41d3f8
push str.Invalid_or_missing_PaintType_in_pattern
push 0xffffffffffffffff
mov dword [esi + 8], 1
call fcn.0042a9c0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042a5e0
lea edx, [esp + 0x10]
mov ecx, edi
push edx
push str.TilingType
call fcn.00409ad0
cmp dword [eax], 1
jne 0x41d420
mov eax, dword [esp + 0x18]
mov dword [esi + 0xc], eax
jmp 0x41d436
push str.Invalid_or_missing_TilingType_in_pattern
push 0xffffffffffffffff
mov dword [esi + 0xc], 1
call fcn.0042a9c0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042a5e0
lea edi, [esi + 0x10]
lea ecx, [esp + 0x10]
mov eax, 0x3ff00000
push ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x18], ebx
mov dword [edi], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x20], ebx
push str.BBox
mov dword [esi + 0x1c], ebx
mov dword [edi + 4], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x24], eax
call fcn.00409ad0
cmp dword [eax], 6
jne 0x41d4c3
mov edx, dword [esp + 0x18]
cmp dword [edx + 0xc], 4
jne 0x41d4c3
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00401420
mov eax, dword [eax]
cmp eax, 1
je 0x41d49a
cmp eax, 2
jne 0x41d4ad
cmp dword [esp + 0x20], 1
jne 0x41d4a7
fild dword [esp + 0x28]
jmp 0x41d4ab
fld qword [esp + 0x28]
fstp qword [edi]
lea ecx, [esp + 0x20]
call fcn.0042a5e0
inc ebx
add edi, 8
cmp ebx, 4
jl 0x41d47f
xor ebx, ebx
jmp 0x41d4d2
push str.Invalid_or_missing_BBox_in_pattern
push 0xffffffffffffffff
call fcn.0042a9c0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042a5e0
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push str.XStep
mov ecx, edi
call fcn.00409ad0
mov eax, dword [eax]
cmp eax, 1
je 0x41d4fb
cmp eax, 2
jne 0x41d514
cmp dword [esp + 0x10], 1
jne 0x41d50b
fild dword [esp + 0x18]
fstp qword [esi + 0x30]
jmp 0x41d52d
fld qword [esp + 0x18]
fstp qword [esi + 0x30]
jmp 0x41d52d
push str.Invalid_or_missing_XStep_in_pattern
mov dword [esi + 0x30], ebx
push 0xffffffffffffffff
mov dword [esi + 0x34], 0x3ff00000
call fcn.0042a9c0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042a5e0
lea edx, [esp + 0x10]
mov ecx, edi
push edx
push str.YStep
call fcn.00409ad0
mov eax, dword [eax]
cmp eax, 1
je 0x41d553
cmp eax, 2
jne 0x41d56c
cmp dword [esp + 0x10], 1
jne 0x41d563
fild dword [esp + 0x18]
fstp qword [esi + 0x38]
jmp 0x41d585
fld qword [esp + 0x18]
fstp qword [esi + 0x38]
jmp 0x41d585
push str.Invalid_or_missing_YStep_in_pattern
mov dword [esi + 0x38], ebx
push 0xffffffffffffffff
mov dword [esi + 0x3c], 0x3ff00000
call fcn.0042a9c0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0042a5e0
mov ecx, dword [ebp + 8]
lea edi, [esi + 0x40]
push edi
push str.Resources
call fcn.00409ad0
cmp dword [eax], 7
je 0x41d5c0
mov ecx, edi
call fcn.0042a5e0
push str.Invalid_or_missing_Resources_in_pattern
push 0xffffffffffffffff
mov dword [edi], 5
call fcn.0042a9c0
add esp, 8
mov ecx, dword [ebp + 8]
mov eax, 0x3ff00000
mov dword [esi + 0x50], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x54], eax
mov dword [esi + 0x6c], eax
lea eax, [esp + 0x10]
mov dword [esi + 0x58], ebx
push eax
mov dword [esi + 0x60], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x78], ebx
push str.Matrix
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x7c], ebx
call fcn.00409ad0
cmp dword [eax], 6
jne 0x41d651
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0xc], 6
jne 0x41d651
lea eax, [esi + 0x50]
xor edi, edi
mov ebx, eax
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push edi
call fcn.00401420
mov eax, dword [eax]
cmp eax, 1
je 0x41d62c
cmp eax, 2
jne 0x41d63f
cmp dword [esp + 0x20], 1
jne 0x41d639
fild dword [esp + 0x28]
jmp 0x41d63d
fld qword [esp + 0x28]
fstp qword [ebx]
lea ecx, [esp + 0x20]
call fcn.0042a5e0
inc edi
add ebx, 8
cmp edi, 6
jl 0x41d611
lea ecx, [esp + 0x10]
call fcn.0042a5e0
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0x80]
push eax
call fcn.0042a4e0
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8