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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [ebp + 0x28]
push edi
push 0x84
push 0
push esi
call fcn.00441cc0
mov edi, dword [ebp + 0x24]
xor ecx, ecx
mov eax, dword [ebp + 0x20]
add esp, 0xc
movss xmm2, dword [0x457658]
sub eax, edi
movss xmm4, dword [0x4575f4]
mov ebx, edi
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [ebp + 0x28], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea ecx, [ecx]
movss xmm0, dword [ebx]
ucomiss xmm0, xmm4
lahf
test ah, 0x44
jnp 0x4091c4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + ebx]
mov edx, dword [ecx + 0x3c]
cmp dword [ebp + 0x18], edx
jge 0x40920e
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
cmp edx, dword [eax + 0x3c]
jne 0x40920e
push dword [ebp + 0x18]
call fcn.00411300
test eax, eax
je 0x40920e
movss xmm4, dword [0x4575f4]
mov edx, dword [ebp + 0x28]
movaps xmm1, xmm4
test edx, edx
je 0x40915a
movss xmm0, dword [eax + 0x4c]
subss xmm0, dword [edx + 0x4c]
comiss xmm0, dword [0x457620]
jbe 0x409140
movss xmm1, dword [0x457718]
jmp 0x40915d
movss xmm2, dword [0x457714]
comiss xmm2, xmm0
jbe 0x40915d
movss xmm2, dword [0x457658]
movaps xmm1, xmm2
jmp 0x409165
mov dword [ebp + 0x28], eax
movss xmm2, dword [0x457658]
movss xmm0, dword [eax + 0x4c]
addss xmm0, xmm1
mov ecx, dword [ebp - 8]
mulss xmm0, dword [ebx]
addss xmm0, dword [esi + 0x3c]
movss dword [esi + 0x3c], xmm0
movss xmm0, dword [eax + 0x50]
addss xmm0, xmm1
mulss xmm0, dword [ebx]
addss xmm0, dword [esi + 0x40]
movss dword [esi + 0x40], xmm0
movss xmm0, dword [eax + 0x54]
addss xmm0, xmm1
mulss xmm0, dword [ebx]
addss xmm0, dword [esi + 0x44]
movss dword [esi + 0x44], xmm0
movss xmm0, dword [eax + 0x58]
addss xmm0, xmm1
mulss xmm0, dword [ebx]
addss xmm0, dword [esi + 0x48]
movss dword [esi + 0x48], xmm0
inc ecx
add ebx, 4
mov dword [ebp - 8], ecx
cmp ecx, 4
jl 0x4090d0
movss xmm0, dword [esi + 0x3c]
comiss xmm0, xmm2
jbe 0x409217
subss xmm0, xmm2
movss dword [esi + 0x3c], xmm0
movss xmm0, dword [esi + 0x40]
subss xmm0, xmm2
movss dword [esi + 0x40], xmm0
movss xmm0, dword [esi + 0x44]
subss xmm0, xmm2
movss dword [esi + 0x44], xmm0
movss xmm0, dword [esi + 0x48]
subss xmm0, xmm2
jmp 0x40924a
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
comiss xmm4, xmm0
jbe 0x40924f
addss xmm0, xmm2
movss dword [esi + 0x3c], xmm0
movss xmm0, dword [esi + 0x40]
addss xmm0, xmm2
movss dword [esi + 0x40], xmm0
movss xmm0, dword [esi + 0x44]
addss xmm0, xmm2
movss dword [esi + 0x44], xmm0
movss xmm0, dword [esi + 0x48]
addss xmm0, xmm2
movss dword [esi + 0x48], xmm0
movss xmm5, dword [esi + 0x48]
comiss xmm5, xmm2
movss xmm1, dword [ebp + 0x14]
jbe 0x40926c
movss xmm0, dword [esi + 0x3c]
comiss xmm0, xmm1
jbe 0x40926c
addss xmm1, xmm2
movss xmm6, dword [esi + 0x3c]
movaps xmm3, xmm4
comiss xmm6, xmm1
jbe 0x40927e
movaps xmm2, xmm4
jmp 0x4092e1
movss xmm0, dword [esi + 0x40]
comiss xmm0, xmm1
jbe 0x409299
movaps xmm3, xmm1
subss xmm0, xmm6
subss xmm3, xmm6
divss xmm3, xmm0
jmp 0x4092bb
movss xmm0, dword [esi + 0x44]
comiss xmm0, xmm1
ja 0x4092e1
comiss xmm5, xmm1
jbe 0x4092bb
subss xmm1, xmm0
movaps xmm3, xmm2
subss xmm5, xmm0
divss xmm1, xmm5
subss xmm3, xmm1
movaps xmm0, xmm3
movaps xmm2, xmm3
mulss xmm0, dword [0x4576c8]
mulss xmm2, dword [0x4576d8]
mulss xmm0, xmm3
mulss xmm2, xmm3
mulss xmm0, xmm3
subss xmm2, xmm0
movss xmm0, dword [0x457610]
comiss xmm0, xmm2
movss dword [esi + 0x5c], xmm2
jb 0x40935e
mov eax, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x18]
push ebx
mov ecx, dword [eax]
call fcn.00411300
test eax, eax
je 0x40920e
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
test byte [ecx + 0xc], 1
je 0x40920e
push ebx
call fcn.00411300
cmp dword [eax + 4], 3
jne 0x40920e
movss xmm0, dword [esi + 0x48]
movss dword [ebp + 0x28], xmm0
subss xmm0, dword [esi + 0x3c]
comiss xmm0, dword [0x457640]
jbe 0x40920e
fld dword [ebp + 0x28]
fsub qword [0x457648]
mov dword [esi + 0x5c], 0x3a83126f
movss xmm4, dword [0x4575f4]
jmp 0x409361
fld dword [ebp + 0x14]
mov dword [esi + 0x20], 0
movaps xmm1, xmm4
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
fstp qword [ebp - 0x18]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
movss dword [ebp + 0x28], xmm1
mov dword [ebp - 8], 0
movss xmm0, dword [edi]
ucomiss xmm0, xmm4
lahf
test ah, 0x44
jnp 0x40959e
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [edi + eax]
call fcn.00411300
mov ebx, eax
test ebx, ebx
je 0x40920e
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
movss xmm0, dword [ebx + 0x14]
mulss xmm0, dword [edi]
push ecx
fld qword [ebp - 0x18]
fstp dword [esp]
addss xmm0, dword [esi + 0x14]
push esi
movss dword [esi + 0x14], xmm0
movss xmm0, dword [ebx + 0x1c]
mulss xmm0, dword [edi]
addss xmm0, dword [esi + 0x1c]
movss dword [esi + 0x1c], xmm0
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [edi]
addss xmm0, dword [esi + 0x18]
movss dword [esi + 0x18], xmm0
movss xmm0, dword [ebx + 0x64]
mulss xmm0, dword [edi]
addss xmm0, dword [esi + 0x50]
movss dword [esi + 0x50], xmm0
movss xmm0, dword [ebx + 0x68]
mulss xmm0, dword [edi]
addss xmm0, dword [esi + 0x4c]
movss dword [esi + 0x4c], xmm0
call fcn.004096b0
fmul dword [edi]
add esp, 8
mov eax, dword [esi + 4]
fadd dword [esi + 0x58]
fstp dword [esi + 0x58]
test eax, eax
jle 0x409559
cmp eax, 3
jle 0x409475
cmp eax, 5
jne 0x409559
fld qword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push ecx
fstp dword [esp]
push dword [edi + eax]
push ebx
push dword [ebp + 8]
call fcn.00408da0
add esp, 0x1c
test al, al
je 0x409567
movss xmm0, dword [edi]
lea eax, [ebp - 0x34]
movss xmm1, dword [ebp - 0x24]
movss xmm4, dword [esi + 0x20]
movss xmm2, dword [ebp - 0x20]
movss xmm3, dword [ebp - 0x1c]
mulss xmm1, xmm0
push eax
mulss xmm2, xmm0
lea eax, [ebp - 0x44]
push eax
mulss xmm3, xmm0
addss xmm4, xmm1
lea eax, [esi + 0x2c]
movss xmm0, dword [esi + 0x28]
movss xmm1, dword [esi + 0x24]
addss xmm0, xmm3
addss xmm1, xmm2
movss dword [esi + 0x20], xmm4
push eax
movss dword [esi + 0x28], xmm0
movss dword [esi + 0x24], xmm1
movss xmm0, dword [edi]
movss dword [ebp - 0xc], xmm0
call fcn.004335a0
movss xmm1, dword [ebp - 0xc]
add esp, 0xc
movss xmm0, dword [ebp - 0x34]
mulss xmm0, xmm1
addss xmm0, dword [esi + 0x2c]
movss dword [esi + 0x2c], xmm0
movss xmm0, dword [ebp - 0x30]
mulss xmm0, xmm1
addss xmm0, dword [esi + 0x30]
movss dword [esi + 0x30], xmm0
movss xmm0, dword [ebp - 0x2c]
mulss xmm0, xmm1
addss xmm0, dword [esi + 0x34]
movss dword [esi + 0x34], xmm0
movss xmm0, dword [ebp - 0x28]
mulss xmm0, xmm1
addss xmm0, dword [esi + 0x38]
movss dword [esi + 0x38], xmm0
movss xmm0, dword [ebp + 0x28]
addss xmm0, dword [edi]
movss dword [ebp + 0x28], xmm0
fld qword [ebp - 0x18]
push ecx
fstp dword [esp]
push esi
call fcn.00409660
movss xmm4, dword [0x4575f4]
add esp, 8
cmp dword [esi + 4], 5
movzx eax, al
cvtsi2ss xmm0, eax
mulss xmm0, dword [esi + 0x5c]
movss dword [esi + 0x64], xmm0
jne 0x40959e
mov eax, dword [ebx + 0x78]
add eax, ebx
mov dword [esi + 0x68], eax
mov eax, dword [ebp - 8]
add edi, 4
inc eax
mov dword [ebp - 8], eax
cmp eax, 4
jl 0x4093a4
movss xmm0, dword [0x457608]
movss xmm1, dword [ebp + 0x28]
comiss xmm0, xmm1
jae 0x40920e
movss xmm0, dword [0x457654]
lea ebx, [esi + 0x2c]
comiss xmm0, xmm1
jbe 0x409623
movss xmm2, dword [0x457658]
divss xmm2, xmm1
push ebx
push ecx
movss xmm0, dword [esi + 0x20]
mulss xmm0, xmm2
movss dword [ebp + 0x28], xmm2
fld dword [ebp + 0x28]
movss dword [esi + 0x20], xmm0
movss xmm0, dword [esi + 0x24]
mulss xmm0, xmm2
fstp dword [esp]
push ebx
movss dword [esi + 0x24], xmm0
movss xmm0, dword [esi + 0x28]
mulss xmm0, xmm2
movss dword [esi + 0x28], xmm0
call fcn.004341e0
add esp, 0xc
cmp dword [esi + 4], 1
jne 0x409649
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x409649
mov ecx, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
call fcn.004100c0
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x40920e
push ebx
call fcn.00434140
add esp, 4
fstp st(0)
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret