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

Disassembly:
sub esp, 0x94
mov eax, dword [0x4e1898]
xor eax, esp
mov dword [esp + 0x8c], eax
mov edx, dword [0x4e5fbc]
movaps xmm6, xmm0
push ebx
push ebp
push esi
mov eax, dword [edx + 0x3bdc]
mov esi, ecx
mov ecx, dword [edx + 0x47ec]
push edi
mov dword [esp + 0x18], esi
mov ebx, dword [eax + 0x30]
mov eax, dword [edx + 0x47e4]
movss dword [esp + 0x20], xmm6
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x40], eax
cmp ecx, eax
je 0x412217
nop dword [eax]
mov edi, dword [ecx]
lea eax, [esp + 0x7c]
mov ecx, 4
nop dword [eax + eax]
mov dword [eax], 0
lea eax, [eax + 8]
mov dword [eax - 4], 0
sub ecx, 1
jne 0x411de0
cmp esi, 8
ja 0x412202
test byte [ebx], 2
jne 0x412202
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 + 0x4d44ac]
movss xmm7, dword [esi*8 + 0x4d44a8]
lea edx, [eax*8]
sub edx, eax
movss dword [esp + 0x14], xmm0
movaps xmm0, xmm3
movss xmm2, dword [ebx + 0x30]
movss xmm1, dword [esp + 0xb0]
subss xmm1, dword [esi*8 + 0x4d44b0]
movzx eax, word [ecx + edx*4 + 4]
movss dword [esp + 0x1c], xmm7
movd xmm5, eax
movzx eax, word [ecx + edx*4 + 6]
cvtdq2ps xmm5, xmm5
movd xmm4, eax
addss xmm5, dword [esi*8 + 0x4d44a0]
cvtdq2ps xmm4, xmm4
mulss xmm0, xmm5
addss xmm4, dword [esi*8 + 0x4d44a4]
movss dword [esp + 0x24], xmm1
movss dword [esp + 0x7c], xmm0
movaps xmm0, xmm5
addss xmm5, dword [0x4da128]
addss xmm0, xmm7
movss dword [esp + 0x44], xmm1
mulss xmm2, xmm4
addss xmm4, dword [esp + 0x14]
mulss xmm0, xmm3
movss dword [esp + 0x80], xmm2
mulss xmm4, dword [ebx + 0x30]
movss dword [esp + 0x84], xmm0
movaps xmm0, xmm5
mulss xmm0, xmm3
addss xmm5, xmm7
movss dword [esp + 0x90], xmm2
movss xmm2, dword [esp + 0xb4]
subss xmm2, dword [esi*8 + 0x4d44b4]
movss dword [esp + 0x8c], xmm0
movaps xmm0, xmm7
addss xmm0, dword [0x4da090]
movss xmm7, dword [edi + 8]
mulss xmm5, xmm3
movss xmm3, dword [esp + 0x14]
addss xmm3, dword [0x4da090]
mulss xmm0, xmm6
movss dword [esp + 0x94], xmm5
movss dword [esp + 0x88], xmm4
movaps xmm5, xmm0
movss dword [esp + 0x30], xmm0
movaps xmm0, xmm7
mulss xmm3, xmm6
addss xmm0, dword [edi + 0x10]
movss dword [esp + 0x98], xmm4
addss xmm5, xmm1
movss xmm4, dword [edi + 4]
addss xmm3, xmm2
addss xmm4, dword [edi + 0xc]
movss dword [esp + 0x28], xmm2
comiss xmm0, xmm2
movss dword [esp + 0x48], xmm2
jbe 0x4121fe
comiss xmm3, xmm7
jbe 0x4121fe
comiss xmm4, xmm1
jbe 0x4121fe
comiss xmm5, dword [edi + 4]
jbe 0x4121fe
push str.Foreground
mov edx, 1
mov ecx, edi
call fcn.00414290
mov ebx, dword [ebx + 4]
mov esi, eax
add esp, 4
mov ecx, dword [esi + 0x48]
mov ebp, dword [esi + 0x4c]
cmp ecx, ebp
jne 0x411fdb
inc ecx
test ebp, ebp
je 0x411fc8
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
add eax, ebp
jmp 0x411fcd
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x48]
call fcn.00427b10
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x50]
mov dword [eax + ecx*4], ebx
mov ecx, esi
inc dword [esi + 0x48]
mov dword [esi + 0x70], ebx
call fcn.00433dd0
movss xmm0, dword [esp + 0x1c]
lea eax, [esp + 0x94]
addss xmm0, dword [0x4da040]
movss xmm1, dword [esp + 0x20]
xorps xmm4, xmm4
push 0x30000000
push eax
lea eax, [esp + 0x94]
mov ecx, esi
mulss xmm0, xmm1
push eax
lea eax, [esp + 0x58]
push eax
addss xmm0, dword [esp + 0x34]
lea eax, [esp + 0x64]
push eax
push ebx
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esp + 0x2c]
addss xmm0, xmm4
mulss xmm0, xmm1
addss xmm0, dword [esp + 0x40]
movss dword [esp + 0x4c], xmm0
movss dword [esp + 0x68], xmm0
movss xmm0, dword [esp + 0x3c]
addss xmm0, xmm1
movss dword [esp + 0x6c], xmm0
movaps xmm0, xmm1
mulss xmm0, xmm4
addss xmm0, dword [esp + 0x40]
movss dword [esp + 0x50], xmm0
movss dword [esp + 0x70], xmm0
call fcn.004368c0
movss xmm0, dword [esp + 0x30]
lea eax, [esp + 0x94]
addss xmm0, dword [esp + 0x24]
push 0x30000000
push eax
lea eax, [esp + 0x94]
mov ecx, esi
push eax
movss dword [esp + 0x68], xmm0
lea eax, [esp + 0x68]
movss xmm0, dword [esp + 0x40]
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [esp + 0x2c]
addss xmm0, xmm0
push eax
lea eax, [esp + 0x74]
push eax
push ebx
addss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x7c], xmm0
movss xmm0, dword [esp + 0x50]
movss dword [esp + 0x80], xmm0
call fcn.004368c0
movss xmm1, dword [esp + 0x1c]
mulss xmm1, dword [esp + 0x20]
mov ebp, dword [esi + 0x70]
addss xmm1, dword [esp + 0x24]
movss dword [esp + 0x1c], xmm1
movss dword [esp + 0x6c], xmm1
movss xmm1, dword [esp + 0x14]
mulss xmm1, dword [esp + 0x20]
addss xmm1, dword [esp + 0x28]
movss dword [esp + 0x14], xmm1
movss dword [esp + 0x70], xmm1
cmp ebx, ebp
je 0x41213d
push ebx
mov ecx, esi
call fcn.00434040
push 4
push 6
mov ecx, esi
call fcn.004340a0
push 0xff000000
lea eax, [esp + 0x98]
mov ecx, esi
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004341a0
cmp ebx, ebp
je 0x412192
mov ecx, dword [esi + 0x48]
sub ecx, 1
mov dword [esi + 0x48], ecx
jne 0x412181
xor eax, eax
jmp 0x412188
mov eax, dword [esi + 0x50]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, esi
mov dword [esi + 0x70], eax
call fcn.00433dd0
movss xmm1, dword [esp + 0x1c]
lea eax, [esp + 0x84]
movss xmm0, dword [esp + 0x14]
mov ecx, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x84]
movss dword [esp + 0x7c], xmm1
push eax
lea eax, [esp + 0x80]
movss dword [esp + 0x84], xmm0
push eax
lea eax, [esp + 0x54]
push eax
push ebx
call fcn.004368c0
mov ecx, dword [esi + 0x48]
sub ecx, 1
mov dword [esi + 0x48], ecx
jne 0x4121e3
xor eax, eax
jmp 0x4121ea
mov eax, dword [esi + 0x50]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, esi
mov dword [esi + 0x70], eax
call fcn.00433dd0
movss xmm6, dword [esp + 0x20]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
add ecx, 4
mov dword [esp + 0x2c], ecx
cmp ecx, dword [esp + 0x40]
jne 0x411dd0
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004672b4
add esp, 0x94
ret