Function at 0x4f9cd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push esi
mov esi, ecx
mov al, byte [esi + 0x55]
test al, al
mov dword [ebp - 0x5c], esi
jne 0x4fdd3d
mov eax, dword [esi]
call dword [eax + 0x60]
push esi
call fcn.004d7930
add esp, 4
test al, al
je 0x4f9d3b
mov ecx, dword [ebp + 0x14]
fld qword [ebp + 0x24]
mov edx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x2c]
push ecx
mov ecx, dword [ebp + 0x20]
push edx
mov edx, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
sub esp, 8
fstp qword [esp]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esi + 0x4c]
mov ecx, dword [ecx + 0x30]
push edx
push eax
call fcn.004f7e80
pop esi
mov esp, ebp
pop ebp
ret 0x2c
mov al, byte [esi + 0x59]
test al, al
jne 0x4fdd44
mov al, byte [esi + 0x32]
test al, al
jne 0x4fdd44
mov al, byte [esi + 0x31]
test al, al
je 0x4f9d63
mov al, byte [esi + 0x57]
test al, al
je 0x4fdd44
mov edx, dword [esi + 0x4c]
mov al, byte [edx + 0x38]
test al, al
jne 0x4fdd44
lea ecx, [ebp - 0xc4]
call fcn.004e2c00
fld qword [ebp + 0x24]
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0xc4]
push edx
sub esp, 8
fstp qword [esp]
push eax
push ecx
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.004e6d10
test al, al
je 0x4fdd3d
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0
push 0x650954
push 0x650938
push 0
push ebx
call fcn.005e2de2
push 0
push 0x65091c
push 0x650938
push 0
push ebx
mov edi, eax
call fcn.005e2de2
add esp, 0x28
test edi, edi
je 0x4fdd33
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x60]
mov eax, dword [ebp + 0x20]
test eax, eax
mov esi, dword [edi + 0x28]
mov dword [ebp - 0xc], esi
mov ecx, edi
jne 0x4fc69c
call fcn.00486c90
test esi, esi
jne 0x4fb1df
mov esi, eax
mov eax, dword [ebp + 0x14]
imul esi, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [edi]
add esi, edx
call dword [eax + 0x74]
lea ecx, [eax + esi*4]
fld qword [ebp + 0x24]
mov dword [ebp - 0x6c], ecx
fcos
fstp qword [ebp - 0x88]
fld qword [ebp + 0x24]
fsin
fstp qword [ebp - 0x90]
fld qword [ebp - 0x88]
fmul qword [0x612ca0]
call fcn.005e0b1c
fld qword [ebp - 0x90]
fmul qword [0x612ca0]
mov esi, eax
mov dword [ebp - 0x3c], esi
call fcn.005e0b1c
mov edi, dword [ebp - 0x5c]
mov edx, dword [edi]
mov ecx, edi
mov dword [ebp + 0x20], eax
call dword [edx + 0xac]
test al, al
je 0x4fdd3b
mov eax, dword [edi + 0x4c]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x78], ecx
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x40], edx
mov edx, dword [eax + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x74], ecx
mov ecx, 0x18
sub ecx, edx
mov edx, dword [eax + 0x1c]
mov eax, dword [edi + 0xbc]
mov dword [ebp - 0x44], ecx
mov ecx, 0x10
sub ecx, edx
mov edx, dword [edi + 0xb8]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0xb4]
cmp eax, 0x10
mov dword [ebp - 0x64], ecx
mov ecx, dword [edi + 0xc0]
mov dword [ebp - 8], edx
mov dword [ebp - 0x48], ecx
jne 0x4fa860
fld qword [ebp - 0xbc]
call fcn.005e0b1c
fld qword [ebp - 0xc4]
mov dword [ebp + 0x18], eax
call fcn.005e0b1c
mov ecx, dword [edi + 0x70]
mov dword [ebp + 0x28], eax
mov eax, ecx
imul eax, dword [ebp + 0x18]
cdq
sub eax, edx
mov edx, dword [ebp + 0x28]
sar eax, 1
add eax, edx
mov edx, dword [edi + 0x84]
mov edi, dword [ebp + 0x1c]
lea eax, [edx + eax*2]
mov dword [ebp - 0x4c], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
push 0x68ad88
push edi
mov dword [ebp - 0x18], eax
call fcn.004d6d20
add esp, 8
test al, al
fld qword [0x60d4b8]
fcomp qword [ebp - 0xac]
mov dword [ebp - 0x34], 0
je 0x4fa3b3
fnstsw ax
test ah, 5
jp 0x4fb15d
fild dword [ebp + 0x28]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fld qword [ebp - 0x88]
fmul st(1)
fstp qword [ebp - 0x80]
fmul qword [ebp - 0x90]
fld qword [ebp - 0xb4]
fsub qword [0x611680]
call fcn.005e0b1c
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
lea edx, [ecx + ecx]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
fsub dword [ebp + 0x30]
fsub dword [ebp + 0x10]
fld qword [ebp - 0x90]
fmul st(1)
fsubr qword [ebp - 0x80]
fadd dword [ebp + 0x2c]
fmul qword [0x612ca0]
call fcn.005e0b1c
fmul qword [ebp - 0x88]
mov edi, eax
fadd dword [ebp + 0x30]
fadd st(1)
fmul qword [0x612ca0]
call fcn.005e0b1c
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp + 0x18], edx
mov eax, edi
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp esi, 0xffffffff
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x28], 0
mov dword [ebp - 0x14], edx
jg 0x4fa029
test eax, eax
jl 0x4fa302
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, edi
sub eax, 0x27fff
cdq
idiv esi
test eax, eax
jl 0x4fa020
mov dword [ebp + 0x28], eax
mov eax, 0x7fff
sub eax, edi
jmp 0x4fa05e
cmp esi, 1
jl 0x4fa06b
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [ebp + 0x1c], edx
dec edx
cmp eax, edx
jge 0x4fa302
mov eax, 0x10000
sub eax, edi
cdq
idiv esi
test eax, eax
jle 0x4fa051
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x1c]
shl eax, 0x10
sub eax, edi
sub eax, 0x17fff
cdq
idiv esi
cmp eax, dword [ebp + 0x18]
jge 0x4fa08a
mov dword [ebp + 0x18], eax
jmp 0x4fa08a
test edi, edi
jl 0x4fa302
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp edi, edx
jge 0x4fa302
mov eax, dword [ebp + 0x20]
cmp eax, 0xffffffff
jg 0x4fa34d
mov eax, dword [ebp - 0x14]
test eax, eax
jl 0x4fa302
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv dword [ebp + 0x20]
cmp eax, dword [ebp + 0x28]
jle 0x4fa0bd
mov dword [ebp + 0x28], eax
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp + 0x20]
neg eax
cmp eax, dword [ebp + 0x18]
jge 0x4fa0ce
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x28]
mov edx, eax
imul eax, dword [ebp + 0x20]
imul edx, esi
add edi, edx
mov edx, dword [ebp - 0x4c]
add ecx, eax
mov eax, dword [ebp + 0x28]
lea edx, [edx + eax*2]
mov dword [ebp - 0x38], edx
mov edx, dword [ebx + 4]
mov dword [ebp - 4], edx
mov edx, dword [ebp + 0x18]
cmp eax, edx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0xc], ecx
jg 0x4fa302
sub edx, eax
inc edx
mov dword [ebp - 0x18], edx
lea ebx, [ebx]
mov eax, ecx
sar eax, 0x10
imul eax, dword [ebp - 4]
mov edx, edi
sar edx, 0x10
add eax, edx
mov edx, dword [ebp - 0x6c]
mov esi, dword [edx + eax*4]
mov dword [ebp - 0x10], esi
mov esi, dword [edx + eax*4 + 4]
mov dword [ebp + 0x18], esi
mov esi, dword [ebx + 4]
lea eax, [edx + eax*4]
lea eax, [eax + esi*4]
mov esi, dword [eax]
mov dword [ebp + 0x1c], esi
mov ebx, dword [ebp - 0x10]
and ecx, 0xfffe
mov edx, edi
and edx, 0xfffe
inc edx
inc ecx
mov dword [ebp - 0x14], edx
mov edi, 0x10000
sub edi, edx
mov edx, edi
imul edi, ecx
mov esi, 0x10000
sub esi, ecx
imul ecx, dword [ebp - 0x14]
imul edx, esi
imul esi, dword [ebp - 0x14]
mov eax, dword [eax + 4]
shr esi, 0x10
shr ebx, 0x18
shr edx, 0x10
imul edx, ebx
mov ebx, dword [ebp + 0x18]
shr ebx, 0x18
imul esi, ebx
shr esi, 0x10
mov dword [ebp + 0x28], esi
mov esi, dword [ebp + 0x1c]
shr esi, 0x18
shr ecx, 0x10
shr edi, 0x10
imul edi, esi
mov esi, eax
shr esi, 0x18
imul ecx, esi
mov esi, dword [ebp - 0x38]
mov si, word [esi]
shr ecx, 0x10
movzx esi, si
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], ecx
mov esi, eax
and esi, 0xff
imul esi, ecx
mov ebx, 0x100
sub ebx, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff
shr edi, 0x10
imul ecx, edi
add esi, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff
imul ecx, dword [ebp + 0x28]
add esi, ecx
mov ecx, dword [ebp - 0x10]
shr edx, 0x10
and ecx, 0xff
imul ecx, edx
sub ebx, edi
sub ebx, dword [ebp + 0x28]
mov dword [ebp - 0x20], edi
sub ebx, edx
add esi, ecx
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x1c], ebx
shr esi, cl
mov ecx, dword [ebp - 0x68]
mov edi, dword [ebp - 0x2c]
shl esi, cl
mov ecx, dword [ebp - 0x48]
and edi, ecx
imul edi, ebx
shr edi, 8
and edi, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff0000
imul ecx, dword [ebp - 0x20]
add esi, edi
mov edi, eax
and edi, 0xff0000
imul edi, dword [ebp - 0x14]
add edi, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff0000
imul ecx, dword [ebp + 0x28]
add edi, ecx
mov ecx, dword [ebp - 0x10]
and ecx, 0xff0000
imul ecx, edx
add edi, ecx
mov ecx, dword [ebp - 0x74]
shr edi, cl
mov ecx, dword [ebp - 0x78]
mov ebx, dword [ebp - 8]
and eax, 0xff00
shl edi, cl
imul eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
and ecx, ebx
imul ecx, dword [ebp - 0x1c]
shr ecx, 8
and ecx, ebx
add edi, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff00
imul ecx, dword [ebp - 0x20]
add eax, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff00
imul ecx, dword [ebp + 0x28]
add eax, ecx
mov ecx, dword [ebp - 0x10]
and ecx, 0xff00
imul ecx, edx
mov edx, dword [ebp - 0x50]
add eax, ecx
mov ecx, dword [ebp - 0x44]
shr eax, cl
mov ecx, dword [ebp - 0x40]
mov ebx, dword [ebp + 8]
or esi, edi
shl eax, cl
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x24]
and ecx, edx
imul ecx, dword [ebp - 0x1c]
shr ecx, 8
and ecx, edx
mov edx, dword [ebp + 0x20]
add eax, ecx
mov ecx, dword [ebp - 0xc]
or esi, eax
mov eax, dword [ebp - 0x38]
mov word [eax], si
mov esi, dword [ebp - 0x3c]
add eax, 2
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
add edi, esi
add ecx, edx
dec eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], eax
jne 0x4fa110
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x30]
inc edx
mov dword [ebp - 0x34], edx
fild dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [ebp - 0x4c], eax
fcomp qword [ebp - 0xac]
inc ecx
mov dword [ebp - 0x30], ecx
fnstsw ax
test ah, 5
jnp 0x4f9fa0
mov ecx, dword [ebp - 0x5c]
fstp st(0)
mov eax, dword [ecx]
call dword [eax + 0xb0]
mov ecx, dword [ebp - 0x5c]
call fcn.004d8320
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x2c
cmp eax, 1
jl 0x4fa38f
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ebp + 0x1c], eax
dec eax
cmp edx, eax
jge 0x4fa302
mov eax, 0x10000
sub eax, ecx
cdq
idiv dword [ebp + 0x20]
cmp eax, dword [ebp + 0x28]
jle 0x4fa376
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv dword [ebp + 0x20]
jmp 0x4fa0c6
test ecx, ecx
jl 0x4fa302
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0xc]
shl edx, 0x10
sub edx, 0x10000
cmp ecx, edx
jge 0x4fa302
jmp 0x4fa0d1
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
inc eax
mov dword [ebp - 0x70], eax
mov eax, dword [edi + 4]
mov edi, dword [edi + 8]
inc eax
mov dword [ebp - 0x58], eax
fnstsw ax
inc edi
test ah, 5
mov dword [ebp - 0x54], edi
jp 0x4fb15d
fild dword [ebp + 0x28]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fld qword [ebp - 0x88]
fmul st(1)
fstp qword [ebp - 0x80]
fmul qword [ebp - 0x90]
fld qword [ebp - 0xb4]
fsub qword [0x611680]
call fcn.005e0b1c
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
lea edx, [ecx + ecx]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
fsub dword [ebp + 0x30]
fsub dword [ebp + 0x10]
fld qword [ebp - 0x90]
fmul st(1)
fsubr qword [ebp - 0x80]
fadd dword [ebp + 0x2c]
fmul qword [0x612ca0]
call fcn.005e0b1c
fmul qword [ebp - 0x88]
mov edi, eax
fadd dword [ebp + 0x30]
fadd st(1)
fmul qword [0x612ca0]
call fcn.005e0b1c
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp + 0x18], edx
mov eax, edi
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp esi, 0xffffffff
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x28], 0
mov dword [ebp - 0x18], edx
jg 0x4fa49e
test eax, eax
jl 0x4fa7af
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, edi
sub eax, 0x27fff
cdq
idiv esi
test eax, eax
jl 0x4fa495
mov dword [ebp + 0x28], eax
mov eax, 0x7fff
sub eax, edi
jmp 0x4fa4d3
cmp esi, 1
jl 0x4fa4e0
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [ebp + 0x1c], edx
dec edx
cmp eax, edx
jge 0x4fa7af
mov eax, 0x10000
sub eax, edi
cdq
idiv esi
test eax, eax
jle 0x4fa4c6
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x1c]
shl eax, 0x10
sub eax, edi
sub eax, 0x17fff
cdq
idiv esi
cmp eax, dword [ebp + 0x18]
jge 0x4fa4ff
mov dword [ebp + 0x18], eax
jmp 0x4fa4ff
test edi, edi
jl 0x4fa7af
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp edi, edx
jge 0x4fa7af
mov eax, dword [ebp + 0x20]
cmp eax, 0xffffffff
jg 0x4fa7fa
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4fa7af
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv dword [ebp + 0x20]
cmp eax, dword [ebp + 0x28]
jle 0x4fa532
mov dword [ebp + 0x28], eax
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp + 0x20]
neg eax
cmp eax, dword [ebp + 0x18]
jge 0x4fa543
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x28]
mov edx, eax
imul eax, dword [ebp + 0x20]
imul edx, esi
add edi, edx
mov edx, dword [ebp - 0x4c]
add ecx, eax
mov eax, dword [ebp + 0x28]
lea edx, [edx + eax*2]
mov dword [ebp - 0x38], edx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x94], edx
mov edx, dword [ebp + 0x18]
cmp eax, edx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0xc], ecx
jg 0x4fa7af
sub edx, eax
inc edx
mov dword [ebp - 4], edx
mov eax, ecx
sar eax, 0x10
imul eax, dword [ebp - 0x94]
mov edx, edi
sar edx, 0x10
add eax, edx
mov edx, dword [ebp - 0x6c]
mov esi, dword [edx + eax*4]
mov dword [ebp - 0x10], esi
mov esi, dword [edx + eax*4 + 4]
mov dword [ebp + 0x18], esi
mov esi, dword [ebx + 4]
lea eax, [edx + eax*4]
lea eax, [eax + esi*4]
mov esi, dword [eax]
mov dword [ebp + 0x1c], esi
mov esi, dword [ebp - 0x38]
mov si, word [esi]
mov ebx, dword [ebp - 0x10]
mov word [ebp - 0x2c], si
mov edx, edi
and edx, 0xfffe
inc edx
and ecx, 0xfffe
inc ecx
mov dword [ebp - 0x18], edx
mov edi, 0x10000
sub edi, edx
mov edx, edi
imul edi, ecx
mov esi, 0x10000
sub esi, ecx
imul ecx, dword [ebp - 0x18]
imul edx, esi
imul esi, dword [ebp - 0x18]
shr ebx, 0x18
shr esi, 0x10
shr edx, 0x10
imul edx, ebx
mov ebx, dword [ebp + 0x18]
shr ebx, 0x18
imul esi, ebx
mov ebx, dword [ebp - 0x14]
mov eax, dword [eax + 4]
shr esi, 0x10
imul esi, ebx
sar esi, 8
mov dword [ebp + 0x28], esi
mov esi, dword [ebp + 0x1c]
shr esi, 0x18
shr edi, 0x10
imul edi, esi
shr ecx, 0x10
mov esi, eax
shr esi, 0x18
imul ecx, esi
mov esi, dword [ebp + 0x28]
shr ecx, 0x10
imul ecx, ebx
shr edi, 0x10
imul edi, ebx
sar ecx, 8
shr edx, 0x10
imul edx, dword [ebp - 0x14]
sar edi, 8
mov ebx, 0x100
sub ebx, ecx
sub ebx, edi
sub ebx, esi
movzx esi, word [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
mov esi, eax
and esi, 0xff0000
sar edx, 8
imul esi, ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x1c]
sub ebx, edx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ebx
and ecx, 0xff0000
imul ecx, edi
add esi, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff0000
imul ecx, dword [ebp + 0x28]
add esi, ecx
mov ecx, dword [ebp - 0x10]
and ecx, 0xff0000
imul ecx, edx
add esi, ecx
mov ecx, dword [ebp - 0x74]
mov edi, dword [ebp - 0x2c]
shr esi, 8
imul esi, dword [ebp - 0x70]
shr esi, cl
mov ecx, dword [ebp - 0x78]
shl esi, cl
mov ecx, dword [ebp - 8]
and edi, ecx
imul edi, ebx
shr edi, 8
and edi, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff00
imul ecx, dword [ebp - 0x20]
add esi, edi
mov edi, eax
and edi, 0xff00
imul edi, dword [ebp - 0x18]
add edi, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff00
imul ecx, dword [ebp + 0x28]
add edi, ecx
mov ecx, dword [ebp - 0x10]
and ecx, 0xff00
imul ecx, edx
add edi, ecx
mov ecx, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x50]
shr edi, 8
imul edi, dword [ebp - 0x58]
shr edi, cl
mov ecx, dword [ebp - 0x40]
and eax, 0xff
imul eax, dword [ebp - 0x18]
shl edi, cl
mov ecx, dword [ebp - 0x2c]
and ecx, ebx
imul ecx, dword [ebp - 0x1c]
shr ecx, 8
and ecx, ebx
add edi, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff
imul ecx, dword [ebp - 0x20]
add eax, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff
imul ecx, dword [ebp + 0x28]
add eax, ecx
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
imul ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x48]
shr eax, 8
imul eax, dword [ebp - 0x54]
shr eax, cl
mov ecx, dword [ebp - 0x68]
or esi, edi
shl eax, cl
mov ecx, dword [ebp - 0x2c]
and ecx, edx
imul ecx, dword [ebp - 0x1c]
shr ecx, 8
and ecx, edx
add eax, ecx
or esi, eax
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x20]
mov ebx, dword [ebp + 8]
mov word [eax], si
mov esi, dword [ebp - 0x3c]
add eax, 2
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
add edi, esi
add ecx, edx
dec eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
jne 0x4fa582
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x30]
inc edx
mov dword [ebp - 0x34], edx
fild dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [ebp - 0x4c], eax
fcomp qword [ebp - 0xac]
inc ecx
mov dword [ebp - 0x30], ecx
fnstsw ax
test ah, 5
jnp 0x4fa415
mov ecx, dword [ebp - 0x5c]
fstp st(0)
mov eax, dword [ecx]
call dword [eax + 0xb0]
mov ecx, dword [ebp - 0x5c]
call fcn.004d8320
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x2c
cmp eax, 1
jl 0x4fa83c
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ebp + 0x1c], eax
dec eax
cmp edx, eax
jge 0x4fa7af
mov eax, 0x10000
sub eax, ecx
cdq
idiv dword [ebp + 0x20]
cmp eax, dword [ebp + 0x28]
jle 0x4fa823
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv dword [ebp + 0x20]
jmp 0x4fa53b
test ecx, ecx
jl 0x4fa7af
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0xc]
shl edx, 0x10
sub edx, 0x10000
cmp ecx, edx
jge 0x4fa7af
jmp 0x4fa546
cmp eax, 0x20
jne 0x4fb15d
fld qword [ebp - 0xbc]
call fcn.005e0b1c
fld qword [ebp - 0xc4]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 0x5c]
mov edi, dword [eax + 0x70]
call fcn.005e0b1c
mov ecx, eax
mov eax, edi
imul eax, dword [ebp + 0x18]
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
mov dword [ebp + 0x28], ecx
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x84]
lea eax, [edx + eax*4]
mov dword [ebp - 0x4c], eax
mov eax, edi
mov edi, dword [ebp + 0x1c]
cdq
and edx, 3
add eax, edx
sar eax, 2
push 0x68ad88
push edi
mov dword [ebp - 4], eax
call fcn.004d6d20
add esp, 8
test al, al
fld qword [0x60d4b8]
fcomp qword [ebp - 0xac]
mov dword [ebp - 0x34], 0
je 0x4fad3d
fnstsw ax
test ah, 5
jp 0x4fb15d
fild dword [ebp + 0x28]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fld qword [ebp - 0x88]
fmul st(1)
fstp qword [ebp - 0x80]
fmul qword [ebp - 0x90]
fld qword [ebp - 0xb4]
fsub qword [0x611680]
call fcn.005e0b1c
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
lea edx, [ecx*4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
fsub dword [ebp + 0x30]
fsub dword [ebp + 0x10]
fld qword [ebp - 0x90]
fmul st(1)
fsubr qword [ebp - 0x80]
fadd dword [ebp + 0x2c]
fmul qword [0x612ca0]
call fcn.005e0b1c
fmul qword [ebp - 0x88]
mov edi, eax
fadd dword [ebp + 0x30]
fadd st(1)
fmul qword [0x612ca0]
call fcn.005e0b1c
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp + 0x18], edx
mov eax, edi
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp esi, 0xffffffff
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x28], 0
mov dword [ebp - 4], edx
jg 0x4fa9bc
test eax, eax
jl 0x4fac8c
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, edi
sub eax, 0x27fff
cdq
idiv esi
test eax, eax
jl 0x4fa9b3
mov dword [ebp + 0x28], eax
mov eax, 0x7fff
sub eax, edi
jmp 0x4fa9f1
cmp esi, 1
jl 0x4fa9fe
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [ebp + 0x1c], edx
dec edx
cmp eax, edx
jge 0x4fac8c
mov eax, 0x10000
sub eax, edi
cdq
idiv esi
test eax, eax
jle 0x4fa9e4
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x1c]
shl eax, 0x10
sub eax, edi
sub eax, 0x17fff
cdq
idiv esi
cmp eax, dword [ebp + 0x18]
jge 0x4faa1d
mov dword [ebp + 0x18], eax
jmp 0x4faa1d
test edi, edi
jl 0x4fac8c
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp edi, edx
jge 0x4fac8c
mov eax, dword [ebp + 0x20]
cmp eax, 0xffffffff
jg 0x4facd7
mov eax, dword [ebp - 4]
test eax, eax
jl 0x4fac8c
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv dword [ebp + 0x20]
cmp eax, dword [ebp + 0x28]
jle 0x4faa50
mov dword [ebp + 0x28], eax
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp + 0x20]
neg eax
cmp eax, dword [ebp + 0x18]
jge 0x4faa61
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x28]
mov edx, eax
imul eax, dword [ebp + 0x20]
imul edx, esi
add edi, edx
mov edx, dword [ebp - 0x4c]
add ecx, eax
mov eax, dword [ebp + 0x28]
lea edx, [edx + eax*4]
mov dword [ebp - 0x38], edx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x54], edx
mov edx, dword [ebp + 0x18]
cmp eax, edx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0xc], ecx
jg 0x4fac8c
sub edx, eax
inc edx
mov dword [ebp - 0x1c], edx
lea ecx, [ecx]
mov eax, ecx
sar eax, 0x10
imul eax, dword [ebp - 0x54]
mov edx, edi
sar edx, 0x10
add eax, edx
mov edx, dword [ebp - 0x6c]
mov esi, dword [edx + eax*4]
mov dword [ebp + 0x28], esi
mov esi, dword [edx + eax*4 + 4]
lea eax, [edx + eax*4]
mov dword [ebp + 0x18], esi
mov esi, dword [ebx + 4]
lea eax, [eax + esi*4]
mov esi, dword [eax]
mov ebx, dword [ebp + 0x28]
and ecx, 0xfffe
mov dword [ebp + 0x1c], esi
mov edx, edi
and edx, 0xfffe
inc edx
inc ecx
mov eax, dword [eax + 4]
mov dword [ebp - 4], edx
mov edi, 0x10000
sub edi, edx
mov edx, edi
imul edi, ecx
mov esi, 0x10000
sub esi, ecx
imul ecx, dword [ebp - 4]
imul edx, esi
imul esi, dword [ebp - 4]
shr ebx, 0x18
shr esi, 0x10
shr edx, 0x10
imul edx, ebx
mov ebx, dword [ebp + 0x18]
shr ebx, 0x18
imul esi, ebx
mov ebx, dword [ebp + 0x1c]
shr ebx, 0x18
shr ecx, 0x10
shr edi, 0x10
imul edi, ebx
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [ebp - 0x38]
mov ebx, dword [ebx]
shr ecx, 0x10
mov dword [ebp - 0x2c], ebx
shr esi, 0x10
mov dword [ebp - 0x28], esi
shr edi, 0x10
mov ebx, 0x100
sub ebx, ecx
mov dword [ebp - 4], ecx
sub ebx, edi
sub ebx, esi
mov esi, eax
and esi, 0xff00
imul esi, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff00
imul ecx, edi
add esi, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff00
imul ecx, dword [ebp - 0x28]
add esi, ecx
mov ecx, dword [ebp + 0x28]
shr edx, 0x10
and ecx, 0xff00
imul ecx, edx
add esi, ecx
mov ecx, dword [ebp - 0x44]
sub ebx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
shr esi, cl
mov ecx, dword [ebp - 0x40]
shl esi, cl
mov ecx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x2c]
and edi, ecx
imul edi, ebx
shr edi, 8
and edi, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff
imul ecx, dword [ebp - 0x18]
add esi, edi
mov edi, eax
and edi, 0xff
imul edi, dword [ebp - 4]
add edi, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff
imul ecx, dword [ebp - 0x28]
add edi, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff
imul ecx, edx
add edi, ecx
mov ecx, dword [ebp - 0x64]
shr edi, cl
mov ecx, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x48]
and eax, 0xff0000
shl edi, cl
imul eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
and ecx, ebx
imul ecx, dword [ebp - 0x14]
shr ecx, 8
and ecx, ebx
add edi, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff0000
imul ecx, dword [ebp - 0x18]
add eax, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff0000
imul ecx, dword [ebp - 0x28]
add eax, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff0000
imul ecx, edx
mov edx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 0x74]
shr eax, cl
mov ecx, dword [ebp - 0x78]
mov ebx, dword [ebp + 8]
or esi, edi
shl eax, cl
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x20]
and ecx, edx
imul ecx, dword [ebp - 0x14]
shr ecx, 8
and ecx, edx
mov edx, dword [ebp + 0x20]
add eax, ecx
mov ecx, dword [ebp - 0xc]
or esi, eax
mov eax, dword [ebp - 0x38]
mov dword [eax], esi
mov esi, dword [ebp - 0x3c]
add eax, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
add edi, esi
add ecx, edx
dec eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x1c], eax
jne 0x4faaa0
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x30]
inc edx
mov dword [ebp - 0x34], edx
fild dword [ebp - 0x34]
mov edx, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0x4c], eax
fcomp qword [ebp - 0xac]
inc ecx
mov dword [ebp - 0x30], ecx
fnstsw ax
test ah, 5
jnp 0x4fa933
mov ecx, dword [ebp - 0x5c]
fstp st(0)
mov eax, dword [ecx]
call dword [eax + 0xb0]
mov ecx, dword [ebp - 0x5c]
call fcn.004d8320
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x2c
cmp eax, 1
jl 0x4fad19
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 4]
mov dword [ebp + 0x1c], eax
dec eax
cmp edx, eax
jge 0x4fac8c
mov eax, 0x10000
sub eax, ecx
cdq
idiv dword [ebp + 0x20]
cmp eax, dword [ebp + 0x28]
jle 0x4fad00
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv dword [ebp + 0x20]
jmp 0x4faa59
test ecx, ecx
jl 0x4fac8c
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0xc]
shl edx, 0x10
sub edx, 0x10000
cmp ecx, edx
jge 0x4fac8c
jmp 0x4faa64
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [edi]
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 4]
mov edi, dword [edi + 8]
inc eax
mov dword [ebp - 0x60], eax
fnstsw ax
inc edi
test ah, 5
mov dword [ebp - 0x94], edi
jp 0x4fb15d
fild dword [ebp + 0x28]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fld qword [ebp - 0x88]
fmul st(1)
fstp qword [ebp - 0x80]
fmul qword [ebp - 0x90]
fld qword [ebp - 0xb4]
fsub qword [0x611680]
call fcn.005e0b1c
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
lea edx, [ecx*4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
fsub dword [ebp + 0x30]
fsub dword [ebp + 0x10]
fld qword [ebp - 0x90]
fmul st(1)
fsubr qword [ebp - 0x80]
fadd dword [ebp + 0x2c]
fmul qword [0x612ca0]
call fcn.005e0b1c
fmul qword [ebp - 0x88]
mov edi, eax
fadd dword [ebp + 0x30]
fadd st(1)
fmul qword [0x612ca0]
call fcn.005e0b1c
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp + 0x28], edx
mov eax, edi
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp esi, 0xffffffff
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x18], 0
mov dword [ebp - 4], edx
jg 0x4fae2f
test eax, eax
jl 0x4fb12e
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, edi
sub eax, 0x27fff
cdq
idiv esi
test eax, eax
jl 0x4fae26
mov dword [ebp + 0x18], eax
mov eax, 0x7fff
sub eax, edi
jmp 0x4fae64
cmp esi, 1
jl 0x4fae71
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [ebp + 0x1c], edx
dec edx
cmp eax, edx
jge 0x4fb12e
mov eax, 0x10000
sub eax, edi
cdq
idiv esi
test eax, eax
jle 0x4fae57
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x1c]
shl eax, 0x10
sub eax, edi
sub eax, 0x17fff
cdq
idiv esi
cmp eax, dword [ebp + 0x28]
jge 0x4fae90
mov dword [ebp + 0x28], eax
jmp 0x4fae90
test edi, edi
jl 0x4fb12e
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp edi, edx
jge 0x4fb12e
mov eax, dword [ebp + 0x20]
cmp eax, 0xffffffff
jg 0x4fb179
mov eax, dword [ebp - 4]
test eax, eax
jl 0x4fb12e
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv dword [ebp + 0x20]
cmp eax, dword [ebp + 0x18]
jle 0x4faec3
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp + 0x20]
neg eax
cmp eax, dword [ebp + 0x28]
jge 0x4faed4
mov dword [ebp + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x18]
mov edx, eax
imul eax, dword [ebp + 0x20]
imul edx, esi
add ecx, eax
mov eax, dword [ebp - 0x4c]
add edi, edx
mov edx, dword [ebp + 0x18]
lea edx, [eax + edx*4]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x28]
cmp dword [ebp + 0x18], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edx
jg 0x4fb12e
sub eax, dword [ebp + 0x18]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, ecx
mov edx, dword [edx]
sar eax, 0x10
imul eax, dword [ebp - 0x54]
mov esi, edi
sar esi, 0x10
add eax, esi
mov esi, dword [ebp - 0x6c]
lea eax, [esi + eax*4]
mov esi, dword [eax]
mov dword [ebp + 0x28], esi
mov esi, dword [eax + 4]
mov dword [ebp + 0x18], esi
mov esi, dword [ebx + 4]
mov ebx, dword [ebp + 0x28]
lea eax, [eax + esi*4]
mov esi, dword [eax]
and ecx, 0xfffe
mov dword [ebp + 0x1c], esi
and edi, 0xfffe
inc edi
inc ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x70], edi
mov edx, 0x10000
sub edx, edi
mov dword [ebp - 0x58], edx
mov esi, 0x10000
sub esi, ecx
imul edx, esi
imul edi, esi
mov esi, dword [ebp + 0x18]
shr ebx, 0x18
mov eax, dword [eax + 4]
shr esi, 0x18
shr edx, 0x10
imul edx, ebx
mov ebx, dword [ebp - 0x28]
shr edi, 0x10
imul edi, esi
mov esi, ecx
imul ecx, dword [ebp - 0x70]
imul esi, dword [ebp - 0x58]
shr edx, 0x10
imul edx, ebx
shr edi, 0x10
imul edi, ebx
mov ebx, dword [ebp + 0x1c]
shr ebx, 0x18
shr esi, 0x10
imul esi, ebx
shr ecx, 0x10
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
shr ecx, 0x10
imul ecx, dword [ebp - 0x28]
shr esi, 0x10
imul esi, dword [ebp - 0x28]
sar ecx, 8
sar esi, 8
mov ebx, 0x100
sub ebx, ecx
sub ebx, esi
sar edi, 8
sub ebx, edi
sar edx, 8
sub ebx, edx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], ecx
mov ebx, eax
and ebx, 0xff
imul ebx, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff
imul ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x58], esi
and ecx, 0xff
imul ecx, edi
add ebx, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff
imul ecx, edx
add ebx, ecx
mov ecx, dword [ebp - 0x64]
mov edi, dword [ebp - 0x48]
shr ebx, 8
imul ebx, dword [ebp - 0x94]
shr ebx, cl
mov ecx, dword [ebp - 0x68]
shl ebx, cl
mov ecx, dword [ebp - 0x2c]
and ecx, edi
imul ecx, dword [ebp - 0x38]
shr ecx, 8
and ecx, edi
add ebx, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff0000
imul ecx, esi
mov edi, eax
and edi, 0xff0000
imul edi, dword [ebp - 4]
add edi, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff0000
imul ecx, dword [ebp - 0x18]
add edi, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff0000
imul ecx, edx
add edi, ecx
mov ecx, dword [ebp - 0x74]
mov esi, dword [ebp - 8]
shr edi, 8
imul edi, dword [ebp - 0x24]
shr edi, cl
mov ecx, dword [ebp - 0x78]
and eax, 0xff00
imul eax, dword [ebp - 4]
shl edi, cl
mov ecx, dword [ebp - 0x2c]
and ecx, esi
imul ecx, dword [ebp - 0x38]
shr ecx, 8
and ecx, esi
add edi, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff00
imul ecx, dword [ebp - 0x58]
add eax, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff00
imul ecx, dword [ebp - 0x18]
add eax, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff00
imul ecx, edx
mov edx, dword [ebp - 0x50]
add eax, ecx
mov ecx, dword [ebp - 0x44]
shr eax, 8
imul eax, dword [ebp - 0x60]
shr eax, cl
mov ecx, dword [ebp - 0x40]
or ebx, edi
mov edi, dword [ebp - 0x20]
shl eax, cl
mov ecx, dword [ebp - 0x2c]
and ecx, edx
imul ecx, dword [ebp - 0x38]
shr ecx, 8
and ecx, edx
mov edx, dword [ebp - 0x14]
add eax, ecx
or ebx, eax
mov dword [edx], ebx
add edx, 4
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x1c]
add ecx, ebx
mov ebx, dword [ebp + 8]
add edi, esi
dec eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x1c], eax
jne 0x4faf12
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x30]
inc edx
mov dword [ebp - 0x34], edx
fild dword [ebp - 0x34]
mov edx, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0x4c], eax
fcomp qword [ebp - 0xac]
inc ecx
mov dword [ebp - 0x30], ecx
fnstsw ax
test ah, 5
jnp 0x4fada6
fstp st(0)
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx]
call dword [eax + 0xb0]
mov ecx, dword [ebp - 0x5c]
call fcn.004d8320
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x2c
cmp eax, 1
jl 0x4fb1bb
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 4]
mov dword [ebp + 0x1c], eax
dec eax
cmp edx, eax
jge 0x4fb12e
mov eax, 0x10000
sub eax, ecx
cdq
idiv dword [ebp + 0x20]
cmp eax, dword [ebp + 0x18]
jle 0x4fb1a2
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv dword [ebp + 0x20]
jmp 0x4faecc
test ecx, ecx
jl 0x4fb12e
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0xc]
shl edx, 0x10
sub edx, 0x10000
cmp ecx, edx
jge 0x4fb12e
jmp 0x4faed7
fld qword [ebp + 0x24]
mov ecx, dword [ebp + 0x14]
fcos
imul eax, dword [ecx + 4]
add eax, dword [edi + 0x2c]
add eax, dword [ecx]
mov dword [ebp - 0x78], eax
fstp qword [ebp - 0x80]
fld qword [ebp + 0x24]
fsin
fstp qword [ebp - 0x9c]
fld qword [ebp - 0x80]
fmul qword [0x612ca0]
call fcn.005e0b1c
fld qword [ebp - 0x9c]
fmul qword [0x612ca0]
mov edi, eax
mov dword [ebp - 0x2c], edi
call fcn.005e0b1c
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov dword [ebp + 0x20], eax
call dword [edx + 0xac]
test al, al
je 0x4fdd3b
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x4c]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x38], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x68], ecx
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x34], ecx
mov ecx, 0x20
sub ecx, dword [eax + 0x14]
mov dword [ebp - 0x30], ecx
mov ecx, 0x18
sub ecx, dword [eax + 0x18]
mov dword [ebp - 0x74], ecx
mov ecx, 0x10
sub ecx, dword [eax + 0x1c]
mov eax, dword [edx + 0xb8]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [edx + 0xbc]
mov dword [ebp - 0x4c], eax
mov eax, dword [edx + 0xc0]
mov edx, dword [edx + 0xb4]
cmp edx, 0x10
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x48], eax
jne 0x4fbc9b
fld qword [ebp - 0xbc]
call fcn.005e0b1c
fld qword [ebp - 0xc4]
mov dword [ebp + 0x18], eax
call fcn.005e0b1c
mov ecx, dword [ebp - 0x5c]
mov ecx, dword [ecx + 0x70]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x18]
imul eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp + 0x28]
sar eax, 1
add eax, edx
mov edx, dword [ebp - 0x5c]
mov edx, dword [edx + 0x84]
lea eax, [edx + eax*2]
mov dword [ebp - 0x50], eax
mov eax, ecx
mov ecx, dword [ebp + 0x1c]
cdq
sub eax, edx
sar eax, 1
push 0x68ad88
push ecx
mov dword [ebp - 4], eax
call fcn.004d6d20
add esp, 8
test al, al
fld qword [0x60d4b8]
fcomp qword [ebp - 0xac]
je 0x4fb7a9
fnstsw ax
mov dword [ebp - 0x1c], 0
test ah, 5
jp 0x4fc61b
fild dword [ebp + 0x28]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fld qword [ebp - 0x80]
fmul st(1)
fstp qword [ebp - 0x90]
fmul qword [ebp - 0x9c]
fld qword [ebp - 0xb4]
fsub qword [0x611680]
call fcn.005e0b1c
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0xc], eax
lea eax, [edx + edx]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
lea ecx, [ecx]
fild dword [ebp - 0x24]
fsub dword [ebp + 0x30]
fsub dword [ebp + 0x10]
fld qword [ebp - 0x9c]
fmul st(1)
fsubr qword [ebp - 0x90]
fadd dword [ebp + 0x2c]
fmul qword [0x612ca0]
call fcn.005e0b1c
fmul qword [ebp - 0x80]
mov dword [ebp + 0x18], eax
fadd dword [ebp + 0x30]
fadd st(1)
fmul qword [0x612ca0]
call fcn.005e0b1c
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], edx
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp edi, 0xffffffff
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x28], 0
mov dword [ebp - 4], edx
jg 0x4fb3fc
test eax, eax
jl 0x4fb6f9
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 0x18]
shl eax, 0x10
sub eax, edx
sub eax, 0x27fff
cdq
idiv edi
test eax, eax
jl 0x4fb3e5
mov dword [ebp + 0x28], eax
mov edx, dword [ebp + 0x18]
mov eax, 0x7fff
sub eax, edx
cdq
idiv edi
cmp eax, dword [ebp - 8]
jge 0x4fb45e
mov dword [ebp - 8], eax
jmp 0x4fb45e
cmp edi, 1
jl 0x4fb439
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [ebp + 0x1c], edx
dec edx
cmp eax, edx
jge 0x4fb6f9
mov edx, dword [ebp + 0x18]
mov eax, 0x10000
sub eax, edx
cdq
idiv edi
test eax, eax
jle 0x4fb427
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
shl eax, 0x10
sub eax, edx
sub eax, 0x17fff
jmp 0x4fb3ef
mov eax, dword [ebp + 0x18]
test eax, eax
jl 0x4fb6f9
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
mov eax, dword [ebp + 0x18]
shl edx, 0x10
sub edx, 0x10000
cmp eax, edx
jge 0x4fb6f9
mov eax, dword [ebp + 0x20]
cmp eax, 0xffffffff
jg 0x4fb744
mov eax, dword [ebp - 4]
test eax, eax
jl 0x4fb6f9
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv dword [ebp + 0x20]
cmp eax, dword [ebp + 0x28]
jle 0x4fb491
mov dword [ebp + 0x28], eax
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp + 0x20]
neg eax
cmp eax, dword [ebp - 8]
jge 0x4fb4a2
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x18]
imul edx, edi
add eax, edx
mov edx, dword [ebp - 0x50]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x28]
imul eax, dword [ebp + 0x20]
add ecx, eax
mov eax, dword [ebp + 0x28]
lea edx, [edx + eax*2]
mov dword [ebp - 0x10], edx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x60], edx
mov edx, dword [ebp - 8]
cmp eax, edx
mov dword [ebp - 0xc], ecx
jg 0x4fb6f9
sub edx, eax
inc edx
mov dword [ebp - 0x18], edx
mov edi, dword [ebp + 0x18]
mov edx, ecx
sar edx, 0x10
imul edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x78]
mov eax, edi
sar eax, 0x10
add eax, edx
movzx edx, byte [eax]
mov edx, dword [esi + edx*4]
mov dword [ebp - 0x3c], edx
movzx edx, byte [eax + 1]
mov edx, dword [esi + edx*4]
mov dword [ebp + 0x28], edx
mov edx, dword [ebx + 4]
add eax, edx
movzx edx, byte [eax]
mov edx, dword [esi + edx*4]
mov dword [ebp + 0x1c], edx
and ecx, 0xfffe
and edi, 0xfffe
inc edi
inc ecx
mov edx, 0x10000
sub edx, edi
mov dword [ebp - 0x58], edx
mov ebx, 0x10000
sub ebx, ecx
imul edx, ebx
mov dword [ebp - 0x54], ebx
mov ebx, dword [ebp - 0x3c]
shr ebx, 0x18
shr edx, 0x10
imul edx, ebx
movzx eax, byte [eax + 1]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x70], edi
imul edi, dword [ebp - 0x54]
mov eax, dword [esi + eax*4]
shr edx, 0x10
mov dword [ebp - 0x40], edx
mov edx, dword [ebp + 0x28]
shr edx, 0x18
shr edi, 0x10
imul edi, edx
mov edx, ecx
imul ecx, dword [ebp - 0x70]
imul edx, dword [ebp - 0x58]
shr ebx, 0x18
shr ecx, 0x10
shr edx, 0x10
imul edx, ebx
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [ebp - 0x10]
mov bx, word [ebx]
mov word [ebp - 0x54], bx
shr ecx, 0x10
shr edx, 0x10
mov dword [ebp - 0x28], ecx
mov ebx, 0x100
sub ebx, ecx
mov ecx, dword [ebp - 0x40]
sub ebx, edx
shr edi, 0x10
sub ebx, edi
sub ebx, ecx
movzx ecx, word [ebp - 0x54]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0x1c]
mov ebx, eax
and ecx, 0xff
and ebx, 0xff
imul ecx, edx
imul ebx, dword [ebp - 0x28]
add ebx, ecx
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 4], edi
mov dword [ebp - 0x58], edx
and ecx, 0xff
imul ecx, edi
add ebx, ecx
mov ecx, dword [ebp - 0x3c]
and ecx, 0xff
imul ecx, dword [ebp - 0x40]
add ebx, ecx
mov ecx, dword [ebp - 0x6c]
shr ebx, cl
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x44]
shl ebx, cl
mov ecx, dword [ebp - 0x48]
and ecx, edi
imul ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x48]
shr ecx, 8
and ecx, edi
add ebx, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff0000
imul ecx, edx
mov edx, dword [ebp + 0x28]
mov edi, eax
and edi, 0xff0000
imul edi, dword [ebp - 0x28]
add edi, ecx
mov ecx, dword [ebp - 0x3c]
and ecx, 0xff0000
imul ecx, dword [ebp - 0x40]
and edx, 0xff0000
imul edx, dword [ebp - 4]
add edi, edx
mov edx, dword [ebp - 0x4c]
add edi, ecx
mov ecx, dword [ebp - 0x30]
shr edi, cl
mov ecx, dword [ebp - 0x38]
and eax, 0xff00
imul eax, dword [ebp - 0x28]
shl edi, cl
and edx, dword [ebp - 0x44]
imul edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x4c]
shr edx, 8
and edx, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff00
imul ecx, dword [ebp - 0x58]
add eax, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff00
imul ecx, dword [ebp - 4]
add eax, ecx
mov ecx, dword [ebp - 0x3c]
and ecx, 0xff00
imul ecx, dword [ebp - 0x40]
add eax, ecx
mov ecx, dword [ebp - 0x74]
shr eax, cl
mov ecx, dword [ebp - 0x68]
add edi, edx
or ebx, edi
mov edi, dword [ebp - 0x44]
shl eax, cl
mov ecx, dword [ebp - 0x64]
mov edx, ecx
and edx, edi
imul edx, dword [ebp - 8]
mov edi, dword [ebp - 0x2c]
shr edx, 8
and edx, ecx
add eax, edx
or ebx, eax
mov eax, dword [ebp - 0x10]
mov word [eax], bx
mov ebx, dword [ebp + 0x18]
add eax, 2
mov dword [ebp - 0x10], eax
add ebx, edi
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x18]
add ecx, edx
dec eax
mov dword [ebp + 0x18], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], eax
jne 0x4fb4e2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
add ecx, eax
inc edx
fcomp qword [ebp - 0xac]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x50], ecx
fnstsw ax
test ah, 5
jnp 0x4fb360
mov ecx, dword [ebp - 0x5c]
fstp st(0)
mov eax, dword [ecx]
call dword [eax + 0xb0]
mov ecx, dword [ebp - 0x5c]
call fcn.004d8320
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x2c
cmp eax, 1
jl 0x4fb786
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 4]
dec eax
cmp edx, eax
jge 0x4fb6f9
mov eax, 0x10000
sub eax, ecx
cdq
idiv dword [ebp + 0x20]
cmp eax, dword [ebp + 0x28]
jle 0x4fb76a
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv dword [ebp + 0x20]
jmp 0x4fb49a
test ecx, ecx
jl 0x4fb6f9
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, 0x10000
cmp ecx, eax
jge 0x4fb6f9
jmp 0x4fb4a5
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [ecx + 0xc]
inc eax
mov dword [ebp - 0x84], eax
mov eax, dword [ecx + 4]
inc eax
mov dword [ebp - 0x8c], eax
mov eax, dword [ecx + 8]
inc eax
mov dword [ebp - 0x94], eax
fnstsw ax
mov dword [ebp - 0x1c], edx
test ah, 5
mov dword [ebp - 0x14], 0
jp 0x4fc61b
fild dword [ebp + 0x28]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fld qword [ebp - 0x80]
fmul st(1)
fstp qword [ebp - 0xa4]
fmul qword [ebp - 0x9c]
fld qword [ebp - 0xb4]
fsub qword [0x611680]
call fcn.005e0b1c
mov edx, dword [ebp + 0x18]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
lea ecx, [eax + eax]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x44], edx
mov edi, edi
fild dword [ebp - 0x44]
fsub dword [ebp + 0x30]
fsub dword [ebp + 0x10]
fld qword [ebp - 0x9c]
fmul st(1)
fsubr qword [ebp - 0xa4]
fadd dword [ebp + 0x2c]
fmul qword [0x612ca0]
call fcn.005e0b1c
fmul qword [ebp - 0x80]
mov dword [ebp + 0x18], eax
fadd dword [ebp + 0x30]
fadd st(1)
fmul qword [0x612ca0]
call fcn.005e0b1c
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp edi, 0xffffffff
mov dword [ebp - 0x10], ecx
mov dword [ebp + 0x28], 0
mov dword [ebp - 4], edx
jg 0x4fb8bc
test eax, eax
jl 0x4fbbeb
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
mov edx, dword [ebp + 0x18]
shl eax, 0x10
sub eax, edx
sub eax, 0x27fff
cdq
idiv edi
test eax, eax
jl 0x4fb8a5
mov dword [ebp + 0x28], eax
mov edx, dword [ebp + 0x18]
mov eax, 0x7fff
sub eax, edx
cdq
idiv edi
cmp eax, dword [ebp - 8]
jge 0x4fb91e
mov dword [ebp - 8], eax
jmp 0x4fb91e
cmp edi, 1
jl 0x4fb8f9
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [ebp + 0x1c], edx
dec edx
cmp eax, edx
jge 0x4fbbeb
mov edx, dword [ebp + 0x18]
mov eax, 0x10000
sub eax, edx
cdq
idiv edi
test eax, eax
jle 0x4fb8e7
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
shl eax, 0x10
sub eax, edx
sub eax, 0x17fff
jmp 0x4fb8af
mov eax, dword [ebp + 0x18]
test eax, eax
jl 0x4fbbeb
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
mov eax, dword [ebp + 0x18]
shl edx, 0x10
sub edx, 0x10000
cmp eax, edx
jge 0x4fbbeb
mov eax, dword [ebp + 0x20]
cmp eax, 0xffffffff
jg 0x4fbc36
mov eax, dword [ebp - 4]
test eax, eax
jl 0x4fbbeb
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv dword [ebp + 0x20]
cmp eax, dword [ebp + 0x28]
jle 0x4fb951
mov dword [ebp + 0x28], eax
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ebp + 0x20]
neg eax
cmp eax, dword [ebp - 8]
jge 0x4fb962
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x18]
imul edx, edi
add eax, edx
mov edx, dword [ebp - 0x50]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x28]
imul eax, dword [ebp + 0x20]
add ecx, eax
mov eax, dword [ebp + 0x28]
lea edx, [edx + eax*2]
mov dword [ebp - 0x40], edx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x60], edx
mov edx, dword [ebp - 8]
cmp eax, edx
mov dword [ebp - 0x10], ecx
jg 0x4fbbeb
sub edx, eax
inc edx
mov dword [ebp - 8], edx
mov edi, dword [ebp + 0x18]
mov edx, ecx
sar edx, 0x10
imul edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x78]
mov eax, edi
sar eax, 0x10
add eax, edx
movzx edx, byte [eax]
mov edx, dword [esi + edx*4]
mov dword [ebp - 0x3c], edx
movzx edx, byte [eax + 1]
mov edx, dword [esi + edx*4]
mov dword [ebp + 0x28], edx
mov edx, dword [ebx + 4]
add eax, edx
movzx edx, byte [eax]
mov edx, dword [esi + edx*4]
movzx eax, byte [eax + 1]
mov eax, dword [esi + eax*4]
mov ebx, dword [ebp - 0x3c]
mov dword [ebp + 0x1c], edx
mov edx, dword [ebp - 0x40]
mov dx, word [edx]
and edi, 0xfffe
inc edi
mov word [ebp - 0x70], dx
and ecx, 0xfffe
inc ecx
mov dword [ebp - 0x58], edi
mov edx, 0x10000
sub edx, edi
mov dword [ebp - 0x54], edx
mov esi, 0x10000
sub esi, ecx
imul edx, esi
imul edi, esi
mov esi, dword [ebp + 0x28]
shr ebx, 0x18
shr esi, 0x18
shr edx, 0x10
imul edx, ebx
mov ebx, dword [ebp - 0x1c]
shr edi, 0x10
imul edi, esi
mov esi, ecx
imul ecx, dword [ebp - 0x58]
imul esi, dword [ebp - 0x54]
shr edx, 0x10
imul edx, ebx
shr edi, 0x10
imul edi, ebx
mov ebx, dword [ebp + 0x1c]
shr ebx, 0x18
shr esi, 0x10
imul esi, ebx
shr ecx, 0x10
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
shr ecx, 0x10
imul ecx, dword [ebp - 0x1c]
shr esi, 0x10
imul esi, dword [ebp - 0x1c]
sar ecx, 8
sar esi, 8
mov ebx, 0x100
sub ebx, ecx
sub ebx, esi
sar edi, 8
sub ebx, edi
sar edx, 8
sub ebx, edx
mov dword [ebp - 0x28], ebx
movzx ebx, word [ebp - 0x70]
mov dword [ebp - 0x24], ebx
mov ebx, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], ecx
and ebx, 0xff
imul ebx, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff
imul ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff
imul ecx, edi
add ebx, ecx
mov ecx, dword [ebp - 0x3c]
and ecx, 0xff
imul ecx, edx
add ebx, ecx
mov ecx, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x24]
shr ebx, 8
imul ebx, dword [ebp - 0x94]
shr ebx, cl
mov ecx, dword [ebp - 0x34]
shl ebx, cl
mov ecx, dword [ebp - 0x48]
and ecx, edi
imul ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x48]
shr ecx, 8
and ecx, edi
add ebx, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff0000
imul ecx, esi
mov edi, eax
and edi, 0xff0000
imul edi, dword [ebp - 4]
add edi, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff0000
imul ecx, dword [ebp - 0x18]
add edi, ecx
mov ecx, dword [ebp - 0x3c]
and ecx, 0xff0000
imul ecx, edx
add edi, ecx
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x24]
shr edi, 8
imul edi, dword [ebp - 0x84]
shr edi, cl
mov ecx, dword [ebp - 0x38]
and eax, 0xff00
imul eax, dword [ebp - 4]
shl edi, cl
mov ecx, dword [ebp - 0x4c]
and ecx, esi
imul ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x4c]
shr ecx, 8
and ecx, esi
add edi, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff00
imul ecx, dword [ebp - 0x54]
add eax, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff00
imul ecx, dword [ebp - 0x18]
add eax, ecx
mov ecx, dword [ebp - 0x3c]
and ecx, 0xff00
imul ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x74]
shr eax, 8
imul eax, dword [ebp - 0x8c]
shr eax, cl
mov ecx, dword [ebp - 0x68]
or ebx, edi
mov edi, dword [ebp - 0x24]
shl eax, cl
mov ecx, dword [ebp - 0x64]
mov edx, ecx
and edx, edi
imul edx, dword [ebp - 0x28]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp - 0x2c]
shr edx, 8
and edx, ecx
mov ecx, dword [ebp - 0x10]
add eax, edx
mov edx, dword [ebp + 0x20]
or ebx, eax
mov eax, dword [ebp - 0x40]
mov word [eax], bx
mov ebx, dword [ebp + 8]
add eax, 2
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
add esi, edi
add ecx, edx
dec eax
mov dword [ebp + 0x18], esi
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
jne 0x4fb9a2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
add ecx, eax
inc edx
fcomp qword [ebp - 0xac]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x50], ecx
fnstsw ax
test ah, 5
jnp 0x4fb820
mov ecx, dword [ebp - 0x5c]
fstp st(0)
mov eax, dword [ecx]
call dword [eax + 0xb0]
mov ecx, dword [ebp - 0x5c]
call fcn.004d8320
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x2c
cmp eax, 1
jl 0x4fbc78
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 4]
dec eax
cmp edx, eax
jge 0x4fbbeb
mov eax, 0x10000
sub eax, ecx
cdq
idiv dword [ebp + 0x20]
cmp eax, dword [ebp + 0x28]
jle 0x4fbc5c
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x10]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv dword [ebp + 0x20]
jmp 0x4fb95a
test ecx, ecx
jl 0x4fbbeb
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, 0x10000
cmp ecx, eax
jge 0x4fbbeb
jmp 0x4fb965
cmp edx, 0x20
jne 0x4fc61b
fld qword [ebp - 0xbc]
call fcn.005e0b1c
fld qword [ebp - 0xc4]
mov dword [ebp + 0x18], eax
call fcn.005e0b1c
mov ecx, dword [ebp - 0x5c]
mov ecx, dword [ecx + 0x70]
mov dword [ebp + 0x28], eax
mov eax, ecx
imul eax, dword [ebp + 0x18]
cdq
and edx, 3
add eax, edx
mov edx, dword [ebp + 0x28]
sar eax, 2
add eax, edx
mov edx, dword [ebp - 0x5c]
mov edx, dword [edx + 0x84]
lea eax, [edx + eax*4]
mov dword [ebp - 0x50], eax
mov eax, ecx
mov ecx, dword [ebp + 0x1c]
cdq
and edx, 3
add eax, edx
sar eax, 2
push 0x68ad88
push ecx
mov dword [ebp - 4], eax
call fcn.004d6d20
add esp, 8
test al, al
fld qword [0x60d4b8]
fcomp qword [ebp - 0xac]
je 0x4fc1bf
fnstsw ax
mov dword [ebp - 0x24], 0
test ah, 5
jp 0x4fc61b
fild dword [ebp + 0x28]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fld qword [ebp - 0x80]
fmul st(1)
fstp qword [ebp - 0xa4]
fmul qword [ebp - 0x9c]
fld qword [ebp - 0xb4]
fsub qword [0x611680]
call fcn.005e0b1c
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0xc], eax
lea eax, [edx*4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], ecx
nop
fild dword [ebp - 0x1c]
fsub dword [ebp + 0x30]
fsub dword [ebp + 0x10]
fld qword [ebp - 0x9c]
fmul st(1)
fsubr qword [ebp - 0xa4]
fadd dword [ebp + 0x2c]
fmul qword [0x612ca0]
call fcn.005e0b1c
fmul qword [ebp - 0x80]
mov dword [ebp + 0x18], eax
fadd dword [ebp + 0x30]
fadd st(1)
fmul qword [0x612ca0]
call fcn.005e0b1c
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], edx
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp edi, 0xffffffff
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x28], 0
mov dword [ebp - 4], edx
jg 0x4fbe0c
test eax, eax
jl 0x4fc10f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 0x18]
shl eax, 0x10
sub eax, edx
sub eax, 0x27fff
cdq
idiv edi
test eax, eax
jl 0x4fbdf5
mov dword [ebp + 0x28], eax
mov edx, dword [ebp + 0x18]
mov eax, 0x7fff
sub eax, edx
cdq
idiv edi
cmp eax, dword [ebp - 8]
jge 0x4fbe6e
mov dword [ebp - 8], eax
jmp 0x4fbe6e
cmp edi, 1
jl 0x4fbe49
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [ebp + 0x1c], edx
dec edx
cmp eax, edx
jge 0x4fc10f
mov edx, dword [ebp + 0x18]
mov eax, 0x10000
sub eax, edx
cdq
idiv edi
test eax, eax
jle 0x4fbe37
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
shl eax, 0x10
sub eax, edx
sub eax, 0x17fff
jmp 0x4fbdff
mov eax, dword [ebp + 0x18]
test eax, eax
jl 0x4fc10f
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
mov eax, dword [ebp + 0x18]
shl edx, 0x10
sub edx, 0x10000
cmp eax, edx
jge 0x4fc10f
mov eax, dword [ebp + 0x20]
cmp eax, 0xffffffff
jg 0x4fc15a
mov eax, dword [ebp - 4]
test eax, eax
jl 0x4fc10f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv dword [ebp + 0x20]
cmp eax, dword [ebp + 0x28]
jle 0x4fbea1
mov dword [ebp + 0x28], eax
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp + 0x20]
neg eax
cmp eax, dword [ebp - 8]
jge 0x4fbeb2
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x18]
imul edx, edi
add eax, edx
mov edx, dword [ebp - 0x50]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x28]
imul eax, dword [ebp + 0x20]
add ecx, eax
mov eax, dword [ebp + 0x28]
lea edx, [edx + eax*4]
mov dword [ebp - 0x44], edx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x8c], edx
mov edx, dword [ebp - 8]
cmp eax, edx
mov dword [ebp - 0xc], ecx
jg 0x4fc10f
sub edx, eax
inc edx
mov dword [ebp - 0x18], edx
mov edi, dword [ebp + 0x18]
mov edx, ecx
sar edx, 0x10
imul edx, dword [ebp - 0x8c]
add edx, dword [ebp - 0x78]
mov eax, edi
sar eax, 0x10
add eax, edx
movzx edx, byte [eax]
mov edx, dword [esi + edx*4]
mov dword [ebp + 0x28], edx
movzx edx, byte [eax + 1]
mov edx, dword [esi + edx*4]
mov dword [ebp + 0x1c], edx
mov edx, dword [ebx + 4]
add edx, eax
movzx eax, byte [edx]
movzx edx, byte [edx + 1]
mov edx, dword [esi + edx*4]
and ecx, 0xfffe
mov dword [ebp - 0x40], edx
and edi, 0xfffe
inc edi
inc ecx
mov edx, 0x10000
sub edx, edi
mov dword [ebp - 0x60], edx
mov ebx, 0x10000
sub ebx, ecx
imul edx, ebx
mov dword [ebp - 0x84], ebx
mov ebx, dword [ebp + 0x28]
shr ebx, 0x18
shr edx, 0x10
imul edx, ebx
mov eax, dword [esi + eax*4]
mov dword [ebp - 0x54], edi
imul edi, dword [ebp - 0x84]
shr edx, 0x10
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp + 0x1c]
shr edx, 0x18
shr edi, 0x10
imul edi, edx
mov edx, ecx
imul ecx, dword [ebp - 0x54]
imul edx, dword [ebp - 0x60]
shr ecx, 0x10
shr edx, 0x10
mov ebx, eax
shr ebx, 0x18
imul edx, ebx
mov ebx, dword [ebp - 0x40]
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [ebp - 0x3c]
shr ecx, 0x10
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x44]
mov ecx, dword [ecx]
mov dword [ebp - 0x60], ecx
shr edx, 0x10
shr edi, 0x10
mov ecx, 0x100
sub ecx, edx
sub ecx, edi
sub ecx, ebx
mov ebx, dword [ebp - 0x14]
sub ecx, ebx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x40]
and ecx, 0xff
imul ecx, ebx
mov ebx, eax
and ebx, 0xff
imul ebx, edx
add ecx, ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 4], edi
mov dword [ebp - 0x58], edx
and ebx, 0xff
imul ebx, edi
add ecx, ebx
mov edi, dword [ebp + 0x28]
and edi, 0xff
imul edi, dword [ebp - 0x3c]
add ecx, edi
mov edi, ecx
mov ecx, dword [ebp - 0x6c]
shr edi, cl
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x60]
shl edi, cl
mov ecx, dword [ebp - 0x48]
and ecx, ebx
imul ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x48]
shr ecx, 8
and ecx, ebx
mov ebx, dword [ebp - 0x40]
add edi, ecx
and ebx, 0xff0000
imul ebx, dword [ebp - 0x14]
mov ecx, eax
and ecx, 0xff0000
imul ecx, edx
mov edx, dword [ebp + 0x1c]
add ebx, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff0000
imul ecx, dword [ebp - 0x3c]
and edx, 0xff0000
imul edx, dword [ebp - 4]
add ebx, edx
add ebx, ecx
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x4c]
shr ebx, cl
mov ecx, dword [ebp - 0x38]
and eax, 0xff00
imul eax, dword [ebp - 0x58]
shl ebx, cl
mov ecx, dword [ebp - 0x44]
and edx, dword [ecx]
mov ecx, dword [ebp - 0x4c]
imul edx, dword [ebp - 0x20]
shr edx, 8
and edx, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff00
imul ecx, dword [ebp - 4]
add eax, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff00
imul ecx, dword [ebp - 0x3c]
add eax, ecx
mov ecx, dword [ebp - 0x40]
and ecx, 0xff00
imul ecx, dword [ebp - 0x14]
add eax, ecx
mov ecx, dword [ebp - 0x74]
add ebx, edx
mov edx, dword [ebp - 0x64]
shr eax, cl
mov ecx, dword [ebp - 0x68]
or edi, ebx
mov ebx, edx
shl eax, cl
mov ecx, dword [ebp - 0x44]
and ebx, dword [ecx]
add ecx, 4
imul ebx, dword [ebp - 0x20]
shr ebx, 8
and ebx, edx
add eax, ebx
mov ebx, dword [ebp + 0x18]
or edi, eax
mov dword [ecx - 4], edi
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x44], ecx
add ebx, edi
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x18]
add ecx, edx
dec eax
mov dword [ebp + 0x18], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], eax
jne 0x4fbef5
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x24], edx
fild dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [ebp - 0x50], eax
fcomp qword [ebp - 0xac]
inc ecx
mov dword [ebp - 0x1c], ecx
fnstsw ax
test ah, 5
jnp 0x4fbd70
mov ecx, dword [ebp - 0x5c]
fstp st(0)
mov eax, dword [ecx]
call dword [eax + 0xb0]
mov ecx, dword [ebp - 0x5c]
call fcn.004d8320
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x2c
cmp eax, 1
jl 0x4fc19c
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 4]
dec eax
cmp edx, eax
jge 0x4fc10f
mov eax, 0x10000
sub eax, ecx
cdq
idiv dword [ebp + 0x20]
cmp eax, dword [ebp + 0x28]
jle 0x4fc180
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv dword [ebp + 0x20]
jmp 0x4fbeaa
test ecx, ecx
jl 0x4fc10f
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, 0x10000
cmp ecx, eax
jge 0x4fc10f
jmp 0x4fbeb5
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
inc eax
mov dword [ebp - 0x58], eax
mov eax, dword [ecx + 4]
inc eax
mov dword [ebp - 0x84], eax
mov eax, dword [ecx + 8]
inc eax
mov dword [ebp - 0x54], eax
fnstsw ax
mov dword [ebp - 0x20], 0
test ah, 5
jp 0x4fc61b
fild dword [ebp + 0x28]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fld qword [ebp - 0x80]
fmul st(1)
fstp qword [ebp - 0xa4]
fmul qword [ebp - 0x9c]
fld qword [ebp - 0xb4]
fsub qword [0x611680]
call fcn.005e0b1c
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
lea edx, [ecx*4]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fsub dword [ebp + 0x30]
fsub dword [ebp + 0x10]
fld qword [ebp - 0x9c]
fmul st(1)
fsubr qword [ebp - 0xa4]
fadd dword [ebp + 0x2c]
fmul qword [0x612ca0]
call fcn.005e0b1c
fmul qword [ebp - 0x80]
mov dword [ebp + 0x18], eax
fadd dword [ebp + 0x30]
fadd st(1)
fmul qword [0x612ca0]
call fcn.005e0b1c
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x28], edx
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp edi, 0xffffffff
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], edx
jg 0x4fc2ce
test eax, eax
jl 0x4fc5ec
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 0x18]
shl eax, 0x10
sub eax, edx
sub eax, 0x27fff
cdq
idiv edi
test eax, eax
jl 0x4fc2b7
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x18]
mov eax, 0x7fff
sub eax, edx
cdq
idiv edi
cmp eax, dword [ebp + 0x28]
jge 0x4fc330
mov dword [ebp + 0x28], eax
jmp 0x4fc330
cmp edi, 1
jl 0x4fc30b
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [ebp + 0x1c], edx
dec edx
cmp eax, edx
jge 0x4fc5ec
mov edx, dword [ebp + 0x18]
mov eax, 0x10000
sub eax, edx
cdq
idiv edi
test eax, eax
jle 0x4fc2f9
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
shl eax, 0x10
sub eax, edx
sub eax, 0x17fff
jmp 0x4fc2c1
mov eax, dword [ebp + 0x18]
test eax, eax
jl 0x4fc5ec
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
mov eax, dword [ebp + 0x18]
shl edx, 0x10
sub edx, 0x10000
cmp eax, edx
jge 0x4fc5ec
mov eax, dword [ebp + 0x20]
cmp eax, 0xffffffff
jg 0x4fc637
mov eax, dword [ebp - 4]
test eax, eax
jl 0x4fc5ec
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv dword [ebp + 0x20]
cmp eax, dword [ebp - 8]
jle 0x4fc363
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ebp + 0x20]
neg eax
cmp eax, dword [ebp + 0x28]
jge 0x4fc374
mov dword [ebp + 0x28], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
mov edx, edi
imul edx, dword [ebp - 8]
add eax, edx
mov edx, dword [ebp + 0x20]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 8]
imul edx, eax
add ecx, edx
mov edx, dword [ebp - 0x50]
lea edx, [edx + eax*4]
mov dword [ebp - 0x44], edx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x8c], edx
mov edx, dword [ebp + 0x28]
cmp eax, edx
mov dword [ebp - 0x10], ecx
jg 0x4fc5ec
sub edx, eax
inc edx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0x18]
mov edi, ecx
sar edi, 0x10
imul edi, dword [ebp - 0x8c]
add edi, dword [ebp - 0x78]
mov eax, edx
sar eax, 0x10
add eax, edi
movzx edi, byte [eax]
mov edi, dword [esi + edi*4]
mov dword [ebp - 0x40], edi
movzx edi, byte [eax + 1]
mov edi, dword [esi + edi*4]
mov dword [ebp + 0x28], edi
mov edi, dword [ebx + 4]
add eax, edi
movzx edi, byte [eax]
mov edi, dword [esi + edi*4]
movzx eax, byte [eax + 1]
mov eax, dword [esi + eax*4]
mov esi, dword [ebp - 0x44]
mov esi, dword [esi]
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x60], esi
and edx, 0xfffe
inc edx
mov dword [ebp + 0x1c], edi
and ecx, 0xfffe
inc ecx
mov dword [ebp - 4], edx
mov edi, 0x10000
sub edi, edx
mov edx, edi
imul edi, ecx
mov esi, 0x10000
sub esi, ecx
imul ecx, dword [ebp - 4]
imul edx, esi
imul esi, dword [ebp - 4]
shr ebx, 0x18
shr esi, 0x10
shr edx, 0x10
imul edx, ebx
mov ebx, dword [ebp + 0x28]
shr ebx, 0x18
imul esi, ebx
mov ebx, dword [ebp - 0x18]
shr esi, 0x10
imul esi, ebx
sar esi, 8
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp + 0x1c]
shr esi, 0x18
shr edi, 0x10
imul edi, esi
shr ecx, 0x10
mov esi, eax
shr esi, 0x18
imul ecx, esi
mov esi, dword [ebp - 0x3c]
shr ecx, 0x10
imul ecx, ebx
shr edi, 0x10
imul edi, ebx
shr edx, 0x10
imul edx, dword [ebp - 0x18]
sar ecx, 8
sar edi, 8
mov ebx, 0x100
sub ebx, ecx
sub ebx, edi
sub ebx, esi
sar edx, 8
mov esi, eax
sub ebx, edx
and esi, 0xff00
mov dword [ebp - 4], ecx
imul esi, ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], ebx
and ecx, 0xff00
imul ecx, edi
add esi, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff00
imul ecx, dword [ebp - 0x3c]
add esi, ecx
mov ecx, dword [ebp - 0x40]
and ecx, 0xff00
imul ecx, edx
add esi, ecx
mov ecx, dword [ebp - 0x74]
shr esi, 8
imul esi, dword [ebp - 0x84]
shr esi, cl
mov ecx, dword [ebp - 0x68]
shl esi, cl
mov ecx, dword [ebp - 0x64]
mov edi, ecx
and edi, dword [ebp - 0x60]
imul edi, ebx
shr edi, 8
and edi, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff
imul ecx, dword [ebp - 0x1c]
add esi, edi
mov edi, eax
and edi, 0xff
imul edi, dword [ebp - 4]
add edi, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff
imul ecx, dword [ebp - 0x3c]
add edi, ecx
mov ecx, dword [ebp - 0x40]
and ecx, 0xff
imul ecx, edx
add edi, ecx
mov ecx, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x44]
shr edi, 8
imul edi, dword [ebp - 0x54]
shr edi, cl
mov ecx, dword [ebp - 0x34]
and eax, 0xff0000
imul eax, dword [ebp - 4]
shl edi, cl
mov ecx, dword [ebp - 0x48]
and ecx, dword [ebx]
mov ebx, dword [ebp - 0x48]
imul ecx, dword [ebp - 0x24]
shr ecx, 8
and ecx, ebx
add edi, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff0000
imul ecx, dword [ebp - 0x1c]
add eax, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff0000
imul ecx, dword [ebp - 0x3c]
add eax, ecx
mov ecx, dword [ebp - 0x40]
and ecx, 0xff0000
imul ecx, edx
mov edx, dword [ebp - 0x4c]
add eax, ecx
mov ecx, dword [ebp - 0x30]
shr eax, 8
imul eax, dword [ebp - 0x58]
shr eax, cl
mov ecx, dword [ebp - 0x38]
or esi, edi
mov edi, edx
shl eax, cl
mov ecx, dword [ebp - 0x44]
and edi, dword [ecx]
imul edi, dword [ebp - 0x24]
shr edi, 8
mov ebx, dword [ebp + 8]
and edi, edx
mov edx, dword [ebp + 0x20]
add eax, edi
mov edi, dword [ebp - 0x2c]
or esi, eax
mov eax, dword [ebp - 8]
mov dword [ecx], esi
mov esi, dword [ebp + 0x18]
add ecx, 4
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x10]
add esi, edi
add ecx, edx
dec eax
mov dword [ebp + 0x18], esi
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
jne 0x4fc3b6
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
inc edx
mov dword [ebp - 0x20], edx
fild dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [ebp - 0x50], eax
fcomp qword [ebp - 0xac]
inc ecx
mov dword [ebp - 0x14], ecx
fnstsw ax
test ah, 5
jnp 0x4fc232
fstp st(0)
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx]
call dword [eax + 0xb0]
mov ecx, dword [ebp - 0x5c]
call fcn.004d8320
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x2c
cmp eax, 1
jl 0x4fc679
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 4]
dec eax
cmp edx, eax
jge 0x4fc5ec
mov eax, 0x10000
sub eax, ecx
cdq
idiv dword [ebp + 0x20]
cmp eax, dword [ebp - 8]
jle 0x4fc65d
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x10]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv dword [ebp + 0x20]
jmp 0x4fc36c
test ecx, ecx
jl 0x4fc5ec
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
shl eax, 0x10
sub eax, 0x10000
cmp ecx, eax
jge 0x4fc5ec
jmp 0x4fc377
call fcn.00486c90
test esi, esi
jne 0x4fd1be
mov esi, eax
mov eax, dword [ebp + 0x14]
imul esi, dword [eax + 4]
add esi, dword [eax]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x74]
lea eax, [eax + esi*4]
fld qword [ebp + 0x24]
mov dword [ebp - 0x3c], eax
fcos
fstp qword [ebp - 0x9c]
fld qword [ebp + 0x24]
fsin
fstp qword [ebp - 0x80]
fld qword [ebp - 0x9c]
fmul qword [0x612ca0]
call fcn.005e0b1c
fld qword [ebp - 0x80]
fmul qword [0x612ca0]
mov esi, eax
mov dword [ebp - 0x48], esi
call fcn.005e0b1c
mov edi, dword [ebp - 0x5c]
mov edx, dword [edi]
mov ecx, edi
mov dword [ebp - 0x10], eax
call dword [edx + 0xac]
test al, al
je 0x4fdd3b
mov eax, dword [edi + 0x4c]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x88]
mov dword [ebp - 0x78], ecx
mov ecx, dword [eax + 0x8c]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x64], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x2c], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x38], edx
mov edx, dword [eax + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x40], ecx
mov ecx, 0x18
sub ecx, edx
mov edx, dword [eax + 0x1c]
mov eax, dword [edi + 0xb8]
mov dword [ebp - 0x6c], ecx
mov ecx, 0x10
sub ecx, edx
mov edx, dword [edi + 0xc0]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0xb4]
cmp eax, 0x10
mov dword [ebp - 0x74], ecx
mov ecx, dword [edi + 0xbc]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x68], edx
jne 0x4fcc9b
fld qword [ebp - 0xbc]
call fcn.005e0b1c
fld qword [ebp - 0xc4]
mov dword [ebp + 0x18], eax
call fcn.005e0b1c
fld qword [0x60d4b8]
mov ecx, dword [edi + 0x70]
fcomp qword [ebp - 0xac]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x18]
imul eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp + 0x28]
sar eax, 1
add eax, edx
mov edx, dword [edi + 0x84]
lea eax, [edx + eax*2]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, ecx
mov ecx, dword [edi]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 0x20], eax
mov eax, dword [edi + 0xc]
imul ecx, eax
mov dword [ebp + 0x1c], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [edi + 4]
imul ecx, dword [ebp + 0x1c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x60], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [edi + 8]
imul ecx, dword [ebp + 0x1c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x70], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x24], 0
fnstsw ax
test ah, 5
jp 0x4fdd28
fild dword [ebp + 0x28]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fld qword [ebp - 0x9c]
fmul st(1)
fstp qword [ebp - 0xa4]
fmul qword [ebp - 0x80]
fld qword [ebp - 0xb4]
fsub qword [0x611680]
call fcn.005e0b1c
mov ecx, dword [ebp + 0x20]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
lea edx, [ecx + ecx]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fsub dword [ebp + 0x30]
fsub dword [ebp + 0x10]
fld qword [ebp - 0x80]
fmul st(1)
fsubr qword [ebp - 0xa4]
fadd dword [ebp + 0x2c]
fmul qword [0x612ca0]
call fcn.005e0b1c
fmul qword [ebp - 0x9c]
mov edi, eax
fadd dword [ebp + 0x30]
fadd st(1)
fmul qword [0x612ca0]
call fcn.005e0b1c
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp + 0x18], edx
mov eax, edi
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp esi, 0xffffffff
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x28], edx
jg 0x4fc918
test eax, eax
jl 0x4fcc06
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, edi
sub eax, 0x27fff
cdq
idiv esi
test eax, eax
jl 0x4fc90f
mov dword [ebp + 0x20], eax
mov eax, 0x7fff
sub eax, edi
jmp 0x4fc94d
cmp esi, 1
jl 0x4fc95a
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [ebp + 0x1c], edx
dec edx
cmp eax, edx
jge 0x4fcc06
mov eax, 0x10000
sub eax, edi
cdq
idiv esi
test eax, eax
jle 0x4fc940
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x1c]
shl eax, 0x10
sub eax, edi
sub eax, 0x17fff
cdq
idiv esi
cmp eax, dword [ebp + 0x18]
jge 0x4fc979
mov dword [ebp + 0x18], eax
jmp 0x4fc979
test edi, edi
jl 0x4fcc06
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp edi, edx
jge 0x4fcc06
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jg 0x4fcc3b
mov eax, dword [ebp + 0x28]
test eax, eax
jl 0x4fcc06
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
mov esi, dword [ebp - 0x10]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv esi
cmp eax, dword [ebp + 0x20]
jle 0x4fc9ae
mov dword [ebp + 0x20], eax
mov eax, ecx
cdq
idiv esi
neg eax
cmp eax, dword [ebp + 0x18]
jge 0x4fc9bd
mov dword [ebp + 0x18], eax
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp + 0x20]
mov edx, eax
imul eax, dword [ebp - 0x10]
imul edx, esi
add edi, edx
mov edx, dword [ebp + 0x20]
add ecx, eax
mov eax, dword [ebp - 0x1c]
lea eax, [eax + edx*2]
mov edx, dword [ebx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x8c], edx
mov edx, dword [ebp + 0x20]
cmp edx, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], ecx
jg 0x4fcc06
mov esi, edx
sub eax, esi
inc eax
mov dword [ebp - 0x34], eax
mov eax, ecx
sar eax, 0x10
imul eax, dword [ebp - 0x8c]
mov edx, edi
sar edx, 0x10
add eax, edx
mov edx, dword [ebp - 0x3c]
lea eax, [edx + eax*4]
mov edx, dword [eax]
mov dword [ebp + 0x18], edx
mov edx, dword [eax + 4]
and ecx, 0xfffe
mov dword [ebp + 0x20], edx
mov edx, dword [ebx + 4]
lea eax, [eax + edx*4]
mov edx, dword [eax]
and edi, 0xfffe
inc edi
inc ecx
mov ebx, dword [ebp + 0x18]
mov dword [ebp + 0x1c], edx
mov dword [ebp - 0x84], edi
mov eax, dword [eax + 4]
mov esi, 0x10000
sub esi, ecx
mov edx, 0x10000
sub edx, edi
imul edi, esi
mov dword [ebp + 0x28], edx
imul edx, esi
mov esi, dword [ebp + 0x20]
shr esi, 0x18
shr ebx, 0x18
shr edi, 0x10
imul edi, esi
mov esi, ecx
imul ecx, dword [ebp - 0x84]
imul esi, dword [ebp + 0x28]
shr ecx, 0x10
shr edx, 0x10
imul edx, ebx
mov ebx, dword [ebp + 0x1c]
shr ebx, 0x18
shr esi, 0x10
imul esi, ebx
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [ebp - 0x14]
movzx ebx, word [ebx]
shr ecx, 0x10
mov dword [ebp + 0x28], ebx
mov dword [ebp - 4], ecx
mov ebx, eax
and ebx, 0xff0000
imul ebx, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff0000
shr esi, 0x10
imul ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 0x20]
and ecx, 0xff0000
shr edi, 0x10
imul ecx, edi
add ebx, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff0000
shr edx, 0x10
imul ecx, edx
add ebx, ecx
mov ecx, dword [ebp - 0x40]
shr ebx, cl
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x18], edi
mov edi, dword [ebp + 0x28]
imul ebx, dword [ebp - 0x60]
shr ebx, 8
and edi, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x58], esi
shr edi, cl
mov ecx, dword [ebp - 0x78]
add ebx, edi
xor edi, edi
mov di, word [ecx + ebx*4]
mov ecx, dword [ebp - 0x2c]
shl di, cl
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff
imul ecx, esi
mov ebx, eax
and ebx, 0xff
imul ebx, dword [ebp - 4]
add ebx, ecx
mov ecx, dword [ebp + 0x20]
and ecx, 0xff
imul ecx, dword [ebp - 0x18]
add ebx, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff
imul ecx, edx
add ebx, ecx
imul ebx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x74]
mov esi, dword [ebp + 0x28]
add ecx, 8
shr ebx, cl
and esi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x38]
shr esi, cl
mov ecx, dword [ebp - 0x64]
and eax, 0xff00
imul eax, dword [ebp - 4]
add ebx, esi
xor esi, esi
mov si, word [ecx + ebx*4]
mov ecx, dword [ebp - 0x38]
shl si, cl
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff00
imul ecx, dword [ebp - 0x58]
add eax, ecx
mov ecx, dword [ebp + 0x20]
and ecx, 0xff00
imul ecx, dword [ebp - 0x18]
add eax, ecx
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x50]
and ecx, 0xff00
imul ecx, edx
mov edx, dword [ebp + 0x28]
add eax, ecx
imul eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
add ecx, 8
shr eax, cl
mov ecx, dword [ebp - 0x4c]
and edx, ebx
shr edx, cl
or edi, esi
mov esi, dword [ebp - 0x48]
add eax, edx
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + eax*4]
mov edx, dword [ebp - 0x10]
shl ax, cl
mov ecx, dword [ebp - 0x30]
add ecx, edx
mov dword [ebp - 0x30], ecx
or edi, eax
mov eax, dword [ebp - 0x14]
mov word [eax], di
mov edi, dword [ebp - 0x28]
add eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x34]
add edi, esi
dec eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp + 8]
jne 0x4fca01
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x24], edx
fild dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x94]
fcomp qword [ebp - 0xac]
add eax, ecx
mov dword [ebp - 0x1c], eax
fnstsw ax
test ah, 5
jnp 0x4fc892
jmp 0x4fdd26
cmp eax, 1
jl 0x4fcc7b
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp + 0x28]
mov dword [ebp + 0x1c], eax
dec eax
cmp edx, eax
jge 0x4fcc06
mov esi, dword [ebp - 0x10]
mov eax, 0x10000
sub eax, ecx
cdq
idiv esi
cmp eax, dword [ebp + 0x20]
jle 0x4fcc66
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x1c]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv esi
jmp 0x4fc9b5
test ecx, ecx
jl 0x4fcc06
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0xc]
shl edx, 0x10
sub edx, 0x10000
cmp ecx, edx
jge 0x4fcc06
jmp 0x4fc9c0
cmp eax, 0x20
jne 0x4fdd28
fld qword [ebp - 0xbc]
call fcn.005e0b1c
fld qword [ebp - 0xc4]
mov edx, dword [ebp - 0x5c]
mov edi, dword [edx + 0x70]
mov dword [ebp + 0x18], eax
call fcn.005e0b1c
fld qword [0x60d4b8]
mov ecx, eax
fcomp qword [ebp - 0xac]
mov eax, dword [ebp + 0x18]
imul eax, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
mov dword [ebp + 0x28], ecx
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x84]
lea eax, [edx + eax*4]
mov dword [ebp - 0x1c], eax
mov eax, edi
mov edi, dword [ebp + 0x1c]
mov ecx, dword [edi]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp + 0x20], eax
mov eax, dword [edi + 0xc]
imul ecx, eax
mov dword [ebp + 0x1c], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [edi + 4]
imul ecx, dword [ebp + 0x1c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x60], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [edi + 8]
imul ecx, dword [ebp + 0x1c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x70], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x24], 0
fnstsw ax
test ah, 5
jp 0x4fdd28
fild dword [ebp + 0x28]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fld qword [ebp - 0x9c]
fmul st(1)
fstp qword [ebp - 0xa4]
fmul qword [ebp - 0x80]
fld qword [ebp - 0xb4]
fsub qword [0x611680]
call fcn.005e0b1c
mov ecx, dword [ebp + 0x20]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
lea edx, [ecx*4]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fsub dword [ebp + 0x30]
fsub dword [ebp + 0x10]
fld qword [ebp - 0x80]
fmul st(1)
fsubr qword [ebp - 0xa4]
fadd dword [ebp + 0x2c]
fmul qword [0x612ca0]
call fcn.005e0b1c
fmul qword [ebp - 0x9c]
mov edi, eax
fadd dword [ebp + 0x30]
fadd st(1)
fmul qword [0x612ca0]
call fcn.005e0b1c
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp + 0x18], edx
mov eax, edi
mov edx, ecx
sar edx, 0x10
sar eax, 0x10
cmp esi, 0xffffffff
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x28], edx
jg 0x4fce3c
test eax, eax
jl 0x4fd129
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
shl eax, 0x10
sub eax, edi
sub eax, 0x27fff
cdq
idiv esi
test eax, eax
jl 0x4fce33
mov dword [ebp + 0x20], eax
mov eax, 0x7fff
sub eax, edi
jmp 0x4fce71
cmp esi, 1
jl 0x4fce7e
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 8]
mov dword [ebp + 0x1c], edx
dec edx
cmp eax, edx
jge 0x4fd129
mov eax, 0x10000
sub eax, edi
cdq
idiv esi
test eax, eax
jle 0x4fce64
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x1c]
shl eax, 0x10
sub eax, edi
sub eax, 0x17fff
cdq
idiv esi
cmp eax, dword [ebp + 0x18]
jge 0x4fce9d
mov dword [ebp + 0x18], eax
jmp 0x4fce9d
test edi, edi
jl 0x4fd129
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
shl edx, 0x10
sub edx, 0x10000
cmp edi, edx
jge 0x4fd129
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jg 0x4fd15e
mov eax, dword [ebp + 0x28]
test eax, eax
jl 0x4fd129
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
mov esi, dword [ebp - 0x10]
shl eax, 0x10
sub eax, ecx
sub eax, 0x27fff
cdq
idiv esi
cmp eax, dword [ebp + 0x20]
jle 0x4fced2
mov dword [ebp + 0x20], eax
mov eax, ecx
cdq
idiv esi
neg eax
cmp eax, dword [ebp + 0x18]
jge 0x4fcee1
mov dword [ebp + 0x18], eax
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp + 0x20]
mov edx, eax
imul eax, dword [ebp - 0x10]
imul edx, esi
add edi, edx
mov edx, dword [ebp + 0x20]
add ecx, eax
mov eax, dword [ebp - 0x1c]
lea eax, [eax + edx*4]
mov edx, dword [ebx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x8c], edx
mov edx, dword [ebp + 0x20]
cmp edx, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], ecx
jg 0x4fd129
mov esi, edx
sub eax, esi
inc eax
mov dword [ebp - 0x34], eax
jmp 0x4fcf30
mov eax, ecx
sar eax, 0x10
imul eax, dword [ebp - 0x8c]
mov edx, edi
sar edx, 0x10
add eax, edx
mov edx, dword [ebp - 0x3c]
lea eax, [edx + eax*4]
mov edx, dword [eax]
mov dword [ebp + 0x18], edx
mov edx, dword [eax + 4]
and ecx, 0xfffe
mov dword [ebp + 0x20], edx
mov edx, dword [ebx + 4]
lea eax, [eax + edx*4]
mov edx, dword [eax]
and edi, 0xfffe
inc edi
inc ecx
mov ebx, dword [ebp + 0x18]
mov dword [ebp + 0x1c], edx
mov dword [ebp - 0x84], edi
mov eax, dword [eax + 4]
mov esi, 0x10000
sub esi, ecx
mov edx, 0x10000
sub edx, edi
imul edi, esi
mov dword [ebp + 0x28], edx
imul edx, esi
mov esi, dword [ebp + 0x20]
shr esi, 0x18
shr ebx, 0x18
shr edi, 0x10
imul edi, esi
mov esi, ecx
imul ecx, dword [ebp - 0x84]
imul esi, dword [ebp + 0x28]
shr ecx, 0x10
shr edx, 0x10
imul edx, ebx
mov ebx, dword [ebp + 0x1c]
shr ebx, 0x18
shr esi, 0x10
imul esi, ebx
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [ebp - 0x14]
mov ebx, dword [ebx]
shr ecx, 0x10
mov dword [ebp + 0x28], ebx
mov dword [ebp - 4], ecx
mov ebx, eax
and ebx, 0xff0000
imul ebx, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff0000
shr esi, 0x10
imul ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 0x20]
and ecx, 0xff0000
shr edi, 0x10
imul ecx, edi
add ebx, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff0000
shr edx, 0x10
imul ecx, edx
add ebx, ecx
mov ecx, dword [ebp - 0x40]
shr ebx, cl
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x18], edi
mov edi, dword [ebp + 0x28]
imul ebx, dword [ebp - 0x60]
shr ebx, 8
and edi, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x58], esi
shr edi, cl
mov ecx, dword [ebp - 0x78]
add ebx, edi
mov edi, dword [ecx + ebx*4]
mov ecx, dword [ebp - 0x2c]
shl edi, cl
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff
imul ecx, esi
mov ebx, eax
and ebx, 0xff
imul ebx, dword [ebp - 4]
add ebx, ecx
mov ecx, dword [ebp + 0x20]
and ecx, 0xff
imul ecx, dword [ebp - 0x18]
add ebx, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff
imul ecx, edx
add ebx, ecx
imul ebx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x74]
mov esi, dword [ebp + 0x28]
add ecx, 8
shr ebx, cl
and esi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x38]
shr esi, cl
mov ecx, dword [ebp - 0x64]
and eax, 0xff00
imul eax, dword [ebp - 4]
add ebx, esi
mov esi, dword [ecx + ebx*4]
mov ecx, dword [ebp - 0x38]
shl esi, cl
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff00
imul ecx, dword [ebp - 0x58]
add eax, ecx
mov ecx, dword [ebp + 0x20]
and ecx, 0xff00
imul ecx, dword [ebp - 0x18]
add eax, ecx
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x50]
and ecx, 0xff00
imul ecx, edx
mov edx, dword [ebp + 0x28]
add eax, ecx
imul eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
add ecx, 8
shr eax, cl
mov ecx, dword [ebp - 0x4c]
and edx, ebx
mov ebx, dword [ebp + 8]
shr edx, cl
or edi, esi
mov esi, dword [ebp - 0x48]
add eax, edx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x10]
shl eax, cl
mov ecx, dword [ebp - 0x30]
add ecx, edx
mov dword [ebp - 0x30], ecx
or edi, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], edi
mov edi, dword [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x34]
add edi, esi
dec eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x34], eax
jne 0x4fcf30
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x24], edx
fild dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x94]
fcomp qword [ebp - 0xac]
add eax, ecx
mov dword [ebp - 0x1c], eax
fnstsw ax
test ah, 5
jnp 0x4fcdb6
jmp 0x4fdd26
cmp eax, 1
jl 0x4fd19e
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp + 0x28]
mov dword [ebp + 0x1c], eax
dec eax
cmp edx, eax
jge 0x4fd129
mov esi, dword [ebp - 0x10]
mov eax, 0x10000
sub eax, ecx
cdq
idiv esi
cmp eax, dword [ebp + 0x20]
jle 0x4fd189
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x1c]
shl eax, 0x10
sub eax, ecx
sub eax, 0x17fff
cdq
idiv esi
jmp 0x4fced9
test ecx, ecx
jl 0x4fd129
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0xc]
shl edx, 0x10
sub edx, 0x10000
cmp ecx, edx
jge 0x4fd129
jmp 0x4fcee4
fld qword [ebp + 0x24]
mov ecx, dword [ebp + 0x14]
fcos
imul eax, dword [ecx + 4]
add eax, dword [edi + 0x2c]
add eax, dword [ecx]
mov dword [ebp - 0x3c], eax
fstp qword [ebp - 0x9c]
fld qword [ebp + 0x24]
fsin
fstp qword [ebp - 0x80]
fld qword [ebp - 0x9c]
fmul qword [0x612ca0]
call fcn.005e0b1c
fld qword [ebp - 0x80]
fmul qword [0x612ca0]
mov dword [ebp - 0x10], eax
call fcn.005e0b1c
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 8], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xac]
test al, al
je 0x4fdd3b
mov eax, dword [edi + 0x4c]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x88]
mov dword [ebp - 0x78], ecx
mov ecx, dword [eax + 0x8c]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x64], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x2c], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x38], edx
mov edx, dword [eax + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x40], ecx
mov ecx, 0x18
sub ecx, edx
mov edx, dword [eax + 0x1c]
mov eax, dword [edi + 0xb8]
mov dword [ebp - 0x6c], ecx
mov ecx, 0x10
sub ecx, edx
mov edx, dword [edi + 0xc0]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0xb4]
cmp eax, 0x10
mov dword [ebp - 0x74], ecx
mov ecx, dword [edi + 0xbc]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x68], edx
jne 0x4fd7e5
fld qword [ebp - 0xbc]
call fcn.005e0b1c
fld qword [ebp - 0xc4]
mov dword [ebp + 0x18], eax
call fcn.005e0b1c
fld qword [0x60d4b8]
mov ecx, dword [edi + 0x70]
fcomp qword [ebp - 0xac]
mov dword [ebp + 0x28], eax
mov eax, ecx
imul eax, dword [ebp + 0x18]
cdq
sub eax, edx
mov edx, dword [ebp + 0x28]
sar eax, 1
add eax, edx
mov edx, dword [edi + 0x84]
lea eax, [edx + eax*2]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, ecx
mov ecx, dword [edi]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 0x20], eax
mov eax, dword [edi + 0xc]
imul ecx, eax
mov dword [ebp + 0x1c], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [edi + 4]
imul ecx, dword [ebp + 0x1c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x54], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [edi + 8]
imul ecx, dword [ebp + 0x1c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x70], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x28], 0
fnstsw ax
test ah, 5
jp 0x4fdd28
fild dword [ebp + 0x28]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fld qword [ebp - 0x9c]
fmul st(1)
fstp qword [ebp - 0xa4]
fmul qword [ebp - 0x80]
fld qword [ebp - 0xb4]
fsub qword [0x611680]
call fcn.005e0b1c
mov ecx, dword [ebp + 0x20]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
lea edx, [ecx + ecx]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x1c], eax
lea esp, [esp]
fild dword [ebp - 0x1c]
fsub dword [ebp + 0x30]
fsub dword [ebp + 0x10]
fld qword [ebp - 0x80]
fmul st(1)
fsubr qword [ebp - 0xa4]
fadd dword [ebp + 0x2c]
fmul qword [0x612ca0]
call fcn.005e0b1c
fmul qword [ebp - 0x9c]
mov edi, eax
fadd dword [ebp + 0x30]
fadd st(1)
fmul qword [0x612ca0]
call fcn.005e0b1c
mov ecx, dword [ebp + 0xc]
mov edx, eax
mov dword [ebp + 0x28], ecx
mov ecx, edx
sar ecx, 0x10
mov eax, edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x10]
sar eax, 0x10
cmp ecx, 0xffffffff
mov dword [ebp + 0x20], edx
mov dword [ebp + 0x18], 0
jg 0x4fd43c
test eax, eax
jl 0x4fd74a
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
shl eax, 0x10
sub eax, edi
sub eax, 0x27fff
cdq
idiv ecx
test eax, eax
jl 0x4fd423
mov dword [ebp + 0x18], eax
mov eax, 0x7fff
sub eax, edi
cdq
idiv ecx
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x20]
cmp eax, ecx
jge 0x4fd4a5
mov dword [ebp + 0x28], eax
jmp 0x4fd4a5
cmp ecx, 1
jl 0x4fd486
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + 8]
mov dword [ebp + 0x1c], ecx
dec ecx
cmp eax, ecx
jge 0x4fd74a
mov ecx, dword [ebp - 0x10]
mov eax, 0x10000
sub eax, edi
cdq
idiv ecx
test eax, eax
jle 0x4fd467
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x1c]
shl eax, 0x10
sub eax, edi
sub eax, 0x17fff
cdq
idiv ecx
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x20]
cmp eax, ecx
jge 0x4fd4a5
mov dword [ebp + 0x28], eax
jmp 0x4fd4a5
test edi, edi
jl 0x4fd74a
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
shl ecx, 0x10
sub ecx, 0x10000
cmp edi, ecx
jge 0x4fd74a
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
jg 0x4fd77f
mov eax, dword [ebp - 4]
test eax, eax
jl 0x4fd74a
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 8]
shl eax, 0x10
sub eax, edx
sub eax, 0x27fff
cdq
idiv ecx
cmp eax, dword [ebp + 0x18]
jle 0x4fd4da
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x20]
cdq
idiv ecx
neg eax
cmp eax, dword [ebp + 0x28]
jge 0x4fd4ea
mov dword [ebp + 0x28], eax
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
imul eax, dword [ebp - 0x10]
add edi, eax
mov eax, dword [ebp + 0x18]
imul eax, ecx
mov ecx, dword [ebp - 0x24]
add edx, eax
mov eax, dword [ebp + 0x18]
lea ecx, [ecx + eax*2]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp + 0x28]
cmp eax, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp + 0x20], edx
jg 0x4fd74a
sub ecx, eax
inc ecx
mov dword [ebp - 0x34], ecx
lea ebx, [ebx]
mov ecx, edx
sar ecx, 0x10
imul ecx, dword [ebp - 0x8c]
add ecx, dword [ebp - 0x3c]
mov eax, edi
sar eax, 0x10
add eax, ecx
mov ecx, edx
movzx edx, byte [eax]
mov edx, dword [esi + edx*4]
mov dword [ebp + 0x28], edx
movzx edx, byte [eax + 1]
mov edx, dword [esi + edx*4]
mov dword [ebp + 0x18], edx
mov edx, dword [ebx + 4]
add eax, edx
movzx edx, byte [eax]
mov edx, dword [esi + edx*4]
movzx eax, byte [eax + 1]
mov eax, dword [esi + eax*4]
and ecx, 0xfffe
and edi, 0xfffe
inc edi
inc ecx
mov ebx, dword [ebp + 0x28]
mov dword [ebp + 0x1c], edx
mov dword [ebp - 0x60], edi
mov esi, 0x10000
sub esi, ecx
mov edx, 0x10000
sub edx, edi
imul edi, esi
mov dword [ebp - 0x84], edx
imul edx, esi
mov esi, dword [ebp + 0x18]
shr esi, 0x18
shr ebx, 0x18
shr edi, 0x10
imul edi, esi
mov esi, ecx
imul ecx, dword [ebp - 0x60]
imul esi, dword [ebp - 0x84]
shr edx, 0x10
imul edx, ebx
mov ebx, dword [ebp + 0x1c]
shr ebx, 0x18
shr ecx, 0x10
shr esi, 0x10
imul esi, ebx
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [ebp - 0x20]
movzx ebx, word [ebx]
shr ecx, 0x10
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov ebx, eax
and ebx, 0xff0000
imul ebx, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff0000
shr esi, 0x10
imul ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff0000
shr edi, 0x10
imul ecx, edi
add ebx, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff0000
shr edx, 0x10
imul ecx, edx
add ebx, ecx
mov ecx, dword [ebp - 0x40]
shr ebx, cl
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x84], esi
imul ebx, dword [ebp - 0x54]
shr ebx, 8
mov ecx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x14]
and edi, ecx
mov ecx, dword [ebp - 0x2c]
shr edi, cl
mov ecx, dword [ebp - 0x78]
add ebx, edi
xor edi, edi
mov di, word [ecx + ebx*4]
mov ecx, dword [ebp - 0x2c]
shl di, cl
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff
imul ecx, esi
mov ebx, eax
and ebx, 0xff
imul ebx, dword [ebp - 4]
add ebx, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff
imul ecx, dword [ebp - 0x18]
add ebx, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff
imul ecx, edx
add ebx, ecx
imul ebx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x14]
add ecx, 8
shr ebx, cl
and esi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x38]
shr esi, cl
mov ecx, dword [ebp - 0x64]
and eax, 0xff00
imul eax, dword [ebp - 4]
add ebx, esi
xor esi, esi
mov si, word [ecx + ebx*4]
mov ecx, dword [ebp - 0x38]
shl si, cl
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff00
imul ecx, dword [ebp - 0x84]
add eax, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff00
imul ecx, dword [ebp - 0x18]
add eax, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff00
imul ecx, edx
mov edx, dword [ebp - 0x14]
add eax, ecx
imul eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
add ecx, 8
shr eax, cl
and edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
shr edx, cl
or edi, esi
add eax, edx
mov edx, dword [ebp - 0x48]
movzx eax, word [edx + eax*4]
mov edx, dword [ebp - 0x10]
shl ax, cl
mov ecx, dword [ebp - 8]
or edi, eax
mov eax, dword [ebp - 0x20]
mov word [eax], di
mov edi, dword [ebp - 0x30]
add edi, edx
mov edx, dword [ebp + 0x20]
add eax, 2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], edi
add edx, ecx
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
dec eax
mov dword [ebp + 0x20], edx
mov dword [ebp - 0x34], eax
jne 0x4fd530
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
inc edx
mov dword [ebp - 0x28], edx
fild dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x94]
fcomp qword [ebp - 0xac]
add eax, ecx
mov dword [ebp - 0x24], eax
fnstsw ax
test ah, 5
jnp 0x4fd3a0
jmp 0x4fdd26
cmp eax, 1
jl 0x4fd7c2
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ebp + 0x1c], eax
dec eax
cmp ecx, eax
jge 0x4fd74a
mov ecx, dword [ebp - 8]
mov eax, 0x10000
sub eax, edx
cdq
idiv ecx
cmp eax, dword [ebp + 0x18]
jle 0x4fd7aa
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
shl eax, 0x10
sub eax, edx
sub eax, 0x17fff
cdq
idiv ecx
jmp 0x4fd4e2
test edx, edx
jl 0x4fd74a
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0xc]
shl ecx, 0x10
sub ecx, 0x10000
cmp edx, ecx
jge 0x4fd74a
mov ecx, dword [ebp - 8]
jmp 0x4fd4ed
cmp eax, 0x20
jne 0x4fdd28
fld qword [ebp - 0xbc]
call fcn.005e0b1c
fld qword [ebp - 0xc4]
mov edx, dword [ebp - 0x5c]
mov edi, dword [edx + 0x70]
mov dword [ebp + 0x18], eax
call fcn.005e0b1c
fld qword [0x60d4b8]
mov ecx, eax
fcomp qword [ebp - 0xac]
mov eax, edi
imul eax, dword [ebp + 0x18]
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
mov dword [ebp + 0x28], ecx
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x84]
lea eax, [edx + eax*4]
mov dword [ebp - 0x24], eax
mov eax, edi
mov edi, dword [ebp + 0x1c]
mov ecx, dword [edi]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp + 0x20], eax
mov eax, dword [edi + 0xc]
imul ecx, eax
mov dword [ebp + 0x1c], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [edi + 4]
imul ecx, dword [ebp + 0x1c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x84], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [edi + 8]
imul ecx, dword [ebp + 0x1c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x58], eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x28], 0
fnstsw ax
test ah, 5
jp 0x4fdd28
fild dword [ebp + 0x28]
fsub dword [ebp + 0x2c]
fsub dword [ebp + 0xc]
fld qword [ebp - 0x9c]
fmul st(1)
fstp qword [ebp - 0xa4]
fmul qword [ebp - 0x80]
fld qword [ebp - 0xb4]
fsub qword [0x611680]
call fcn.005e0b1c
mov ecx, dword [ebp + 0x20]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
lea edx, [ecx*4]
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fsub dword [ebp + 0x30]
fsub dword [ebp + 0x10]
fld qword [ebp - 0x80]
fmul st(1)
fsubr qword [ebp - 0xa4]
fadd dword [ebp + 0x2c]
fmul qword [0x612ca0]
call fcn.005e0b1c
fmul qword [ebp - 0x9c]
mov edi, eax
fadd dword [ebp + 0x30]
fadd st(1)
fmul qword [0x612ca0]
call fcn.005e0b1c
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp + 0x20], ecx
sar ecx, 0x10
mov eax, edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x10]
sar eax, 0x10
cmp ecx, 0xffffffff
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x28], edx
jg 0x4fd98d
test eax, eax
jl 0x4fdcf9
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
shl eax, 0x10
sub eax, edi
sub eax, 0x27fff
cdq
idiv ecx
test eax, eax
jl 0x4fd984
mov dword [ebp + 0x18], eax
mov eax, 0x7fff
sub eax, edi
jmp 0x4fd9c6
cmp dword [ebp - 0x10], 1
jl 0x4fd9d7
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx + 8]
mov dword [ebp + 0x1c], ecx
dec ecx
cmp eax, ecx
jge 0x4fdcf9
mov ecx, dword [ebp - 0x10]
mov eax, 0x10000
sub eax, edi
cdq
idiv ecx
test eax, eax
jle 0x4fd9b9
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x1c]
shl eax, 0x10
sub eax, edi
sub eax, 0x17fff
cdq
idiv ecx
mov edx, dword [ebp + 0x28]
cmp eax, edx
jge 0x4fd9f6
mov edx, eax
mov dword [ebp + 0x28], edx
jmp 0x4fd9f6
test edi, edi
jl 0x4fdcf9
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
shl ecx, 0x10
sub ecx, 0x10000
cmp edi, ecx
jge 0x4fdcf9
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
jg 0x4fda3d
mov eax, dword [ebp - 4]
test eax, eax
jl 0x4fdcf9
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp - 8]
shl eax, 0x10
sub eax, edx
sub eax, 0x27fff
cdq
idiv ecx
cmp eax, dword [ebp + 0x18]
jle 0x4fda2a
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x20]
cdq
idiv ecx
mov edx, dword [ebp + 0x28]
neg eax
cmp eax, edx
jge 0x4fdab2
mov edx, eax
jmp 0x4fdab2
cmp eax, 1
jl 0x4fda8d
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ebp + 0x1c], eax
dec eax
cmp ecx, eax
jge 0x4fdcf9
mov ecx, dword [ebp + 0x20]
mov eax, 0x10000
sub eax, ecx
mov ecx, dword [ebp - 8]
cdq
idiv ecx
cmp eax, dword [ebp + 0x18]
jle 0x4fda6f
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
shl eax, 0x10
sub eax, edx
sub eax, 0x17fff
cdq
idiv ecx
mov edx, dword [ebp + 0x28]
cmp eax, edx
jge 0x4fdab2
mov edx, eax
jmp 0x4fdab2
mov eax, dword [ebp + 0x20]
test eax, eax
jl 0x4fdcf9
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + 0xc]
shl ecx, 0x10
sub ecx, 0x10000
cmp eax, ecx
jge 0x4fdcf9
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0x18]
imul eax, dword [ebp - 0x10]
add edi, eax
mov eax, dword [ebp + 0x18]
imul eax, ecx
mov ecx, dword [ebp + 0x20]
add ecx, eax
mov eax, dword [ebp + 0x18]
cmp eax, edx
mov dword [ebp + 0x20], ecx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x8c], ecx
jg 0x4fdcf9
sub edx, eax
mov eax, dword [ebp + 0x20]
inc edx
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x3c]
mov edx, eax
sar edx, 0x10
imul edx, dword [ebp - 0x8c]
add edx, ecx
mov eax, edi
sar eax, 0x10
add eax, edx
mov edx, edi
movzx edi, byte [eax]
mov edi, dword [esi + edi*4]
mov ecx, dword [ebp + 0x20]
mov dword [ebp + 0x28], edi
movzx edi, byte [eax + 1]
mov edi, dword [esi + edi*4]
mov dword [ebp + 0x18], edi
mov edi, dword [ebx + 4]
add eax, edi
movzx edi, byte [eax]
mov edi, dword [esi + edi*4]
movzx eax, byte [eax + 1]
mov eax, dword [esi + eax*4]
mov ebx, dword [ebp + 0x28]
and ecx, 0xfffe
and edx, 0xfffe
inc edx
inc ecx
mov dword [ebp + 0x1c], edi
mov dword [ebp - 4], edx
mov edi, 0x10000
sub edi, edx
mov edx, edi
imul edi, ecx
shr ebx, 0x18
mov esi, 0x10000
sub esi, ecx
imul ecx, dword [ebp - 4]
imul edx, esi
imul esi, dword [ebp - 4]
shr edx, 0x10
imul edx, ebx
mov ebx, dword [ebp + 0x18]
shr ebx, 0x18
shr esi, 0x10
imul esi, ebx
mov ebx, dword [ebp + 0x1c]
shr ebx, 0x18
shr ecx, 0x10
shr edi, 0x10
imul edi, ebx
mov ebx, eax
shr ebx, 0x18
imul ecx, ebx
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx]
shr ecx, 0x10
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov ebx, eax
and ebx, 0xff0000
imul ebx, ecx
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff0000
shr edi, 0x10
imul ecx, edi
add ebx, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff0000
shr esi, 0x10
imul ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff0000
shr edx, 0x10
imul ecx, edx
add ebx, ecx
mov ecx, dword [ebp - 0x40]
shr ebx, cl
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x54], edi
imul ebx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x14]
and esi, ecx
mov ecx, dword [ebp - 0x2c]
shr esi, cl
mov ecx, dword [ebp - 0x78]
shr ebx, 8
add ebx, esi
mov esi, dword [ecx + ebx*4]
mov ecx, dword [ebp - 0x2c]
shl esi, cl
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff
imul ecx, edi
mov ebx, eax
and ebx, 0xff
imul ebx, dword [ebp - 4]
add ebx, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff
imul ecx, dword [ebp - 0x18]
add ebx, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff
imul ecx, edx
add ebx, ecx
imul ebx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x74]
mov edi, dword [ebp - 0x14]
add ecx, 8
shr ebx, cl
and edi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x38]
shr edi, cl
mov ecx, dword [ebp - 0x64]
and eax, 0xff00
imul eax, dword [ebp - 4]
add ebx, edi
mov edi, dword [ecx + ebx*4]
mov ecx, dword [ebp - 0x38]
shl edi, cl
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff00
imul ecx, dword [ebp - 0x54]
add eax, ecx
mov ecx, dword [ebp + 0x18]
and ecx, 0xff00
imul ecx, dword [ebp - 0x18]
add eax, ecx
mov ecx, dword [ebp + 0x28]
and ecx, 0xff00
imul ecx, edx
mov edx, dword [ebp - 0x14]
add eax, ecx
imul eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x6c]
add ecx, 8
shr eax, cl
and edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
shr edx, cl
or esi, edi
mov edi, dword [ebp - 0x30]
add eax, edx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 8]
shl eax, cl
or esi, eax
mov eax, dword [ebp - 0x20]
mov dword [eax], esi
mov esi, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x20]
add edi, esi
add eax, edx
mov dword [ebp - 0x30], edi
mov dword [ebp + 0x20], eax
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
dec ecx
mov dword [ebp - 0x34], ecx
jne 0x4fdaf2
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
inc edx
mov dword [ebp - 0x28], edx
fild dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x70]
fcomp qword [ebp - 0xac]
add eax, ecx
mov dword [ebp - 0x24], eax
fnstsw ax
test ah, 5
jnp 0x4fd900
fstp st(0)
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
call dword [edx + 0xb0]
mov ecx, dword [ebp - 0x5c]
call fcn.004d8320
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x2c
mov eax, dword [ebp + 0x30]
fld qword [ebp + 0x24]
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
sub esp, 8
fstp qword [esp]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004e71e0
pop esi
mov esp, ebp
pop ebp
ret 0x2c