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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x44
push ebx
push esi
mov esi, dword [0x6815a8]
push edi
mov dword [esp + 0x18], esi
mov edx, dword [esi + 0x40c0]
sub edx, 1
js 0x47d309
mov eax, dword [esi + 0x40c8]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ebx, dword [eax]
test ebx, ebx
je 0x47d301
test dword [ebx + 8], 0x8000000
je 0x47d301
cmp byte [ebx + 0xc3], 0
je 0x47d301
cmp byte [ebx + 0xca], 0
je 0x47d30b
sub eax, 0x28
sub edx, 1
jns 0x47d2e0
xor ebx, ebx
movss xmm1, dword [esi + 0x428c]
xorps xmm0, xmm0
comiss xmm0, xmm1
jb 0x47d328
comiss xmm0, dword [esi + 0x4284]
jae 0x47d757
mov edi, dword [esi + 0x4278]
test edi, edi
je 0x47d33f
cmp byte [edi + 0xc3], 0
je 0x47d33f
mov al, 1
jmp 0x47d341
xor al, al
test ebx, ebx
jne 0x47d34d
test al, al
je 0x47d757
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
test ebx, ebx
je 0x47d445
mov edx, dword [esi + 0x3ec4]
mov edi, ebx
mov eax, dword [esi + 0x3ebc]
mov ecx, edx
lea eax, [edx + eax*4]
cmp ecx, eax
jae 0x47d383
cmp dword [ecx], ebx
je 0x47d383
add ecx, 4
cmp ecx, eax
jb 0x47d378
sub ecx, edx
sar ecx, 2
test ecx, ecx
js 0x47d401
lea edx, [edx + ecx*4]
mov esi, ebx
mov dword [esp + 0x10], edx
mov edx, dword [edx]
mov edi, dword [edx + 8]
test edi, 0x1000000
jne 0x47d3e5
mov eax, edx
cmp dword [edx + 0x324], ebx
je 0x47d3c0
nop dword [eax]
cmp eax, ebx
je 0x47d3c0
mov eax, dword [eax + 0x320]
test eax, eax
jne 0x47d3b0
jmp 0x47d3f5
cmp byte [edx + 0xc3], 0
je 0x47d3e5
cmp byte [edx + 0xca], 0
jne 0x47d3e5
mov eax, dword [ebx + 8]
and edi, 0x2000000
and eax, 0x2000000
cmp edi, eax
cmovbe esi, edx
mov edx, dword [esp + 0x10]
sub edx, 4
sub ecx, 1
mov dword [esp + 0x10], edx
jns 0x47d395
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
movups xmm0, xmmword [esi + 0x3c7c]
lea eax, [esp + 0x30]
mulss xmm1, dword [esi + 0x3854]
push eax
movaps xmmword [esp + 0x34], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm1, xmm0
movss dword [esp + 0x40], xmm1
call fcn.0046a830
push eax
push edi
call fcn.0047cff0
mov ecx, dword [ebx + 0x2c]
add esp, 0xc
mov dword [esp + 0x10], ecx
xor edx, edx
jmp 0x47d64e
test al, al
je 0x47d64e
movups xmm0, xmmword [esi + 0x3c6c]
lea eax, [esp + 0x30]
push eax
movaps xmmword [esp + 0x34], xmm0
mulss xmm1, dword [esi + 0x3854]
shufps xmm0, xmm0, 0xff
mulss xmm1, xmm0
movss dword [esp + 0x40], xmm1
call fcn.0046a830
push eax
push edi
call fcn.0047cff0
mov edi, dword [esi + 0x427c]
add esp, 0xc
test edi, edi
je 0x47d4be
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x47d4be
mov eax, dword [esi + 0x4278]
cmp ecx, dword [eax + 0x2c]
je 0x47d4be
movss xmm0, dword [esi + 0x428c]
push ecx
movss dword [esp], xmm0
push 0x35
call fcn.00474aa0
push eax
push edi
call fcn.0047cff0
add esp, 0x10
mov eax, dword [esi + 0x4278]
mov ecx, dword [esi + 0x427c]
mov dword [esp + 0x1c], eax
mov edi, dword [eax + 0x2c]
mov dword [esp + 0x10], edi
test ecx, ecx
je 0x47d4de
mov ecx, dword [ecx + 0x2c]
jmp 0x47d4e0
xor ecx, ecx
movss xmm6, dword [eax + 0x40]
movss xmm0, dword [eax + 0x48]
movaps xmm4, xmm6
movss xmm5, dword [eax + 0x44]
addss xmm6, xmm0
movss xmm2, dword [esi + 0x3c98]
movaps xmm3, xmm5
movss xmm1, dword [eax + 0x4c]
subss xmm4, xmm2
addss xmm5, xmm1
mov dword [esp + 0x14], ecx
subss xmm3, xmm2
addss xmm6, xmm2
movss dword [esp + 0x30], xmm4
addss xmm5, xmm2
movss dword [esp + 0x34], xmm3
movaps xmm0, xmm6
movss dword [esp + 0x38], xmm6
subss xmm0, xmm4
movss dword [esp + 0x3c], xmm5
comiss xmm0, dword [edi + 0x10]
jb 0x47d58a
movaps xmm0, xmm5
subss xmm0, xmm3
comiss xmm0, dword [edi + 0x14]
jb 0x47d58a
xorps xmm2, xmmword [0x6722f0]
subss xmm2, dword [0x672010]
movaps xmm0, xmm2
subss xmm4, xmm2
subss xmm3, xmm2
addss xmm0, xmm6
addss xmm2, xmm5
movss dword [esp + 0x30], xmm4
movss dword [esp + 0x34], xmm3
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x3c], xmm2
mov ecx, dword [eax + 0x288]
cmp dword [ecx], 0
jne 0x47d59a
call fcn.00487a00
movss xmm0, dword [edi + 8]
lea eax, [edi + 8]
addss xmm0, dword [edi + 0x10]
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [eax + 4]
addss xmm0, dword [edi + 0x14]
mov edi, dword [esp + 0x28]
mov ecx, dword [edi + 0x288]
movss dword [esp + 0x30], xmm0
call fcn.0048d060
mov eax, dword [0x6815a8]
movss xmm0, dword [esi + 0x4284]
push ecx
mov dword [esp], 0x40400000
movups xmm1, xmmword [eax + 0x3c5c]
push 0
mulss xmm0, dword [eax + 0x3854]
lea eax, [esp + 0x28]
push ecx
movaps xmmword [esp + 0x2c], xmm1
shufps xmm1, xmm1, 0xff
mulss xmm0, xmm1
movss dword [esp + 0x38], xmm0
movss xmm0, dword [edi + 0x78]
movss dword [esp], xmm0
push eax
call fcn.0046a830
mov ecx, dword [edi + 0x288]
add esp, 4
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00489190
mov ecx, dword [edi + 0x288]
call fcn.0048cde0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x1c], edi
cmp dword [esi + 0x40dc], edi
jle 0x47d757
mov eax, dword [esi + 0x40e4]
mov edi, dword [eax + edi*4]
mov dword [esp + 0x20], edi
cmp edi, ecx
je 0x47d73e
cmp edi, edx
je 0x47d73e
test ebx, ebx
je 0x47d69a
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x47d69a
push ebx
push eax
call fcn.00476b80
add esp, 8
test al, al
jne 0x47d73a
push str.Foreground
push 1
push edi
call fcn.00475650
mov edx, dword [0x6815a8]
add esp, 0xc
movss xmm0, dword [esi + 0x428c]
add edx, 0x3854
mov edi, eax
test ebx, ebx
mov eax, 0x428
mov ecx, 0x418
cmovne ecx, eax
mov eax, dword [esp + 0x20]
mulss xmm0, dword [edx]
lea esi, [eax + 8]
add ecx, edx
push 0
push ecx
mov dword [esp], 0
movups xmm1, xmmword [ecx]
movaps xmmword [esp + 0x48], xmm1
shufps xmm1, xmm1, 0xff
mulss xmm0, xmm1
movss dword [esp + 0x54], xmm0
movss xmm0, dword [esi]
addss xmm0, dword [eax + 0x10]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esi + 4]
addss xmm0, dword [eax + 0x14]
lea eax, [esp + 0x48]
push eax
movss dword [esp + 0x40], xmm0
call fcn.0046a830
add esp, 4
mov ecx, edi
push eax
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.00489290
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
inc edi
mov dword [esp + 0x1c], edi
cmp edi, dword [esi + 0x40dc]
jl 0x47d660
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret