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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x100b3140]
xor eax, esp
mov dword [esp + 0x84], eax
mov edx, dword [0x100b7d54]
movaps xmm7, xmm0
push ebx
push ebp
push esi
mov eax, dword [edx + 0xfc4]
mov esi, ecx
mov ebx, dword [edx + 0x1cec]
push edi
mov dword [esp + 0x1c], esi
mov ebp, dword [eax + 0x30]
mov eax, dword [edx + 0x1ce4]
movss dword [esp + 0x28], xmm7
lea eax, [ebx + eax*4]
mov dword [esp + 0x38], eax
cmp ebx, eax
je 0x1001bba2
mov edi, dword [ebx]
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 0x1001b7e0
cmp esi, 8
ja 0x1001bb95
test byte [ebp], 2
jne 0x1001bb95
mov eax, dword [ebp + 0x468]
lea esi, [esi + esi*2]
mov ecx, dword [ebp + 0x50]
movss xmm5, dword [ebp + 0x2c]
movss xmm0, dword [esi*8 + 0x100a39c8]
lea edx, [eax*8]
movss xmm3, dword [ebp + 0x30]
sub edx, eax
movss xmm2, dword [esi*8 + 0x100a39cc]
movss dword [esp + 0x14], xmm0
movaps xmm0, xmm5
movss xmm1, dword [esp + 0xa8]
subss xmm1, dword [esi*8 + 0x100a39d0]
movzx eax, word [ecx + edx*4 + 4]
movss dword [esp + 0x18], xmm2
movd xmm6, eax
movzx eax, word [ecx + edx*4 + 6]
cvtdq2ps xmm6, xmm6
movd xmm4, eax
addss xmm6, dword [esi*8 + 0x100a39c0]
cvtdq2ps xmm4, xmm4
mulss xmm0, xmm6
addss xmm4, dword [esi*8 + 0x100a39c4]
movss dword [esp + 0x20], xmm1
movss dword [esp + 0x74], xmm0
movaps xmm0, xmm6
addss xmm0, dword [esp + 0x14]
addss xmm6, dword [0x100a70ac]
mulss xmm3, xmm4
addss xmm2, xmm4
movss xmm4, dword [esp + 0x18]
addss xmm4, dword [0x100a7020]
mulss xmm0, xmm5
mulss xmm2, dword [ebp + 0x30]
movss dword [esp + 0x7c], xmm0
movaps xmm0, xmm6
addss xmm6, dword [esp + 0x14]
movss dword [esp + 0x78], xmm3
movss dword [esp + 0x88], xmm3
movss xmm3, dword [esp + 0x14]
addss xmm3, dword [0x100a7020]
mulss xmm6, xmm5
mulss xmm0, xmm5
movss xmm5, dword [edi + 8]
addss xmm5, dword [edi + 0x10]
movss dword [esp + 0x8c], xmm6
movss xmm6, dword [edi + 0xc]
movss dword [esp + 0x80], xmm2
movss dword [esp + 0x84], xmm0
movaps xmm0, xmm6
addss xmm0, dword [edi + 0x14]
movss dword [esp + 0x90], xmm2
movss xmm2, dword [esp + 0xac]
subss xmm2, dword [esi*8 + 0x100a39d4]
mulss xmm3, xmm7
mulss xmm4, xmm7
comiss xmm0, xmm2
addss xmm3, xmm1
movss dword [esp + 0x3c], xmm1
movss dword [esp + 0x24], xmm2
addss xmm4, xmm2
movss dword [esp + 0x40], xmm2
movss dword [esp + 0x2c], xmm3
jbe 0x1001bb91
comiss xmm4, xmm6
jbe 0x1001bb91
comiss xmm5, xmm1
jbe 0x1001bb91
comiss xmm3, dword [edi + 8]
jbe 0x1001bb91
push str.Foreground
mov edx, 1
mov ecx, edi
call fcn.1001cde0
mov esi, dword [ebp + 4]
add esp, 4
mov edi, eax
mov ecx, edi
push esi
call fcn.10036ad0
movss xmm0, dword [esp + 0x14]
lea eax, [esp + 0x8c]
addss xmm0, dword [0x100a6fc8]
movss xmm3, dword [esp + 0x28]
xorps xmm5, xmm5
movss xmm1, dword [esp + 0x18]
mov ecx, edi
addss xmm1, xmm5
push 0x30000000
mulss xmm0, xmm3
push eax
lea eax, [esp + 0x8c]
mulss xmm1, xmm3
push eax
addss xmm0, dword [esp + 0x2c]
lea eax, [esp + 0x50]
movss dword [esp + 0x3c], xmm1
push eax
lea eax, [esp + 0x5c]
movss dword [esp + 0x54], xmm0
movaps xmm0, xmm1
addss xmm0, dword [esp + 0x34]
movaps xmm1, xmm3
mulss xmm1, xmm5
push eax
push esi
movss dword [esp + 0x60], xmm0
movss xmm0, dword [esp + 0x38]
addss xmm0, xmm3
movss dword [esp + 0x4c], xmm1
movss dword [esp + 0x64], xmm0
movaps xmm0, xmm1
addss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x68], xmm0
call fcn.10038da0
movss xmm0, dword [esp + 0x2c]
lea eax, [esp + 0x8c]
movss dword [esp + 0x54], xmm0
mov ecx, edi
movss xmm0, dword [esp + 0x30]
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 + 0x34]
addss xmm0, xmm0
push eax
lea eax, [esp + 0x6c]
push eax
push esi
addss xmm0, dword [esp + 0x38]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [esp + 0x4c]
addss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x78], xmm0
call fcn.10038da0
movss xmm2, dword [esp + 0x14]
mulss xmm2, dword [esp + 0x28]
movss xmm1, dword [esp + 0x18]
mulss xmm1, dword [esp + 0x28]
movaps xmm0, xmm2
movss dword [esp + 0x14], xmm2
addss xmm0, dword [esp + 0x20]
movss dword [esp + 0x18], xmm1
movss dword [esp + 0x64], xmm0
movaps xmm0, xmm1
addss xmm0, dword [esp + 0x24]
movss dword [esp + 0x68], xmm0
push 0xff000000
lea eax, [esp + 0x90]
mov ecx, edi
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.10038da0
movss xmm0, dword [esp + 0x20]
lea eax, [esp + 0x7c]
addss xmm0, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x7c]
mov ecx, edi
push eax
movss dword [esp + 0x78], xmm0
lea eax, [esp + 0x78]
movss xmm0, dword [esp + 0x24]
addss xmm0, dword [esp + 0x30]
push eax
lea eax, [esp + 0x4c]
push eax
push esi
movss dword [esp + 0x88], xmm0
call fcn.10038da0
mov ecx, dword [edi + 0x48]
sub ecx, 1
mov dword [edi + 0x48], ecx
jne 0x1001bb7a
xor eax, eax
jmp 0x1001bb81
mov eax, dword [edi + 0x50]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, edi
mov dword [edi + 0x70], eax
call fcn.100367c0
movss xmm7, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
add ebx, 4
cmp ebx, dword [esp + 0x38]
jne 0x1001b7d1
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10054171
add esp, 0x8c
ret