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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x57f1b9
push eax
call fcn.005e6f52
add esp, 4
mov dword [esi + 4], ebx
mov ecx, edi
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
call fcn.0057f010
mov ebx, eax
test ebx, ebx
je 0x57f8a1
mov eax, dword [ebx + 0x10]
test eax, eax
mov dword [esp + 0x30], eax
je 0x57f8a1
mov ecx, edi
call fcn.00554530
mov edi, eax
mov eax, dword [ebx + 4]
dec edi
push eax
neg edi
sbb edi, edi
lea ecx, [esp + 0x20]
and edi, 2
mov dword [esp + 0x5c], 0
add edi, 2
imul edi, dword [esp + 0x34]
call fcn.0057f940
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x50], 1
cmp ecx, 1
mov dword [esp + 0x38], ecx
jb 0x57f2b8
jmp 0x57f22b
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x50]
xor edx, edx
div ecx
mov ecx, dword [ebx + 4]
lea edx, [ecx + edx*8]
lea ecx, [esp + 0xc]
push edx
call fcn.0057f940
fld dword [esp + 0xc]
fsub dword [esp + 0x1c]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x30]
push eax
fstp dword [esp + 0x2c]
fld dword [esp + 0x14]
fsub dword [esp + 0x24]
fstp dword [esp + 0x30]
call fcn.00565ed0
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0xc]
mov dword [esp + 0x48], ecx
faddp st(1)
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], edx
fsqrt
fadd dword [esp + 0x5c]
fstp dword [esp + 0x5c]
call fcn.0057f940
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x50], eax
jbe 0x57f227
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0
fild qword [esp + 0x28]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x50], 0
push ecx
lea ecx, [esp + 0x20]
fdivr dword [esp + 0x5c]
fstp dword [esp + 0x28]
call fcn.0057f940
mov edx, dword [ebx + 4]
lea ecx, [esp + 0xc]
add edx, 8
push edx
call fcn.0057f940
fld dword [esp + 0xc]
fsub dword [esp + 0x1c]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x30]
push eax
fstp dword [esp + 0x2c]
fld dword [esp + 0x14]
fsub dword [esp + 0x24]
fstp dword [esp + 0x30]
call fcn.00565ed0
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
test edi, edi
faddp st(1)
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x30], 0
fsqrt
fstp dword [esp + 0x58]
jbe 0x57f4c0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x80], 0
fld dword [esp + 0x50]
fcomp dword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x57f419
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x80]
add eax, 8
inc ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebx + 4]
add ecx, eax
mov dword [esp + 0x80], eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0057f940
mov eax, dword [esp + 0x3c]
xor edx, edx
div dword [esp + 0x38]
mov eax, dword [ebx + 4]
lea ecx, [eax + edx*8]
push ecx
lea ecx, [esp + 0x10]
call fcn.0057f940
fld dword [esp + 0xc]
fsub dword [esp + 0x1c]
lea edx, [esp + 0x78]
lea ecx, [esp + 0x28]
push edx
fstp dword [esp + 0x7c]
fld dword [esp + 0x14]
fsub dword [esp + 0x24]
fstp dword [esp + 0x80]
call fcn.00565ed0
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
faddp st(1)
fsqrt
fadd dword [esp + 0x58]
fstp dword [esp + 0x58]
lea edx, [esp + 0x48]
lea ecx, [esp + 0x40]
push edx
call fcn.0057f940
lea ecx, [esp + 0x40]
call fcn.00550570
fld dword [esp + 0x40]
fdiv st(1)
lea eax, [esp + 0x68]
lea ecx, [esp + 0x88]
push eax
fstp dword [esp + 0x44]
fdivr dword [esp + 0x48]
fld dword [esp + 0x54]
fsub dword [esp + 0x34]
fld st(0)
fmul dword [esp + 0x44]
fstp dword [esp + 0x44]
fxch st(1)
fmul st(1)
fstp dword [esp + 0x48]
fstp st(0)
fld dword [esp + 0x44]
fadd dword [esp + 0x20]
fstp dword [esp + 0x6c]
fld dword [esp + 0x48]
fadd dword [esp + 0x24]
fstp dword [esp + 0x70]
call fcn.00565ed0
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x64]
call fcn.0057f940
fld dword [esp + 0x64]
fld dword [esp + 0x60]
sub esp, 8
mov ecx, esi
mov eax, esp
fstp dword [eax]
fstp dword [eax + 4]
call fcn.0055bef0
fld dword [esp + 0x50]
fadd dword [esp + 0x24]
dec edi
fstp dword [esp + 0x50]
jne 0x57f366
mov edx, dword [esi + 4]
lea ecx, [esp + 0x1c]
push edx
mov dword [esp + 0x28], 0
call fcn.0057f940
mov edi, dword [esi + 0x10]
mov ebx, 1
cmp edi, ebx
mov dword [esp + 0x3c], edi
jb 0x57f575
mov eax, ebx
xor edx, edx
div edi
mov eax, dword [esi + 4]
lea ecx, [eax + edx*8]
push ecx
lea ecx, [esp + 0x10]
call fcn.0057f940
fld dword [esp + 0xc]
fsub dword [esp + 0x1c]
lea edx, [esp + 0x68]
lea ecx, [esp + 0x28]
push edx
fstp dword [esp + 0x6c]
fld dword [esp + 0x14]
fsub dword [esp + 0x24]
fstp dword [esp + 0x70]
call fcn.00565ed0
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
faddp st(1)
fsqrt
fld dword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x57f55c
fstp dword [esp + 0x24]
jmp 0x57f55e
fstp st(0)
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
call fcn.0057f940
inc ebx
cmp ebx, edi
jbe 0x57f4e9
fld dword [esp + 0x24]
fmul dword [0x65eba8]
test edi, edi
fstp dword [esp + 0x24]
jbe 0x57f8a1
fld qword [0x65dde8]
fcos
mov ebx, 1
mov dword [esp + 0x38], 0
fst qword [esp + 0x88]
fstp qword [esp + 0x80]
fld qword [0x65dde8]
fsin
fst qword [esp + 0x58]
fstp qword [esp + 0x50]
jmp 0x57f5c4
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 4]
add eax, ecx
lea ecx, [esp + 0x1c]
push eax
call fcn.0057f940
mov eax, ebx
xor edx, edx
div edi
mov eax, dword [esi + 4]
mov edi, edx
shl edi, 3
mov ecx, edi
add ecx, eax
push ecx
lea ecx, [esp + 0x10]
call fcn.0057f940
fld dword [esp + 0xc]
fsub dword [esp + 0x1c]
lea edx, [esp + 0x68]
lea ecx, [esp + 0x78]
push edx
fstp dword [esp + 0x6c]
fld dword [esp + 0x14]
fsub dword [esp + 0x24]
fstp dword [esp + 0x70]
call fcn.00565ed0
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x48]
mov dword [esp + 0x4c], ecx
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], eax
call fcn.0057f940
lea ecx, [esp + 0x14]
call fcn.00550570
fld dword [esp + 0x14]
fdiv st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fdiv st(1)
fstp dword [esp + 0x18]
fstp st(0)
fld dword [esp + 0x14]
fld dword [esp + 0x18]
fld qword [esp + 0x88]
fld qword [esp + 0x58]
fld st(1)
fmul st(4)
fld st(1)
fmul st(4)
fsubp st(1)
fstp dword [esp + 0x14]
fxch st(1)
fmul st(2)
fxch st(1)
fmul st(3)
faddp st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x14]
fmul dword [esp + 0x24]
fstp dword [esp + 0x14]
fmul dword [esp + 0x24]
fstp dword [esp + 0x18]
fld dword [esp + 0x14]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x18]
fadd dword [esp + 0x20]
fst dword [esp + 0x20]
fld dword [esp + 0x14]
fadd dword [esp + 0xc]
fstp dword [esp + 0xc]
fld dword [esp + 0x18]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x1c]
sub esp, 8
mov ecx, esi
mov eax, esp
fstp dword [eax]
fstp dword [eax + 4]
call fcn.0055bef0
fld dword [esp + 0x10]
fld dword [esp + 0xc]
sub esp, 8
mov ecx, esi
mov eax, esp
fstp dword [eax]
fstp dword [eax + 4]
call fcn.0055bef0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
call fcn.0057f940
mov edx, dword [esi + 4]
mov ecx, edi
add ecx, edx
push ecx
lea ecx, [esp + 0x10]
call fcn.0057f940
inc ebx
xor edx, edx
mov eax, ebx
div dword [esp + 0x3c]
mov eax, dword [esi + 4]
lea ecx, [eax + edx*8]
push ecx
lea ecx, [esp + 0x64]
call fcn.0057f940
fld dword [esp + 0x60]
fsub dword [esp + 0xc]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x30]
push edx
fstp dword [esp + 0x2c]
fld dword [esp + 0x68]
fsub dword [esp + 0x14]
fstp dword [esp + 0x30]
call fcn.00565ed0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x40]
mov dword [esp + 0x44], ecx
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], eax
call fcn.0057f940
lea ecx, [esp + 0x14]
call fcn.00550570
fld dword [esp + 0x14]
fdiv st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fdiv st(1)
fstp dword [esp + 0x18]
fstp st(0)
fld dword [esp + 0x14]
fld dword [esp + 0x18]
fld qword [esp + 0x80]
fmul st(2)
fld qword [esp + 0x50]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x14]
fld qword [esp + 0x80]
fmul st(1)
fld qword [esp + 0x50]
fmul st(3)
faddp st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x14]
fmul dword [esp + 0x24]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
fstp dword [esp + 0x18]
fmul dword [esp + 0x28]
fstp dword [esp + 0x1c]
call fcn.0057f8b0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x94]
push edx
push eax
call fcn.0057f8d0
add esp, 0xc
lea ecx, [esp + 0x70]
push eax
call fcn.0057f940
lea ecx, [esp + 0x70]
call fcn.00550570
fcomp qword [0x6331a8]
fnstsw ax
test ah, 0x41
jne 0x57f887
lea ecx, [esp + 0x70]
call fcn.0057f960
push 0xbff921fb
push 0x60000000
lea ecx, [esp + 0x78]
call fcn.0057f900
fld dword [esp + 0x70]
fmul dword [esp + 0x24]
mov ecx, dword [esi + 4]
add edi, ecx
lea ecx, [esp + 0x60]
push edi
fstp dword [esp + 0x74]
fld dword [esp + 0x78]
fmul dword [esp + 0x28]
fstp dword [esp + 0x78]
call fcn.0057f940
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x64]
call fcn.0057f8b0
sub esp, 8
lea edx, [esp + 0x68]
mov ecx, esp
push edx
call fcn.00565ed0
mov ecx, esi
call fcn.0055bef0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea eax, [ebx - 1]
add edx, 8
cmp eax, ecx
mov dword [esp + 0x38], edx
jb 0x57f5c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4