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

Disassembly:
push ebx
push esi
sub esp, 0x98
mov ebx, ecx
call fcn.004a10c0
cmp ebx, eax
jne 0x5227e7
push 0
call fcn.00492f60
pop ecx
mov ecx, eax
call fcn.004936c0
test eax, eax
je 0x522b2f
fld dword [0x8e2cb4]
fstp dword [esp + 0x10]
push 0
call fcn.00492f60
pop ecx
mov ecx, eax
call fcn.004930c0
movsx eax, ax
push 0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fld dword [0x5ffb58]
fmul dword [esp + 0x14]
fmulp st(1)
fadd dword [ebx + 0x580]
fstp dword [ebx + 0x580]
fld dword [0x8e2cb4]
fstp dword [esp + 0x18]
call fcn.00492f60
pop ecx
mov ecx, eax
call fcn.00493070
movsx eax, ax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fld dword [0x5ffb5c]
fmul dword [esp + 0x14]
fmulp st(1)
fadd dword [ebx + 0x584]
fstp dword [ebx + 0x584]
fld dword [ebx + 0x584]
fcomp dword [0x5ffb28]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x522656
mov dword [ebx + 0x584], 0x3d4ccccd
fld dword [ebx + 0x584]
fcomp dword [0x5ffb60]
fnstsw ax
test ah, 0x45
jne 0x522673
mov dword [ebx + 0x584], 0x3e99999a
mov dword [esp + 0x20], 0
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], 0x3fc00000
lea eax, [esp + 0x6c]
mov dword [esp + 0x2c], 0x3ff33333
lea edx, [ebx + 4]
push edx
push eax
call fcn.004ba4d0
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
fldz
fldz
fldz
fldz
fldz
fld dword [ebx + 0x584]
fsin
fnstsw ax
add esp, 0xc
test eax, 0x400
je 0x5226db
call fcn.005a0cb0
fsin
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp st(5)
fld dword [ebx + 0x584]
fcos
fnstsw ax
test eax, 0x400
je 0x5226fd
call fcn.005a0cb0
fcos
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp st(4)
fld dword [ebx + 0x580]
fcos
fnstsw ax
test eax, 0x400
je 0x52271f
call fcn.005a0cb0
fcos
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp st(3)
fld dword [ebx + 0x584]
fcos
fnstsw ax
test eax, 0x400
je 0x522741
call fcn.005a0cb0
fcos
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp st(2)
fld dword [ebx + 0x580]
fsin
fnstsw ax
test eax, 0x400
je 0x522763
call fcn.005a0cb0
fsin
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst st(1)
fmul st(2)
fstp dword [esp + 0x20]
fld st(2)
lea eax, [esp + 0x20]
fmul st(4)
fstp dword [esp + 0x24]
fld st(4)
push eax
lea eax, [esp + 0x78]
fstp dword [esp + 0x2c]
fcompp
fcompp
lea ecx, [ebx + 4]
push ecx
push eax
fstp st(0)
call fcn.004ba3d0
mov eax, dword [esp + 0x80]
add esp, 0xc
mov edx, dword [esp + 0x78]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call fcn.005a41d0
movzx eax, ax
lea edx, [esp + 0x38]
push edx
and eax, 0xf
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30]
fild dword [esp + 0x1c]
fmul dword [0x5ffb64]
fadd dword [esp + 0x44]
fstp dword [esp + 0x44]
jmp 0x522b25
mov cl, byte [ebx + 0x50]
shr cl, 3
movzx eax, cl
cmp eax, 3
jne 0x522b2f
lea esi, [ebx + 0x34]
mov ecx, 0x8f31d0
push dword [0x5ffb68]
push dword [0x5ffb6c]
push dword [esi + 8]
push dword [esi + 4]
push dword [esi]
call fcn.00479430
mov edx, eax
test edx, edx
je 0x522b2f
fld dword [edx + 8]
fsub dword [esi + 4]
push eax
fstp dword [esp]
fld dword [edx + 4]
fsub dword [esi]
push eax
fstp dword [esp]
call fcn.0048cc30
fstp dword [esp + 8]
lea eax, [ebx + 0x14]
pop ecx
pop ecx
push dword [eax + 4]
push dword [eax]
call fcn.0048cc30
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fsub dword [esp + 8]
pop ecx
pop ecx
fstp dword [esp + 8]
fld dword [esp + 8]
fsub dword [ebx + 0x580]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fcomp dword [0x5ffb70]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x5228a5
fld dword [esp + 0xc]
fadd dword [0x5ffb74]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fcomp dword [0x5ffb70]
fnstsw ax
and ah, 5
cmp ah, 1
je 0x522883
fldz
fldz
fld dword [esp + 0xc]
fcomp dword [0x5ffb78]
fnstsw ax
test ah, 0x45
jne 0x5228df
lea eax, [eax]
fld dword [esp + 0xc]
fsub dword [0x5ffb74]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fcomp dword [0x5ffb78]
fnstsw ax
test ah, 0x45
je 0x5228c0
fld dword [0x5ffb7c]
fmul dword [0x8e2cb4]
fstp st(2)
fld dword [esp + 0xc]
fcomp dword [0x5ffb4c]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x522910
fld dword [esp + 0xc]
fchs
jmp 0x522914
fld dword [esp + 0xc]
fstp st(1)
fcom st(1)
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x522928
fld dword [esp + 8]
jmp 0x52294b
fld dword [esp + 0xc]
fcomp dword [0x5ffb4c]
fnstsw ax
test ah, 0x45
jne 0x522943
fld dword [ebx + 0x580]
fadd st(2)
jmp 0x52294b
fld dword [ebx + 0x580]
fsub st(2)
fstp dword [ebx + 0x580]
mov ecx, dword [0x885b48]
mov dword [esp + 0x1c], 0
and ecx, 0xfff
mov eax, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x18], eax
fild qword [esp + 0x18]
fmul dword [0x5ffb80]
fmul dword [0x5ffb84]
fsin
fnstsw ax
test eax, 0x400
je 0x522991
call fcn.005a0cb0
fsin
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp st(2)
fld dword [0x5ffb88]
fmul st(2)
fadd dword [0x5ffb88]
fstp dword [ebx + 0x584]
mov eax, dword [0x885b48]
shr eax, 0xa
and eax, 3
je 0x522b38
mov dword [esp + 0x44], 0
lea eax, [esp + 0x44]
fcompp
push eax
mov dword [esp + 0x4c], 0
lea eax, [esp + 0x84]
mov dword [esp + 0x50], 0x400ccccd
lea edx, [ebx + 4]
push edx
push eax
call fcn.004ba4d0
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ecx
fldz
fldz
fldz
fldz
fldz
fld dword [ebx + 0x584]
fsin
fnstsw ax
add esp, 0xc
test eax, 0x400
je 0x522a36
call fcn.005a0cb0
fsin
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp st(5)
fld dword [ebx + 0x584]
fcos
fnstsw ax
test eax, 0x400
je 0x522a58
call fcn.005a0cb0
fcos
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp st(4)
fld dword [ebx + 0x580]
fcos
fnstsw ax
test eax, 0x400
je 0x522a7a
call fcn.005a0cb0
fcos
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp st(3)
fld dword [ebx + 0x584]
fcos
fnstsw ax
test eax, 0x400
je 0x522a9c
call fcn.005a0cb0
fcos
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp st(2)
fld dword [ebx + 0x580]
fsin
fnstsw ax
test eax, 0x400
je 0x522abe
call fcn.005a0cb0
fsin
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst st(1)
fmul st(2)
fstp dword [esp + 0x44]
fld st(2)
lea eax, [esp + 0x44]
fmul st(4)
fstp dword [esp + 0x48]
fld st(4)
push eax
lea eax, [esp + 0x90]
fstp dword [esp + 0x50]
fcompp
fcompp
lea ecx, [ebx + 4]
push ecx
push eax
fstp st(0)
call fcn.004ba3d0
mov eax, dword [esp + 0x98]
add esp, 0xc
mov edx, dword [esp + 0x90]
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x5c]
mov eax, dword [esp + 0x94]
push ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x54]
push eax
push ebx
call fcn.00522470
add esp, 0xc
add esp, 0x98
pop esi
pop ebx
ret
fcompp
jmp 0x522b2f