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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x77a6f8]
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
test eax, 0x20000
je 0x45b8ad
test eax, 0x80000
je 0x45b8ad
mov byte [esp + 0x13], 1
test eax, 0x100000
jne 0x45b8b2
mov byte [esp + 0x13], 0
cmp byte [edi + 0x7c], 0
je 0x45baa6
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 + 0x72e400]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [edi + 0x3c]
cvtps2pd xmm0, xmm0
movss dword [esp + 0x14], xmm1
call fcn.006950f0
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 + 0x72e400]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
mulss xmm1, dword [0x72e168]
mulss xmm1, dword [0x72e168]
movss dword [esp + 0x14], xmm1
test esi, esi
je 0x45b9d1
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
mov eax, ebx
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x72e400]
mov eax, dword [edi + 0x20]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
addsd xmm0, qword [0x72e0e8]
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x72e400]
divsd xmm0, xmm1
mulsd xmm0, qword [0x72e188]
call fcn.00694f20
movapd xmm1, xmm0
mulsd xmm1, qword [0x72e160]
mulsd xmm0, xmm1
call fcn.00694f20
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 0x45b942
mov eax, dword [edi + 0x24]
movsd xmm0, qword [0x72e1a0]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
movsd xmm2, qword [0x72e118]
addsd xmm1, qword [eax*8 + 0x72e400]
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 + 0x72e400]
mov eax, dword [edi + 0x20]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x72e400]
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 + 0x72e400]
mov eax, dword [edi + 0x30]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x72e400]
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 0x45bac2
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 0x45badb
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.0045bde0
mov eax, dword [esp + 0x1c]
shl eax, 2
push eax
push 0
push dword [esp + 0x20]
call fcn.0063ac00
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x45bb33
mov eax, dword [esp + 0x20]
shl eax, 2
push eax
push 0
push ecx
call fcn.0063ac00
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.0045bd70
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, 0x6306b0
push dword [esp + 0x28]
mov dword [esp + 0x38], ecx
push dword [edi]
mov dword [esp + 0x38], eax
mov eax, 0x632970
cmovne eax, edx
mov dword [esp + 0x34], eax
call eax
mov edx, dword [esp + 0x2c]
add esp, 0x18
test edx, edx
je 0x45bbc1
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 0x45bbf0
cmp byte [esp + 0x13], 0
mov ebx, 0x6322d0
mov eax, 0x62ff80
cmovne ebx, eax
lea ebx, [ebx]
push esi
push edi
call ebx
inc esi
add esp, 8
cmp esi, dword [edi + 0x2c]
jb 0x45bbe0
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 0x45bc07
sub ecx, edx
cmp ecx, edx
jae 0x45bc01
lea eax, [ecx + esi]
cmp eax, edx
mov eax, dword [ebx]
jbe 0x45bc1a
sub edx, ecx
mov dword [esp + 0x18], eax
sub esi, edx
jmp 0x45bc26
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, 0x632a30
push dword [edi + 4]
push dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov eax, 0x630ed0
cmovne esi, eax
call esi
mov ecx, dword [esp + 0x30]
add esp, 0x18
test ecx, ecx
je 0x45bc90
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 0x45bd13
xor esi, esi
mov dword [edi + 0x80], 0
cmp dword [edi + 0x2c], esi
jbe 0x45bd13
jmp 0x45bcc0
mov ebx, dword [edi + 0x20]
shr ebx, 1
mov edx, 0
je 0x45bd0a
movsd xmm2, qword [0x72e1a0]
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 0x45bcd4
inc esi
cmp esi, dword [edi + 0x2c]
jb 0x45bcc0
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 0x45bd2c
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 0x45bd48
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