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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dd684
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x58
mov edx, dword [ebx + 0xc]
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x18], edi
cmp edx, 1
je 0x1000428e
cmp edx, 2
je 0x1000428e
cmp edx, 3
je 0x1000428e
cmp edx, 4
je 0x1000428e
cmp edx, 5
je 0x1000428e
cmp edx, 6
je 0x1000428e
cmp edx, 7
je 0x1000428e
lea ecx, [edi + 0x38]
mov eax, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], eax
jmp 0x10004346
movss xmm1, dword [0x100ecddc]
xorps xmm0, xmm0
unpcklps xmm0, xmm1
xorps xmm2, xmm2
movq qword [edi + 0x8c], xmm0
xorps xmm0, xmm0
unpcklps xmm0, xmm2
mov eax, esi
movq qword [edi + 0x98], xmm0
xorps xmm0, xmm0
unpcklps xmm0, xmm2
movq qword [edi + 0xa4], xmm0
mov dword [edi + 0x94], eax
mov dword [edi + 0xa0], eax
mov dword [edi + 0xac], eax
lea eax, [edi + 0x38]
mov dword [ebp - 0x3c], esi
mov ecx, eax
mov dword [ebp - 0x3c], esi
mov dword [edi + 0x68], 0x186a0
mov dword [edi + 0x6c], 4
mov dword [edi + 0x70], 0x3c23d70a
mov dword [edi + 0x74], 0x3f19999a
mov dword [edi + 0x78], 0x41f00000
mov dword [ebp - 0x3c], esi
mov dword [edi + 0xb0], 0x42a00000
mov dword [ebp - 0x24], eax
mov dword [eax], 1
mov dword [ebp - 0x1c], ecx
cmp edx, 5
jne 0x1000432b
mov dword [eax], 2
jmp 0x10004346
cmp edx, 6
jne 0x10004338
mov dword [eax], 3
jmp 0x10004346
cmp edx, 7
jne 0x10004346
mov dword [eax], 4
lea ecx, [edi + 0x38]
movss xmm2, dword [0x100ecfc0]
cmp dword [edi + 4], edx
je 0x100043f1
mov dword [ebp - 0x1c], ecx
cmp dword [eax], esi
jbe 0x100043ee
mov esi, dword [ebp - 0x24]
lea ecx, [edi + 8]
xor edi, edi
nop word [eax + eax]
mov edx, dword [ecx]
test edx, edx
je 0x1000438d
mov eax, dword [edx + 0x24]
mov dword [ecx], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x24], eax
dec dword [ecx + 0x20]
mov dword [ecx + 0x10], edx
mov edx, dword [ecx]
test edx, edx
jne 0x10004376
mov eax, dword [esi]
movaps xmm1, xmm2
mov dword [ecx + 0x38], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100ed2a0]
mov eax, edi
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, edi
inc edi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x100ed2a0]
cvtpd2ps xmm0, xmm0
mulss xmm1, xmm0
movss dword [ecx + 0x50], xmm1
add ecx, 4
cmp edi, dword [esi]
jb 0x10004370
mov edi, dword [ebp - 0x18]
xor esi, esi
mov edx, dword [ebx + 0xc]
lea eax, [edi + 0x38]
mov dword [ebp - 0x1c], eax
mov dword [edi + 4], edx
mov eax, dword [0x1012f57c]
mov eax, dword [eax + 0x488]
call eax
sub eax, dword [edi + 0x50]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100ed2a0]
mov eax, dword [0x1012f57c]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x100ecdc4]
movss dword [ebp - 0x24], xmm0
addss xmm0, dword [edi + 0x3c]
movss dword [edi + 0x3c], xmm0
mov eax, dword [eax + 0x488]
call eax
movss xmm0, dword [ebp - 0x24]
addss xmm0, xmm0
mov dword [edi + 0x50], eax
addss xmm0, dword [edi + 0x54]
movss dword [ebp - 0x28], xmm0
movss dword [edi + 0x54], xmm0
mulss xmm0, dword [0x100ecdf8]
call fcn.10005300
addss xmm0, xmm0
call fcn.10005320
mulss xmm0, dword [0x100ecf48]
xorps xmm1, xmm1
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
unpcklps xmm1, xmm0
movss xmm0, dword [ebp - 0x28]
addss xmm0, xmm0
movq qword [edi + 0x8c], xmm1
mov dword [edi + 0x94], eax
call fcn.10005300
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mulss xmm0, dword [0x100ecf38]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
addss xmm0, dword [edx + 0x78]
movss dword [edx + 0x7c], xmm0
cmp dword [eax], ecx
jbe 0x10004b9b
movss xmm6, dword [ebp - 0x24]
movaps xmm1, xmm6
mulss xmm1, dword [0x100ecfb0]
movss dword [ebp - 0x34], xmm1
nop dword [eax]
movaps xmm0, xmm1
movss xmm1, dword [0x100ecfc0]
addss xmm0, dword [edx + ecx*4 + 0x58]
comiss xmm0, xmm1
movss dword [edx + ecx*4 + 0x58], xmm0
jb 0x1000450f
nop dword [eax]
subss xmm0, xmm1
comiss xmm0, xmm1
movss dword [edx + ecx*4 + 0x58], xmm0
jae 0x10004500
lea eax, [ecx + 2]
lea eax, [edx + eax*4]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
test eax, eax
je 0x10004618
movss xmm0, dword [edx + 0x3c]
mov esi, eax
subss xmm0, dword [esi + 0x18]
comiss xmm0, dword [edx + 0x74]
jb 0x10004556
mov ecx, dword [ebp - 0x20]
mov eax, dword [esi + 0x24]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + ecx*4 + 0x18]
mov dword [esi + 0x24], eax
dec dword [edx + ecx*4 + 0x28]
mov eax, dword [ebp - 0x20]
mov dword [edx + ecx*4 + 0x18], esi
jmp 0x1000460e
movaps xmm4, xmm6
lea eax, [esi + 0x24]
mulss xmm4, dword [edx + 0x98]
movaps xmm3, xmm6
mov dword [ebp - 0x20], eax
mulss xmm3, dword [edx + 0x9c]
movaps xmm5, xmm6
mulss xmm5, dword [edx + 0xa0]
addss xmm4, dword [esi + 0xc]
addss xmm3, dword [esi + 0x10]
addss xmm5, dword [esi + 0x14]
movss dword [esi + 0xc], xmm4
movss dword [esi + 0x10], xmm3
movss dword [esi + 0x14], xmm5
movss xmm0, dword [edx + 0xa4]
movss xmm2, dword [edx + 0xa8]
subss xmm0, xmm4
movss xmm1, dword [edx + 0xac]
subss xmm2, xmm3
subss xmm1, xmm5
mulss xmm0, xmm6
mulss xmm2, xmm6
mulss xmm1, xmm6
addss xmm4, xmm0
addss xmm2, xmm3
addss xmm5, xmm1
movss dword [esi + 0xc], xmm4
mulss xmm4, xmm6
movss dword [esi + 0x10], xmm2
movss dword [esi + 0x14], xmm5
addss xmm4, dword [esi]
mulss xmm2, xmm6
mulss xmm5, xmm6
addss xmm2, dword [esi + 4]
movss dword [esi], xmm4
addss xmm5, dword [esi + 8]
movss dword [esi + 4], xmm2
movss dword [esi + 8], xmm5
mov eax, dword [eax]
test eax, eax
jne 0x10004522
movss xmm1, dword [edx + 0x3c]
movaps xmm0, xmm1
subss xmm0, dword [edx + ecx*4 + 0x40]
comiss xmm0, dword [edx + 0x70]
jbe 0x10004b87
xor edi, edi
movss dword [edx + ecx*4 + 0x40], xmm1
mov dword [ebp - 0x28], edi
cmp dword [edx + 0x6c], edi
jbe 0x10004b87
mov eax, dword [edx + ecx*4 + 0x18]
test eax, eax
je 0x10004657
mov esi, eax
mov eax, dword [esi + 0x24]
mov dword [edx + ecx*4 + 0x18], eax
jmp 0x1000467c
mov eax, dword [edx + ecx*4 + 0x28]
cmp eax, dword [edx + 0x68]
jae 0x1000467c
push 0x28
call fcn.100b0f1d
mov esi, eax
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [edx + ecx*4 + 0x28]
cmp ecx, dword [edx + 0x68]
jae 0x10004b72
mov edi, dword [ebp - 0x14]
mov eax, dword [edx + edi*4 + 8]
mov dword [esi + 0x24], eax
mov dword [edx + edi*4 + 8], esi
movq xmm0, qword [edx + 0x8c]
movq qword [esi + 0xc], xmm0
mov eax, dword [edx + 0x94]
mov dword [esi + 0x14], eax
movss xmm0, dword [edx + 0xb0]
ucomiss xmm0, dword [0x100ecdc0]
lahf
test ah, 0x44
jnp 0x1000470e
lea eax, [ebp - 0x44]
push eax
call fcn.10005230
mov edx, dword [ebp - 0x18]
movss xmm2, dword [ebp - 0x40]
movss xmm3, dword [ebp - 0x3c]
movss xmm0, dword [edx + 0xb0]
movaps xmm1, xmm0
mulss xmm2, xmm0
mulss xmm1, dword [ebp - 0x44]
addss xmm2, dword [esi + 0x10]
mulss xmm3, xmm0
addss xmm1, dword [esi + 0xc]
addss xmm3, dword [esi + 0x14]
movss dword [esi + 0x10], xmm2
movss dword [esi + 0xc], xmm1
movss dword [esi + 0x14], xmm3
mov eax, dword [edx + 0x3c]
mov dword [esi + 0x18], eax
movss xmm0, dword [edx + edi*4 + 0x58]
mulss xmm0, dword [0x100ecdd8]
movss dword [ebp - 0x20], xmm0
call fcn.10005300
mulss xmm0, dword [0x100ecfb0]
movaps xmmword [ebp - 0x60], xmm0
movss xmm0, dword [ebp - 0x20]
cvtps2pd xmm0, xmm0
call fcn.100dadc0
mov edi, dword [ebp - 0x18]
xorps xmm1, xmm1
movaps xmm2, xmmword [ebp - 0x60]
xorps xmm3, xmm3
cvtsd2ss xmm1, xmm0
movss xmm0, dword [edi + 0x84]
mulss xmm1, dword [0x100ecfb0]
addss xmm0, xmm3
addss xmm2, dword [edi + 0x80]
addss xmm1, dword [edi + 0x88]
unpcklps xmm2, xmm0
movq qword [esi], xmm2
movss dword [ebp - 0x48], xmm1
mov eax, dword [ebp - 0x48]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
cmp eax, 1
jne 0x10004831
movss xmm2, dword [0x100ecde4]
xorps xmm1, xmm1
call fcn.100051f0
movss xmm2, dword [0x100ecdec]
xorps xmm1, xmm1
movss dword [ebp - 0x2c], xmm0
call fcn.100051f0
movss xmm2, dword [0x100ece08]
movss xmm1, dword [0x100ecdf0]
movss dword [ebp - 0x20], xmm0
call fcn.100051f0
movaps xmm1, xmm0
xorps xmm0, xmm0
comiss xmm1, dword [0x100ece38]
jb 0x100047ed
mov edi, 0xff
jmp 0x10004813
comiss xmm0, xmm1
jb 0x100047f6
xor edi, edi
jmp 0x10004813
mulss xmm1, dword [0x100ecfb8]
addss xmm1, dword [0x100ecdf8]
movaps xmm0, xmm1
call fcn.100dac40
mov edi, eax
xorps xmm0, xmm0
movss xmm2, dword [ebp - 0x20]
comiss xmm2, dword [0x100ece38]
jb 0x10004ad3
mov dword [ebp - 0x20], 0xff
jmp 0x10004afc
cmp eax, 2
jne 0x10004914
movss xmm2, dword [0x100ece38]
movss xmm1, dword [0x100ece0c]
call fcn.100051f0
movss xmm2, dword [0x100ecdf4]
movss xmm1, dword [0x100ecde4]
movss dword [ebp - 0x30], xmm0
call fcn.100051f0
movss xmm2, dword [0x100ecdec]
xorps xmm1, xmm1
movss dword [ebp - 0x2c], xmm0
call fcn.100051f0
movaps xmm1, xmm0
xorps xmm0, xmm0
comiss xmm1, dword [0x100ece38]
jb 0x10004894
mov edi, 0xff
jmp 0x100048ba
comiss xmm0, xmm1
jb 0x1000489d
xor edi, edi
jmp 0x100048ba
mulss xmm1, dword [0x100ecfb8]
addss xmm1, dword [0x100ecdf8]
movaps xmm0, xmm1
call fcn.100dac40
mov edi, eax
xorps xmm0, xmm0
movss xmm2, dword [ebp - 0x2c]
comiss xmm2, dword [0x100ece38]
jb 0x100048d9
movss xmm1, dword [ebp - 0x30]
mov dword [ebp - 0x20], 0xff
jmp 0x10004b01
comiss xmm0, xmm2
jb 0x100048ef
movss xmm1, dword [ebp - 0x30]
mov dword [ebp - 0x20], 0
jmp 0x10004b01
mulss xmm2, dword [0x100ecfb8]
addss xmm2, dword [0x100ecdf8]
movaps xmm0, xmm2
call fcn.100dac40
movss xmm1, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
jmp 0x10004b01
cmp eax, 3
jne 0x10004958
movss xmm2, dword [0x100ecdf0]
xorps xmm1, xmm1
call fcn.100051f0
movss xmm2, dword [0x100ece38]
movss xmm1, dword [0x100ecdf8]
movss dword [ebp - 0x2c], xmm0
call fcn.100051f0
movss xmm2, dword [0x100ecdf8]
movss xmm1, dword [0x100ecde4]
jmp 0x10004a76
cmp eax, 4
je 0x10004a3c
cmp eax, 5
jne 0x100049f3
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x100049b0
movss xmm2, dword [0x100ece38]
movss xmm1, dword [0x100ece0c]
call fcn.100051f0
movss xmm2, dword [0x100ecdf4]
movss xmm1, dword [0x100ecde4]
movss dword [ebp - 0x2c], xmm0
call fcn.100051f0
movss xmm2, dword [0x100ecdec]
xorps xmm1, xmm1
jmp 0x10004a76
cmp eax, 1
jne 0x10004b49
movss xmm2, dword [0x100ecde4]
xorps xmm1, xmm1
call fcn.100051f0
movss xmm2, dword [0x100ecdec]
xorps xmm1, xmm1
movss dword [ebp - 0x2c], xmm0
call fcn.100051f0
movss xmm2, dword [0x100ece08]
movss xmm1, dword [0x100ecdf0]
jmp 0x10004a76
cmp eax, 6
jne 0x10004a11
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10004971
cmp eax, 1
je 0x10004919
cmp eax, 2
jmp 0x100049b3
cmp eax, 7
jne 0x10004b49
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10004971
cmp eax, 1
je 0x10004919
cmp eax, 2
je 0x100049b9
cmp eax, 3
jne 0x10004b49
movss xmm2, dword [0x100ecdf0]
xorps xmm1, xmm1
call fcn.100051f0
movss xmm2, dword [0x100ece08]
movss xmm1, dword [0x100ecdf8]
movss dword [ebp - 0x2c], xmm0
call fcn.100051f0
movss xmm2, dword [0x100ece38]
movss xmm1, dword [0x100ecdf4]
movss dword [ebp - 0x30], xmm0
call fcn.100051f0
movaps xmm1, xmm0
xorps xmm0, xmm0
comiss xmm1, dword [0x100ece38]
jb 0x10004a96
mov edi, 0xff
jmp 0x10004abc
comiss xmm0, xmm1
jb 0x10004a9f
xor edi, edi
jmp 0x10004abc
mulss xmm1, dword [0x100ecfb8]
addss xmm1, dword [0x100ecdf8]
movaps xmm0, xmm1
call fcn.100dac40
mov edi, eax
xorps xmm0, xmm0
movss xmm2, dword [ebp - 0x30]
comiss xmm2, dword [0x100ece38]
jb 0x10004ad3
mov dword [ebp - 0x20], 0xff
jmp 0x10004afc
comiss xmm0, xmm2
jb 0x10004ae1
mov dword [ebp - 0x20], 0
jmp 0x10004afc
mulss xmm2, dword [0x100ecfb8]
addss xmm2, dword [0x100ecdf8]
movaps xmm0, xmm2
call fcn.100dac40
mov dword [ebp - 0x20], eax
movss xmm1, dword [ebp - 0x2c]
comiss xmm1, dword [0x100ece38]
jb 0x10004b11
mov eax, 0xff
jmp 0x10004b35
xorps xmm0, xmm0
comiss xmm0, xmm1
jb 0x10004b1d
xor eax, eax
jmp 0x10004b35
mulss xmm1, dword [0x100ecfb8]
addss xmm1, dword [0x100ecdf8]
movaps xmm0, xmm1
call fcn.100dac40
or edi, 0xffffff00
shl edi, 8
or edi, dword [ebp - 0x20]
shl edi, 8
or edi, eax
mov dword [esi + 0x20], edi
movss xmm2, dword [0x100ece38]
movss xmm1, dword [0x100ecdf0]
call fcn.100051f0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
movss dword [esi + 0x1c], xmm0
inc dword [edx + ecx*4 + 0x28]
jmp 0x10004b75
mov ecx, dword [ebp - 0x14]
inc edi
mov dword [ebp - 0x28], edi
cmp edi, dword [edx + 0x6c]
jb 0x10004644
movss xmm6, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
inc ecx
movss xmm1, dword [ebp - 0x34]
mov dword [ebp - 0x14], ecx
cmp ecx, dword [eax]
jb 0x100044e0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8