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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, dword [ebp + 8]
test eax, eax
je 0x4f5688
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x18]
push esi
push eax
mov edx, dword [ecx]
call dword [edx + 0xcc]
test eax, eax
jne 0x4f6d9c
mov ecx, dword [esi + 0xc0]
mov edx, dword [esi + 0xc4]
mov eax, dword [esi + 0xc8]
mov dword [esp + 0x88], ecx
mov ecx, dword [esi + 0xcc]
mov dword [esp + 0x8c], edx
mov edx, dword [esi + 0xd0]
mov dword [esp + 0x84], ecx
mov ecx, dword [esi + 0xd8]
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0xd4]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esi + 0xe4]
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0xdc]
mov dword [esp + 0xc4], ecx
mov ecx, dword [esi + 0xf0]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0xe0]
mov dword [esp + 0xb4], edx
mov edx, dword [esi + 0xe8]
mov dword [esp + 0x70], ecx
mov ecx, dword [esi + 0xfc]
mov dword [esp + 0xc0], eax
mov eax, dword [esi + 0xec]
mov dword [esp + 0x58], edx
mov edx, dword [esi + 0xf4]
mov dword [esp + 0x94], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0xf8]
mov dword [esp + 0x74], edx
mov edx, dword [ecx]
mov dword [esp + 0x90], eax
call dword [edx + 0x18]
fld qword [esp + 0x88]
fcomp qword [esp + 0xb0]
mov dword [esp + 0x11c], eax
fnstsw ax
test ah, 0x40
je 0x4f57b6
fld qword [esp + 0x80]
fcomp qword [esp + 0xc0]
fnstsw ax
test ah, 0x40
je 0x4f57b6
mov edi, 1
mov dword [esp + 0xa8], 0
mov dword [esp + 0xbc], edi
mov dword [esp + 0xac], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
jmp 0x4f5949
fld qword [esp + 0x40]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x40
je 0x4f5852
xor edi, edi
mov dword [esp + 0xbc], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
fld qword [esp + 0xc0]
fsub qword [esp + 0x80]
fld qword [esp + 0xb0]
fsub qword [esp + 0x88]
fpatan
fstp qword [esp + 0x108]
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x138]
push eax
lea edx, [esp + 0xe4]
push ecx
mov ecx, dword [ebx + 0x18]
lea eax, [esp + 0x128]
push edx
push eax
call fcn.004b1540
test edi, edi
mov dword [esp + 0x50], 0
je 0x4f5964
mov dword [esp + 0x54], 0
jmp 0x4f5b94
fld qword [esp + 0x58]
fsub qword [esp + 0x40]
fdivr qword [esp + 0x40]
fchs
fstp qword [esp + 0x30]
fld qword [esp + 0xb0]
fsub qword [esp + 0x88]
fmul qword [esp + 0x30]
fadd qword [esp + 0x88]
fld qword [esp + 0xc0]
fsub qword [esp + 0x80]
fmul qword [esp + 0x30]
fadd qword [esp + 0x80]
fld st(1)
fsub qword [esp + 0x88]
fld st(1)
fsub qword [esp + 0x80]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld qword [esp + 0x40]
fmul qword [esp + 0x40]
fcompp
fnstsw ax
fstp st(0)
test ah, 1
fstp st(0)
jne 0x4f58ce
mov edi, 1
jmp 0x4f58d0
xor edi, edi
fld qword [esp + 0x80]
fsub st(1)
mov dword [esp + 0xbc], edi
fstp qword [esp + 0xd0]
fstp st(0)
fld qword [esp + 0x88]
fsub st(1)
fstp qword [esp + 0x20]
fstp st(0)
fld qword [esp + 0x20]
fmul qword [esp + 0x20]
fld qword [esp + 0xd0]
fmul qword [esp + 0xd0]
faddp st(1)
fsqrt
fdivr qword [esp + 0x40]
call fcn.00506640
fstp qword [esp + 0xa8]
fld qword [esp + 0x40]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x4f5941
fld qword [esp + 0xa8]
fchs
fstp qword [esp + 0xa8]
test edi, edi
je 0x4f57e8
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0
jmp 0x4f580d
fld qword [esp + 0x88]
fadd qword [esp + 0x40]
fld qword [esp + 0xb0]
fadd qword [esp + 0x58]
mov dword [esp + 0x54], 0x3ff00000
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
fsub st(1)
fcom qword [0x571800]
fnstsw ax
test ah, 0x40
jne 0x4f59d8
fld qword [esp + 0x120]
fsubrp st(2)
fxch st(1)
fdiv st(1)
fxch st(1)
fstp st(0)
fcom qword [0x571818]
fnstsw ax
test ah, 1
je 0x4f59c5
fstp qword [esp + 0x50]
jmp 0x4f59dc
fcom qword [0x571800]
fnstsw ax
test ah, 0x41
jne 0x4f59da
fstp qword [esp + 0x60]
jmp 0x4f59dc
fstp st(0)
fstp st(0)
fld qword [esp + 0x88]
fsub qword [esp + 0x40]
fld qword [esp + 0xb0]
fsub qword [esp + 0x58]
fsub st(1)
fcom qword [0x571800]
fnstsw ax
test ah, 0x40
jne 0x4f5a34
fld qword [esp + 0x138]
fsubrp st(2)
fxch st(1)
fdiv st(1)
fxch st(1)
fstp st(0)
fcom qword [esp + 0x50]
fnstsw ax
test ah, 1
je 0x4f5a23
fstp qword [esp + 0x50]
jmp 0x4f5a38
fcom qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x4f5a36
fstp qword [esp + 0x60]
jmp 0x4f5a38
fstp st(0)
fstp st(0)
fld qword [esp + 0x80]
fadd qword [esp + 0x40]
fld qword [esp + 0xc0]
fadd qword [esp + 0x58]
fsub st(1)
fcom qword [0x571800]
fnstsw ax
test ah, 0x40
jne 0x4f5a90
fld qword [esp + 0xe0]
fsubrp st(2)
fxch st(1)
fdiv st(1)
fxch st(1)
fstp st(0)
fcom qword [esp + 0x50]
fnstsw ax
test ah, 1
je 0x4f5a7f
fstp qword [esp + 0x50]
jmp 0x4f5a94
fcom qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x4f5a92
fstp qword [esp + 0x60]
jmp 0x4f5a94
fstp st(0)
fstp st(0)
fld qword [esp + 0x80]
fsub qword [esp + 0x40]
fld qword [esp + 0xc0]
fsub qword [esp + 0x58]
fsub st(1)
fcom qword [0x571800]
fnstsw ax
test ah, 0x40
jne 0x4f5aec
fld qword [esp + 0xf0]
fsubrp st(2)
fxch st(1)
fdiv st(1)
fxch st(1)
fstp st(0)
fcom qword [esp + 0x50]
fnstsw ax
test ah, 1
je 0x4f5adb
fstp qword [esp + 0x50]
jmp 0x4f5af0
fcom qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x4f5aee
fstp qword [esp + 0x60]
jmp 0x4f5af0
fstp st(0)
fstp st(0)
fld qword [esp + 0x40]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 1
je 0x4f5b20
fld qword [esp + 0x50]
fcomp qword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x4f5b4e
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
jmp 0x4f5b4e
fld qword [esp + 0x40]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x4f5b4e
fld qword [esp + 0x60]
fcomp qword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x4f5b4e
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov eax, dword [esi + 0x184]
test eax, eax
jne 0x4f5b79
fld qword [esp + 0x50]
fcomp qword [0x571800]
fnstsw ax
test ah, 1
je 0x4f5b79
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov eax, dword [esi + 0x188]
test eax, eax
jne 0x4f5ba4
fld qword [esp + 0x60]
fcomp qword [0x571818]
fnstsw ax
test ah, 0x41
jne 0x4f5ba4
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0x3ff00000
mov ecx, dword [ebx + 0x18]
add ecx, 0x10
fld qword [ecx]
fabs
fld qword [ecx + 8]
fabs
fst qword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4f5bc6
fstp st(0)
fld qword [esp + 0x28]
fld qword [ecx + 0x10]
fabs
fst qword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4f5bde
fstp st(0)
fld qword [esp + 0x28]
fld qword [ecx + 0x18]
fabs
fst qword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4f5bf6
fstp st(0)
fld qword [esp + 0x28]
fld qword [esp + 0x40]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x4f5c0b
fmul qword [esp + 0x40]
jmp 0x4f5c0f
fmul qword [esp + 0x58]
fst qword [esp + 0x20]
fcomp qword [0x571818]
fnstsw ax
test ah, 1
je 0x4f5c2a
mov dword [esp + 0x1c], 3
jmp 0x4f5c6c
fld qword [0x571960]
fdiv qword [esp + 0x20]
fsubr qword [0x571818]
call fcn.00503dc0
fdivr qword [0x594948]
call fcn.00502d0c
cmp eax, 3
mov dword [esp + 0x1c], eax
jge 0x4f5c5d
mov dword [esp + 0x1c], 3
jmp 0x4f5c6c
cmp eax, 0xc8
jle 0x4f5c6c
mov dword [esp + 0x1c], 0xc8
fld qword [esp + 0x90]
fsub qword [esp + 0x70]
mov dword [esp + 0x10], 0
fst qword [esp + 0x128]
fmul qword [esp + 0x50]
fadd qword [esp + 0x70]
fstp qword [esp + 0x78]
fld qword [esp + 0xb0]
fsub qword [esp + 0x88]
fst qword [esp + 0x150]
fmul qword [esp + 0x50]
fadd qword [esp + 0x88]
fstp qword [esp + 0x68]
fld qword [esp + 0xc0]
fsub qword [esp + 0x80]
fst qword [esp + 0x158]
fmul qword [esp + 0x50]
fadd qword [esp + 0x80]
fstp qword [esp + 0x38]
fld qword [esp + 0x58]
fsub qword [esp + 0x40]
fst qword [esp + 0x148]
fmul qword [esp + 0x50]
fadd qword [esp + 0x40]
fstp qword [esp + 0x48]
fld qword [esp + 0x78]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 1
je 0x4f5d17
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x160]
push edx
push eax
jmp 0x4f5d4e
fld qword [esp + 0x78]
fcomp qword [esp + 0x90]
lea edx, [esp + 0x160]
push edx
fnstsw ax
test ah, 0x41
jne 0x4f5d42
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
push eax
jmp 0x4f5d4e
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push eax
push ecx
mov ecx, esi
call fcn.004ad0f0
fld qword [esp + 0x128]
fmul qword [esp + 0x60]
fadd qword [esp + 0x70]
fstp qword [esp + 0x140]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x140]
mov dword [esp + 0x110], edx
mov edx, dword [esp + 0x144]
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], edx
mov dword [esp + 0x114], eax
fld qword [esp + 0xc8]
fcomp qword [esp + 0x70]
mov dword [esp + 0x9c], 0x100
fnstsw ax
test ah, 1
je 0x4f5dce
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x1e0]
push eax
push ecx
jmp 0x4f5e0b
fld qword [esp + 0xc8]
fcomp qword [esp + 0x90]
fnstsw ax
test ah, 0x41
lea eax, [esp + 0x1e0]
push eax
jne 0x4f5dfc
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
push ecx
jmp 0x4f5e0b
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0xcc]
push ecx
mov edi, dword [ebp + 8]
push edx
mov ecx, edi
call fcn.004ad0f0
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x11c]
mov eax, 0x100
sub eax, edx
cmp eax, 1
jle 0x4f5f3b
xor ecx, ecx
test esi, esi
jle 0x4f5e58
mov eax, dword [esp + ecx*4 + 0x1e0]
mov edx, dword [esp + ecx*4 + 0x160]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x100
jg 0x4f5e58
inc ecx
cmp ecx, esi
jl 0x4f5e37
cmp ecx, esi
jne 0x4f5e6d
cmp dword [esp + 0x9c], 0x100
jl 0x4f5f3b
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x10]
lea eax, [ecx + edx]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x9c], eax
fild dword [esp + 0x9c]
fmul qword [0x577168]
fld qword [esp + 0x60]
fsub qword [esp + 0x50]
fmulp st(1)
fadd qword [esp + 0x50]
fstp qword [esp + 0x110]
fld qword [esp + 0x128]
fmul qword [esp + 0x110]
fadd qword [esp + 0x70]
fst qword [esp + 0xc8]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 1
je 0x4f5ee0
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x1e0]
push eax
push ecx
jmp 0x4f5f1d
fld qword [esp + 0xc8]
fcomp qword [esp + 0x90]
fnstsw ax
test ah, 0x41
lea eax, [esp + 0x1e0]
push eax
jne 0x4f5f0e
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
push ecx
jmp 0x4f5f1d
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0xcc]
push ecx
push edx
mov ecx, edi
call fcn.004ad0f0
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x10]
sub eax, edx
cmp eax, 1
jg 0x4f5e31
fld qword [esp + 0x150]
fmul qword [esp + 0x110]
xor ecx, ecx
test esi, esi
fadd qword [esp + 0x88]
fstp qword [esp + 0x100]
fld qword [esp + 0x158]
fmul qword [esp + 0x110]
fadd qword [esp + 0x80]
fstp qword [esp + 0xe8]
fld qword [esp + 0x148]
fmul qword [esp + 0x110]
fadd qword [esp + 0x40]
fstp qword [esp + 0xd8]
jle 0x4f5fb3
mov eax, dword [esp + ecx*4 + 0x1e0]
mov edx, dword [esp + ecx*4 + 0x160]
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + ecx*4 + 0x160], eax
inc ecx
cmp ecx, esi
jl 0x4f5f92
mov edi, dword [ebx + 0x18]
mov ecx, 0x20
add edi, 0x7c
lea esi, [esp + 0x160]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x18]
push eax
mov edx, dword [ecx]
call dword [edx + 0x70]
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x4f620f
fld qword [esp + 0x48]
fadd qword [esp + 0x68]
mov eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x258], ecx
mov dword [eax + 0x25c], edx
fst qword [esp + 0x20]
fstp qword [eax + 0x250]
mov ecx, edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [eax + 0x24c]
push edx
call fcn.004b0cb0
mov eax, dword [esp + 0x1c]
mov esi, 1
cmp eax, esi
mov dword [esp + 0x10], esi
jle 0x4f60b4
fild dword [esp + 0x1c]
fstp qword [esp + 0x30]
fild dword [esp + 0x10]
mov eax, dword [ebx + 0x18]
fdiv qword [esp + 0x30]
fmul qword [0x594940]
fld st(0)
fsin
fmul qword [esp + 0x48]
fadd qword [esp + 0x38]
fstp qword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
fcos
mov dword [eax + 0x258], ecx
mov dword [eax + 0x25c], edx
mov ecx, edx
mov edx, dword [esp + 0x10]
push ecx
push edx
fmul qword [esp + 0x50]
fadd qword [esp + 0x70]
fst qword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
fstp qword [eax + 0x250]
push ecx
mov ecx, dword [eax + 0x24c]
push edx
call fcn.004b0ce0
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x4f6041
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x24c]
call fcn.004b0ea0
mov eax, dword [esi + 0x24c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
mov ecx, dword [edx + ecx*4 - 4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx]
fld qword [ecx + edx*8 - 8]
fstp qword [esi + 0x250]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + edx*4 - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
fld qword [edx + ecx*8 - 8]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xec]
fstp qword [esi + 0x258]
fld qword [esp + 0xd8]
fadd qword [esp + 0x100]
mov eax, dword [ebx + 0x18]
mov dword [eax + 0x258], ecx
mov dword [eax + 0x25c], edx
fst qword [esp + 0x20]
fstp qword [eax + 0x250]
mov ecx, edx
mov edx, dword [esp + 0xe8]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [eax + 0x24c]
push edx
call fcn.004b0cb0
mov eax, dword [esp + 0x1c]
mov esi, 1
cmp eax, esi
mov dword [esp + 0x10], esi
jle 0x4f61ec
fild dword [esp + 0x1c]
fstp qword [esp + 0x30]
fild dword [esp + 0x10]
mov eax, dword [ebx + 0x18]
fdiv qword [esp + 0x30]
fmul qword [0x594938]
fld st(0)
fsin
fmul qword [esp + 0xd8]
fadd qword [esp + 0xe8]
fstp qword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
fcos
mov dword [eax + 0x258], ecx
mov dword [eax + 0x25c], edx
mov ecx, edx
mov edx, dword [esp + 0x10]
push ecx
push edx
fmul qword [esp + 0xe0]
fadd qword [esp + 0x108]
fst qword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
fstp qword [eax + 0x250]
push ecx
mov ecx, dword [eax + 0x24c]
push edx
call fcn.004b0ce0
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x4f616d
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x24c]
call fcn.004b0ea0
mov eax, dword [esi + 0x24c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
mov ecx, dword [edx + ecx*4 - 4]
jmp 0x4f6677
fld qword [esp + 0x108]
fadd qword [esp + 0xa8]
mov eax, dword [ebx + 0x18]
fadd qword [0x594930]
fst qword [esp + 0xd0]
fsin
fmul qword [esp + 0x48]
fadd qword [esp + 0x38]
fst qword [esp + 0x130]
fst qword [esp + 0x20]
fld qword [esp + 0xd0]
fcos
fmul qword [esp + 0x48]
fadd qword [esp + 0x68]
fst qword [esp + 0x28]
fstp qword [esp + 0x30]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
fstp qword [eax + 0x258]
mov dword [eax + 0x250], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x254], edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [eax + 0x24c]
push edx
call fcn.004b0cb0
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], esi
jle 0x4f6352
fild dword [esp + 0x1c]
fstp qword [esp + 0x30]
fld qword [esp + 0xa8]
fadd st(0), st(0)
fadd qword [0x594948]
fstp qword [esp + 0x20]
fild dword [esp + 0x10]
mov eax, dword [ebx + 0x18]
fdiv qword [esp + 0x30]
fmul qword [esp + 0x20]
fsubr qword [esp + 0xd0]
fld st(0)
fsin
fmul qword [esp + 0xd8]
fadd qword [esp + 0xe8]
fstp qword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
fcos
mov dword [eax + 0x258], ecx
mov dword [eax + 0x25c], edx
mov ecx, edx
mov edx, dword [esp + 0x10]
push ecx
push edx
fmul qword [esp + 0xe0]
fadd qword [esp + 0x108]
fst qword [esp + 0x100]
mov ecx, dword [esp + 0x104]
mov edx, dword [esp + 0x100]
fstp qword [eax + 0x250]
push ecx
mov ecx, dword [eax + 0x24c]
push edx
call fcn.004b0ce0
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x4f62c1
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], esi
jle 0x4f641f
fild dword [esp + 0x1c]
fstp qword [esp + 0x30]
fld qword [esp + 0xa8]
fadd st(0), st(0)
fsub qword [0x594948]
fstp qword [esp + 0x20]
fld qword [esp + 0x108]
fsub qword [esp + 0xa8]
fsub qword [0x594930]
fstp qword [esp + 0xd0]
fild dword [esp + 0x10]
mov eax, dword [ebx + 0x18]
fdiv qword [esp + 0x30]
fmul qword [esp + 0x20]
fadd qword [esp + 0xd0]
fld st(0)
fsin
fmul qword [esp + 0x48]
fadd qword [esp + 0x38]
fstp qword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
fcos
mov dword [eax + 0x258], ecx
mov dword [eax + 0x25c], edx
mov ecx, edx
mov edx, dword [esp + 0x10]
push ecx
push edx
fmul qword [esp + 0x50]
fadd qword [esp + 0x70]
fst qword [esp + 0x100]
mov ecx, dword [esp + 0x104]
mov edx, dword [esp + 0x100]
fstp qword [eax + 0x250]
push ecx
mov ecx, dword [eax + 0x24c]
push edx
call fcn.004b0ce0
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x4f639a
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x24c]
call fcn.004b0ea0
mov eax, dword [esi + 0x24c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
mov ecx, dword [edx + ecx*4 - 4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx]
fld qword [ecx + edx*8 - 8]
fstp qword [esi + 0x250]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + edx*4 - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
fld qword [edx + ecx*8 - 8]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xa0], eax
mov edx, dword [esp + 0xa0]
mov dword [esp + 0xa4], ecx
fstp qword [esi + 0x258]
fld qword [esp + 0x130]
mov eax, dword [ebx + 0x18]
fst qword [esp + 0xf8]
mov dword [eax + 0x250], edx
mov edx, dword [esp + 0xfc]
fstp qword [eax + 0x258]
mov dword [eax + 0x254], ecx
mov ecx, dword [esp + 0xf8]
push edx
mov edx, dword [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0xa8]
push edx
push ecx
mov ecx, dword [eax + 0x24c]
call fcn.004b0cb0
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], esi
jle 0x4f6599
fld qword [esp + 0xa8]
fadd st(0), st(0)
fsubr qword [0x594948]
fstp qword [esp + 0x130]
fild dword [esp + 0x1c]
fstp qword [esp + 0x30]
fild dword [esp + 0x10]
mov eax, dword [ebx + 0x18]
fdiv qword [esp + 0x30]
fmul qword [esp + 0x130]
fadd qword [esp + 0x108]
fadd qword [esp + 0xa8]
fadd qword [0x594930]
fld st(0)
fsin
fmul qword [esp + 0xd8]
fadd qword [esp + 0xe8]
fstp qword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
fcos
mov dword [eax + 0x258], edx
mov dword [eax + 0x25c], ecx
mov edx, ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
fmul qword [esp + 0xe0]
fadd qword [esp + 0x108]
fst qword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
fstp qword [eax + 0x250]
push edx
push ecx
mov ecx, dword [eax + 0x24c]
call fcn.004b0ce0
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x4f6501
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], esi
jle 0x4f6659
fild dword [esp + 0x1c]
fstp qword [esp + 0x30]
fld qword [esp + 0xa8]
fadd st(0), st(0)
fadd qword [0x594948]
fstp qword [esp + 0x20]
fld qword [esp + 0x108]
fsub qword [esp + 0xa8]
fsub qword [0x594930]
fstp qword [esp + 0xd0]
fild dword [esp + 0x10]
mov eax, dword [ebx + 0x18]
fdiv qword [esp + 0x30]
fmul qword [esp + 0x20]
fadd qword [esp + 0xd0]
fld st(0)
fsin
fmul qword [esp + 0x48]
fadd qword [esp + 0x38]
fstp qword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
fcos
mov dword [eax + 0x258], edx
mov dword [eax + 0x25c], ecx
mov edx, ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
fmul qword [esp + 0x50]
fadd qword [esp + 0x70]
fst qword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
fstp qword [eax + 0x250]
push edx
push ecx
mov ecx, dword [eax + 0x24c]
call fcn.004b0ce0
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x4f65e1
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x24c]
call fcn.004b0ea0
mov eax, dword [esi + 0x24c]
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + edx*4 - 4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx]
fld qword [ecx + edx*8 - 8]
fstp qword [esi + 0x250]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + edx*4 - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
fld qword [edx + ecx*8 - 8]
fstp qword [esi + 0x258]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0xb8]
mov ecx, dword [ebx + 0x18]
call fcn.004b1ac0
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x100]
mov edx, dword [esp + 0x104]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0xec]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0xd8]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x3c], ecx
mov ecx, 0x20
lea esi, [esp + 0x1e0]
lea edi, [esp + 0x160]
cmp eax, 0x100
mov dword [esp + 0x48], edx
rep movsd dword es:[edi], dword [esi]
jl 0x4f5d6c
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x4f6d9c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x184]
test eax, eax
je 0x4f675a
fld qword [esp + 0x40]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x4f6987
mov eax, dword [ecx + 0x188]
test eax, eax
je 0x4f6948
fld qword [esp + 0x58]
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 1
je 0x4f6948
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x160]
push edx
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.004ad0f0
mov edi, dword [ebx + 0x18]
mov ecx, 0x20
add edi, 0x7c
lea esi, [esp + 0x160]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x18]
push eax
mov edx, dword [ecx]
call dword [edx + 0x70]
fld qword [esp + 0x48]
fadd qword [esp + 0x68]
mov eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x258], ecx
mov dword [eax + 0x25c], edx
fst qword [esp + 0x28]
fstp qword [eax + 0x250]
mov ecx, edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [eax + 0x24c]
push edx
call fcn.004b0cb0
mov eax, dword [esp + 0x1c]
mov esi, 1
cmp eax, esi
mov dword [esp + 0x10], esi
jle 0x4f68e7
fild dword [esp + 0x1c]
mov edi, eax
fstp qword [esp + 0x30]
fild dword [esp + 0x10]
mov eax, dword [ebx + 0x18]
fdiv qword [esp + 0x30]
fmul qword [0x594940]
fld st(0)
fsin
fmul qword [esp + 0x48]
fadd qword [esp + 0x38]
fstp qword [esp + 0xa0]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
fcos
mov dword [eax + 0x258], ecx
mov dword [eax + 0x25c], edx
mov ecx, edx
mov edx, dword [esp + 0xa0]
push ecx
push edx
fmul qword [esp + 0x50]
fadd qword [esp + 0x70]
fst qword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
fstp qword [eax + 0x250]
push ecx
mov ecx, dword [eax + 0x24c]
push edx
call fcn.004b0ce0
inc esi
cmp esi, edi
mov dword [esp + 0x10], esi
jl 0x4f686c
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x24c]
call fcn.004b0ea0
mov eax, dword [esi + 0x24c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
mov ecx, dword [edx + ecx*4 - 4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx]
fld qword [ecx + edx*8 - 8]
fstp qword [esi + 0x250]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + edx*4 - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
fld qword [edx + ecx*8 - 8]
fstp qword [esi + 0x258]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0xb8]
mov ecx, dword [ebx + 0x18]
call fcn.004b1ac0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x184]
test eax, eax
je 0x4f6961
fld qword [esp + 0x40]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
je 0x4f69d8
mov eax, dword [ecx + 0x188]
test eax, eax
je 0x4f6d9c
fld qword [esp + 0x58]
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 1
jne 0x4f6d9c
jmp 0x4f6a26
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
jmp 0x4f67cd
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jmp 0x4f6a78
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x160]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
call fcn.004ad0f0
mov edi, dword [ebx + 0x18]
mov ecx, 0x20
add edi, 0x7c
lea esi, [esp + 0x160]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x18]
push eax
mov edx, dword [ecx]
call dword [edx + 0x70]
mov eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xe4]
mov dword [esp + 0x20], ecx
fld qword [esp + 0x120]
mov dword [eax + 0x258], ecx
mov dword [esp + 0x24], edx
fst qword [esp + 0x28]
fstp qword [eax + 0x250]
mov dword [eax + 0x25c], edx
mov ecx, edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [eax + 0x24c]
push edx
call fcn.004b0cb0
mov eax, dword [esp + 0xf0]
mov edx, dword [esp + 0xf0]
mov ecx, dword [esp + 0xf4]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x24], ecx
fld qword [esp + 0x120]
mov dword [eax + 0x258], edx
mov dword [eax + 0x25c], ecx
fst qword [esp + 0x28]
fstp qword [eax + 0x250]
mov edx, ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ecx
mov ecx, dword [eax + 0x24c]
call fcn.004b0ce0
mov eax, dword [esp + 0xf4]
mov edx, dword [esp + 0xf0]
fld qword [esp + 0x138]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x18]
fst qword [esp + 0x28]
mov dword [esp + 0x20], edx
mov ecx, edx
mov edx, dword [esp + 0xf4]
mov dword [eax + 0x258], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x25c], edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [eax + 0x24c]
push edx
fstp qword [eax + 0x250]
call fcn.004b0ce0
mov eax, dword [esp + 0xe0]
mov edx, dword [esp + 0xe0]
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x24], ecx
fld qword [esp + 0x138]
mov dword [eax + 0x258], edx
mov dword [eax + 0x25c], ecx
fst qword [esp + 0x28]
fstp qword [eax + 0x250]
mov edx, ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ecx
mov ecx, dword [eax + 0x24c]
call fcn.004b0ce0
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x24c]
call fcn.004b0ea0
mov eax, dword [esi + 0x24c]
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + edx*4 - 4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx]
fld qword [ecx + edx*8 - 8]
fstp qword [esi + 0x250]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + edx*4 - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
fld qword [edx + ecx*8 - 8]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
fstp qword [esi + 0x258]
fld qword [esp + 0x48]
fadd qword [esp + 0x68]
mov eax, dword [ebx + 0x18]
mov dword [eax + 0x258], ecx
mov dword [eax + 0x25c], edx
fst qword [esp + 0x28]
fstp qword [eax + 0x250]
mov ecx, edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [eax + 0x24c]
push edx
call fcn.004b0cb0
mov eax, dword [esp + 0x1c]
mov esi, 1
cmp eax, esi
mov dword [esp + 0x10], esi
jle 0x4f6d3e
fild dword [esp + 0x1c]
mov edi, eax
fstp qword [esp + 0x30]
fild dword [esp + 0x10]
mov eax, dword [ebx + 0x18]
fdiv qword [esp + 0x30]
fmul qword [0x594940]
fld st(0)
fsin
fmul qword [esp + 0x48]
fadd qword [esp + 0x38]
fstp qword [esp + 0xa0]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
fcos
mov dword [eax + 0x258], ecx
mov dword [eax + 0x25c], edx
mov ecx, edx
mov edx, dword [esp + 0xa0]
push ecx
push edx
fmul qword [esp + 0x50]
fadd qword [esp + 0x70]
fst qword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
fstp qword [eax + 0x250]
push ecx
mov ecx, dword [eax + 0x24c]
push edx
call fcn.004b0ce0
inc esi
cmp esi, edi
mov dword [esp + 0x10], esi
jl 0x4f6cc3
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x24c]
call fcn.004b0ea0
mov eax, dword [esi + 0x24c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
mov ecx, dword [edx + ecx*4 - 4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx]
fld qword [ecx + edx*8 - 8]
fstp qword [esi + 0x250]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + edx*4 - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
fld qword [edx + ecx*8 - 8]
fstp qword [esi + 0x258]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0xb8]
mov ecx, dword [ebx + 0x18]
call fcn.004b1ac0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4