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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x148
mov eax, dword [0x5de00c]
xor eax, esp
mov dword [esp + 0x144], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], eax
cmp dword [edi + 0xac], 0
je 0x4e33ec
cmp dword [edi + 0xb0], 0
je 0x4e33ec
movss xmm0, dword [edi + 8]
lea eax, [esp + 0x40]
push ecx
movss dword [esp], xmm0
push eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x84], 0x3f800000
mov dword [esp + 0x70], 0x3f800000
mov dword [esp + 0x5c], 0x3f800000
mov dword [esp + 0x48], 0x3f800000
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixRotationY]
lea ecx, [esp + 0x84]
mov dword [esp + 0xc8], 0
push ecx
lea esi, [edi + 0x20]
mov dword [esp + 0xc8], 0
lea eax, [edi + 0x14]
mov dword [esp + 0xc4], 0
push esi
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xdc], 0x3f800000
mov dword [esp + 0xc8], 0x3f800000
mov dword [esp + 0xb4], 0x3f800000
mov dword [esp + 0xa0], 0x3f800000
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0x3f800000
mov dword [esp + 0x9c], 0
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixLookAtLH]
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXMatrixMultiply]
movaps xmm0, xmmword [esp + 0xd0]
lea eax, [esp + 0x34]
movaps xmmword [esp + 0x40], xmm0
movaps xmm0, xmmword [esp + 0xe0]
movaps xmmword [esp + 0x50], xmm0
movaps xmm0, xmmword [esp + 0xf0]
movaps xmmword [esp + 0x60], xmm0
movaps xmm0, xmmword [esp + 0x100]
movaps xmmword [esp + 0x70], xmm0
movss xmm0, dword [esi]
subss xmm0, dword [edi + 0x14]
push eax
push eax
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esi + 4]
subss xmm0, dword [edi + 0x18]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esi + 8]
subss xmm0, dword [edi + 0x1c]
movss dword [esp + 0x44], xmm0
call dword [sym.imp.d3dx9_43.dll_D3DXVec3Normalize]
movss xmm0, dword [0x5c6ed4]
call fcn.004cfb70
movss xmm1, dword [edi + 0x90]
movaps xmm2, xmm0
mulss xmm2, dword [edi + 0x84]
xorps xmm0, xmm0
xor ecx, ecx
mov eax, dword [esp + 0xc]
mulss xmm1, dword [0x5c6ebc]
mov dword [esp + 8], ecx
addss xmm2, xmm0
subss xmm0, dword [eax]
subss xmm1, dword [edi + 0x18]
mov eax, dword [edi + 0xb8]
sub eax, dword [edi + 0xb4]
subss xmm2, dword [edi + 0x1c]
mulss xmm0, dword [esp + 0x34]
sar eax, 2
mulss xmm1, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mulss xmm2, dword [esp + 0x3c]
addss xmm1, xmm0
addss xmm2, xmm1
andps xmm2, xmmword [0x5c74b0]
movss dword [esp + 0x2c], xmm2
test eax, eax
je 0x4e30b1
mov edx, dword [sym.imp.d3dx9_43.dll_D3DXVec4Transform]
mov dword [esp + 0xc], edx
nop dword [eax + eax]
mov eax, dword [edi + 0xb4]
mov dword [esp + 0x28], 0x3f800000
mov esi, dword [eax + ecx*4]
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
movss xmm0, dword [esi]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esi + 4]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esi + 8]
push eax
movss dword [esp + 0x30], xmm0
call edx
movss xmm3, dword [esi + 0x18]
movss xmm0, dword [esp + 0x1c]
movaps xmm1, xmm3
movss xmm6, dword [esp + 0x20]
movaps xmm4, xmm0
movss xmm5, dword [esp + 0x24]
subss xmm4, xmm3
mov ecx, dword [esp + 8]
addss xmm1, xmm6
mov edx, dword [esp + 0xc]
subss xmm6, xmm3
movaps xmm2, xmm3
inc ecx
addss xmm2, xmm0
mov dword [esp + 8], ecx
movss dword [esi + 0x40], xmm4
movss dword [esi + 0x44], xmm1
movss dword [esi + 0x48], xmm5
movss dword [esi + 0x4c], xmm2
movss dword [esi + 0x50], xmm1
movss dword [esi + 0x54], xmm5
movss dword [esi + 0x58], xmm4
movss dword [esi + 0x5c], xmm6
movss dword [esi + 0x60], xmm5
movss dword [esi + 0x64], xmm2
movss dword [esi + 0x68], xmm6
movss dword [esi + 0x6c], xmm5
cmp ecx, dword [esp + 0x10]
jb 0x4e2ff0
mov ecx, dword [0x5e45d0]
lea eax, [esp + 0x14]
mov esi, dword [esp + 0x18]
push 0
push eax
xor eax, eax
mov dword [esp + 0x14], 0x208
mov edx, dword [esi]
test ecx, ecx
sete al
test ecx, ecx
push eax
push 0
mov eax, 8
cmovne eax, dword [esp + 0x1c]
push eax
mov eax, dword [edi + 0xb8]
sub eax, dword [edi + 0xb4]
sar eax, 2
lea eax, [eax + eax*2]
shl eax, 4
push eax
push esi
call dword [edx + 0x68]
mov eax, dword [0x5e45d0]
mov ecx, dword [esp + 0x14]
neg eax
sbb eax, eax
and eax, 0x2000
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push 0
push ecx
call dword [edx + 0x2c]
xor ecx, ecx
mov dword [esp + 8], ecx
cmp dword [esp + 0x10], ecx
jbe 0x4e319b
xor esi, esi
nop dword [eax]
mov eax, dword [edi + 0xb4]
lea esi, [esi + 0x30]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax + ecx*4]
movq xmm0, qword [ecx + 0x40]
movq qword [esi + edx - 0x30], xmm0
mov eax, dword [ecx + 0x48]
mov dword [esi + edx - 0x28], eax
movq xmm0, qword [ecx + 0x4c]
movq qword [esi + edx - 0x24], xmm0
mov eax, dword [ecx + 0x54]
mov dword [esi + edx - 0x1c], eax
movq xmm0, qword [ecx + 0x58]
movq qword [esi + edx - 0x18], xmm0
mov eax, dword [ecx + 0x60]
mov dword [esi + edx - 0x10], eax
movq xmm0, qword [ecx + 0x64]
movq qword [esi + edx - 0xc], xmm0
mov eax, dword [ecx + 0x6c]
mov ecx, dword [esp + 8]
inc ecx
mov dword [esi + edx - 4], eax
mov dword [esp + 8], ecx
cmp ecx, dword [esp + 0x10]
jb 0x4e3130
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [esi]
push 0xc
push 0
push dword [esp + 0x1c]
push 0
push esi
call dword [eax + 0x190]
mov eax, dword [esi]
push 8
push 0
push dword [edi + 0x7c]
push 1
push esi
call dword [eax + 0x190]
movaps xmm0, xmmword [0x5c7310]
movsx eax, word [edi + 0x80]
movups xmmword [esp + 0x128], xmm0
mov dword [esp + 0x11c], 1
movaps xmm0, xmmword [0x5c7570]
lea eax, [eax + eax*2]
mov dword [esp + 0x120], 0xffffffff
mov dword [esp + 0x124], 0
movups xmmword [esp + 0x138], xmm0
mov dword [esp + 0x148], 0
cmp dword [esp + eax*4 + 0x11c], 0xffffffff
mov dword [esp + 8], 0
je 0x4e33de
mov eax, dword [edi + 0xac]
push 0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xfc]
movsx ecx, word [edi + 0x80]
mov eax, dword [esp + 8]
mov edx, dword [edi + 0xac]
lea eax, [eax + ecx*2]
mov esi, dword [edx]
add eax, ecx
push dword [esp + eax*4 + 0x11c]
push edx
call dword [esi + 0x100]
xor esi, esi
cmp dword [esp + 0x10], esi
jbe 0x4e339d
nop dword [eax]
mov eax, dword [edi + 0xb4]
lea ecx, [esi*4]
mov eax, dword [ecx + eax]
mov ecx, dword [edi + 0xac]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0x20]
movss xmm0, dword [eax + 0x44]
movss xmm1, dword [eax + 0x40]
subss xmm1, dword [edi + 0x14]
subss xmm0, dword [edi + 0x18]
mulss xmm1, dword [esp + 0x34]
mulss xmm0, dword [esp + 0x38]
addss xmm1, xmm0
movss xmm0, dword [eax + 0x48]
subss xmm0, dword [edi + 0x1c]
mulss xmm0, dword [esp + 0x3c]
addss xmm1, xmm0
andps xmm1, xmmword [0x5c74b0]
cmp ecx, 1
jne 0x4e32f2
movss xmm0, dword [esp + 0x2c]
comiss xmm0, xmm1
ja 0x4e3392
jmp 0x4e3302
cmp ecx, 2
jne 0x4e3302
comiss xmm1, dword [esp + 0x2c]
jae 0x4e3392
movss xmm0, dword [eax + 0x20]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [eax + 0x24]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [eax + 0x28]
movss dword [esp + 0x24], xmm0
movsd xmm0, qword [eax + 0x38]
subsd xmm0, qword [eax + 0x30]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x5c7158]
cvtps2pd xmm0, xmm0
divsd xmm0, qword [eax + 0x38]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x1c]
cvtsd2ss xmm0, xmm0
push edx
push str.g_Color
mov eax, dword [ecx]
push ecx
mulss xmm0, dword [edi + 0x10]
movss dword [esp + 0x34], xmm0
call dword [eax + 0x88]
mov ecx, dword [esp + 0xc]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x104]
mov edx, dword [esp + 0x18]
lea ecx, [esi*4]
push 2
push ecx
push 5
mov eax, dword [edx]
push edx
call dword [eax + 0x144]
inc esi
cmp esi, dword [esp + 0x10]
jb 0x4e3280
mov eax, dword [edi + 0xac]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x108]
mov eax, dword [edi + 0xac]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10c]
mov eax, dword [esp + 8]
movsx ecx, word [edi + 0x80]
inc eax
mov dword [esp + 8], eax
lea eax, [eax + ecx*2]
add eax, ecx
cmp dword [esp + eax*4 + 0x11c], 0xffffffff
jne 0x4e3234
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4e33ec
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
call fcn.0052d3c5
mov esp, ebp
pop ebp
ret 0x1c