Function at 0x40a1b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429470
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x43b070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x60], 0
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00404fb0
push str.Models
lea eax, [ebp - 0x50]
mov dword [ebp - 0x60], 1
push eax
push str.Resources
lea eax, [ebp - 0x4c]
mov ecx, 0x43c99c
push eax
call fcn.00402ae0
mov ecx, eax
call fcn.00402ae0
cmp dword [ebx + 0x20], 0x10
lea eax, [ebx + 0xc]
cmovae eax, dword [ebx + 0xc]
push eax
push ecx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.00402be0
push str.path
lea eax, [ebp - 0x6c]
push eax
push str.Mesh
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x48]
call fcn.00402ae0
mov ecx, eax
call fcn.00402b60
mov edx, dword [eax]
test edx, edx
je 0x40a27a
mov edx, dword [edx + 8]
test edx, edx
jne 0x40a27f
mov edx, 0x434f43
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp byte [edx], 0
jne 0x40a29a
xor ecx, ecx
jmp 0x40a2a9
mov ecx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a2a0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403350
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x50], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x40a2d7
mov eax, dword [ecx]
jmp 0x40a2d9
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.00403450
mov byte [ebp - 4], 3
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x43ca84]
cmp eax, dword [ecx + 4]
jle 0x40a33f
push 0x43ca84
call fcn.0040be8c
add esp, 4
cmp dword [0x43ca84], 0xffffffff
jne 0x40a33f
mov byte [ebp - 4], 4
call fcn.00406860
push 0x4295c0
call fcn.0040c216
add esp, 4
mov byte [ebp - 4], 3
push 0x43ca84
call fcn.0040be4d
add esp, 4
mov ecx, 0x43ca70
mov byte [ebp - 4], 2
call fcn.00408f80
mov dword [esi + 4], eax
lea ecx, [ebp - 0x48]
push str.Material
lea eax, [ebp - 0x4c]
push eax
call fcn.00402ae0
push str.Texture
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00402ae0
push str.PhongParameters
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00402ae0
push str.path
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x50]
call fcn.00402b60
mov edx, dword [eax]
test edx, edx
je 0x40a3a1
mov edx, dword [edx + 8]
test edx, edx
jne 0x40a3a6
mov edx, 0x434f43
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp byte [edx], 0
jne 0x40a3c1
xor ecx, ecx
jmp 0x40a3cf
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a3c6
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00403350
push str.diffuse
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x48]
call fcn.00402b60
mov edi, dword [eax]
test edi, edi
je 0x40a3f7
mov edi, dword [edi + 8]
test edi, edi
jne 0x40a3fc
mov edi, 0x434f43
push str.ambient
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x48]
call fcn.00402b60
mov eax, dword [eax]
test eax, eax
je 0x40a41d
mov eax, dword [eax + 8]
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x40a424
mov dword [ebp - 0x4c], 0x434f43
push str.specular
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x48]
call fcn.00402b60
mov eax, dword [eax]
test eax, eax
je 0x40a445
mov eax, dword [eax + 8]
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x40a44c
mov dword [ebp - 0x50], 0x434f43
push str.shininess
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x48]
call fcn.00402b60
mov eax, dword [eax]
test eax, eax
je 0x40a46d
mov eax, dword [eax + 8]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x40a474
mov dword [ebp - 0x48], 0x434f43
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
push str._f__f__f
push edi
call fcn.00409720
movss xmm0, dword [ebp - 0x54]
lea eax, [ebp - 0x5c]
add esp, 0x14
movss dword [esi + 0x20], xmm0
movss xmm0, dword [ebp - 0x58]
movss dword [esi + 0x24], xmm0
movss xmm0, dword [ebp - 0x5c]
push eax
lea eax, [ebp - 0x58]
movss dword [esi + 0x28], xmm0
push eax
lea eax, [ebp - 0x54]
mov dword [esi + 0x2c], 0x3f800000
push eax
push str._f__f__f
push dword [ebp - 0x4c]
call fcn.00409720
movss xmm0, dword [ebp - 0x54]
lea eax, [ebp - 0x5c]
add esp, 0x14
movss dword [esi + 0x10], xmm0
movss xmm0, dword [ebp - 0x58]
movss dword [esi + 0x14], xmm0
movss xmm0, dword [ebp - 0x5c]
push eax
lea eax, [ebp - 0x58]
movss dword [esi + 0x18], xmm0
push eax
lea eax, [ebp - 0x54]
mov dword [esi + 0x1c], 0x3f800000
push eax
push str._f__f__f
push dword [ebp - 0x50]
call fcn.00409720
movss xmm0, dword [ebp - 0x54]
lea eax, [ebp - 0x64]
add esp, 0x14
movss dword [esi + 0x30], xmm0
movss xmm0, dword [ebp - 0x58]
movss dword [esi + 0x34], xmm0
movss xmm0, dword [ebp - 0x5c]
push eax
push 0x435440
push dword [ebp - 0x48]
movss dword [esi + 0x38], xmm0
mov dword [esi + 0x3c], 0x3f800000
call fcn.00409720
movss xmm0, dword [ebp - 0x64]
lea ecx, [ebp - 0x44]
add esp, 0xc
movss dword [esi + 0x40], xmm0
call fcn.004031d0
lea ecx, [ebp - 0x2c]
call fcn.004031d0
lea ecx, [ebx + 0xc]
call fcn.004031d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040bd25
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c