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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6618d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
fld dword [ebp + 0xc]
fcomp dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x5c], ebx
fnstsw ax
test ah, 1
je 0x572261
fld dword [ebp + 0x14]
fcomp dword [ebp + 0x18]
fnstsw ax
test ah, 1
jne 0x572286
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push 0x73d670
mov ecx, esi
call fcn.00498990
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [ebp + 0x1c]
fcom dword [0x6ac0a8]
fnstsw ax
test ah, 0x41
jne 0x5722a9
fsub dword [0x6ac0a8]
fcom dword [0x6ac0a8]
fnstsw ax
test ah, 0x41
je 0x572296
fcom dword [0x670244]
fnstsw ax
test ah, 1
je 0x5722c9
fadd dword [0x6ac0a8]
fcom dword [0x670244]
fnstsw ax
test ah, 1
jne 0x5722b6
fld dword [ebp + 0x20]
fcom dword [0x6ac0a8]
fnstsw ax
test ah, 0x41
jne 0x5722ef
fsub dword [0x6ac0a8]
fcom dword [0x6ac0a8]
fnstsw ax
test ah, 0x41
je 0x5722d9
fst dword [ebp + 0x20]
fcom dword [0x670244]
fnstsw ax
test ah, 1
je 0x572312
fadd dword [0x6ac0a8]
fcom dword [0x670244]
fnstsw ax
test ah, 1
jne 0x5722fc
fst dword [ebp + 0x20]
fcom st(1)
fnstsw ax
test ah, 1
je 0x57232b
fstp st(0)
fstp dword [esp + 0x50]
fld dword [ebp + 0x20]
fld dword [esp + 0x50]
fst dword [ebp + 0x20]
fsub st(1)
fcomp dword [0x6aba80]
fnstsw ax
test ah, 0x41
je 0x572361
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push 0x73d670
mov ecx, esi
fstp st(0)
call fcn.00498990
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [ebp + 0xc]
fadd dword [ebp + 0x10]
mov dword [esp + 0x34], ebx
fmul dword [0x670250]
fstp dword [esp + 0x28]
fld dword [ebp + 0x14]
fadd dword [ebp + 0x18]
fmul dword [0x670250]
fstp dword [esp + 0x2c]
fld dword [ebp + 0x10]
fsub dword [ebp + 0xc]
fabs
fmul dword [0x670250]
fstp dword [esp + 0x1c]
fld dword [ebp + 0x18]
fsub dword [ebp + 0x14]
fabs
fmul dword [0x670250]
fstp dword [esp + 0x18]
mov edi, 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x68], edi
fst dword [esp + 0x44]
fld st(0)
fcos
sub esp, 8
lea eax, [esp + 0x3c]
sub esp, 8
mov byte [esp + 0x78], 2
fmul dword [esp + 0x2c]
fst dword [esp + 0x64]
fstp dword [esp + 0x50]
fsin
fmul dword [esp + 0x28]
fst dword [esp + 0x68]
fld dword [ebp + 0x24]
fcos
fstp dword [esp + 0x24]
fld dword [ebp + 0x24]
fsin
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fmul dword [esp + 0x50]
fadd dword [esp + 0x38]
fld dword [esp + 0x20]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x20]
fmul dword [esp + 0x50]
fld dword [esp + 0x24]
fmul st(2)
faddp st(1)
fadd dword [esp + 0x3c]
fstp st(1)
fstp qword [esp + 8]
fld dword [esp + 0x58]
fstp qword [esp]
push str._.3f__.3f_m_n
push eax
call fcn.00499700
add esp, 0x18
xor esi, esi
mov dword [esp + 0x50], edi
fild dword [esp + 0x50]
fmul dword [0x6ac0a4]
fld dword [esp + 0x44]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x572684
fld dword [ebp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x572479
mov ecx, dword [ebp + 0x20]
mov esi, 1
fstp st(0)
mov dword [esp + 0x40], ecx
jmp 0x57247d
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fcos
fmul dword [esp + 0x1c]
fld dword [esp + 0x44]
fsin
fmul dword [esp + 0x18]
fstp dword [esp + 0x48]
fld dword [esp + 0x40]
fcos
fmul dword [esp + 0x1c]
fstp dword [esp + 0x24]
fld dword [esp + 0x40]
fsin
fmul dword [esp + 0x18]
fstp dword [esp + 0x20]
fld st(0)
fmul dword [esp + 0x18]
fmul dword [esp + 0x18]
fld dword [esp + 0x48]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x24]
fmul dword [esp + 0x18]
fmul dword [esp + 0x18]
fstp dword [esp + 0x3c]
fld dword [esp + 0x20]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fchs
fstp dword [esp + 0x38]
fld st(0)
fmul st(3)
fld dword [esp + 0x3c]
fmul st(3)
fsubp st(1)
fstp dword [esp + 0x4c]
fld dword [esp + 0x38]
fmul st(2)
fld dword [esp + 0x38]
fmul st(2)
fsubp st(1)
fdiv dword [esp + 0x4c]
fstp dword [esp + 0x50]
fstp st(0)
fstp st(0)
fld dword [esp + 0x38]
fmul dword [esp + 0x3c]
fld dword [esp + 0x38]
fmul st(2)
fsubp st(1)
fdiv dword [esp + 0x4c]
fstp dword [esp + 0x4c]
fstp st(0)
fld dword [esp + 0x50]
fsub st(1)
fmul dword [0x6ac0a0]
fadd st(1)
fstp dword [esp + 0x3c]
fstp st(0)
fld dword [esp + 0x4c]
fsub dword [esp + 0x48]
fmul dword [0x6ac0a0]
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
fld dword [esp + 0x50]
fsub dword [esp + 0x24]
fmul dword [0x6ac0a0]
fadd dword [esp + 0x24]
fstp dword [esp + 0x38]
fld dword [esp + 0x4c]
fsub dword [esp + 0x20]
fmul dword [0x6ac0a0]
sub esp, 8
lea edx, [esp + 0x38]
sub esp, 8
fadd dword [esp + 0x30]
sub esp, 8
sub esp, 8
sub esp, 8
fstp dword [esp + 0x78]
fld dword [esp + 0x38]
fmul dword [esp + 0x64]
fld dword [esp + 0x3c]
fmul dword [esp + 0x70]
sub esp, 8
faddp st(1)
fadd dword [esp + 0x5c]
fld dword [esp + 0x44]
fmul dword [esp + 0x6c]
fadd dword [esp + 0x58]
fld dword [esp + 0x40]
fmul dword [esp + 0x78]
fsubp st(1)
fstp dword [esp + 0x6c]
fld dword [esp + 0x40]
fmul dword [esp + 0x68]
fld dword [esp + 0x44]
fmul dword [esp + 0x80]
faddp st(1)
fadd dword [esp + 0x5c]
fld dword [esp + 0x44]
fmul dword [esp + 0x68]
fadd dword [esp + 0x58]
fld dword [esp + 0x40]
fmul dword [esp + 0x80]
fsubp st(1)
fstp dword [esp + 0x68]
fld dword [esp + 0x44]
fmul dword [esp + 0x54]
fadd dword [esp + 0x58]
fld dword [esp + 0x40]
fmul dword [esp + 0x50]
fsubp st(1)
fld dword [esp + 0x44]
fmul dword [esp + 0x50]
fld dword [esp + 0x40]
fmul dword [esp + 0x54]
faddp st(1)
fadd dword [esp + 0x5c]
fstp qword [esp + 0x28]
fstp qword [esp + 0x20]
fstp qword [esp + 0x18]
fld dword [esp + 0x68]
fstp qword [esp + 0x10]
fstp qword [esp + 8]
fld dword [esp + 0x6c]
fstp qword [esp]
push str._.3f__.3f__.3f__.3f__.3f__.3f_c_n
push edx
call fcn.00499700
add esp, 0x38
lea eax, [esp + 0x30]
lea ecx, [esp + 0x34]
push eax
call fcn.00498c80
cmp esi, ebx
jne 0x572694
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x44], ecx
jmp 0x572686
fstp st(0)
inc edi
cmp edi, 5
mov dword [esp + 0x50], edi
jl 0x572442
cmp dword [ebp + 0x28], ebx
je 0x572700
fld dword [esp + 0x54]
fld dword [esp + 0x58]
fld dword [esp + 0x14]
fmul st(2)
sub esp, 8
lea edx, [esp + 0x38]
sub esp, 8
fadd dword [esp + 0x38]
fld dword [esp + 0x20]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x20]
fmulp st(2)
fld dword [esp + 0x24]
fmul st(1)
faddp st(2)
fxch st(1)
fadd dword [esp + 0x3c]
fxch st(1)
fstp st(0)
fstp qword [esp + 8]
fld dword [esp + 0x58]
fstp qword [esp]
push str._.3f__.3f_l_n
push edx
call fcn.00499700
add esp, 0x18
lea eax, [esp + 0x30]
lea ecx, [esp + 0x34]
push eax
call fcn.00498c80
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.00498a90
lea ecx, [esp + 0x30]
mov dword [esp + 0x5c], 1
mov byte [esp + 0x68], 1
call fcn.00498970
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], bl
call fcn.00498970
mov ecx, dword [esp + 0x60]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret