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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [ebp + 0xc]
push ebx
xor ecx, ecx
push esi
cmp eax, 5
push edi
mov dword [esp + 0x24], ecx
jge 0x565519
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x68
mov eax, dword [ebp + 0x5c]
mov dword [esp + 0x34], ecx
cmp eax, ecx
je 0x565536
mov eax, dword [ebp + 0x60]
mov edx, 1
cmp eax, ecx
je 0x56553b
mov dword [esp + 0x34], edx
jmp 0x56553b
mov edx, 1
fld qword [ebp + 0x18]
fadd qword [ebp + 0x20]
mov edi, dword [ebp + 0x44]
fmul qword [0x5ff1b8]
fstp qword [esp + 0xe0]
fld qword [ebp + 0x18]
fsub qword [ebp + 0x20]
fstp qword [esp + 0xd8]
fld qword [ebp + 0x28]
fcomp qword [0x5fdad8]
mov dword [edi], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x20], ecx
mov dword [edi + 4], ecx
mov dword [esp + 0xc], ecx
fnstsw ax
test ah, 0x41
jne 0x56558f
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0x40590000
jmp 0x5655ad
fld qword [ebp + 0x28]
fcomp qword [0x602538]
fnstsw ax
test ah, 1
je 0x5655ad
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0xc0590000
fld qword [ebp + 0x30]
fcomp qword [0x5fdad8]
fnstsw ax
test ah, 0x41
jne 0x5655cd
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0x40590000
jmp 0x5655eb
fld qword [ebp + 0x30]
fcomp qword [0x5fd8b0]
fnstsw ax
test ah, 1
je 0x5655eb
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
fld qword [esp + 0xd8]
fmul qword [ebp + 0x28]
fmul qword [0x609fc8]
fadd qword [esp + 0xe0]
fstp qword [esp + 0x68]
fld qword [esp + 0xd8]
fmul qword [ebp + 0x30]
fmul qword [0x609fc8]
fsubr qword [esp + 0x68]
fst qword [esp + 0x28]
fcomp qword [ebp + 0x20]
fnstsw ax
test ah, 1
je 0x565636
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 0x24]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], ecx
fld qword [0x5fd8b0]
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [esp + 0x98], esi
mov esi, dword [ebp + 0x68]
mov dword [esp + 0x9c], ebx
xor ebx, ebx
mov dword [esi], 0xf1c35ca5
mov dword [esi + 4], 0x483d6329
mov esi, dword [ebp + 0x64]
cmp dword [ebp + 0xc], edx
fld qword [0x5fd8b0]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov esi, dword [ebp + 0x6c]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x40], 0
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esp + 0x44], 0
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x74], ecx
mov esi, edx
jbe 0x565b55
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
fld qword [eax + 8]
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x5657e7
fld qword [esp + 0x28]
fadd qword [esp + 0x68]
fmul qword [0x5ff1b8]
fld qword [esp + 0x98]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x56574d
fld st(1)
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 1
jne 0x56574d
fld qword [edi]
fadd qword [0x5fd8a8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x78], edx
mov dword [esp + 0xc], edx
inc ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
fstp qword [edi]
fld st(1)
faddp st(4)
fld st(1)
mov dword [esp + 0x20], esi
mov dword [esp + 0x60], esi
fstp qword [esp + 0x50]
fld st(1)
fmul st(2)
mov dword [esp + 0x7c], edx
fld st(0)
faddp st(4)
fstp qword [esp + 0x40]
fld st(1)
fsub qword [esp + 0x68]
fld st(2)
fsub qword [eax]
fdivp st(1)
fchs
fst qword [esp + 0x38]
fstp qword [esp + 0x90]
fld qword [esp + 0x98]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x565b3c
fcom qword [esp + 0x28]
fnstsw ax
test ah, 0x41
je 0x565b3c
fld qword [edi]
fadd qword [0x5fd8a8]
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x78], 0
inc ecx
mov dword [esp + 0x18], esi
fstp qword [edi]
mov dword [esp + 0x20], esi
mov dword [esp + 0x60], esi
fld st(0)
faddp st(3)
fst qword [esp + 0x50]
fld st(0)
fmul st(1)
fld st(0)
faddp st(3)
fstp qword [esp + 0x40]
fld st(0)
fsub qword [esp + 0x28]
fxch st(1)
fsub qword [edx]
fdivp st(1)
fchs
fstp qword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x94], edx
mov edx, 1
mov dword [esp + 0x90], eax
mov dword [esp + 0x7c], edx
jmp 0x565b3e
mov eax, dword [esp + 0x78]
test eax, eax
mov eax, dword [esp + 0xc]
je 0x565986
test eax, eax
je 0x565816
fcom qword [esp + 0x28]
fnstsw ax
test ah, 1
je 0x565b12
mov dword [esp + 0xc], 0
mov dword [esp + 0x74], edx
fcom qword [esp + 0x68]
fnstsw ax
test ah, 1
jne 0x565b1c
fld qword [edi]
fadd qword [0x5fd8a8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0xd0], esi
inc ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x18]
fst qword [esp + 0xa0]
fstp qword [edi]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0x14], edx
fld st(0)
faddp st(3)
fxch st(2)
fst qword [esp + 0x88]
fxch st(2)
fst qword [esp + 0x50]
fld st(0)
fmul st(1)
mov dword [esp + 0x20], esi
fld st(0)
faddp st(3)
fxch st(2)
fst qword [esp + 0x80]
fxch st(2)
fstp qword [esp + 0x40]
fld st(0)
fsub qword [esp + 0x68]
fxch st(1)
fsub qword [eax]
xor eax, eax
fdivp st(1)
mov dword [esp + 0xd4], eax
mov dword [esp + 0xbc], eax
fchs
fstp qword [esp + 0x48]
fild qword [esp + 0xd0]
fadd qword [esp + 0x48]
fild qword [esp + 0xb8]
fadd qword [esp + 0x38]
fld st(1)
fsub st(1)
fdivr qword [ebp + 0x10]
fdiv qword [ebp + 0x38]
fstp qword [esp + 0x18]
fld qword [esp + 0xa0]
call fcn.005dfdf0
mov ebx, eax
mov eax, dword [esp + 0x34]
sub ebx, 2
test eax, eax
je 0x565907
fxch st(1)
fadd st(1)
mov edx, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x60]
fmul qword [0x5ff1b8]
fdiv qword [ebp + 0x10]
fstp qword [edx + ebx*8]
fstp st(0)
fld qword [esp + 0x18]
fstp qword [eax + ebx*8]
jmp 0x565964
mov eax, dword [esp + 0x24]
fstp st(0)
test eax, eax
fstp st(0)
je 0x565964
mov ecx, dword [ebp + 0x68]
fstp st(0)
fstp st(0)
fld qword [esp + 0x18]
fcom qword [ecx]
fnstsw ax
test ah, 1
je 0x565929
fst qword [ecx]
mov ecx, dword [ebp + 0x64]
fcom qword [ecx]
fnstsw ax
test ah, 0x41
jne 0x565939
fstp qword [ecx]
jmp 0x56593b
fstp st(0)
mov ecx, dword [ebp + 0x40]
fld qword [esp + 0x18]
fsub qword [ecx]
fld qword [0x5ff4e8]
call fcn.005dffc6
mov eax, dword [ebp + 0x6c]
fadd qword [eax]
fstp qword [eax]
fld qword [esp + 0x88]
fld qword [esp + 0x80]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x3c], eax
mov edx, 1
jmp 0x565b3e
test eax, eax
je 0x5659a5
fcom qword [esp + 0x68]
fnstsw ax
test ah, 0x41
jne 0x565b12
mov dword [esp + 0xc], 0
mov dword [esp + 0x74], edx
fcom qword [esp + 0x28]
fnstsw ax
test ah, 0x41
je 0x565b1c
fld qword [edi]
fadd qword [0x5fd8a8]
inc ecx
xor eax, eax
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], eax
fst qword [esp + 0xa0]
fstp qword [edi]
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], edx
fld st(0)
faddp st(3)
fxch st(2)
fst qword [esp + 0x88]
fxch st(2)
fst qword [esp + 0x50]
fld st(0)
fmul st(1)
mov edx, dword [esp + 0x18]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc8], edx
mov dword [esp + 0x20], esi
fld st(0)
faddp st(3)
fxch st(2)
fst qword [esp + 0x80]
fxch st(2)
fstp qword [esp + 0x40]
fld st(0)
fsub qword [esp + 0x28]
fxch st(1)
fsub qword [ecx]
fdivp st(1)
fchs
fstp qword [esp + 0x48]
fild qword [esp + 0xa8]
fadd qword [esp + 0x48]
fild qword [esp + 0xc8]
fadd qword [esp + 0x38]
fld st(1)
fsub st(1)
fdivr qword [ebp + 0x10]
fdiv qword [ebp + 0x38]
fstp qword [esp + 0x18]
fld qword [esp + 0xa0]
call fcn.005dfdf0
mov ebx, eax
mov eax, dword [esp + 0x34]
sub ebx, 2
test eax, eax
je 0x565a96
fxch st(1)
fadd st(1)
mov eax, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x60]
fmul qword [0x5ff1b8]
fdiv qword [ebp + 0x10]
fstp qword [eax + ebx*8]
fstp st(0)
fld qword [esp + 0x18]
fstp qword [ecx + ebx*8]
jmp 0x565af3
mov eax, dword [esp + 0x24]
fstp st(0)
test eax, eax
fstp st(0)
je 0x565af3
mov ecx, dword [ebp + 0x68]
fstp st(0)
fstp st(0)
fld qword [esp + 0x18]
fcom qword [ecx]
fnstsw ax
test ah, 1
je 0x565ab8
fst qword [ecx]
mov ecx, dword [ebp + 0x64]
fcom qword [ecx]
fnstsw ax
test ah, 0x41
jne 0x565ac8
fstp qword [ecx]
jmp 0x565aca
fstp st(0)
mov edx, dword [ebp + 0x40]
fld qword [esp + 0x18]
fsub qword [edx]
fld qword [0x5ff4e8]
call fcn.005dffc6
mov eax, dword [ebp + 0x6c]
fadd qword [eax]
fstp qword [eax]
fld qword [esp + 0x88]
fld qword [esp + 0x80]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x18], esi
mov dword [esp + 0x38], eax
mov edx, 1
jmp 0x565b3e
mov eax, dword [esp + 0x14]
inc ecx
inc eax
mov dword [esp + 0x14], eax
fld st(0)
faddp st(3)
fld st(0)
fadd qword [esp + 0x50]
fstp qword [esp + 0x50]
fld st(0)
fmulp st(1)
fld st(0)
faddp st(2)
fadd qword [esp + 0x40]
fstp qword [esp + 0x40]
jmp 0x565b3e
fstp st(0)
mov eax, dword [esp + 0x10]
inc esi
add eax, 8
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
cmp esi, eax
jb 0x5656b5
mov eax, dword [ebp + 0x58]
xor esi, esi
mov dword [eax], esi
mov dword [eax + 4], esi
mov eax, dword [ebp + 0x54]
mov dword [eax], esi
mov dword [eax + 4], esi
mov eax, dword [ebp + 0x50]
mov dword [eax], esi
mov dword [eax + 4], esi
mov eax, dword [ebp + 0x4c]
mov dword [eax], esi
mov dword [eax + 4], esi
mov eax, dword [ebp + 0x48]
mov dword [eax], esi
mov dword [eax + 4], esi
mov eax, dword [ebp + 0x40]
mov dword [eax], esi
mov dword [eax + 4], esi
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x60]
sub esi, eax
je 0x565c79
fld qword [edi]
fcomp qword [0x5fd8a8]
fnstsw ax
test ah, 0x41
jne 0x565c79
mov dword [esp + 0xb0], esi
xor esi, esi
mov dword [esp + 0xb4], esi
mov eax, dword [ebp + 0x40]
fild qword [esp + 0xb0]
mov dword [esp + 0xc4], esi
fadd qword [esp + 0x48]
fsub qword [esp + 0x90]
fst qword [esp + 0x80]
fld qword [edi]
fsub qword [0x5fd8a8]
fdiv qword [ebp + 0x38]
fmul qword [ebp + 0x10]
fdiv st(1)
fstp qword [eax]
mov eax, dword [esp + 0x14]
sub ecx, eax
mov eax, dword [ebp + 0x4c]
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x78]
fild qword [esp + 0xc0]
cmp ecx, esi
fld st(0)
fmul qword [0x5fdad8]
fdiv st(2)
fld st(0)
fstp qword [eax]
jne 0x565c63
fld qword [0x5fdad8]
fsub st(1)
fstp qword [eax]
mov eax, dword [ebp + 0x58]
fstp st(0)
fld st(1)
fsub st(1)
fld qword [edi]
fsub qword [0x5fd8a8]
fdivp st(1)
fdiv qword [ebp + 0x10]
fstp qword [eax]
fstp st(0)
fxch st(1)
fsub qword [esp + 0x40]
mov ecx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x54]
fdiv st(1)
fsqrt
fstp qword [ecx]
fstp st(0)
fsub qword [esp + 0x50]
fdiv qword [esp + 0x80]
fstp qword [eax]
jmp 0x565cac
fstp st(0)
fld qword [edi]
fsub qword [0x5fd8a8]
mov ecx, dword [ebp + 0x58]
fdivr st(1)
fdiv qword [ebp + 0x10]
fstp qword [ecx]
jmp 0x565c3e
mov eax, dword [edi]
fstp st(0)
test eax, eax
fstp st(0)
jne 0x565cac
cmp dword [edi + 4], 0x3ff00000
jne 0x565cac
mov eax, dword [esp + 0x74]
test eax, eax
je 0x565cac
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 0
fild qword [esp + 0x58]
mov ecx, dword [ebp + 0x58]
fdiv qword [ebp + 0x10]
fstp qword [ecx]
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x48]
fld qword [eax]
fmul qword [0x5ff188]
mov eax, dword [esp + 0x34]
test eax, eax
fstp qword [ecx]
fld qword [edi]
fdiv qword [ebp + 0x38]
fstp qword [edi]
jne 0x565ce2
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x565d58
mov dword [esp + 0x24], edx
xor ecx, ecx
jmp 0x56555e
mov esi, dword [ebp + 0x60]
inc ebx
mov edi, ebx
mov ecx, dword [ebp + 0x68]
fld qword [ecx]
fcomp qword [esi]
fnstsw ax
test ah, 0x41
jne 0x565d00
mov edx, dword [esi]
mov dword [ecx], edx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x64]
fld qword [ecx]
fcomp qword [esi]
fnstsw ax
test ah, 1
je 0x565d18
mov edx, dword [esi]
mov dword [ecx], edx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x40]
fld qword [esi]
fsub qword [ecx]
fld qword [0x5ff4e8]
call fcn.005dffc6
mov eax, dword [ebp + 0x6c]
add esi, 8
dec edi
fadd qword [eax]
fstp qword [eax]
jne 0x565ce8
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], 0
fild qword [esp + 0x58]
fdivr qword [eax]
fsqrt
fstp qword [eax]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x68
mov eax, dword [ebp + 0x6c]
inc ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], 0
fild qword [esp + 0x58]
pop edi
pop esi
fdivr qword [eax]
fsqrt
fstp qword [eax]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x68