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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov eax, dword [esi + 0x5c]
cmp eax, edi
je 0x52edfd
test byte [esi + 0x41], 0x20
je 0x52eaa0
fld1
mov dword [esi + 0x78], 0xff
fstp dword [esi + 0x7c]
jmp 0x52edfd
test byte [esi + 0x3c], 0x20
jne 0x52edfd
test byte [eax + 0x124], 0x40
jne 0x52edfd
cmp dword [0x615b80], edi
mov dword [ebp - 0xc], edi
fld1
mov dword [ebp + 8], 0x80
mov dword [ebp - 8], edi
fstp dword [ebp - 4]
jle 0x52ed95
fld dword [esi + 0x44]
lea eax, [edi + 0x646090]
push ecx
push ecx
fsub dword [eax - 4]
fst dword [ebp - 0x24]
fld dword [esi + 0x48]
fsub dword [eax]
fst dword [ebp - 0x20]
fld dword [esi + 0x4c]
fsub dword [eax + 4]
fst dword [ebp - 0x1c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [ebp - 0x10]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [ebp - 0x10]
fstp qword [esp]
call int.00577b24
fst dword [ebp - 0x14]
fld dword [0x615b74]
fcomp dword [0x5bc980]
pop ecx
pop ecx
fnstsw ax
test ah, 0x41
jne 0x52ebbd
cmp dword [0x615b80], 1
jne 0x52ebbd
fstp st(0)
fld dword [esi + 0x44]
fsub dword [esi + 0x50]
fld dword [esi + 0x48]
fsub dword [esi + 0x54]
push ecx
push ecx
fstp dword [ebp - 0x2c]
fld dword [esi + 0x4c]
fsub dword [esi + 0x58]
fstp dword [ebp - 0x28]
fsub dword [edi + 0x6460ec]
fld dword [ebp - 0x2c]
fsub dword [edi + 0x6460f0]
fld dword [ebp - 0x28]
fsub dword [edi + 0x6460f4]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp qword [esp]
fstp st(0)
fstp st(0)
fstp st(0)
call int.00577b24
fstp dword [ebp - 0x18]
fld dword [0x5db35c]
fdiv dword [0x615b78]
pop ecx
pop ecx
fstp dword [ebp - 4]
fld dword [ebp - 0x14]
fld dword [ebp - 0x18]
fsubr st(1)
fmul dword [0x615b74]
fsubr dword [ebp - 4]
fdiv dword [ebp - 4]
fstp dword [ebp - 4]
fld dword [ebp - 4]
fcomp dword [0x5be488]
fnstsw ax
test ah, 5
jp 0x52ebd4
mov dword [ebp - 4], 0x3727c5ac
fcom dword [esi + 0xc0]
fnstsw ax
test ah, 1
jne 0x52ebe9
fstp st(0)
fld dword [esi + 0xc0]
fcom dword [esi + 0xbc]
fnstsw ax
test ah, 5
jp 0x52ebfe
fstp st(0)
fld dword [esi + 0xbc]
fld dword [0x615b7c]
fcomp dword [0x5bc980]
fnstsw ax
test ah, 0x44
jp 0x52ec41
fld dword [esi + 0xc0]
fsub dword [esi + 0xbc]
fcom dword [0x5bc980]
fnstsw ax
test ah, 0x41
jp 0x52ec31
fstp st(0)
jmp 0x52ecb2
fld dword [esi + 0xc0]
fsub st(2)
fdiv st(1)
fstp st(2)
fstp st(0)
jmp 0x52ec94
fcom dword [esi + 0xbc]
fnstsw ax
test ah, 0x41
jne 0x52ec77
fld dword [0x615b7c]
fcomp dword [0x5db18c]
fnstsw ax
test ah, 0x44
jnp 0x52ec77
fld st(0)
fsub dword [esi + 0xbc]
fmul dword [0x615b7c]
fadd dword [esi + 0xbc]
fstp st(1)
fcom dword [0x5be488]
fnstsw ax
test ah, 5
jp 0x52ec8c
fstp st(0)
fld dword [0x5be488]
fld dword [esi + 0xbc]
fdivrp st(1)
fcom dword [0x5bc980]
fnstsw ax
test ah, 5
jp 0x52eca5
fstp st(0)
fldz
fcom dword [0x5db18c]
fnstsw ax
test ah, 0x41
jne 0x52ecb6
fstp st(0)
fld1
fmul dword [0x5c0730]
call fcn.00574eb8
cmp eax, dword [ebp - 0xc]
jle 0x52ecc9
mov dword [ebp - 0xc], eax
cmp dword [0x615b80], 1
jne 0x52ed81
fld dword [ebp - 0x10]
push ecx
push ecx
fstp qword [esp]
call int.00577b24
fcom dword [0x5bc980]
pop ecx
pop ecx
fnstsw ax
test ah, 0x41
jp 0x52ecfc
fstp st(0)
fldz
fldz
fldz
jmp 0x52ed17
fld1
fdiv st(1)
fstp dword [ebp + 8]
fstp st(0)
fld dword [ebp + 8]
fmul dword [ebp - 0x24]
fld dword [ebp + 8]
fmul dword [ebp - 0x20]
fld dword [ebp + 8]
fmul dword [ebp - 0x1c]
fld dword [edi + 0x615b4c]
fmul st(1)
fld dword [edi + 0x615b48]
fmul st(3)
faddp st(1)
fld dword [edi + 0x615b44]
fmul st(4)
faddp st(1)
fmul dword [0x5db358]
call fcn.00574eb8
fstp st(0)
mov ecx, 0x80
fstp st(0)
sub ecx, eax
fstp st(0)
mov dword [ebp + 8], ecx
jns 0x52ed56
and dword [ebp + 8], 0
jmp 0x52ed62
mov eax, 0xff
cmp ecx, eax
jle 0x52ed62
mov dword [ebp + 8], eax
fild dword [ebp + 8]
mov eax, dword [0x613e0c]
fsub dword [0x5c0738]
fmul dword [eax + 0x14]
fadd dword [0x5c0738]
call fcn.00574eb8
mov dword [ebp + 8], eax
inc dword [ebp - 8]
mov eax, dword [0x615b80]
add edi, 0xc
cmp dword [ebp - 8], eax
jl 0x52ead5
mov eax, dword [ebp - 0xc]
mov edi, dword [esi + 0x1c]
test byte [esi + 0x3c], 1
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x7c], eax
jne 0x52edbf
mov eax, dword [0x613e0c]
mov ecx, 0xff
mov eax, dword [eax + 0x10]
imul eax, edi
cdq
idiv ecx
mov edi, eax
cmp dword [ebp + 0xc], 0
je 0x52ede8
push dword [esi + 0x20]
push esi
call dword [esi + 0x194]
push edi
push esi
call dword [esi + 0x19c]
push 0
push dword [ebp + 8]
push esi
call dword [esi + 0x1a0]
add esp, 0x1c
jmp 0x52edfd
push edi
push esi
call fcn.0053047d
push 0
push dword [ebp + 8]
push esi
call fcn.005304ee
add esp, 0x14
pop edi
pop esi
leave
ret