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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a4
movss xmm0, dword [0x5c9760]
mov eax, dword [0x5c9764]
push ebx
mov ebx, dword [0x5c9768]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push esi
movss dword [esp + 0x30], xmm0
movss xmm0, dword [0x5c9770]
push edi
mov ecx, 0x6b0cc0
mov dword [esp + 0x54], esi
movss dword [esp + 0x38], xmm0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x64], ebx
call fcn.0043b330
mov ecx, dword [esi + 0x108]
push ecx
call fcn.00548596
movss xmm1, dword [esp + 0x34]
add esp, 4
test edi, edi
jne 0x422009
xorps xmm0, xmm0
movaps xmm2, xmm1
mulss xmm2, dword [0x565314]
movaps xmm6, xmm1
mulss xmm6, dword [0x5661e4]
movaps xmm3, xmm1
mulss xmm3, dword [0x565f34]
movaps xmm4, xmm1
mulss xmm4, dword [0x5661e0]
movaps xmm5, xmm1
mulss xmm5, dword [0x5661dc]
xor ecx, ecx
subss xmm6, xmm2
subss xmm3, xmm2
subss xmm4, xmm2
subss xmm5, xmm2
movss dword [esp + 0x14], xmm0
lea eax, [esp + 0x13c]
cvtsi2ss xmm0, ecx
mulss xmm0, dword [0x565bc4]
addss xmm0, dword [0x5661e4]
movss dword [esp + 0x10], xmm6
movq xmm7, qword [esp + 0x10]
mulss xmm0, xmm1
subss xmm0, xmm2
movss dword [esp + 0x18], xmm0
mov edx, dword [esp + 0x18]
movq qword [eax - 0xc], xmm7
mov dword [eax - 4], edx
movss dword [esp + 0x10], xmm3
movq xmm7, qword [esp + 0x10]
movss dword [esp + 0x18], xmm0
mov edx, dword [esp + 0x18]
movq qword [eax], xmm7
mov dword [eax + 8], edx
movss dword [esp + 0x10], xmm4
movq xmm7, qword [esp + 0x10]
movss dword [esp + 0x18], xmm0
mov edx, dword [esp + 0x18]
movq qword [eax + 0xc], xmm7
mov dword [eax + 0x14], edx
movss dword [esp + 0x18], xmm0
mov edx, dword [esp + 0x18]
movss dword [esp + 0x10], xmm5
movq xmm0, qword [esp + 0x10]
movq qword [eax + 0x18], xmm0
mov dword [eax + 0x20], edx
inc ecx
add eax, 0x30
cmp ecx, 4
jl 0x421f69
mov dword [esp + 0x24], 0
test ebx, ebx
jle 0x42229d
movss xmm3, dword [0x565314]
movss xmm0, dword [esp + 0x2c]
movaps xmm2, xmm1
mulss xmm0, xmm3
mulss xmm2, xmm3
movss dword [esp + 0x54], xmm0
movss dword [esp + 0x60], xmm2
jmp 0x42204c
movss xmm1, dword [esp + 0x30]
movss xmm0, dword [esp + 0x54]
cvtsi2ss xmm2, dword [esp + 0x24]
xor edi, edi
mulss xmm2, xmm1
mov dword [esp + 0x3c], edi
movss dword [esp + 0x58], xmm2
jmp 0x422076
movss xmm2, dword [esp + 0x58]
movss xmm1, dword [esp + 0x30]
movss xmm0, dword [esp + 0x54]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
imul eax, ebx
imul ecx, ebx
cvtsi2ss xmm3, eax
cvtsi2ss xmm4, edi
addss xmm3, xmm4
addss xmm3, dword [0x565314]
mulss xmm3, xmm1
subss xmm3, xmm0
movss dword [esp + 0x40], xmm3
xorps xmm3, xmm3
movss dword [esp + 0x44], xmm3
cvtsi2ss xmm3, ecx
mulss xmm3, xmm1
subss xmm0, xmm3
lea edx, [esp + 0x40]
subss xmm0, xmm2
subss xmm0, dword [esp + 0x60]
push edx
mov ecx, 0x5c9660
movss dword [esp + 0x4c], xmm0
call fcn.00420ba0
fstp dword [esp + 0x44]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4222bb
mov eax, dword [esi + 4]
mov ecx, dword [esi]
imul eax, ebx
add eax, dword [esp + 0x24]
imul ecx, ebx
imul eax, dword [esp + 0x34]
add eax, edi
mov al, byte [ecx + eax + 0x6021e8]
test al, al
je 0x42227c
cmp al, 0x64
jbe 0x422117
cmp al, 0xc8
jbe 0x42227c
mov dword [esp + 0x28], 5
cmp al, 0xc8
ja 0x422146
movzx edx, al
cvtsi2ss xmm0, edx
mulss xmm0, dword [0x5661d8]
mov eax, 1
cvttss2si ecx, xmm0
sub eax, ecx
cmp eax, 5
jg 0x422146
mov dword [esp + 0x28], eax
call fcn.005485a8
cdq
mov ecx, 0x64
idiv ecx
mov ecx, 0x30
lea esi, [esp + 0x130]
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fnstcw word [esp + 0xc]
movzx eax, word [esp + 0xc]
fmul dword [0x5661d4]
or eax, 0xc00
cmp dword [esp + 0x28], 0
mov dword [esp + 0x38], eax
fldcw word [esp + 0x38]
fistp qword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
fldcw word [esp + 0xc]
jle 0x422274
mov eax, dword [esp + 0x28]
mov ebx, 0xf
lea esi, [esp + 0x1f0]
mov dword [esp + 0xc], eax
call fcn.005485a8
cdq
lea ecx, [ebx + 1]
idiv ecx
add esi, 0xc
mov dword [esp + 0x38], esi
lea eax, [edx + edx*2]
add eax, eax
add eax, eax
cmp edx, ebx
movq xmm0, qword [esp + eax + 0x70]
mov ecx, dword [esp + eax + 0x78]
lea edi, [esp + eax + 0x70]
movq qword [esi - 0xc], xmm0
mov dword [esi - 4], ecx
jge 0x422203
lea esi, [esp + eax + 0x7c]
mov eax, ebx
sub eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x38]
dec ebx
sub dword [esp + 0xc], 1
jne 0x4221b8
mov edi, dword [esp + 0x28]
lea esi, [esp + 0x1f8]
jmp 0x422220
movss xmm0, dword [esi - 8]
addss xmm0, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esi - 4]
addss xmm0, dword [esp + 0x44]
push edx
lea eax, [esp + 0x68]
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [esi]
addss xmm0, dword [esp + 0x4c]
push eax
push 0
mov ecx, 0x6b0cc0
movss dword [esp + 0x78], xmm0
call fcn.0043a870
add esi, 0xc
sub edi, 1
jne 0x422220
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x4c]
inc edi
cmp edi, ebx
mov dword [esp + 0x3c], edi
jl 0x422064
mov eax, dword [esp + 0x24]
inc eax
cmp eax, ebx
mov dword [esp + 0x24], eax
jl 0x422040
mov edi, dword [ebp + 8]
push 0
lea edx, [esi + 0x150]
push edx
push esi
push edi
mov ecx, 0x6b0cc0
call fcn.0043b550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 1
jne 0x42235e
mov ecx, dword [esi + 4]
mov edx, dword [esi]
imul ecx, ebx
add ecx, dword [esp + 0x24]
imul edx, ebx
imul ecx, dword [esp + 0x34]
add ecx, edi
mov al, byte [edx + ecx + 0x6021e8]
cmp al, 0x64
jbe 0x42227c
cmp al, 0xc8
ja 0x42227c
movss xmm1, dword [0x5661d0]
movzx eax, al
cvtsi2ss xmm0, eax
subss xmm0, dword [0x5652fc]
mulss xmm0, dword [0x5661cc]
comiss xmm0, xmm1
jbe 0x422315
movss dword [esp + 0x50], xmm1
jmp 0x42231b
movss dword [esp + 0x50], xmm0
fld dword [esp + 0x50]
lea edx, [esp + 0x40]
fmul dword [0x565948]
fnstcw word [esp + 0xc]
movzx eax, word [esp + 0xc]
or eax, 0xc00
mov dword [esp + 0x10], eax
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 1
fldcw word [esp + 0x18]
mov ecx, 0x6b0cc0
call fcn.0043a870
jmp 0x42227c
cmp eax, 2
jne 0x42227c
mov eax, dword [esi + 4]
mov ecx, dword [esi]
imul eax, ebx
add eax, dword [esp + 0x24]
imul ecx, ebx
imul eax, dword [esp + 0x34]
add eax, edi
mov al, byte [ecx + eax + 0x6021e8]
cmp al, 0xc8
jbe 0x42227c
movss xmm1, dword [0x5661d0]
movzx edx, al
cvtsi2ss xmm0, edx
subss xmm0, dword [0x565544]
mulss xmm0, dword [0x56533c]
comiss xmm0, xmm1
jbe 0x4223b8
movss dword [esp + 0x2c], xmm1
jmp 0x4223be
movss dword [esp + 0x2c], xmm0
fld dword [esp + 0x2c]
lea ecx, [esp + 0x40]
fmul dword [0x5661c8]
fnstcw word [esp + 0xc]
movzx eax, word [esp + 0xc]
or eax, 0xc00
mov dword [esp + 0x10], eax
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov eax, dword [esp + 0x10]
push eax
push ecx
push 2
fldcw word [esp + 0x18]
mov ecx, 0x6b0cc0
call fcn.0043a870
jmp 0x42227c