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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x228
mov eax, dword [0x4600b4]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x1d], 0
je 0x40d8ee
call fcn.0040a4b0
mov eax, dword [eax]
mov edi, dword [eax + 4]
call fcn.0040a4b0
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x20], eax
call fcn.0040a4b0
mov eax, dword [eax + 0x20]
mov dword [esp + 0x14], eax
call fcn.0040a4b0
xorps xmm0, xmm0
mov dword [esi + 0xcc], 0
sub esp, 0xc
mov dword [esi + 0xc8], 0
mov dword [esi + 0xc4], 0
mov eax, dword [eax + 0x28]
mov dword [esp + 0x24], eax
lea eax, [esi + 0x94]
mov dword [eax + 0x2c], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax + 0x3c], 0x3f800000
mov dword [eax + 0x28], 0x3f800000
mov dword [eax + 0x14], 0x3f800000
mov dword [eax], 0x3f800000
lea eax, [esp + 0x1b4]
movq qword [esp + 0x3c], xmm0
movss xmm0, dword [esi + 0x90]
movss dword [esp + 8], xmm0
movss xmm0, dword [esi + 0x88]
movss dword [esp + 4], xmm0
movss xmm0, dword [esi + 0x8c]
movss dword [esp], xmm0
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixRotationYawPitchRoll]
lea eax, [esp + 0x1a8]
push eax
lea eax, [esi + 0x94]
push eax
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixMultiply]
movss xmm0, dword [esi + 0x84]
lea eax, [esp + 0x1e8]
sub esp, 0xc
movss dword [esp + 8], xmm0
movss xmm0, dword [esi + 0x80]
movss dword [esp + 4], xmm0
movss xmm0, dword [esi + 0x7c]
movss dword [esp], xmm0
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixTranslation]
lea eax, [esp + 0x1e8]
push eax
lea eax, [esi + 0x94]
push eax
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixMultiply]
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x40d469
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x120], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x130], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [esp + 0x140], xmm0
movups xmm0, xmmword [eax + 0x30]
lea eax, [esp + 0x120]
push eax
lea eax, [esi + 0x94]
push eax
push eax
movups xmmword [esp + 0x15c], xmm0
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixMultiply]
mov eax, dword [edi]
lea ecx, [esi + 0x94]
push ecx
push 0x100
push edi
call dword [eax + 0xb0]
mov eax, dword [edi]
lea ecx, [esp + 0x160]
push ecx
push edi
call dword [eax + 0xc8]
mov ecx, dword [esi + 0x18]
cmp ecx, dword [0x46328c]
jg 0x40d5c1
test ecx, ecx
js 0x40d5c1
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x40d5c1
mov eax, dword [ecx + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, eax
xor ecx, ecx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 8], ecx
cmp dword [eax + 0xc], ecx
jle 0x40d5c1
movss xmm1, dword [0x45746c]
movss xmm2, dword [0x45745c]
nop dword [eax + eax]
cmp byte [esi + 0x1c], 0
mov eax, dword [eax + 8]
shufps xmm2, xmm2, 0
shufps xmm1, xmm1, 0
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x1c], eax
jne 0x40d514
mov eax, dword [edi]
push edx
push edi
call dword [eax + 0xc4]
jmp 0x40d553
mov eax, dword [esp + 0x18]
movss xmm0, dword [eax + 0x10]
ucomiss xmm0, dword [0x4574a4]
lahf
test ah, 0x44
jnp 0x40d533
movups xmm0, xmmword [esi + 0x50]
subps xmm0, xmm1
jmp 0x40d542
movups xmm0, xmmword [edx + 0x30]
movups xmmword [esi + 0x50], xmm0
movups xmm0, xmmword [esi + 0x50]
addps xmm0, xmm2
movups xmmword [esi + 0x50], xmm0
mov ecx, dword [edi]
lea eax, [esi + 0x20]
push eax
push edi
call dword [ecx + 0xc4]
mov eax, dword [esp + 0x1c]
cmp eax, dword [0x463288]
jg 0x40d572
test eax, eax
js 0x40d572
mov ecx, dword [esp + 0x20]
imul eax, eax, 0x104
mov ecx, dword [eax + ecx]
jmp 0x40d574
xor ecx, ecx
mov eax, dword [edi]
push ecx
push 0
push edi
call dword [eax + 0x104]
mov ecx, dword [esp + 0xc]
push dword [esp + 8]
mov eax, dword [ecx]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
inc ecx
mov edx, dword [esp + 0x10]
movss xmm1, dword [0x45746c]
add edx, 0x48
movss xmm2, dword [0x45745c]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], edx
cmp ecx, dword [eax + 0xc]
jl 0x40d4f0
mov eax, dword [edi]
lea ecx, [esp + 0x160]
push ecx
push edi
call dword [eax + 0xc4]
cmp byte [esi + 0xdc], 1
jne 0x40d8ee
mov eax, dword [edi]
lea ecx, [esp + 0x38]
push ecx
push 0
push edi
call dword [eax + 0xd0]
movss xmm0, dword [0x4577e0]
movss xmm2, dword [esp + 0x7c]
movss xmm1, dword [esp + 0x80]
xorps xmm2, xmm0
movss xmm3, dword [esp + 0x78]
xorps xmm1, xmm0
movss dword [esp + 0xb4], xmm2
xorps xmm3, xmm0
movss xmm2, dword [esi + 0xc8]
movss dword [esp + 0xb8], xmm1
movss xmm1, dword [0x457670]
comiss xmm2, xmm1
mov dword [esp + 0xbc], 0
movss dword [esp + 0xb0], xmm3
jb 0x40d8ee
movss xmm0, dword [esp + 0x30]
sub esp, 0xc
unpcklps xmm0, xmm1
mov ecx, esp
movss xmm1, dword [esi + 0xc4]
movq qword [esp + 0xb0], xmm0
movss xmm0, dword [esi + 0xcc]
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x38]
unpcklps xmm1, xmm2
mov dword [esp + 0xb8], eax
movss dword [esp + 0x38], xmm0
mov eax, dword [esp + 0x38]
movq qword [ecx], xmm1
mov dword [ecx + 8], eax
call fcn.0040bee0
addss xmm0, dword [0x4574b8]
movq xmm1, qword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10c], eax
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0xa8]
movss dword [esp + 0xac], xmm0
movss xmm0, dword [0x4574a4]
push eax
lea eax, [esp + 0x118]
unpcklps xmm1, xmm0
push eax
movq qword [esp + 0x110], xmm1
call dword [sym.imp.d3dx9_43.dll_D3DXPlaneFromPointNormal]
lea eax, [esp + 0x110]
mov dword [esp + 0xf8], 0
push eax
lea eax, [esp + 0xb4]
mov dword [esp + 0xf8], 0
push eax
lea eax, [esp + 0xc8]
mov dword [esp + 0xf8], 0
push eax
mov dword [esp + 0xf8], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0x108], 0x3f800000
mov dword [esp + 0xf4], 0x3f800000
mov dword [esp + 0xe0], 0x3f800000
mov dword [esp + 0xcc], 0x3f800000
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixShadow]
lea eax, [esp + 0xc0]
push eax
lea eax, [esi + 0x94]
push eax
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixMultiply]
mov eax, dword [edi]
lea ecx, [esp + 0xc0]
push ecx
push 0x100
push edi
call dword [eax + 0xb0]
mov eax, dword [edi]
lea ecx, [esp + 0x160]
push ecx
push edi
call dword [eax + 0xc8]
mov eax, dword [esi + 0x18]
cmp eax, dword [0x46328c]
jg 0x40d8dd
test eax, eax
js 0x40d8dd
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
mov dword [esp + 8], eax
test eax, eax
je 0x40d8dd
mov eax, dword [eax + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [esp + 8]
mov dword [esp + 0xc], 0
cmp dword [eax + 0xc], 0
jle 0x40d8dd
lea ecx, [esi + 0x20]
cmp byte [esi + 0x1c], 0
push ecx
push edi
jne 0x40d8a3
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0x3f333333
mov dword [ecx], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0x3f333333
mov eax, dword [edi]
call dword [eax + 0xc4]
mov eax, dword [edi]
push 0
push 0
push edi
call dword [eax + 0x104]
mov ecx, dword [esp + 8]
push dword [esp + 0xc]
mov eax, dword [ecx]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [ecx + 0xc]
lea ecx, [esi + 0x20]
jl 0x40d864
mov eax, dword [edi]
lea ecx, [esp + 0x160]
push ecx
push edi
call dword [eax + 0xc4]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
xor ecx, esp
call fcn.00419f88
mov esp, ebp
pop ebp
ret