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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x48b040]
xor eax, esp
mov dword [esp + 0x84], eax
mov edx, dword [0x48d2c8]
movaps xmm6, xmm0
push ebx
push ebp
push esi
mov eax, dword [edx + 0x3d04]
mov esi, ecx
mov ebp, dword [edx + 0x4a34]
push edi
mov dword [esp + 0x14], esi
mov ebx, dword [eax + 0x30]
mov eax, dword [edx + 0x4a2c]
movss dword [esp + 0x1c], xmm6
mov dword [esp + 0x34], ebx
lea eax, [eax*4]
add eax, ebp
mov dword [esp + 0x38], eax
cmp ebp, eax
je 0x4053b3
nop dword [eax + eax]
mov edi, dword [ebp]
lea eax, [esp + 0x74]
mov ecx, 4
nop dword [eax]
mov dword [eax], 0
lea eax, [eax + 8]
mov dword [eax - 4], 0
sub ecx, 1
jne 0x404fd0
cmp esi, 8
ja 0x4053a6
test byte [ebx], 2
jne 0x4053a6
mov eax, dword [ebx + 0x468]
lea esi, [esi + esi*2]
mov ecx, dword [ebx + 0x50]
movss xmm3, dword [ebx + 0x2c]
movss xmm0, dword [esi*8 + 0x480534]
movss xmm7, dword [esi*8 + 0x480530]
lea edx, [eax*8]
sub edx, eax
movss dword [esp + 0x10], xmm0
movaps xmm0, xmm3
movss xmm1, dword [esp + 0xa8]
subss xmm1, dword [esi*8 + 0x480538]
movss xmm2, dword [ebx + 0x30]
movzx eax, word [ecx + edx*4 + 4]
movss dword [esp + 0x18], xmm7
movss dword [esp + 0x20], xmm1
movd xmm5, eax
movzx eax, word [ecx + edx*4 + 6]
cvtdq2ps xmm5, xmm5
movd xmm4, eax
addss xmm5, dword [esi*8 + 0x480528]
cvtdq2ps xmm4, xmm4
mulss xmm0, xmm5
addss xmm4, dword [esi*8 + 0x48052c]
movss dword [esp + 0x3c], xmm1
movss dword [esp + 0x74], xmm0
movaps xmm0, xmm7
addss xmm0, xmm5
addss xmm5, dword [0x48351c]
mulss xmm2, xmm4
addss xmm4, dword [esp + 0x10]
mulss xmm0, xmm3
movss dword [esp + 0x78], xmm2
movss dword [esp + 0x88], xmm2
mulss xmm4, dword [ebx + 0x30]
movss xmm2, dword [esp + 0xac]
subss xmm2, dword [esi*8 + 0x48053c]
movss dword [esp + 0x7c], xmm0
movaps xmm0, xmm5
mulss xmm0, xmm3
addss xmm5, xmm7
movss dword [esp + 0x80], xmm4
movss dword [esp + 0x90], xmm4
movss xmm4, dword [edi + 8]
addss xmm4, dword [edi + 0x10]
movss dword [esp + 0x84], xmm0
movaps xmm0, xmm7
addss xmm0, dword [0x4834c8]
mulss xmm5, xmm3
movss xmm3, dword [esp + 0x10]
addss xmm3, dword [0x4834c8]
mulss xmm0, xmm6
movss dword [esp + 0x8c], xmm5
movaps xmm5, xmm1
movss dword [esp + 0x28], xmm2
movss dword [esp + 0x2c], xmm0
addss xmm5, xmm0
movss xmm0, dword [edi + 0xc]
addss xmm0, dword [edi + 0x14]
mulss xmm3, xmm6
movss dword [esp + 0x40], xmm2
comiss xmm0, xmm2
addss xmm3, xmm2
jbe 0x4053a2
comiss xmm3, dword [edi + 0xc]
jbe 0x4053a2
comiss xmm4, xmm1
jbe 0x4053a2
comiss xmm5, dword [edi + 8]
jbe 0x4053a2
push str.Foreground
mov edx, 1
mov ecx, edi
call fcn.00407280
mov esi, eax
add esp, 4
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 0x48]
mov ebx, dword [esi + 0x4c]
cmp ecx, ebx
jne 0x4051c7
inc ecx
test ebx, ebx
je 0x4051b4
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ebx
jmp 0x4051b9
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x48]
call fcn.0041a620
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x50]
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4], ebx
mov ecx, esi
inc dword [esi + 0x48]
mov dword [esi + 0x70], ebx
call fcn.00424250
movss xmm0, dword [esp + 0x18]
lea eax, [esp + 0x8c]
addss xmm0, dword [0x4834a4]
movss xmm1, dword [esp + 0x1c]
xorps xmm4, xmm4
push 0x30000000
push eax
lea eax, [esp + 0x8c]
mov ecx, esi
mulss xmm0, xmm1
push eax
lea eax, [esp + 0x50]
push eax
addss xmm0, dword [esp + 0x30]
lea eax, [esp + 0x5c]
push eax
push ebx
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [esp + 0x28]
addss xmm0, xmm4
mulss xmm0, xmm1
addss xmm0, dword [esp + 0x40]
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0x60], xmm0
movss xmm0, dword [esp + 0x38]
addss xmm0, xmm1
movss dword [esp + 0x64], xmm0
movaps xmm0, xmm1
mulss xmm0, xmm4
addss xmm0, dword [esp + 0x40]
movss dword [esp + 0x48], xmm0
movss dword [esp + 0x68], xmm0
call fcn.00426a20
movss xmm0, dword [esp + 0x20]
lea eax, [esp + 0x8c]
addss xmm0, dword [esp + 0x2c]
push 0x30000000
push eax
lea eax, [esp + 0x8c]
mov ecx, esi
push eax
movss dword [esp + 0x60], xmm0
lea eax, [esp + 0x60]
movss xmm0, dword [esp + 0x30]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esp + 0x28]
addss xmm0, xmm0
push eax
lea eax, [esp + 0x6c]
push eax
push ebx
addss xmm0, dword [esp + 0x38]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [esp + 0x48]
movss dword [esp + 0x78], xmm0
call fcn.00426a20
movss xmm1, dword [esp + 0x18]
lea eax, [esp + 0x8c]
mulss xmm1, dword [esp + 0x1c]
push 0xff000000
push eax
lea eax, [esp + 0x8c]
addss xmm1, dword [esp + 0x28]
push eax
lea eax, [esp + 0x70]
push eax
movss dword [esp + 0x28], xmm1
movss dword [esp + 0x74], xmm1
movss xmm1, dword [esp + 0x20]
mulss xmm1, dword [esp + 0x2c]
addss xmm1, dword [esp + 0x38]
movss dword [esp + 0x20], xmm1
movss dword [esp + 0x78], xmm1
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
push ebx
call fcn.00426a20
movss xmm1, dword [esp + 0x18]
lea eax, [esp + 0x7c]
movss xmm0, dword [esp + 0x10]
mov ecx, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x7c]
movss dword [esp + 0x74], xmm1
push eax
lea eax, [esp + 0x78]
movss dword [esp + 0x7c], xmm0
push eax
lea eax, [esp + 0x4c]
push eax
push ebx
call fcn.00426a20
mov ecx, dword [esi + 0x48]
sub ecx, 1
mov dword [esi + 0x48], ecx
jne 0x405387
xor eax, eax
jmp 0x40538e
mov eax, dword [esi + 0x50]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, esi
mov dword [esi + 0x70], eax
call fcn.00424250
movss xmm6, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
add ebp, 4
cmp ebp, dword [esp + 0x38]
jne 0x404fc0
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044c777
add esp, 0x8c
ret