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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
fld qword [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
fmul qword [0x594108]
push ebx
push esi
mov esi, dword [ebp + 8]
fstp qword [esp + 0x14]
push edi
fld qword [esi]
mov dword [esp + 0x10], 0xffffffff
fcomp qword [ecx]
fnstsw ax
test ah, 1
jne 0x579a80
fld qword [esi]
fcomp qword [ecx + 0x10]
fnstsw ax
test ah, 0x41
je 0x579a80
fld qword [esi + 8]
fcomp qword [ecx + 8]
fnstsw ax
test ah, 1
jne 0x579a80
fld qword [esi + 8]
fcomp qword [ecx + 0x18]
fnstsw ax
test ah, 0x41
je 0x579a80
mov dword [esp + 0x10], 1
mov eax, dword [ebp + 0xc]
cmp eax, 2
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
jl 0x579cbd
mov ebx, dword [ebp + 0x14]
lea edi, [esi + 0x10]
jmp 0x579aa3
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x18], 2
jne 0x579aaf
cmp dword [esp + 0xc], eax
je 0x579abb
cmp dword [ebp + 0x1c], 1
jne 0x579b05
cmp dword [esp + 0xc], eax
je 0x579b0b
fld qword [esi]
mov eax, dword [ebp + 0x20]
fsub qword [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
fstp qword [esp + 0x28]
fld qword [edi - 8]
fsub qword [esp + 0x20]
fstp qword [esp + 0x30]
fld qword [esp + 0x20]
fadd qword [esi]
fstp qword [esp + 0x38]
fld qword [esp + 0x20]
fadd qword [edi - 8]
fstp qword [esp + 0x40]
call fcn.0057a1d0
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, ecx
jne 0x579d03
mov eax, dword [ebp + 0xc]
cmp dword [esp + 0xc], eax
jne 0x579b35
lea edx, [esp + 0x30]
push edx
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebp + 0x18]
xor ecx, ecx
cmp eax, 3
sete cl
push ecx
push ebx
push edx
push esi
push edi
call fcn.0057b560
add esp, 0x1c
jmp 0x579bf8
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x579b86
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x579b86
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jmp 0x579bf8
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push ebx
push ecx
push esi
push edi
call fcn.0057b560
mov eax, dword [ebp + 0x1c]
add esp, 0x1c
cmp eax, 2
je 0x579bb1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x579bf8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x20]
push eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x24]
push 5
push ecx
mov dword [esp + 0x78], edx
call fcn.0057a010
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ecx
jne 0x579d03
mov dword [esp + 0x14], 0
cmp dword [esp + 0xc], 2
jne 0x579c1c
lea edx, [esp + 0x50]
push edx
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x44]
push eax
mov eax, dword [ebp + 0x18]
xor ecx, ecx
cmp eax, 3
sete cl
push ecx
push ebx
push edx
jmp 0x579c5d
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x579c4c
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x44]
push ecx
push ebx
push edx
lea eax, [edi + 0x10]
push eax
push edi
push esi
call fcn.0057b310
add esp, 0x1c
test eax, eax
jne 0x579c67
mov dword [esp + 0x14], 1
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
push ebx
push eax
push edi
push esi
call fcn.0057b560
add esp, 0x1c
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x64], edx
mov edx, dword [ebp + 0x20]
push edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x24]
push 5
push eax
mov dword [esp + 0x78], ecx
call fcn.0057a010
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ecx
jne 0x579d03
mov eax, dword [esp + 0xc]
dec eax
add esi, 0x10
add edi, 0x10
cmp eax, 2
mov dword [esp + 0xc], eax
jge 0x579aa0
mov ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x18], 2
jne 0x579d0c
fld qword [esi]
push ecx
fsub qword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
fstp qword [esp + 0x28]
fld qword [esi + 8]
fsub qword [esp + 0x20]
fstp qword [esp + 0x30]
fld qword [esp + 0x20]
fadd qword [esi]
fstp qword [esp + 0x38]
fld qword [esp + 0x20]
fadd qword [esi + 8]
fstp qword [esp + 0x40]
call fcn.0057a1d0
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, ecx
je 0x579d0c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret