Function at 0x5376bf
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 0x537a4f
test dword [esi + 0x40], 0x82000
jne 0x537a43
test byte [esi + 0x3c], 0x20
jne 0x537a4f
test byte [eax + 0x124], 0x40
jne 0x537a4f
cmp dword [0x621220], edi
mov dword [ebp - 0xc], edi
fld1
mov dword [ebp + 8], 0x80
mov dword [ebp - 8], edi
fstp dword [ebp - 4]
jle 0x5379d9
fld dword [esi + 0x44]
lea eax, [edi + 0x652948]
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 fcn.00580744
fst dword [ebp - 0x14]
fld dword [0x621214]
fcomp dword [0x5c5a40]
pop ecx
pop ecx
fnstsw ax
test ah, 0x41
jne 0x537801
cmp dword [0x621220], 1
jne 0x537801
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 + 0x6529a4]
fld dword [ebp - 0x2c]
fsub dword [edi + 0x6529a8]
fld dword [ebp - 0x28]
fsub dword [edi + 0x6529ac]
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 fcn.00580744
fstp dword [ebp - 0x18]
fld dword [0x5e44b4]
fdiv dword [0x621218]
pop ecx
pop ecx
fstp dword [ebp - 4]
fld dword [ebp - 0x14]
fld dword [ebp - 0x18]
fsubr st(1)
fmul dword [0x621214]
fsubr dword [ebp - 4]
fdiv dword [ebp - 4]
fstp dword [ebp - 4]
fld dword [ebp - 4]
fcomp dword [0x5c6e48]
fnstsw ax
test ah, 5
jp 0x537818
mov dword [ebp - 4], 0x3727c5ac
fcom dword [esi + 0xc0]
fnstsw ax
test ah, 1
jne 0x53782d
fstp st(0)
fld dword [esi + 0xc0]
fcom dword [esi + 0xbc]
fnstsw ax
test ah, 5
jp 0x537842
fstp st(0)
fld dword [esi + 0xbc]
fld dword [0x62121c]
fcomp dword [0x5c5a40]
fnstsw ax
test ah, 0x44
jp 0x537885
fld dword [esi + 0xc0]
fsub dword [esi + 0xbc]
fcom dword [0x5c5a40]
fnstsw ax
test ah, 0x41
jp 0x537875
fstp st(0)
jmp 0x5378f6
fld dword [esi + 0xc0]
fsub st(2)
fdiv st(1)
fstp st(2)
fstp st(0)
jmp 0x5378d8
fcom dword [esi + 0xbc]
fnstsw ax
test ah, 0x41
jne 0x5378bb
fld dword [0x62121c]
fcomp dword [0x5e42e4]
fnstsw ax
test ah, 0x44
jnp 0x5378bb
fld st(0)
fsub dword [esi + 0xbc]
fmul dword [0x62121c]
fadd dword [esi + 0xbc]
fstp st(1)
fcom dword [0x5c6e48]
fnstsw ax
test ah, 5
jp 0x5378d0
fstp st(0)
fld dword [0x5c6e48]
fld dword [esi + 0xbc]
fdivrp st(1)
fcom dword [0x5c5a40]
fnstsw ax
test ah, 5
jp 0x5378e9
fstp st(0)
fldz
fcom dword [0x5e42e4]
fnstsw ax
test ah, 0x41
jne 0x5378fa
fstp st(0)
fld1
fmul dword [0x5c5d74]
call fcn.0057e088
cmp eax, dword [ebp - 0xc]
jle 0x53790d
mov dword [ebp - 0xc], eax
cmp dword [0x621220], 1
jne 0x5379c5
fld dword [ebp - 0x10]
push ecx
push ecx
fstp qword [esp]
call fcn.00580744
fcom dword [0x5c5a40]
pop ecx
pop ecx
fnstsw ax
test ah, 0x41
jp 0x537940
fstp st(0)
fldz
fldz
fldz
jmp 0x53795b
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 + 0x6211ec]
fmul st(1)
fld dword [edi + 0x6211e8]
fmul st(3)
faddp st(1)
fld dword [edi + 0x6211e4]
fmul st(4)
faddp st(1)
fmul dword [0x5e44b0]
call fcn.0057e088
fstp st(0)
mov ecx, 0x80
fstp st(0)
sub ecx, eax
fstp st(0)
mov dword [ebp + 8], ecx
jns 0x53799a
and dword [ebp + 8], 0
jmp 0x5379a6
mov eax, 0xff
cmp ecx, eax
jle 0x5379a6
mov dword [ebp + 8], eax
fild dword [ebp + 8]
mov eax, dword [0x61f454]
fsub dword [0x5c5d70]
fmul dword [eax + 0x14]
fadd dword [0x5c5d70]
call fcn.0057e088
mov dword [ebp + 8], eax
inc dword [ebp - 8]
mov eax, dword [0x621220]
add edi, 0xc
cmp dword [ebp - 8], eax
jl 0x537719
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 0x537a03
mov eax, dword [0x61f454]
mov ecx, 0xff
mov eax, dword [eax + 0x10]
imul eax, edi
cdq
idiv ecx
mov edi, eax
cmp dword [ebp + 0xc], 0
je 0x537a2c
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 0x537a4f
push edi
push esi
call fcn.005390bb
push 0
push dword [ebp + 8]
push esi
call fcn.0053912c
add esp, 0x14
jmp 0x537a4f
fld1
mov dword [esi + 0x78], 0xff
fstp dword [esi + 0x7c]
pop edi
pop esi
leave
ret