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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe4
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xcc]
movss xmm0, dword [ebx + 0x14]
comiss xmm0, dword [eax + 0x20]
push esi
push edi
jbe 0x480723
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
test al, al
je 0x480723
mov eax, dword [ebx + 0xcc]
movss xmm0, dword [eax + 0x20]
comiss xmm0, dword [0x559ad8]
jbe 0x480723
mov ecx, dword [0x69ea4c]
mov eax, dword [eax + 0x28]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx]
xor edi, edi
push edi
push eax
call dword [edx + 4]
mov ecx, dword [0x69ea4c]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [esi + 4]
push edi
push eax
mov dword [esp + 0x1c], esi
call dword [edx + 4]
mov ecx, dword [0x69ea4c]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov dword [esp + 0xa4], eax
mov eax, dword [esi + 8]
push edi
push eax
call dword [edx + 4]
mov dword [esp + 0xa8], eax
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], edi
mov dword [esp + 0x10], edi
je 0x4801e4
mov eax, dword [0x69ea4c]
mov esi, dword [esi + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push edi
push esi
call dword [eax + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x40]
mov esi, eax
mov eax, dword [esp + 0xa4]
lea edi, [esp + 0xac]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xcc], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x40]
movss xmm0, dword [ebx + 0x64]
subss xmm0, dword [eax]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [ebx + 0x68]
subss xmm0, dword [eax + 4]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [ebx + 0x6c]
subss xmm0, dword [eax + 8]
mov eax, dword [ebx + 0xcc]
mov eax, dword [eax + 0x24]
test eax, eax
movss dword [esp + 0x2c], xmm0
jne 0x4804d8
fld dword [esp + 0x24]
push ecx
push ecx
fstp dword [esp + 4]
fld dword [esp + 0x30]
fstp dword [esp]
call fcn.0040daf5
mulss xmm0, dword [0x57fabc]
pop ecx
pop ecx
cvttss2si eax, xmm0
mov cx, ax
mov eax, 0x4000
sub ax, cx
lea ecx, [esp + 0xd0]
call fcn.0043196e
mov eax, dword [0x590f14]
and dword [esp + 0x10], 0
test eax, eax
jle 0x48071f
mov ecx, dword [esp + 0x10]
movss xmm0, dword [0x590f28]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
cvtsi2ss xmm1, ecx
lea eax, [esp + 0x88]
mulss xmm0, xmm1
mulss xmm1, dword [0x559ad8]
push eax
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x80]
movss dword [esp + 0x80], xmm0
movss dword [esp + 0x84], xmm1
movss dword [esp + 0x88], xmm1
call fcn.00431b49
xorps xmm0, xmm0
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x2c]
shr eax, 1
add esp, 4
test al, 1
movss dword [esp + 0x68], xmm0
movss dword [esp + 0x64], xmm0
movss dword [esp + 0x60], xmm0
movss dword [esp + 0x5c], xmm0
movss dword [esp + 0x54], xmm0
movss dword [esp + 0x50], xmm0
movss dword [esp + 0x4c], xmm0
movss dword [esp + 0x48], xmm0
movss dword [esp + 0x40], xmm0
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x34], xmm0
movss xmm0, dword [0x55b520]
movss dword [esp + 0x6c], xmm0
movss dword [esp + 0x58], xmm0
movss dword [esp + 0x44], xmm0
movss dword [esp + 0x30], xmm0
je 0x480401
movss xmm0, dword [0x57fc80]
movss xmm1, dword [esp + 0x24]
mov eax, dword [ebx]
mulss xmm1, xmm0
movss dword [esp + 0x18], xmm1
movss xmm1, dword [esp + 0x28]
mulss xmm1, xmm0
movss dword [esp + 0x1c], xmm1
movss xmm1, dword [esp + 0x2c]
mulss xmm1, xmm0
mov ecx, ebx
movss dword [esp + 0x20], xmm1
call dword [eax + 0x40]
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss xmm2, dword [eax + 8]
addss xmm0, dword [esp + 0x18]
addss xmm1, dword [esp + 0x1c]
addss xmm2, dword [esp + 0x20]
movss dword [esp + 0x60], xmm0
movss xmm0, dword [0x55b520]
movss dword [esp + 0x64], xmm1
movss dword [esp + 0x68], xmm2
jmp 0x480422
movss xmm1, dword [ebx + 0x64]
movss dword [esp + 0x60], xmm1
movss xmm1, dword [ebx + 0x68]
movss dword [esp + 0x64], xmm1
movss xmm1, dword [ebx + 0x6c]
movss dword [esp + 0x68], xmm1
movss xmm1, dword [esp + 0x88]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x98]
movss dword [esp + 0x98], xmm1
movss xmm1, dword [esp + 0x90]
push eax
lea eax, [esp + 0xe8]
movss dword [esp + 0xa0], xmm1
movss xmm1, dword [esp + 0x98]
push eax
movss dword [esp + 0x78], xmm0
movss dword [esp + 0xa8], xmm1
movss dword [esp + 0xac], xmm0
call sub.d3dx9_33.dll_D3DXVec4Transform
lea esi, [esp + 0xe0]
lea edi, [esp + 0xb8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
push 0
lea edx, [esp + 0xc0]
movsd dword es:[edi], dword [esi]
call fcn.00463060
pop ecx
pop ecx
lea eax, [esp + 0xac]
push eax
push dword [esp + 0x18]
mov edi, ebx
movss dword [esp + 0xc8], xmm0
call fcn.0048072e
inc dword [esp + 0x10]
mov eax, dword [0x590f14]
cmp dword [esp + 0x10], eax
jl 0x4802b2
jmp 0x48071f
cmp eax, 1
jne 0x48071f
movss xmm0, dword [0x55ab10]
mov eax, dword [0x590f3c]
and dword [esp + 0x10], 0
test eax, eax
movss dword [esp + 0x88], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x8c], xmm0
movss dword [esp + 0x90], xmm0
jle 0x48071f
cvtsi2ss xmm0, dword [esp + 0x10]
mulss xmm0, dword [0x57f9b0]
cvtsi2ss xmm1, eax
divss xmm0, xmm1
mulss xmm0, dword [0x57f9f0]
lea ecx, [esp + 0xe0]
cvttss2si eax, xmm0
call fcn.0043196e
lea eax, [esp + 0x7c]
push eax
mov eax, ecx
lea ecx, [esp + 0x8c]
call fcn.00431b49
xorps xmm0, xmm0
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x2c]
shr eax, 1
add esp, 4
test al, 1
movss dword [esp + 0x68], xmm0
movss dword [esp + 0x64], xmm0
movss dword [esp + 0x60], xmm0
movss dword [esp + 0x5c], xmm0
movss dword [esp + 0x54], xmm0
movss dword [esp + 0x50], xmm0
movss dword [esp + 0x4c], xmm0
movss dword [esp + 0x48], xmm0
movss dword [esp + 0x40], xmm0
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x34], xmm0
movss xmm0, dword [0x55b520]
movss dword [esp + 0x6c], xmm0
movss dword [esp + 0x58], xmm0
movss dword [esp + 0x44], xmm0
movss dword [esp + 0x30], xmm0
je 0x48064d
movss xmm0, dword [0x584b10]
movss xmm1, dword [esp + 0x24]
mov eax, dword [ebx]
mulss xmm1, xmm0
movss dword [esp + 0x18], xmm1
movss xmm1, dword [esp + 0x28]
mulss xmm1, xmm0
movss dword [esp + 0x1c], xmm1
movss xmm1, dword [esp + 0x2c]
mulss xmm1, xmm0
mov ecx, ebx
movss dword [esp + 0x20], xmm1
call dword [eax + 0x40]
movss xmm0, dword [esp + 0x18]
addss xmm0, dword [eax]
movss xmm1, dword [eax + 8]
addss xmm1, dword [esp + 0x20]
movaps xmm2, xmm0
movss xmm0, dword [eax + 4]
addss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [0x55b520]
movss dword [esp + 0x60], xmm2
jmp 0x480668
movss xmm1, dword [ebx + 0x64]
movss dword [esp + 0x60], xmm1
movss xmm1, dword [ebx + 0x68]
movss dword [esp + 0x64], xmm1
movss xmm1, dword [ebx + 0x6c]
lea eax, [esp + 0x30]
push eax
movss dword [esp + 0x6c], xmm1
movss xmm1, dword [esp + 0x80]
lea eax, [esp + 0x98]
movss dword [esp + 0x98], xmm1
movss xmm1, dword [esp + 0x84]
push eax
lea eax, [esp + 0xd8]
movss dword [esp + 0xa0], xmm1
movss xmm1, dword [esp + 0x8c]
push eax
movss dword [esp + 0x78], xmm0
movss dword [esp + 0xa8], xmm1
movss dword [esp + 0xac], xmm0
call sub.d3dx9_33.dll_D3DXVec4Transform
lea esi, [esp + 0xd0]
lea edi, [esp + 0xb8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
push 0
lea edx, [esp + 0xc0]
movsd dword es:[edi], dword [esi]
call fcn.00463060
pop ecx
pop ecx
lea eax, [esp + 0xac]
push eax
push dword [esp + 0x18]
mov edi, ebx
movss dword [esp + 0xc8], xmm0
call fcn.0048072e
inc dword [esp + 0x10]
mov eax, dword [0x590f3c]
cmp dword [esp + 0x10], eax
jl 0x480519
mov al, 1
jmp 0x480725
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4