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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
push edi
mov edi, dword [ebp + 0x10]
movaps xmm5, xmm3
mov dword [esp + 0xc], edx
mov edx, ecx
mov ecx, dword [0x4eecf0]
mov esi, edi
movss dword [esp + 0x28], xmm5
mov dword [esp + 0x10], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], esi
cmp edi, 0xffffffff
jae 0x40b9c4
mov cl, byte [esi]
test cl, cl
je 0x40b9bc
cmp cl, 0x23
jne 0x40b9b6
cmp byte [esi + 1], cl
je 0x40b9bc
inc esi
cmp esi, 0xffffffff
jb 0x40b9a6
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 0x18]
xorps xmm2, xmm2
movss dword [esp + 0x2c], xmm2
test eax, eax
je 0x40b9df
movss xmm2, dword [eax]
movss xmm1, dword [eax + 4]
jmp 0x40ba41
movss xmm1, dword [ecx + 0x3cf4]
movss dword [esp + 0x30], xmm1
cmp edi, esi
je 0x40ba4d
movss xmm3, dword [0x48c790]
lea eax, [esp + 0x48]
push 0
push esi
push edi
push ecx
mov ecx, dword [ecx + 0x3cf0]
movaps xmm2, xmm1
mov dword [esp], 0
push eax
call fcn.00432a20
movss xmm0, dword [esp + 0x48]
addss xmm0, dword [0x48c604]
movss xmm1, dword [esp + 0x4c]
movss xmm5, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
cvttss2si eax, xmm0
movd xmm2, eax
cvtdq2ps xmm2, xmm2
movss dword [esp + 0x30], xmm1
movss dword [esp + 0x2c], xmm2
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0xc]
movss xmm3, dword [ecx]
movss xmm4, dword [eax]
movaps xmm0, xmm3
subss xmm0, xmm4
comiss xmm2, xmm0
jbe 0x40bdea
mov eax, dword [edx + 0x2c]
maxss xmm3, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov ecx, dword [eax + 8]
movss xmm0, dword [eax + 0xc]
lea eax, [esp + 0x18]
movaps xmm1, xmm0
mov dword [esp + 0x24], ecx
push eax
divss xmm1, dword [ecx + 0x10]
push esi
push edi
push ecx
lea eax, [esp + 0x4c]
mov dword [esp], 0
push eax
movaps xmm2, xmm0
movss dword [esp + 0x48], xmm0
movss dword [esp + 0x5c], xmm1
mulss xmm1, dword [ecx + 0x40]
subss xmm3, xmm1
movss dword [esp + 0x58], xmm1
subss xmm3, xmm4
maxss xmm3, dword [0x48c60c]
call fcn.00432a20
mov edx, dword [esp + 0x18]
mov dword [esp + 0x18], edx
movss xmm0, dword [eax]
movss dword [esp + 0x20], xmm0
cmp edx, edi
jne 0x40bb42
cmp edx, esi
jae 0x40bb40
push esi
mov edx, edi
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x24]
call fcn.0040ad30
movss xmm3, dword [0x48c790]
add esp, 4
movss xmm2, dword [esp + 0x34]
add eax, edi
mov dword [esp + 0x18], eax
push 0
push eax
push edi
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x4c]
mov dword [esp], 0
push eax
call fcn.00432a20
mov edx, dword [esp + 0x18]
movss xmm0, dword [eax]
movss dword [esp + 0x20], xmm0
cmp edx, edi
jbe 0x40bbb1
mov esi, dword [esp + 0x18]
nop dword [eax + eax]
mov cl, byte [esi - 1]
lea eax, [esi - 1]
mov dword [esp + 0x3c], eax
cmp cl, 0x20
je 0x40bb64
cmp cl, 9
jne 0x40bba9
movss xmm3, dword [0x48c790]
mov esi, eax
movss xmm2, dword [esp + 0x34]
inc eax
push 0
push eax
push esi
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x60]
mov dword [esp], 0
push eax
mov dword [esp + 0x2c], esi
call fcn.00432a20
movss xmm0, dword [esp + 0x20]
subss xmm0, dword [eax]
movss dword [esp + 0x20], xmm0
cmp dword [esp + 0x3c], edi
ja 0x40bb50
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 8]
movss xmm1, dword [esp + 0x2c]
movss xmm7, dword [eax + 4]
mov eax, dword [esp + 0xc]
movss xmm0, dword [eax]
movss xmm2, dword [eax + 4]
addss xmm1, xmm0
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x1c], xmm2
comiss xmm1, dword [esp + 0x28]
jae 0x40bc71
movss xmm0, dword [esp + 0x30]
addss xmm0, xmm2
comiss xmm0, xmm7
jae 0x40bc71
movss xmm7, dword [0x48c60c]
xor ecx, ecx
movaps xmm1, xmm7
call fcn.0040b390
mov dword [esp + 0x3c], eax
test eax, 0xff000000
je 0x40bd31
test edx, edx
jne 0x40bc2c
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bc20
sub ecx, edx
lea edx, [ecx + edi]
cmp edi, edx
je 0x40bd31
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov dword [esp], 0
mov eax, dword [ecx + 0x2c]
movups xmm0, xmmword [ecx + 0x60]
push edx
push edi
movss xmm2, dword [eax + 0xc]
lea edx, [esp + 0x60]
push edx
push dword [esp + 0x50]
lea edx, [esp + 0x30]
push edx
push ecx
mov ecx, dword [eax + 8]
movups xmmword [esp + 0x70], xmm0
call fcn.00432d20
jmp 0x40bd29
movss xmm1, dword [0x48c60c]
xor ecx, ecx
call fcn.0040b390
mov dword [esp + 0x3c], eax
test eax, 0xff000000
je 0x40bd29
test edx, edx
jne 0x40bca4
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bc98
sub ecx, edx
lea edx, [ecx + edi]
cmp edi, edx
je 0x40bd29
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push 1
push ecx
movups xmm0, xmmword [ecx + 0x60]
mov eax, dword [ecx + 0x2c]
movss xmm1, dword [esi]
movaps xmmword [esp + 0x58], xmm0
maxss xmm1, xmm0
movss xmm0, dword [esi + 4]
maxss xmm0, dword [esp + 0x5c]
minss xmm7, dword [esp + 0x64]
movss xmm2, dword [eax + 0xc]
mov dword [esp], 0
push edx
push edi
lea edx, [esp + 0x60]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esp + 0x38]
minss xmm0, dword [esp + 0x68]
push edx
push dword [esp + 0x50]
lea edx, [esp + 0x30]
movss dword [esp + 0x68], xmm1
push edx
push ecx
mov ecx, dword [eax + 8]
movss dword [esp + 0x78], xmm0
movss dword [esp + 0x7c], xmm7
call fcn.00432d20
mov esi, dword [esp + 0x14]
movss xmm7, dword [0x48c60c]
mov ecx, dword [esp + 0xc]
movss xmm0, dword [esp + 0x20]
addss xmm0, dword [ecx]
cvttss2si eax, xmm0
movd xmm1, eax
cvttss2si eax, dword [ecx + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x3c], xmm1
movss dword [esp + 0x40], xmm0
movaps xmm0, xmm1
addss xmm0, dword [esp + 0x44]
movss xmm1, dword [ebp + 0xc]
comiss xmm1, xmm0
jb 0x40bf4a
mov eax, dword [esp + 0x24]
xor edx, edx
cmp dx, word [eax + 0x3e]
jge 0x40bf4a
mov esi, eax
xor edi, edi
nop dword [eax]
movzx eax, word [esi + 0x3c]
movaps xmm1, xmm7
push eax
push ecx
xor ecx, ecx
call fcn.0040b390
movss xmm2, dword [esp + 0x3c]
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x1c]
call fcn.00432be0
movss xmm0, dword [esp + 0x48]
inc edi
mulss xmm0, dword [esi + 0x44]
movsx eax, word [esi + 0x3e]
movss xmm7, dword [0x48c60c]
addss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x3c], xmm0
cmp edi, eax
jl 0x40bd90
mov edi, dword [ebp + 0x10]
jmp 0x40bf42
movss xmm3, dword [eax + 4]
movaps xmm0, xmm4
movss xmm7, dword [ecx + 4]
addss xmm2, xmm0
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0x40], xmm3
comiss xmm2, xmm5
jae 0x40be8b
addss xmm1, xmm3
comiss xmm1, xmm7
jae 0x40be8b
movss xmm1, dword [0x48c60c]
xor ecx, ecx
call fcn.0040b390
mov edx, eax
mov ecx, esi
test edx, 0xff000000
je 0x40bf46
test esi, esi
jne 0x40be52
mov ecx, edi
lea eax, [ecx + 1]
mov dword [esp + 0x48], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40be45
sub ecx, dword [esp + 0x48]
add ecx, edi
cmp edi, ecx
je 0x40bf46
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
push 0
push ecx
movups xmm0, xmmword [esi + 0x60]
mov eax, dword [eax + 0x2c]
mov dword [esp], 0
push ecx
push edi
lea ecx, [esp + 0x60]
push ecx
push edx
lea ecx, [esp + 0x54]
push ecx
movups xmmword [esp + 0x6c], xmm0
push esi
jmp 0x40bf35
movss xmm1, dword [0x48c60c]
xor ecx, ecx
call fcn.0040b390
mov dword [esp + 0x44], eax
mov ecx, esi
test eax, 0xff000000
je 0x40bf46
test esi, esi
jne 0x40bec5
mov ecx, edi
lea eax, [ecx + 1]
mov dword [esp + 0x48], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40beb8
sub ecx, dword [esp + 0x48]
add ecx, edi
cmp edi, ecx
je 0x40bf46
mov esi, dword [esp + 0xc]
movups xmm0, xmmword [edx + 0x60]
mov eax, dword [edx + 0x2c]
push 1
movss xmm1, dword [esi]
movaps xmmword [esp + 0x54], xmm0
maxss xmm1, xmm0
movss xmm0, dword [esi + 4]
maxss xmm0, dword [esp + 0x58]
minss xmm7, dword [esp + 0x60]
push ecx
mov dword [esp], 0
push ecx
push edi
movss dword [esp + 0x64], xmm0
lea ecx, [esp + 0x60]
movss xmm0, dword [esp + 0x38]
minss xmm0, dword [esp + 0x68]
push ecx
push dword [esp + 0x58]
lea ecx, [esp + 0x54]
movss dword [esp + 0x68], xmm1
push ecx
movss dword [esp + 0x74], xmm0
movss dword [esp + 0x78], xmm7
push edx
movss xmm2, dword [eax + 0xc]
mov ecx, dword [eax + 8]
call fcn.00432d20
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
cmp byte [eax + 0x5e24], 0
je 0x40bf62
push esi
mov edx, edi
call fcn.00420fd0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret