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

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, dword [esp + 0x6c]
fld dword [esi + 8]
push edi
mov edi, dword [esp + 0x6c]
fsub dword [edi + 8]
mov ebx, ecx
lea eax, [edi + 0x4c]
mov byte [esp + 0x6c], 0
fstp dword [ebx + 0xc]
mov dword [esp + 0x28], 0
fld dword [esi + 0xc]
mov dword [esp + 0x20], eax
fsub dword [edi + 0xc]
lea ebp, [edi + 0x70]
fstp dword [ebx + 0x10]
fld dword [esi + 0x10]
fsub dword [edi + 0x10]
fstp dword [ebx + 0x14]
lea eax, [esi + 0x4c]
push eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x4c]
call fcn.00560b90
fld dword [esi + 0x58]
fmul dword [ebp]
fld dword [esp + 0x44]
fmul st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x48]
fmul st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fmul st(1)
fstp dword [esp + 0x4c]
fstp st(0)
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
faddp st(1)
fld dword [esp + 0x44]
fmul dword [esp + 0x44]
faddp st(1)
fst dword [esp + 0x70]
fcomp dword [0x617eec]
fnstsw ax
test ah, 0x41
jne 0x52f610
fld dword [esp + 0x4c]
fmul dword [ebx + 0x14]
fld dword [esp + 0x48]
fmul dword [ebx + 0x10]
faddp st(1)
fld dword [esp + 0x44]
fmul dword [ebx + 0xc]
faddp st(1)
fst dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
and ecx, 0x7fffffff
mov dword [esp + 0x30], ecx
fld dword [esp + 0x30]
fcomp dword [0x617eec]
fnstsw ax
test ah, 0x41
jne 0x52f60e
fld dword [esp + 0x70]
mov edx, dword [esi + 0x5c]
fsqrt
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], 0
fstp dword [esp + 0x70]
fld dword [0x617dbc]
fdiv dword [esp + 0x70]
fst dword [esp + 0x1c]
fmulp st(1)
fst dword [esp + 0x18]
fstp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
and eax, 0x7fffffff
mov dword [esp + 0x38], eax
lea ebx, [ebx]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0x58]
push eax
mov ecx, edi
call fcn.0051a5a0
fld dword [esp + 0x58]
fmul dword [esp + 0x4c]
fld dword [esp + 0x54]
fmul dword [esp + 0x48]
faddp st(1)
fld dword [esp + 0x50]
fmul dword [esp + 0x44]
faddp st(1)
fmul dword [esp + 0x1c]
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, ecx
and edx, 0x7fffffff
mov dword [esp + 0x30], edx
fld dword [esp + 0x30]
mov eax, ecx
fadd dword [esp + 0x2c]
mov dword [esp + 0x34], ecx
and ecx, 0x7fffffff
mov dword [esp + 0x30], ecx
fsubr dword [esp + 0x38]
mov dword [esp + 0x3c], eax
fstp dword [esp + 0x14]
fld dword [esi + 0x5c]
fld dword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x52f4f4
fstp st(0)
fld dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov eax, edx
and eax, 0x7fffffff
mov dword [esp + 0x30], eax
fld dword [esp + 0x30]
mov dword [esp + 0x40], edx
fcomp dword [0x617eec]
fnstsw ax
test ah, 0x41
jne 0x52f5f8
fld dword [esp + 0x14]
fcomp dword [ebx + 4]
fnstsw ax
test ah, 5
jp 0x52f5f8
fchs
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x52f5fa
fld dword [esp + 0x10]
fmul dword [esp + 0x18]
fcomp dword [0x617db0]
fnstsw ax
test ah, 5
jp 0x52f57e
fld dword [esp + 0x50]
fmul dword [0x617dc8]
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fmul dword [0x617dc8]
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fmul dword [0x617dc8]
fstp dword [esp + 0x58]
fld dword [esp + 0x18]
fcomp dword [0x617db0]
fld dword [esp + 0x1c]
fmul dword [esi + 0x5c]
fnstsw ax
test ah, 0x41
jne 0x52f598
fchs
fld dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x70]
fmul st(1)
push esi
push edi
push ecx
fstp dword [esp + 0x68]
fld dword [esp + 0x54]
mov ecx, dword [esi + 0x58]
push edx
fmul st(1)
lea eax, [esp + 0x54]
push eax
push ecx
fstp dword [esp + 0x78]
fld dword [esp + 0x64]
mov ecx, dword [esp + 0x38]
lea eax, [esi + 0x4c]
fmul st(1)
push eax
mov eax, dword [ebp]
lea edx, [esp + 0x78]
fstp dword [esp + 0x80]
push edx
push eax
fstp st(0)
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x98]
push eax
mov ecx, ebx
call fcn.0052e8a0
jmp 0x52f5fa
fstp st(0)
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 2
mov dword [esp + 0x24], eax
jl 0x52f470
jmp 0x52f610
fstp st(0)
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
inc eax
add edx, 0xc
add ebp, 4
cmp eax, 3
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edx
jl 0x52f383
mov al, byte [esp + 0x6c]
test al, al
jne 0x52f911
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0xc]
cmp eax, 0x20001
je 0x52f653
cmp eax, 0x20002
jne 0x52f693
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
cmp dword [eax + 0xc], 1
jne 0x52f911
fld dword [eax + 0x58]
fld dword [eax + 0x54]
fld dword [eax + 0x50]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fcomp dword [0x6180c0]
fstp st(0)
fnstsw ax
fstp st(0)
test ah, 0x41
fstp st(0)
jne 0x52f911
lea eax, [edi + 0x4c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], eax
lea ebp, [edi + 0x70]
mov ecx, dword [esp + 0x1c]
lea eax, [esi + 0x4c]
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.00560b90
fld dword [esi + 0x58]
fmul dword [ebp]
fld dword [esp + 0x44]
fmul st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x48]
fmul st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fmul st(1)
fstp dword [esp + 0x4c]
fstp st(0)
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
faddp st(1)
fld dword [esp + 0x44]
fmul dword [esp + 0x44]
faddp st(1)
fst dword [esp + 0x70]
fcomp dword [0x617eec]
fnstsw ax
test ah, 0x41
jne 0x52f8f1
fld dword [esp + 0x4c]
fmul dword [ebx + 0x14]
fld dword [esp + 0x48]
fmul dword [ebx + 0x10]
faddp st(1)
fld dword [esp + 0x44]
fmul dword [ebx + 0xc]
faddp st(1)
fst dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
and edx, 0x7fffffff
mov dword [esp + 0x6c], edx
fld dword [esp + 0x6c]
fcomp dword [0x617eec]
fnstsw ax
test ah, 0x41
jne 0x52f8ef
fld dword [esp + 0x70]
mov eax, dword [esi + 0x5c]
fsqrt
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0
fstp dword [esp + 0x70]
fld dword [0x617dbc]
fdiv dword [esp + 0x70]
fst dword [esp + 0x20]
fmulp st(1)
fst dword [esp + 0x18]
fstp dword [esp + 0x6c]
mov ecx, dword [esp + 0x6c]
and ecx, 0x7fffffff
mov dword [esp + 0x3c], ecx
lea ecx, [ecx]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, edi
call fcn.0051a5a0
fld dword [esp + 0x58]
fmul dword [esp + 0x4c]
fld dword [esp + 0x54]
fmul dword [esp + 0x48]
faddp st(1)
fld dword [esp + 0x50]
fmul dword [esp + 0x44]
faddp st(1)
fmul dword [esp + 0x20]
fstp dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov eax, edx
and eax, 0x7fffffff
mov dword [esp + 0x6c], eax
fld dword [esp + 0x6c]
fadd dword [esp + 0x2c]
mov ecx, edx
mov dword [esp + 0x40], edx
and edx, 0x7fffffff
fsubr dword [esp + 0x3c]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x38], ecx
fstp dword [esp + 0x14]
fld dword [esp + 0x6c]
fcomp dword [0x617eec]
fnstsw ax
test ah, 0x41
jne 0x52f8db
fld dword [esp + 0x14]
fcomp dword [ebx + 4]
fnstsw ax
test ah, 5
jp 0x52f8db
fld dword [esp + 0x10]
fmul dword [esp + 0x18]
fcomp dword [0x617db0]
fnstsw ax
test ah, 5
jp 0x52f863
fld dword [esp + 0x50]
fmul dword [0x617dc8]
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fmul dword [0x617dc8]
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fmul dword [0x617dc8]
fstp dword [esp + 0x58]
fld dword [esp + 0x18]
fcomp dword [0x617db0]
fld dword [esp + 0x20]
fmul dword [esi + 0x5c]
fnstsw ax
test ah, 0x41
jne 0x52f87d
fchs
fld dword [esp + 0x44]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
fmul st(1)
push esi
push edi
push eax
fstp dword [esp + 0x68]
mov eax, dword [esi + 0x58]
fld dword [esp + 0x54]
push ecx
fmul st(1)
lea edx, [esp + 0x54]
push edx
mov edx, dword [ebp]
fstp dword [esp + 0x74]
fld dword [esp + 0x60]
push eax
lea eax, [esi + 0x4c]
fmul st(1)
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x78]
fstp dword [esp + 0x80]
push ecx
push edx
fstp st(0)
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x98]
push edx
mov ecx, ebx
call fcn.0052e8a0
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 2
mov dword [esp + 0x28], eax
jl 0x52f790
jmp 0x52f8f1
fstp st(0)
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
inc eax
add edx, 0xc
add ebp, 4
cmp eax, 3
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edx
jl 0x52f6a5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 8