Function at 0x41236f
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
push esi
mov esi, dword [ebp + 0x10]
push edi
lea edi, [esi*4 + 8]
push edi
mov dword [ebp - 0x14], 1
call fcn.00508280
mov edx, eax
test edx, edx
pop ecx
mov dword [ebp - 0x18], edx
jne 0x4123ac
mov eax, 0x8007000e
jmp 0x4125d5
push ebx
mov ebx, dword [ebp + 0x1c]
lea eax, [edx + 4]
mov dword [edx], ebx
mov dword [eax], esi
add eax, 4
xor ecx, ecx
test esi, esi
jbe 0x4123d3
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
add eax, 4
inc ecx
cmp ecx, esi
jb 0x4123c0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
lea esi, [ebp - 4]
push esi
push edx
push edi
push 0
push 0
push 0x609a9c
push eax
call dword [ecx + 0x1c]
test eax, eax
mov dword [ebp + 0xc], eax
jge 0x412402
push str.Failed_to_create_x_file_data_object_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4125ae
cmp dword [ebp + 0x14], 0
jne 0x412560
and dword [ebp - 0x14], 0
lea esi, [ebx + ebx*8]
shl esi, 3
push esi
call fcn.00508280
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 0xc], edi
jne 0x412432
mov dword [ebp + 0xc], 0x8007000e
jmp 0x4125ae
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov dword [ebp + 0x14], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebx, ebx
rep stosb byte es:[edi], al
jbe 0x412560
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x18]
add eax, 0x30
mov dword [ebp + 0x10], eax
add edx, 4
mov dword [ebp - 0x10], ebx
xor eax, eax
cmp dword [edx - 4], eax
jne 0x412550
cmp dword [edx], eax
mov dword [ebp - 8], eax
jbe 0x412550
mov dword [ebp + 0x28], eax
mov ecx, dword [ebp + 0x28]
mov eax, dword [edx + 4]
add eax, ecx
mov ecx, dword [eax + 4]
cmp ecx, 2
jne 0x412520
cmp dword [eax + 8], 0x10
jne 0x4124f8
mov esi, dword [eax]
push 8
mov edi, str.Ambient
pop ecx
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4124ac
mov edi, dword [ebp + 0x10]
add edi, 0xffffffe0
jmp 0x4124d7
mov esi, dword [eax]
push 9
mov edi, str.Emissive
pop ecx
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4124c1
mov edi, dword [ebp + 0x10]
jmp 0x4124d7
mov esi, dword [eax]
push 8
mov edi, str.Diffuse
pop ecx
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4124e0
mov edi, dword [ebp + 0x10]
add edi, 0xffffffd0
mov esi, dword [eax + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x41253e
mov esi, dword [eax]
push 9
mov edi, str.Specular
pop ecx
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x41253e
mov edi, dword [ebp + 0x10]
add edi, 0xfffffff0
jmp 0x4124d7
cmp ecx, 2
jne 0x412520
cmp dword [eax + 8], 4
jne 0x412520
mov esi, dword [eax]
push 6
mov edi, str.Power
pop ecx
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x41253e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x10], eax
jmp 0x41253e
cmp ecx, 1
jne 0x41253e
mov esi, dword [eax]
push 9
mov edi, str.Texture1
pop ecx
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x41253e
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x14], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp + 0x28], 0x10
cmp eax, dword [edx]
jb 0x41247a
add dword [ebp + 0x10], 0x48
add edx, 0xc
dec dword [ebp - 0x10]
jne 0x412461
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
jbe 0x4125ae
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
xor eax, eax
cmp dword [ebp - 0x14], eax
je 0x41257f
mov ecx, dword [ebp + 0x18]
cmp ecx, eax
je 0x41257f
cmp dword [ecx], eax
je 0x412588
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, edi
push dword [ebp - 4]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
push esi
push dword [ebp + 8]
call fcn.004120dd
test eax, eax
mov dword [ebp + 0xc], eax
jl 0x4125ae
inc ebx
add edi, 0xc
add esi, 0x48
cmp ebx, dword [ebp + 0x1c]
jb 0x41256d
push dword [ebp - 0xc]
call fcn.00508050
mov eax, dword [ebp - 4]
test eax, eax
pop ecx
pop ebx
je 0x4125c9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push dword [ebp - 0x18]
call fcn.00508050
mov eax, dword [ebp + 0xc]
pop ecx
pop edi
pop esi
leave
ret 0x24