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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
cmp word [edi + 0x40], 0
mov eax, dword [edi + 0x24]
mov dword [edi + 0x4c], eax
mov eax, dword [edi + 0x28]
mov dword [edi + 0x50], eax
je 0x40702a
mov eax, dword [edi + 0x44]
mov dword [edi + 0x4c], eax
mov eax, dword [edi + 0x48]
mov dword [edi + 0x50], eax
movss xmm0, dword [edi + 0x4c]
xorps xmm4, xmm4
ucomiss xmm0, xmm4
lahf
test ah, 0x44
jp 0x407041
mov eax, dword [edi + 0x44]
mov dword [edi + 0x4c], eax
movss xmm0, dword [edi + 0x50]
ucomiss xmm0, xmm4
lahf
test ah, 0x44
jp 0x407055
mov eax, dword [edi + 0x48]
mov dword [edi + 0x50], eax
cmp dword [edi + 0x6c], 0
je 0x4070d8
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x20]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mov eax, ecx
shr eax, 0x1f
movss xmm5, dword [edi + 0x54]
addsd xmm0, qword [eax*8 + 0x434190]
movss xmm6, dword [edi + 0x58]
mov eax, edx
shr eax, 0x1f
movaps xmm2, xmm5
cvtpd2ps xmm3, xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
divss xmm2, xmm3
addsd xmm0, qword [eax*8 + 0x434190]
cvtpd2ps xmm1, xmm0
movaps xmm0, xmm6
divss xmm0, xmm1
comiss xmm0, xmm2
jbe 0x4070c5
mulss xmm1, xmm2
movss dword [edi + 0x64], xmm5
movss dword [edi + 0x68], xmm1
jmp 0x40718a
mulss xmm0, xmm3
movss dword [edi + 0x68], xmm6
movss dword [edi + 0x64], xmm0
jmp 0x40718a
movzx eax, word [edi + 0x3c]
cmp eax, 3
je 0x40712c
cmp eax, 2
je 0x40712c
mov ecx, dword [edi + 0x1c]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mov eax, ecx
shr eax, 0x1f
mov edx, dword [edi + 0x20]
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, edx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
divss xmm0, dword [edi + 0x4c]
movss dword [edi + 0x64], xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x434190]
cvtpd2ps xmm0, xmm0
jmp 0x407180
mov ecx, dword [edi + 0x1c]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mov eax, ecx
shr eax, 0x1f
mov edx, dword [edi + 0x20]
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, edx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x434184]
divss xmm0, dword [edi + 0x4c]
movss dword [edi + 0x64], xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x434190]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x434184]
divss xmm0, dword [edi + 0x50]
movss dword [edi + 0x68], xmm0
movzx esi, word [edi + 0x42]
test si, si
je 0x40719e
mov eax, dword [edi + 0x54]
mov dword [edi + 0x5c], eax
mov eax, dword [edi + 0x58]
jmp 0x4071a7
mov eax, dword [edi + 0x64]
mov dword [edi + 0x5c], eax
mov eax, dword [edi + 0x68]
movss xmm5, dword [edi + 0x5c]
movss xmm7, dword [edi + 0x64]
movss xmm0, dword [edi + 0x68]
mov dword [edi + 0x60], eax
movss xmm6, dword [edi + 0x60]
lea ebx, [edi + 0xa4]
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
movss dword [edi + 0x78], xmm5
movss dword [edi + 0x7c], xmm6
mov dword [ebx], 0
mov dword [edi + 0xa8], 0
movss dword [edi + 0xac], xmm7
movss dword [edi + 0xb0], xmm0
test si, si
je 0x407253
movaps xmm3, xmm5
subss xmm3, xmm7
movaps xmm2, xmm6
subss xmm2, dword [edi + 0x68]
mulss xmm3, dword [0x434170]
mulss xmm2, dword [0x434170]
movaps xmm0, xmm3
addss xmm0, xmm4
addss xmm3, xmm7
movss dword [ebx], xmm0
movaps xmm0, xmm2
addss xmm2, dword [edi + 0x68]
addss xmm0, xmm4
movss dword [edi + 0xac], xmm3
movss dword [edi + 0xb0], xmm2
movss dword [edi + 0xa8], xmm0
movzx ebp, word [edi + 0x2c]
cmp ebp, 4
jbe 0x407266
movss dword [edi + 0x78], xmm6
movss dword [edi + 0x7c], xmm5
movzx esi, word [edi + 0xb68]
mov eax, dword [edi + 8]
shl esi, 5
cmp dword [esi + eax], 0
jne 0x40728b
push ebp
push ebx
call fcn.00407af0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ebp, dword [esi + eax + 4]
mov eax, dword [esi + eax + 8]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x10], eax
cmp ebp, 0x7fffffff
ja 0x407ac9
cmp eax, 0x7fffffff
ja 0x407ac9
mov ebp, 0x7fffffff
mov eax, ebp
sub eax, dword [esp + 0x34]
cmp ecx, eax
ja 0x407ac9
sub ebp, dword [esp + 0x10]
cmp edx, ebp
ja 0x407ac9
mov ebp, dword [esp + 0x34]
xor edx, edx
lea eax, [ebp - 1]
add eax, ecx
div ebp
mov ecx, dword [edi + 8]
mov ebp, dword [esp + 0x10]
xor edx, edx
mov dword [esi + ecx + 0xc], eax
mov dword [esp + 0x14], eax
lea eax, [ebp - 1]
add eax, dword [edi + 0x20]
mov ecx, dword [edi + 8]
div ebp
movzx edx, word [edi + 0xb68]
shl edx, 5
mov esi, eax
mov dword [edx + ecx + 0x10], esi
mov eax, dword [edi + 0x1c]
xor edx, edx
div dword [esp + 0x34]
movzx ecx, word [edi + 0xb68]
mov eax, dword [edi + 8]
shl ecx, 5
mov dword [ecx + eax + 0x14], edx
mov eax, dword [edi + 0x20]
xor edx, edx
div ebp
movzx ecx, word [edi + 0xb68]
mov eax, dword [edi + 8]
shl ecx, 5
mov dword [ecx + eax + 0x18], edx
movzx ecx, word [edi + 0xb68]
mov eax, dword [edi + 8]
shl ecx, 5
mov ebp, dword [ecx + eax + 0x1c]
lea eax, [esi - 1]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], eax
test eax, eax
je 0x407657
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
lea edx, [ecx - 1]
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], 0
cvtpd2ps xmm5, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, ecx
imul eax, eax, 0x34
mov dword [esp + 0x28], eax
lea eax, [ebp + 4]
cvtpd2ps xmm4, xmm0
mov dword [esp + 0x1c], eax
xor esi, esi
lea ecx, [ecx]
xor ecx, ecx
test edx, edx
je 0x40752e
lea eax, [esi + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, esi
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x434190]
cvtpd2ps xmm3, xmm0
jmp 0x407410
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mov eax, ecx
shr eax, 0x1f
inc ecx
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, dword [edi + 0x1c]
add edx, 0x34
cvtpd2ps xmm1, xmm0
movd xmm0, eax
mulss xmm1, dword [edi + 0x64]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm1, xmm5
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, ecx
addss xmm1, dword [ebx]
cvtdq2pd xmm0, xmm0
movss dword [edx - 0x38], xmm1
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, dword [edi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
mulss xmm1, dword [edi + 0x64]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm1, xmm5
addsd xmm0, qword [eax*8 + 0x434190]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
addss xmm1, dword [ebx]
movss dword [edx - 0x30], xmm1
mov eax, dword [edi + 0x20]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x434190]
mulss xmm1, dword [edi + 0x68]
cvtpd2ps xmm0, xmm0
mulss xmm1, xmm4
divss xmm1, xmm0
movss xmm0, dword [edi + 0xb0]
subss xmm0, xmm1
movaps xmm1, xmm3
movss dword [edx - 0x34], xmm0
mov eax, dword [edi + 0x20]
mulss xmm1, dword [edi + 0x68]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm1, xmm4
addsd xmm0, qword [eax*8 + 0x434190]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [edi + 0xb0]
subss xmm0, xmm1
movss dword [edx - 0x2c], xmm0
cmp ecx, ebp
jb 0x407410
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x1c]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
add edx, ecx
shr ecx, 0x1f
imul edx, edx, 0x34
addsd xmm0, qword [ecx*8 + 0x434190]
add edx, ebp
lea ecx, [esi + 1]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
mulss xmm1, dword [edi + 0x64]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm1, xmm5
addsd xmm0, qword [eax*8 + 0x434190]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, ecx
addss xmm1, dword [ebx]
cvtdq2pd xmm0, xmm0
movss dword [edx], xmm1
mov eax, dword [edi + 0xac]
mov dword [edx + 8], eax
mov eax, ecx
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, dword [edi + 0x20]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
mulss xmm1, dword [edi + 0x68]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm1, xmm4
addsd xmm0, qword [eax*8 + 0x434190]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [edi + 0xb0]
subss xmm0, xmm1
movss dword [edx + 4], xmm0
mov eax, dword [edi + 0x20]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
shr esi, 0x1f
addsd xmm0, qword [esi*8 + 0x434190]
mov esi, ecx
cvtpd2ps xmm1, xmm0
movd xmm0, eax
mulss xmm1, dword [edi + 0x68]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm1, xmm4
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
cvtpd2ps xmm0, xmm0
mov eax, dword [esp + 0x28]
divss xmm1, xmm0
movss xmm0, dword [edi + 0xb0]
add dword [esp + 0x1c], eax
subss xmm0, xmm1
movss dword [edx + 0xc], xmm0
mov edx, dword [esp + 0x20]
cmp esi, dword [esp + 0x2c]
jb 0x4073c0
jmp 0x407659
xor esi, esi
mov edx, dword [esp + 0x14]
xor ecx, ecx
lea eax, [edx - 1]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4077c0
mov eax, dword [esp + 0x34]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, esi
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, dword [esp + 0x10]
cvtpd2ps xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, edx
imul eax, esi
imul eax, eax, 0x34
lea edx, [ebp + 4]
mov ebp, dword [esp + 0x2c]
cvtpd2ps xmm4, xmm0
add edx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mov eax, ecx
shr eax, 0x1f
inc ecx
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, dword [edi + 0x1c]
add edx, 0x34
cvtpd2ps xmm1, xmm0
movd xmm0, eax
mulss xmm1, dword [edi + 0x64]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, ecx
addss xmm1, dword [ebx]
cvtdq2pd xmm0, xmm0
movss dword [edx - 0x38], xmm1
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, dword [edi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
mulss xmm1, dword [edi + 0x64]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x434190]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
addss xmm1, dword [ebx]
movss dword [edx - 0x30], xmm1
mov eax, dword [edi + 0xa8]
mov dword [edx - 0x34], eax
mov eax, dword [edi + 0x20]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm3
addsd xmm0, qword [eax*8 + 0x434190]
mulss xmm1, dword [edi + 0x68]
cvtpd2ps xmm0, xmm0
mulss xmm1, xmm4
divss xmm1, xmm0
movss xmm0, dword [edi + 0xb0]
subss xmm0, xmm1
movss dword [edx - 0x2c], xmm0
cmp ecx, ebp
jb 0x4076d1
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
imul edx, esi
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
add edx, ecx
shr ecx, 0x1f
imul edx, edx, 0x34
addsd xmm0, qword [ecx*8 + 0x434190]
add edx, ebp
cvtpd2ps xmm1, xmm0
movd xmm0, eax
mulss xmm1, dword [edi + 0x64]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, dword [edi + 0x1c]
cvtpd2ps xmm0, xmm0
mulss xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x434190]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, esi
addss xmm1, dword [ebx]
cvtdq2pd xmm0, xmm0
movss dword [edx], xmm1
mov eax, dword [edi + 0xac]
mov dword [edx + 8], eax
mov eax, dword [edi + 0xa8]
shr esi, 0x1f
mov dword [edx + 4], eax
addsd xmm0, qword [esi*8 + 0x434190]
mov eax, dword [esp + 0x10]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
mulss xmm1, dword [edi + 0x68]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x434190]
mov eax, dword [edi + 0x20]
cvtpd2ps xmm0, xmm0
mulss xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x434190]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [edi + 0xb0]
subss xmm0, xmm1
movss dword [edx + 0xc], xmm0
movzx eax, word [edi + 0x2c]
test ax, ax
je 0x407a88
cmp eax, 1
je 0x407a88
movzx ecx, word [edi + 0xb68]
mov eax, dword [edi + 8]
shl ecx, 5
mov dword [esp + 0x34], 0
cmp dword [ecx + eax], 0
jbe 0x407ae1
lea esi, [ebp + 8]
jmp 0x4078f0
movss xmm0, dword [esi - 8]
subss xmm0, dword [ebx]
lea ecx, [esi - 8]
movss dword [ecx], xmm0
movss xmm0, dword [esi]
subss xmm0, dword [ebx]
movss dword [esi], xmm0
movss xmm0, dword [esi - 4]
subss xmm0, dword [edi + 0xa8]
movss dword [esi - 4], xmm0
movss xmm0, dword [esi + 4]
subss xmm0, dword [edi + 0xa8]
movss dword [esi + 4], xmm0
movzx eax, word [edi + 0x2c]
cmp eax, 2
je 0x40793e
cmp eax, 3
jne 0x40796f
movss xmm0, dword [edi + 0xac]
subss xmm0, dword [ebx]
subss xmm0, dword [ecx]
movss dword [ecx], xmm0
movss xmm0, dword [edi + 0xac]
subss xmm0, dword [ebx]
subss xmm0, dword [esi]
movss dword [esi], xmm0
movzx eax, word [edi + 0x2c]
cmp eax, 3
je 0x407975
cmp ax, 4
jne 0x4079a9
movss xmm0, dword [edi + 0xb0]
subss xmm0, dword [edi + 0xa8]
subss xmm0, dword [esi - 4]
movss dword [esi - 4], xmm0
movss xmm0, dword [edi + 0xb0]
subss xmm0, dword [edi + 0xa8]
subss xmm0, dword [esi + 4]
movss dword [esi + 4], xmm0
movzx eax, word [edi + 0x2c]
cmp eax, 8
je 0x4079b7
cmp eax, 5
jne 0x4079f4
movss xmm0, dword [edi + 0xb0]
subss xmm0, dword [edi + 0xa8]
subss xmm0, dword [esi - 4]
movss dword [esi - 4], xmm0
movss xmm0, dword [edi + 0xb0]
subss xmm0, dword [edi + 0xa8]
subss xmm0, dword [esi + 4]
movss dword [esi + 4], xmm0
movzx eax, word [edi + 0x2c]
cmp eax, 5
je 0x4079fa
cmp ax, 6
jne 0x407a22
movss xmm0, dword [edi + 0xac]
subss xmm0, dword [ebx]
subss xmm0, dword [ecx]
movss dword [ecx], xmm0
movss xmm0, dword [edi + 0xac]
subss xmm0, dword [ebx]
subss xmm0, dword [esi]
movss dword [esi], xmm0
movzx eax, word [edi + 0x2c]
cmp eax, 4
jbe 0x407a54
movss xmm0, dword [ecx]
mov eax, dword [esi - 4]
mov dword [ecx], eax
mov eax, dword [esi + 4]
movss dword [esi - 4], xmm0
movss xmm0, dword [esi]
mov dword [esi], eax
movss dword [esi + 4], xmm0
movzx eax, word [edi + 0x2c]
push eax
push ecx
call fcn.00407c80
jmp 0x407a5b
push eax
push ecx
call fcn.00407af0
movzx ecx, word [edi + 0xb68]
mov edx, dword [esp + 0x3c]
mov eax, dword [edi + 8]
inc edx
shl ecx, 5
add esp, 8
add esi, 0x34
mov dword [esp + 0x34], edx
cmp edx, dword [ecx + eax]
jb 0x4078f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
movzx ecx, word [edi + 0xb68]
mov eax, dword [edi + 8]
shl ecx, 5
xor esi, esi
cmp dword [ecx + eax], esi
jbe 0x407ae1
lea esp, [esp]
push 0
push ebp
call fcn.00407af0
movzx ecx, word [edi + 0xb68]
mov eax, dword [edi + 8]
shl ecx, 5
inc esi
add esp, 8
add ebp, 0x34
cmp esi, dword [ecx + eax]
jb 0x407aa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0x450ff8
push 0x45100c
call fcn.0041b950
mov dword [edi], 1
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret