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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x665cb6
mov eax, dword fs:[0]
push eax
sub esp, 0xd90
push ebx
push esi
push edi
mov eax, dword [0x6d35d0]
xor eax, esp
push eax
lea eax, [esp + 0xda0]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x57768d
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x57768d
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jg 0x5769d0
fldz
mov eax, dword [ecx]
push 0xffffffffffffffff
push ecx
push ecx
fst dword [esp + 4]
fstp dword [esp]
call dword [eax + 0x74]
jmp 0x57768f
cmp eax, 0x3ff
jl 0x5769de
mov al, 1
jmp 0x57768f
sar eax, 2
lea edx, [esp + 0x4c]
mov dword [esp + 0x158], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
lea esi, [esp + 0x3d4]
call fcn.0049b413
mov eax, 0x7d8f
mov edx, esi
mov dword [esp + 0xda8], ebx
call fcn.0049b56c
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
imul eax, eax
imul ecx, ecx
add eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x28], ebx
fild dword [esp + 0x1c]
call fcn.0065aa80
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
xor edi, edi
fstp dword [esp + 0x3c]
inc edi
call fcn.0046fcab
cmp dword [esp + 0x50], ebx
mov dword [esp + 0x40], ebx
jle 0x57767d
mov ebx, 0x1ff
xor edi, edi
cmp dword [esp + 0x4c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x48], edi
jle 0x577637
mov eax, dword [esp + 0x28]
fild dword [esp + 0x28]
add eax, 0x40
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
fstp dword [esp + 0x154]
fild dword [esp + 0x1c]
sar eax, 3
and eax, ebx
lea eax, [eax*4 + 0x6f03e0]
fstp dword [esp + 0x150]
mov dword [esp + 0x6c], eax
fldz
or eax, 0xffffffff
fadd qword [0x6a15f0]
sub eax, dword [esp + 0x158]
shl eax, 0x18
or eax, 0xffffff
fstp dword [esp + 0x68]
mov dword [esp + 0x24], eax
fld dword [esp + 0x68]
fstp dword [esp + 0x54]
fild dword [esp + 0x40]
fadd qword [0x6a15e8]
fstp qword [esp + 0x164]
push dword [esp + 0x44]
mov ecx, dword [ebp + 0xc]
push dword [esp + 0x64]
mov eax, dword [ecx]
call dword [eax + 0x28]
lea esi, [eax + 8]
lea ecx, [esp + 0x1bc]
mov dword [esp + 0x70], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [esp + 0x15c]
push ecx
mov ecx, esi
call dword [eax + 0x9c]
fild dword [esp + 0x15c]
add edi, 0x40
mov dword [esp + 0x1c], edi
fstp dword [esp + 0x2c]
lea edx, [esp + 0x3d4]
fild dword [esp + 0x18]
fdiv dword [esp + 0x2c]
fstp dword [esp + 0x5c]
fild dword [esp + 0x160]
fstp dword [esp + 0x18]
fld dword [esp + 0x154]
fdiv dword [esp + 0x18]
fstp dword [esp + 0x58]
fild dword [esp + 0x1c]
fdiv dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x150]
fdiv dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x68]
fstp dword [esp + 0x64]
call fcn.0049b44d
mov esi, eax
and esi, 0x7ff
call fcn.0049b44d
mov edi, eax
and edi, ebx
call fcn.0049b44d
and eax, ebx
mov dword [esp + 0x10], eax
mov eax, esi
imul eax, dword [ebp + 0x10]
cdq
mov esi, 0x3ff
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x6f03e0]
fmul qword [0x6a15d8]
fstp dword [esp + 0x34]
call fcn.004485e0
mov eax, edi
fstp dword [esp + 0x38]
imul eax, dword [ebp + 0x10]
cdq
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x6f03e0]
fmul qword [0x6a15d8]
fstp dword [esp + 0x14]
call fcn.004485e0
mov eax, dword [esp + 0x10]
fstp dword [esp + 0x20]
imul eax, dword [ebp + 0x10]
cdq
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x6f03e0]
fmul qword [0x6a15d8]
fstp dword [esp + 0x30]
call fcn.004485e0
lea edx, [esp + 0x3d4]
fstp dword [esp + 0x10]
call fcn.0049b44d
fld1
fst dword [esp + 0xcc]
sub esp, 0x40
fldz
mov esi, eax
fst dword [esp + 0x110]
lea eax, [esp + 0x314]
fst dword [esp + 0x114]
and esi, ebx
fst dword [esp + 0x118]
fst dword [esp + 0x11c]
fst dword [esp + 0x124]
fst dword [esp + 0x128]
fst dword [esp + 0x12c]
fst dword [esp + 0x130]
fst dword [esp + 0x138]
fxch st(1)
fst dword [esp + 0x120]
fst dword [esp + 0x134]
fld dword [0x6a23c0]
fst dword [esp + 0x13c]
fstp dword [esp + 0x140]
fxch st(1)
fst dword [esp + 0x144]
fxch st(1)
fst dword [esp + 0x148]
fst dword [esp + 0x3c]
fxch st(1)
fst dword [esp + 0x38]
fst dword [esp + 0x34]
fst dword [esp + 0x30]
fst dword [esp + 0x2c]
fld dword [esp + 0x60]
fstp dword [esp + 0x28]
fld dword [esp + 0x54]
fchs
fstp dword [esp + 0x24]
fst dword [esp + 0x20]
fst dword [esp + 0x1c]
fld dword [esp + 0x54]
fstp dword [esp + 0x18]
fld dword [esp + 0x60]
fstp dword [esp + 0x14]
fst dword [esp + 0x10]
fst dword [esp + 0xc]
fst dword [esp + 8]
fstp dword [esp + 4]
fstp dword [esp]
call fcn.0046ea08
fld1
sub esp, 0x40
fst dword [esp + 0x3c]
fldz
fst dword [esp + 0x38]
fst dword [esp + 0x34]
fst dword [esp + 0x30]
fst dword [esp + 0x2c]
fxch st(1)
fstp dword [esp + 0x28]
fst dword [esp + 0x24]
fst dword [esp + 0x20]
fst dword [esp + 0x1c]
fst dword [esp + 0x18]
fld dword [esp + 0x78]
fstp dword [esp + 0x14]
fld dword [esp + 0x74]
fchs
fstp dword [esp + 0x10]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [esp + 0x74]
fstp dword [esp + 4]
fld dword [esp + 0x78]
lea eax, [esp + 0x294]
fstp dword [esp]
call fcn.0046ea08
fld1
sub esp, 0x40
fst dword [esp + 0x3c]
fldz
lea eax, [esp + 0x2d4]
fst dword [esp + 0x38]
fst dword [esp + 0x34]
fst dword [esp + 0x30]
fst dword [esp + 0x2c]
fld dword [esp + 0x50]
fstp dword [esp + 0x28]
fst dword [esp + 0x24]
fld dword [esp + 0x70]
fchs
fstp dword [esp + 0x20]
fst dword [esp + 0x1c]
fst dword [esp + 0x18]
fxch st(1)
fstp dword [esp + 0x14]
fst dword [esp + 0x10]
fst dword [esp + 0xc]
fld dword [esp + 0x70]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [esp + 0x50]
fstp dword [esp]
call fcn.0046ea08
fld1
mov eax, dword [esp + 0x6c]
fst dword [esp + 0x10c]
fldz
fst dword [esp + 0x110]
fst dword [esp + 0x114]
fst dword [esp + 0x118]
fst dword [esp + 0x11c]
fst dword [esp + 0x124]
fst dword [esp + 0x128]
fst dword [esp + 0x12c]
fst dword [esp + 0x130]
fstp dword [esp + 0x138]
fst dword [esp + 0x120]
fstp dword [esp + 0x134]
fild dword [eax]
mov eax, esi
fmul qword [0x6a15d8]
fstp dword [esp + 0x14]
fild dword [esp + 0x48]
fadd qword [0x6a15e8]
fstp qword [esp + 0x16c]
call fcn.004485e0
fmul dword [esp + 0x3c]
and esi, ebx
lea eax, [esp + 0x10c]
push eax
fmul dword [esp + 0x18]
lea eax, [esp + 0x298]
push eax
lea eax, [esp + 0x25c]
fstp dword [esp + 0x18]
push eax
fld dword [esp + 0x1c]
lea eax, [esp + 0x2e0]
fadd qword [esp + 0x178]
fstp dword [esp + 0x148]
fild dword [esi*4 + 0x6f03e0]
fmul qword [0x6a15d8]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fmul dword [esp + 0x48]
fmul dword [esp + 0x20]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fadd qword [esp + 0x170]
fstp dword [esp + 0x14c]
fldz
fstp dword [esp + 0x150]
fld1
fstp dword [esp + 0x154]
push eax
lea eax, [esp + 0x364]
lea edx, [esp + 0xdc]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x320]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x39c]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x1d0]
call fcn.004044d0
push 0x4bd575
push 3
push 0x1c
lea eax, [esp + 0x80]
push eax
call fcn.0041b490
fldz
fst dword [esp + 0x1b0]
lea eax, [esp + 0x1cc]
fst dword [esp + 0x1b4]
push eax
lea edi, [esp + 0x228]
fstp dword [esp + 0x1bc]
lea esi, [esp + 0x1b4]
call fcn.004bd529
fld dword [eax]
fstp dword [esp + 0x74]
lea edi, [esp + 0x23c]
fld dword [eax + 4]
mov eax, dword [esp + 0x24]
fstp dword [esp + 0x78]
mov dword [esp + 0x84], eax
fld1
lea eax, [esp + 0x1cc]
fstp dword [esp + 0x80]
push eax
fldz
lea esi, [esp + 0x19c]
fst dword [esp + 0x80]
fld dword [esp + 0x60]
fstp dword [esp + 0x8c]
fld dword [esp + 0x5c]
fstp dword [esp + 0x90]
fld dword [esp + 0x68]
fstp dword [esp + 0x19c]
fst dword [esp + 0x1a0]
fstp dword [esp + 0x1a4]
call fcn.004bd529
fld dword [eax]
lea edi, [esp + 0x218]
fstp dword [esp + 0x90]
lea esi, [esp + 0x18c]
fld dword [eax + 4]
mov eax, dword [esp + 0x24]
fstp dword [esp + 0x94]
mov dword [esp + 0xa0], eax
fld1
lea eax, [esp + 0x1cc]
fstp dword [esp + 0x9c]
push eax
fldz
fst dword [esp + 0x9c]
fld dword [esp + 0x30]
fstp dword [esp + 0xa8]
fld dword [esp + 0x5c]
fstp dword [esp + 0xac]
fst dword [esp + 0x190]
fld dword [esp + 0x58]
fstp dword [esp + 0x194]
fstp dword [esp + 0x198]
call fcn.004bd529
fld dword [eax]
fstp dword [esp + 0xac]
fld dword [eax + 4]
fstp dword [esp + 0xb0]
fld1
fstp dword [esp + 0xb8]
fldz
mov eax, dword [esp + 0x24]
fstp dword [esp + 0xb4]
fld dword [esp + 0x5c]
mov ecx, dword [esp + 0x70]
push 1
fstp dword [esp + 0xc4]
fld dword [esp + 0x1c]
push 5
push 0x144
fstp dword [esp + 0xd0]
push 0x1c
lea edx, [esp + 0x84]
mov dword [esp + 0xcc], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x64]
lea edx, [esp + 0x3d4]
call fcn.0049b44d
mov esi, eax
and esi, 0x7ff
call fcn.0049b44d
mov edi, eax
and edi, ebx
call fcn.0049b44d
and eax, ebx
mov dword [esp + 0x20], eax
mov eax, esi
imul eax, dword [ebp + 0x10]
cdq
mov esi, 0x3ff
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x6f03e0]
fmul qword [0x6a15d8]
fstp dword [esp + 0x38]
call fcn.004485e0
mov eax, edi
fstp dword [esp + 0x34]
imul eax, dword [ebp + 0x10]
cdq
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x6f03e0]
fmul qword [0x6a15d8]
fstp dword [esp + 0x10]
call fcn.004485e0
mov eax, dword [esp + 0x20]
fstp dword [esp + 0x30]
imul eax, dword [ebp + 0x10]
cdq
and edx, esi
add eax, edx
sar eax, 0xa
mov ecx, eax
and ecx, ebx
fild dword [ecx*4 + 0x6f03e0]
fmul qword [0x6a15d8]
fstp dword [esp + 0x20]
call fcn.004485e0
lea edx, [esp + 0x3d4]
fstp dword [esp + 0x14]
call fcn.0049b44d
fld1
fst dword [esp + 0x10c]
mov esi, eax
fldz
and esi, ebx
fst dword [esp + 0x110]
fst dword [esp + 0x114]
fst dword [esp + 0x118]
fst dword [esp + 0x11c]
fst dword [esp + 0x124]
fst dword [esp + 0x128]
fst dword [esp + 0x12c]
fst dword [esp + 0x130]
fst dword [esp + 0x138]
sub esp, 0x40
fxch st(1)
lea eax, [esp + 0x2d4]
fst dword [esp + 0x160]
fst dword [esp + 0x174]
fld dword [0x6a23c0]
fst dword [esp + 0x17c]
fstp dword [esp + 0x180]
fxch st(1)
fst dword [esp + 0x184]
fxch st(1)
fst dword [esp + 0x188]
fst dword [esp + 0x3c]
fxch st(1)
fst dword [esp + 0x38]
fst dword [esp + 0x34]
fst dword [esp + 0x30]
fst dword [esp + 0x2c]
fld dword [esp + 0x70]
fstp dword [esp + 0x28]
fld dword [esp + 0x50]
fchs
fstp dword [esp + 0x24]
fst dword [esp + 0x20]
fst dword [esp + 0x1c]
fld dword [esp + 0x50]
fstp dword [esp + 0x18]
fld dword [esp + 0x70]
fstp dword [esp + 0x14]
fst dword [esp + 0x10]
fst dword [esp + 0xc]
fst dword [esp + 8]
fstp dword [esp + 4]
fstp dword [esp]
call fcn.0046ea08
fld1
sub esp, 0x40
fst dword [esp + 0x3c]
lea eax, [esp + 0x294]
fldz
fst dword [esp + 0x38]
fst dword [esp + 0x34]
fst dword [esp + 0x30]
fst dword [esp + 0x2c]
fxch st(1)
fstp dword [esp + 0x28]
fst dword [esp + 0x24]
fst dword [esp + 0x20]
fst dword [esp + 0x1c]
fst dword [esp + 0x18]
fld dword [esp + 0x74]
fstp dword [esp + 0x14]
fld dword [esp + 0x78]
fchs
fstp dword [esp + 0x10]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [esp + 0x78]
fstp dword [esp + 4]
fld dword [esp + 0x74]
fstp dword [esp]
call fcn.0046ea08
fld1
sub esp, 0x40
fst dword [esp + 0x3c]
fldz
fst dword [esp + 0x38]
fst dword [esp + 0x34]
fst dword [esp + 0x30]
fst dword [esp + 0x2c]
fld dword [esp + 0x54]
fstp dword [esp + 0x28]
fst dword [esp + 0x24]
fld dword [esp + 0x60]
fchs
fstp dword [esp + 0x20]
fst dword [esp + 0x1c]
fst dword [esp + 0x18]
fxch st(1)
fstp dword [esp + 0x14]
fst dword [esp + 0x10]
lea eax, [esp + 0x314]
fst dword [esp + 0xc]
fld dword [esp + 0x60]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [esp + 0x54]
fstp dword [esp]
call fcn.0046ea08
fld1
mov eax, dword [esp + 0x6c]
fst dword [esp + 0xcc]
fldz
fst dword [esp + 0xd0]
fst dword [esp + 0xd4]
fst dword [esp + 0xd8]
fst dword [esp + 0xdc]
fst dword [esp + 0xe4]
fst dword [esp + 0xe8]
fst dword [esp + 0xec]
fst dword [esp + 0xf0]
fstp dword [esp + 0xf8]
fst dword [esp + 0xe0]
fstp dword [esp + 0xf4]
fild dword [eax]
mov eax, esi
fmul qword [0x6a15d8]
fstp dword [esp + 0x14]
call fcn.004485e0
fmul dword [esp + 0x3c]
and esi, ebx
lea eax, [esp + 0xcc]
push eax
fmul dword [esp + 0x18]
lea eax, [esp + 0x2d8]
push eax
lea eax, [esp + 0x25c]
fstp dword [esp + 0x18]
push eax
fld dword [esp + 0x1c]
lea eax, [esp + 0x2a0]
fadd qword [esp + 0x178]
push eax
lea eax, [esp + 0x3a4]
lea edx, [esp + 0x11c]
fstp dword [esp + 0x10c]
fild dword [esi*4 + 0x6f03e0]
fmul qword [0x6a15d8]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fmul dword [esp + 0x4c]
fmul dword [esp + 0x24]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fadd qword [esp + 0x174]
fstp dword [esp + 0x110]
fldz
fstp dword [esp + 0x114]
fld1
fstp dword [esp + 0x118]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x320]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x35c]
call fcn.004044d0
mov edx, eax
lea eax, [esp + 0x1d0]
call fcn.004044d0
push 0x4bd575
push 3
push 0x1c
lea eax, [esp + 0x80]
push eax
call fcn.0041b490
fld dword [esp + 0x64]
fstp dword [esp + 0x1a4]
fldz
fst dword [esp + 0x1a8]
fstp dword [esp + 0x1ac]
lea eax, [esp + 0x1cc]
push eax
lea edi, [esp + 0x234]
lea esi, [esp + 0x1a8]
call fcn.004bd529
fld dword [eax]
fstp dword [esp + 0x74]
lea edi, [esp + 0x20c]
fld dword [eax + 4]
mov eax, dword [esp + 0x24]
fstp dword [esp + 0x78]
mov dword [esp + 0x84], eax
fld1
lea eax, [esp + 0x1cc]
fstp dword [esp + 0x80]
push eax
fldz
lea esi, [esp + 0x178]
fst dword [esp + 0x80]
fld dword [esp + 0x30]
fstp dword [esp + 0x8c]
fld dword [esp + 0x5c]
fstp dword [esp + 0x90]
fst dword [esp + 0x178]
fld dword [esp + 0x58]
fstp dword [esp + 0x17c]
fstp dword [esp + 0x180]
call fcn.004bd529
fld dword [eax]
lea edi, [esp + 0x248]
fstp dword [esp + 0xac]
lea esi, [esp + 0x180]
fld dword [eax + 4]
mov eax, dword [esp + 0x24]
fstp dword [esp + 0xb0]
mov dword [esp + 0xbc], eax
fld1
lea eax, [esp + 0x1cc]
fstp dword [esp + 0xb8]
push eax
fldz
fst dword [esp + 0xb8]
fld dword [esp + 0x60]
fstp dword [esp + 0xc4]
fld dword [esp + 0x1c]
fstp dword [esp + 0xc8]
fld dword [esp + 0x68]
fstp dword [esp + 0x184]
fld dword [esp + 0x58]
fstp dword [esp + 0x188]
fstp dword [esp + 0x18c]
call fcn.004bd529
fld dword [eax]
mov ecx, dword [esp + 0x70]
fstp dword [esp + 0x90]
push 1
fld dword [eax + 4]
mov eax, dword [esp + 0x28]
fstp dword [esp + 0x98]
push 5
fld1
push 0x144
fstp dword [esp + 0xa8]
push 0x1c
fldz
lea edx, [esp + 0x84]
fstp dword [esp + 0xa8]
mov dword [esp + 0xb0], eax
fld dword [esp + 0x3c]
mov eax, dword [ecx]
fstp dword [esp + 0xb4]
push edx
fld dword [esp + 0x2c]
fstp dword [esp + 0xbc]
call dword [eax + 0x64]
mov edi, dword [esp + 0x1c]
cmp edi, dword [esp + 0x1bc]
mov dword [esp + 0x18], edi
jl 0x577622
xor edi, edi
inc dword [esp + 0x60]
mov dword [esp + 0x18], edi
add dword [esp + 0x48], 0x40
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x4c]
jl 0x576ae7
xor edi, edi
push dword [esp + 0x44]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
add dword [esp + 0x2c], 0x40
push edi
call dword [eax + 0x28]
lea ecx, [eax + 8]
mov eax, dword [ecx]
lea edx, [esp + 0x1c4]
push edx
call dword [eax + 0x10]
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 4]
jl 0x57766a
inc dword [esp + 0x44]
mov dword [esp + 0x28], edi
add dword [esp + 0x40], 0x40
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x50]
jl 0x576a60
mov ecx, dword [ebp + 8]
push 3
pop edi
call fcn.0046fcab
jmp 0x5769d7
xor al, al
mov ecx, dword [esp + 0xda0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc