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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x7b82dc]
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
test eax, 0x20000
je 0x4579fd
test eax, 0x80000
je 0x4579fd
mov byte [esp + 0x13], 1
test eax, 0x100000
jne 0x457a02
mov byte [esp + 0x13], 0
cmp byte [edi + 0x7c], 0
je 0x457bf6
mov esi, dword [edi + 0x20]
movss xmm1, dword [edi + 0x38]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mov eax, esi
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x77a880]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [edi + 0x3c]
cvtps2pd xmm0, xmm0
movss dword [esp + 0x14], xmm1
call fcn.0063e860
movss xmm1, dword [esp + 0x14]
mov eax, dword [edi + 0x24]
cvtsd2ss xmm0, xmm0
xor ebx, ebx
divss xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x77a880]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
mulss xmm1, dword [0x77a5e8]
mulss xmm1, dword [0x77a5e8]
movss dword [esp + 0x14], xmm1
test esi, esi
je 0x457b21
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
mov eax, ebx
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x77a880]
mov eax, dword [edi + 0x20]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
addsd xmm0, qword [0x77a568]
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x77a880]
divsd xmm0, xmm1
mulsd xmm0, qword [0x77a608]
call fcn.0063e390
movapd xmm1, xmm0
mulsd xmm1, qword [0x77a5e0]
mulsd xmm0, xmm1
call fcn.0063e390
mov eax, dword [edi + 0x18]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
inc ebx
movss dword [eax + ebx*4 - 4], xmm1
movss xmm1, dword [esp + 0x14]
mov eax, dword [edi + 0x1c]
cvtps2pd xmm1, xmm1
mulsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + ebx*4 - 4], xmm0
cmp ebx, dword [edi + 0x20]
jb 0x457a92
mov eax, dword [edi + 0x24]
movsd xmm0, qword [0x77a620]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
movsd xmm2, qword [0x77a598]
addsd xmm1, qword [eax*8 + 0x77a880]
mov eax, dword [edi + 0x28]
mov byte [edi + 0x7c], 0
divsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
cvtps2pd xmm1, xmm0
movss dword [edi + 0x40], xmm0
movaps xmm0, xmm2
divsd xmm0, xmm1
movd xmm1, eax
cvtpd2ps xmm0, xmm0
cvtdq2pd xmm1, xmm1
movss dword [edi + 0x44], xmm0
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x77a880]
mov eax, dword [edi + 0x20]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x77a880]
mov eax, dword [edi + 0x34]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [edi + 0x48], xmm0
cvtps2pd xmm0, xmm0
divsd xmm2, xmm0
cvtpd2ps xmm0, xmm2
movss dword [edi + 0x4c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x77a880]
mov eax, dword [edi + 0x30]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x77a880]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [edi + 0x50], xmm1
mov esi, dword [edi + 0x2c]
mov ecx, dword [edi + 0x20]
mov edx, esi
imul edx, ecx
cmp dword [edi + 0x64], edx
jae 0x457c12
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x6c]
sub eax, dword [edi + 0x78]
lea ebx, [edi + 0x68]
cmp eax, edx
jae 0x457c2b
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub ecx, dword [edi + 0x34]
imul ecx, esi
imul esi, dword [edi + 0x34]
push ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x28]
push ecx
push esi
mov ecx, ebx
call fcn.00457f30
mov eax, dword [esp + 0x1c]
shl eax, 2
push eax
push 0
push dword [esp + 0x20]
call fcn.0063c4b0
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x457c83
mov eax, dword [esp + 0x20]
shl eax, 2
push eax
push 0
push ecx
call fcn.0063c4b0
add esp, 0xc
mov esi, dword [edi + 0x2c]
lea ecx, [edi + 0x54]
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [edi + 0x20]
imul eax, esi
push eax
call fcn.00457ec0
mov eax, dword [esp + 0x20]
xor edx, edx
div esi
xor edx, edx
mov ecx, eax
mov eax, dword [esp + 0x1c]
div esi
cmp byte [esp + 0x13], 0
push ecx
push 0
push esi
push dword [edi + 0x18]
mov edx, 0x6288a0
push dword [esp + 0x28]
mov dword [esp + 0x38], ecx
push dword [edi]
mov dword [esp + 0x38], eax
mov eax, 0x62ab60
cmovne eax, edx
mov dword [esp + 0x34], eax
call eax
mov edx, dword [esp + 0x2c]
add esp, 0x18
test edx, edx
je 0x457d11
push dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + 0x18]
push ecx
push dword [edi + 0x2c]
lea eax, [eax + ecx*4]
push eax
push edx
push dword [edi]
call dword [esp + 0x34]
add esp, 0x18
xor esi, esi
cmp dword [edi + 0x2c], esi
jbe 0x457d40
cmp byte [esp + 0x13], 0
mov ebx, 0x62a4c0
mov eax, 0x628170
cmovne ebx, eax
lea ebx, [ebx]
push esi
push edi
call ebx
inc esi
add esp, 8
cmp esi, dword [edi + 0x2c]
jb 0x457d30
lea ebx, [edi + 0x68]
mov esi, dword [edi + 0x20]
mov ecx, dword [ebx + 8]
imul esi, dword [edi + 0x2c]
mov edx, dword [ebx + 4]
cmp ecx, edx
jb 0x457d57
sub ecx, edx
cmp ecx, edx
jae 0x457d51
lea eax, [ecx + esi]
cmp eax, edx
mov eax, dword [ebx]
jbe 0x457d6a
sub edx, ecx
mov dword [esp + 0x18], eax
sub esi, edx
jmp 0x457d76
mov edx, esi
mov dword [esp + 0x18], 0
xor esi, esi
lea eax, [eax + ecx*4]
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x14], eax
mov eax, edx
xor edx, edx
div ecx
xor edx, edx
mov dword [esp + 0x1c], eax
push dword [esp + 0x1c]
mov eax, esi
div ecx
cmp byte [esp + 0x17], 0
push 0
push ecx
push dword [edi + 0x1c]
mov esi, 0x62ac20
push dword [edi + 4]
push dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov eax, 0x6290c0
cmovne esi, eax
call esi
mov ecx, dword [esp + 0x30]
add esp, 0x18
test ecx, ecx
je 0x457de0
push dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 0x1c]
push edx
push dword [edi + 0x2c]
lea eax, [eax + edx*4]
push eax
push dword [edi + 4]
push ecx
call esi
add esp, 0x18
add dword [edi + 0x80], 0x3e8a444
cmp dword [edi + 0x80], 0xfa2911fe
jb 0x457e63
xor esi, esi
mov dword [edi + 0x80], 0
cmp dword [edi + 0x2c], esi
jbe 0x457e63
jmp 0x457e10
mov ebx, dword [edi + 0x20]
shr ebx, 1
mov edx, 0
je 0x457e5a
movsd xmm2, qword [0x77a620]
mov eax, dword [edi + 0xc]
inc edx
mov ecx, dword [eax + esi*4]
movss xmm1, dword [ecx + edx*4 - 4]
cvtps2pd xmm0, xmm1
divsd xmm0, xmm2
cvttsd2si eax, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm2
cvtpd2ps xmm0, xmm0
subss xmm1, xmm0
movss dword [ecx + edx*4 - 4], xmm1
cmp edx, ebx
jb 0x457e24
inc esi
cmp esi, dword [edi + 0x2c]
jb 0x457e10
lea ebx, [edi + 0x68]
mov ecx, dword [edi + 0x34]
imul ecx, dword [edi + 0x2c]
add dword [ebx + 8], ecx
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
cmp eax, edx
jb 0x457e7c
sub eax, edx
mov dword [ebx + 8], eax
add dword [ebx + 0x10], ecx
mov edx, dword [edi + 0x30]
imul edx, dword [edi + 0x2c]
add dword [edi + 0x60], edx
mov ecx, dword [edi + 0x60]
mov esi, dword [edi + 0x58]
cmp ecx, esi
jb 0x457e98
sub ecx, esi
mov dword [edi + 0x60], ecx
sub dword [edi + 0x64], edx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret