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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x51a900]
xor eax, esp
mov dword [esp + 0x84], eax
mov edx, dword [0x524aa8]
movaps xmm6, xmm0
push ebx
push ebp
push esi
mov eax, dword [edx + 0x3d04]
mov esi, ecx
mov ebx, dword [edx + 0x49ec]
push edi
mov dword [esp + 0x10], esi
mov ebp, dword [eax + 0x30]
mov eax, dword [edx + 0x49e4]
movss dword [esp + 0x18], xmm6
mov dword [esp + 0x34], ebp
lea eax, [ebx + eax*4]
mov dword [esp + 0x38], eax
cmp ebx, eax
je 0x43c49f
mov edi, dword [ebx]
lea eax, [esp + 0x74]
mov ecx, 4
mov dword [eax], 0
lea eax, [eax + 8]
mov dword [eax - 4], 0
sub ecx, 1
jne 0x43c0a0
cmp esi, 8
ja 0x43c492
test byte [ebp], 2
jne 0x43c492
mov eax, dword [ebp + 0x468]
lea esi, [esi + esi*2]
mov ecx, dword [ebp + 0x50]
movss xmm3, dword [ebp + 0x2c]
movss xmm0, dword [esi*8 + 0x50ff1c]
lea edx, [eax*8]
movss xmm7, dword [esi*8 + 0x50ff18]
sub edx, eax
movss xmm2, dword [ebp + 0x30]
movss dword [esp + 0x14], xmm0
movaps xmm0, xmm3
movss xmm1, dword [esp + 0xa8]
subss xmm1, dword [esi*8 + 0x50ff20]
movzx eax, word [ecx + edx*4 + 4]
movss dword [esp + 0x2c], xmm7
movd xmm5, eax
movzx eax, word [ecx + edx*4 + 6]
cvtdq2ps xmm5, xmm5
movd xmm4, eax
addss xmm5, dword [esi*8 + 0x50ff10]
cvtdq2ps xmm4, xmm4
mulss xmm0, xmm5
addss xmm4, dword [esi*8 + 0x50ff14]
movss dword [esp + 0x1c], xmm1
movss dword [esp + 0x74], xmm0
movaps xmm0, xmm5
addss xmm5, dword [0x511b78]
addss xmm0, xmm7
movss dword [esp + 0x3c], xmm1
mulss xmm2, xmm4
addss xmm4, dword [esp + 0x14]
mulss xmm0, xmm3
movss dword [esp + 0x78], xmm2
mulss xmm4, dword [ebp + 0x30]
movss dword [esp + 0x7c], xmm0
movaps xmm0, xmm5
addss xmm5, xmm7
mulss xmm0, xmm3
movss dword [esp + 0x80], xmm4
movss dword [esp + 0x90], xmm4
movss xmm4, dword [esp + 0x14]
addss xmm4, dword [0x511b30]
mulss xmm5, xmm3
movaps xmm3, xmm7
addss xmm3, dword [0x511b30]
movss dword [esp + 0x84], xmm0
movss xmm0, dword [edi + 8]
addss xmm0, dword [edi + 0x10]
movss dword [esp + 0x88], xmm2
movss xmm2, dword [esp + 0xac]
subss xmm2, dword [esi*8 + 0x50ff24]
mulss xmm3, xmm6
mulss xmm4, xmm6
comiss xmm0, xmm2
addss xmm3, xmm1
movss dword [esp + 0x8c], xmm5
movss xmm5, dword [edi + 4]
addss xmm4, xmm2
addss xmm5, dword [edi + 0xc]
movss dword [esp + 0x20], xmm2
movss dword [esp + 0x40], xmm2
movss dword [esp + 0x30], xmm3
jbe 0x43c48e
comiss xmm4, dword [edi + 8]
jbe 0x43c48e
comiss xmm5, xmm1
jbe 0x43c48e
comiss xmm3, dword [edi + 4]
jbe 0x43c48e
push str.Foreground
mov edx, 1
mov ecx, edi
call fcn.0043e350
mov edi, dword [ebp + 4]
add esp, 4
mov esi, eax
mov ecx, esi
push edi
call fcn.0045a5e0
movss xmm0, dword [esp + 0x2c]
lea eax, [esp + 0x8c]
addss xmm0, dword [0x511b04]
movss xmm4, dword [esp + 0x18]
xorps xmm5, xmm5
movss xmm1, dword [esp + 0x14]
mov ecx, esi
addss xmm1, xmm5
push 0x30000000
mulss xmm0, xmm4
push eax
lea eax, [esp + 0x8c]
mulss xmm1, xmm4
push eax
addss xmm0, dword [esp + 0x28]
lea eax, [esp + 0x50]
movss dword [esp + 0x30], xmm1
push eax
lea eax, [esp + 0x5c]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [esp + 0x30]
addss xmm0, xmm1
movaps xmm1, xmm4
mulss xmm1, xmm5
push eax
push edi
movss dword [esp + 0x60], xmm0
movss xmm0, dword [esp + 0x34]
addss xmm0, xmm4
movss dword [esp + 0x40], xmm1
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esp + 0x38]
addss xmm0, xmm1
movss dword [esp + 0x68], xmm0
call fcn.0045c730
movss xmm0, dword [esp + 0x30]
lea eax, [esp + 0x8c]
movss dword [esp + 0x54], xmm0
mov ecx, esi
movss xmm0, dword [esp + 0x20]
addss xmm0, dword [esp + 0x24]
push 0x30000000
push eax
lea eax, [esp + 0x8c]
push eax
movss dword [esp + 0x64], xmm0
lea eax, [esp + 0x60]
movss xmm0, dword [esp + 0x24]
addss xmm0, xmm0
push eax
lea eax, [esp + 0x6c]
push eax
push edi
addss xmm0, dword [esp + 0x34]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [esp + 0x38]
addss xmm0, dword [esp + 0x40]
movss dword [esp + 0x78], xmm0
call fcn.0045c730
movss xmm1, dword [esp + 0x2c]
mulss xmm1, dword [esp + 0x18]
movss xmm0, dword [esp + 0x1c]
movss xmm2, dword [esp + 0x14]
mulss xmm2, dword [esp + 0x18]
movaps xmm3, xmm1
addss xmm3, xmm0
addss xmm0, xmm1
movss dword [esp + 0x28], xmm3
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esp + 0x20]
movaps xmm1, xmm0
mov ebp, dword [esi + 0x70]
addss xmm1, xmm2
addss xmm0, xmm2
movss dword [esp + 0x24], xmm1
movss dword [esp + 0x68], xmm0
cmp edi, ebp
je 0x43c3d9
push edi
mov ecx, esi
call fcn.0045a5e0
push 4
push 6
mov ecx, esi
call fcn.0045a670
push 0xff000000
lea eax, [esp + 0x90]
mov ecx, esi
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0045a750
cmp edi, ebp
je 0x43c42e
mov ecx, dword [esi + 0x48]
sub ecx, 1
mov dword [esi + 0x48], ecx
jne 0x43c41d
xor eax, eax
jmp 0x43c424
mov eax, dword [esi + 0x50]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, esi
mov dword [esi + 0x70], eax
call fcn.0045a2d0
movss xmm0, dword [esp + 0x28]
lea eax, [esp + 0x7c]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x7c]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [esp + 0x2c]
mov ecx, esi
push eax
lea eax, [esp + 0x78]
movss dword [esp + 0x7c], xmm0
push eax
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.0045c730
mov ecx, dword [esi + 0x48]
sub ecx, 1
mov dword [esi + 0x48], ecx
jne 0x43c473
xor eax, eax
jmp 0x43c47a
mov eax, dword [esi + 0x50]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, esi
mov dword [esi + 0x70], eax
call fcn.0045a2d0
movss xmm6, dword [esp + 0x18]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
add ebx, 4
cmp ebx, dword [esp + 0x38]
jne 0x43c095
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00471a29
add esp, 0x8c
ret