Function at 0x6476d8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc68
mov esi, eax
mov eax, dword [edx + 0x34]
cmp eax, dword [esi + 0x34]
jne 0x649395
mov eax, dword [edx + 0x38]
cmp eax, dword [esi + 0x38]
jne 0x649395
cmp byte [esi + 0x46], 2
je 0x649395
xor eax, eax
mov dword [esp + 0x380], eax
xor eax, eax
mov dword [esp + 0x358], eax
mov dword [esp + 0x35c], eax
xor eax, eax
mov dword [esp + 0x360], eax
mov dword [esp], edx
mov eax, dword [esp]
mov al, byte [eax + 0x44]
test al, al
je case.0x647745.0
and eax, 0x7f
cmp eax, 8
ja case.0x647745.0
jmp dword [eax*4 + 0x64774c]
xor eax, eax
mov al, byte [esi + 0x44]
cmp eax, 8
ja case.0x647745.0
jmp dword [eax*4 + 0x647785]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov byte [eax + 2], 0
mov eax, dword [esp + 0x28]
mov byte [eax], 0
mov eax, dword [esp + 0x28]
mov byte [eax + 1], 0
mov eax, dword [esi + 0x10]
add eax, 3
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov byte [eax + 2], 0xff
mov eax, dword [esp + 0x2c]
mov byte [eax], 0xff
mov eax, dword [esp + 0x2c]
mov byte [eax + 1], 0xff
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x64783e
inc ebx
xor ebp, ebp
mov edx, ebp
mov eax, dword [esp + 8]
call fcn.005f5294
test eax, eax
setne al
mov byte [edi], al
inc edi
inc ebp
dec ebx
jne 0x647827
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x647801
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x6478aa
inc ebx
xor ebp, ebp
mov edx, ebp
mov eax, dword [esp + 8]
call fcn.005f5294
test eax, eax
setne al
mov edx, eax
shl eax, 8
sub eax, edx
mov byte [edi], al
inc edi
inc ebp
dec ebx
jne 0x64788c
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x647866
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x64791c
inc ebx
xor ebp, ebp
mov edx, ebp
mov eax, dword [esp + 8]
call fcn.005f5294
test eax, eax
setne al
and eax, 0x7f
mov edx, eax
shl eax, 0x10
sub eax, edx
mov word [edi], ax
add edi, 2
inc ebp
dec ebx
jne 0x6478f8
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x6478d2
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x647991
inc ebx
xor ebp, ebp
mov edx, ebp
mov eax, dword [esp + 8]
call fcn.005f5294
test eax, eax
setne al
and eax, 0x7f
mov edx, eax
shl eax, 8
sub eax, edx
mov byte [edi], al
inc edi
mov byte [edi], al
inc edi
mov byte [edi], al
inc edi
inc ebp
dec ebx
jne 0x64796a
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x647944
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x647a0a
inc ebx
xor ebp, ebp
mov edx, ebp
mov eax, dword [esp + 8]
call fcn.005f5294
test eax, eax
setne al
movsx eax, al
mov dword [esp + 0x388], eax
fild dword [esp + 0x388]
fstp dword [edi]
wait
add edi, 4
inc ebp
dec ebx
jne 0x6479df
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x6479b9
jmp case.0x647745.0
mov dl, 5
mov eax, dword [esp]
call fcn.006493d4
mov edx, dword [esp]
mov eax, esi
call fcn.006476d8
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x647aa1
inc ebx
xor ebp, ebp
mov edx, ebp
mov eax, dword [esp + 8]
call fcn.005f5294
test eax, eax
setne al
and eax, 0x7f
mov edx, eax
shl eax, 0x10
sub eax, edx
mov word [edi], ax
add edi, 2
mov word [edi], ax
add edi, 2
mov word [edi], ax
add edi, 2
inc ebp
dec ebx
jne 0x647a71
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x647a4b
jmp case.0x647745.0
xor eax, eax
mov al, byte [esi + 0x44]
cmp eax, 8
ja case.0x647745.0
jmp dword [eax*4 + 0x647ac5]
mov al, byte [esi + 0x58]
sub al, 1
jb 0x647afb
je 0x647be0
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x647bcd
inc ebx
xor ebp, ebp
mov eax, dword [esp + 8]
movzx eax, byte [eax]
lea eax, [eax + eax*2]
mov edx, dword [esp]
mov edx, dword [edx + 0x10]
lea eax, [edx + eax]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 2]
mov edx, dword [0x8aa290]
imul dword [edx]
mov edx, dword [esp + 0x34]
movzx edx, byte [edx + 1]
mov ecx, dword [0x8aa084]
imul edx, dword [ecx]
add eax, edx
mov edx, dword [esp + 0x34]
movzx edx, byte [edx]
mov ecx, dword [0x8a9590]
imul edx, dword [ecx]
add eax, edx
mov ecx, 0x64
cdq
idiv ecx
shr eax, 2
mov edx, ebp
and edx, 7
shl edx, 2
mov ecx, dword [0x8a9be4]
lea edx, [ecx + edx*8]
push edx
mov edx, dword [esp + 8]
and edx, 7
pop ecx
cmp eax, dword [ecx + edx*4]
setg cl
and ecx, 0x7f
mov edx, ebp
mov eax, edi
call fcn.005f52b0
inc dword [esp + 8]
inc ebp
dec ebx
jne 0x647b3e
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x647b14
jmp case.0x647745.0
lea eax, [esp + 0x358]
push eax
or ecx, 0xffffffff
mov edx, esi
mov eax, dword [esp + 4]
call fcn.00603c28
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x647c8a
inc ebx
mov eax, dword [esp + 8]
movzx eax, byte [eax]
lea eax, [eax + eax*2]
mov edx, dword [esp]
mov edx, dword [edx + 0x10]
lea ecx, [edx + eax]
xor eax, eax
mov al, byte [ecx + 2]
mov edx, dword [0x8aa290]
imul dword [edx]
xor edx, edx
mov dl, byte [ecx + 1]
mov ebp, dword [0x8aa084]
imul edx, dword [ebp]
add eax, edx
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [0x8a9590]
imul edx, dword [ecx]
add eax, edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [edi], al
inc edi
inc dword [esp + 8]
dec ebx
jne 0x647c38
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x647c14
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x647d35
inc ebx
mov eax, dword [esp + 8]
movzx eax, byte [eax]
lea eax, [eax + eax*2]
mov edx, dword [esp]
mov edx, dword [edx + 0x10]
lea ecx, [edx + eax]
xor eax, eax
mov al, byte [ecx + 2]
mov edx, eax
shl eax, 8
add eax, edx
imul eax, eax, 0xd4
xor edx, edx
mov dl, byte [ecx + 1]
mov ebp, edx
shl edx, 8
add edx, ebp
imul edx, edx, 0x2c9
add eax, edx
xor edx, edx
mov dl, byte [ecx]
mov ecx, edx
shl edx, 8
add edx, ecx
imul edx, edx, 0x4b
add eax, edx
mov ecx, 0x3e8
xor edx, edx
div ecx
mov word [edi], ax
add edi, 2
inc dword [esp + 8]
dec ebx
jne 0x647cd6
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x647cb2
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x647db0
inc ebx
mov eax, dword [esp + 8]
movzx eax, byte [eax]
lea eax, [eax + eax*2]
mov edx, dword [esp]
mov edx, dword [edx + 0x10]
lea eax, [edx + eax]
mov dl, byte [eax]
mov byte [edi], dl
inc edi
mov dl, byte [eax + 1]
mov byte [edi], dl
inc edi
mov al, byte [eax + 2]
mov byte [edi], al
inc edi
inc dword [esp + 8]
dec ebx
jne 0x647d85
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x647d61
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x647e75
inc ebx
mov eax, dword [esp + 8]
movzx eax, byte [eax]
lea eax, [eax + eax*2]
mov edx, dword [esp]
mov edx, dword [edx + 0x10]
lea eax, [edx + eax]
xor edx, edx
mov dl, byte [eax + 2]
mov dword [esp + 0x388], edx
fild dword [esp + 0x388]
fld xword [0x6493a0]
fmulp st(1)
xor edx, edx
mov dl, byte [eax + 1]
mov dword [esp + 0x38c], edx
fild dword [esp + 0x38c]
fld xword [0x6493ac]
fmulp st(1)
faddp st(1)
movzx eax, byte [eax]
mov dword [esp + 0x390], eax
fild dword [esp + 0x390]
fld xword [0x6493b8]
fmulp st(1)
faddp st(1)
fdiv dword [0x6493c4]
fstp dword [edi]
wait
add edi, 4
inc dword [esp + 8]
dec ebx
jne 0x647dfc
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x647dd8
jmp case.0x647745.0
mov dl, 5
mov eax, dword [esp]
call fcn.006493d4
mov edx, dword [esp]
mov eax, esi
call fcn.006476d8
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x647f2c
inc ebx
mov eax, dword [esp + 8]
movzx eax, byte [eax]
lea eax, [eax + eax*2]
mov edx, dword [esp]
mov edx, dword [edx + 0x10]
lea eax, [edx + eax]
xor edx, edx
mov dl, byte [eax + 2]
mov ecx, edx
shl edx, 8
add edx, ecx
mov word [edi], dx
add edi, 2
xor edx, edx
mov dl, byte [eax + 1]
mov ecx, edx
shl edx, 8
add edx, ecx
mov word [edi], dx
add edi, 2
movzx eax, byte [eax]
mov edx, eax
shl eax, 8
add eax, edx
mov word [edi], ax
add edi, 2
inc dword [esp + 8]
dec ebx
jne 0x647ede
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x647eba
jmp case.0x647745.0
xor eax, eax
mov al, byte [esi + 0x44]
cmp eax, 8
ja case.0x647745.0
jmp dword [eax*4 + 0x647f50]
mov al, byte [esi + 0x58]
sub al, 1
jb 0x647f86
je 0x648012
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x648003
inc ebx
xor ebp, ebp
mov eax, ebp
and eax, 7
shl eax, 2
mov edx, dword [0x8a9be4]
lea eax, [edx + eax*8]
mov edx, dword [esp + 4]
and edx, 7
mov eax, dword [eax + edx*4]
mov edx, dword [esp + 8]
movzx edx, byte [edx]
shr edx, 2
cmp eax, edx
setl cl
and ecx, 0x7f
mov edx, ebp
mov eax, edi
call fcn.005f52b0
inc dword [esp + 8]
inc ebp
dec ebx
jne 0x647fc5
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x647f9f
jmp case.0x647745.0
lea eax, [esp + 0x358]
push eax
or ecx, 0xffffffff
mov edx, esi
mov eax, dword [esp + 4]
call fcn.00603c28
jmp case.0x647745.0
xor eax, eax
lea edx, [eax + eax*2]
mov ecx, dword [esi + 0x10]
lea edx, [ecx + edx]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x38]
mov byte [edx + 2], al
mov edx, dword [esp + 0x38]
mov byte [edx + 1], al
mov edx, dword [esp + 0x38]
mov byte [edx], al
inc eax
cmp eax, 0x100
jne 0x64802f
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ecx, dword [esi + 0x40]
mov edx, dword [esp + 8]
mov eax, edi
call fcn.0040873c
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648071
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x648101
inc ebx
mov eax, dword [esp + 8]
movzx eax, byte [eax]
mov edx, eax
shl eax, 8
add eax, edx
mov word [edi], ax
inc dword [esp + 8]
add edi, 2
dec ebx
jne 0x6480e6
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x6480c2
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x64816f
inc ebx
mov eax, dword [esp + 8]
mov al, byte [eax]
mov byte [edi], al
inc edi
mov eax, dword [esp + 8]
mov al, byte [eax]
mov byte [edi], al
inc edi
mov eax, dword [esp + 8]
mov al, byte [eax]
mov byte [edi], al
inc edi
inc dword [esp + 8]
dec ebx
jne 0x64814d
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648129
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x6481e3
inc ebx
mov eax, dword [esp + 8]
movzx eax, byte [eax]
mov dword [esp + 0x388], eax
fild dword [esp + 0x388]
fdiv dword [0x6493c4]
fstp dword [edi]
wait
inc dword [esp + 8]
add edi, 4
dec ebx
jne 0x6481bb
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648197
jmp case.0x647745.0
mov dl, 5
mov eax, dword [esp]
call fcn.006493d4
mov edx, dword [esp]
mov eax, esi
call fcn.006476d8
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x64828b
inc ebx
mov eax, dword [esp + 8]
movzx eax, byte [eax]
mov edx, eax
shl eax, 8
add eax, edx
mov word [edi], ax
add edi, 2
mov eax, dword [esp + 8]
movzx eax, byte [eax]
mov edx, eax
shl eax, 8
add eax, edx
mov word [edi], ax
add edi, 2
mov eax, dword [esp + 8]
movzx eax, byte [eax]
mov edx, eax
shl eax, 8
add eax, edx
mov word [edi], ax
add edi, 2
inc dword [esp + 8]
dec ebx
jne 0x648248
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648224
jmp case.0x647745.0
xor eax, eax
mov al, byte [esi + 0x44]
cmp eax, 8
ja case.0x647745.0
jmp dword [eax*4 + 0x6482af]
mov al, byte [esi + 0x58]
sub al, 1
jb 0x6482e5
je 0x648372
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x648363
inc ebx
xor ebp, ebp
mov eax, ebp
and eax, 7
shl eax, 2
mov edx, dword [0x8a9be4]
lea eax, [edx + eax*8]
mov edx, dword [esp + 4]
and edx, 7
mov eax, dword [eax + edx*4]
mov edx, dword [esp + 0xc]
movzx edx, word [edx]
shr edx, 0xa
cmp eax, edx
setl cl
and ecx, 0x7f
mov edx, ebp
mov eax, edi
call fcn.005f52b0
add dword [esp + 0xc], 2
inc ebp
dec ebx
jne 0x648324
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x6482fe
jmp case.0x647745.0
lea eax, [esp + 0x358]
push eax
or ecx, 0xffffffff
mov edx, esi
mov eax, dword [esp + 4]
call fcn.00603c28
jmp case.0x647745.0
xor eax, eax
lea edx, [eax + eax*2]
mov ecx, dword [esi + 0x10]
lea edx, [ecx + edx]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x3c]
mov byte [edx + 2], al
mov edx, dword [esp + 0x3c]
mov byte [edx + 1], al
mov edx, dword [esp + 0x3c]
mov byte [edx], al
inc eax
cmp eax, 0x100
jne 0x64838f
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x64840a
inc ebx
mov eax, dword [esp + 0xc]
movzx eax, word [eax]
shr eax, 8
mov byte [edi], al
inc edi
add dword [esp + 0xc], 2
dec ebx
jne 0x6483f5
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x6483d1
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x64846b
inc ebx
mov eax, dword [esp + 0xc]
movzx eax, word [eax]
shr eax, 8
mov byte [edi], al
inc edi
add dword [esp + 0xc], 2
dec ebx
jne 0x648456
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648432
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x6484e6
inc ebx
mov eax, dword [esp + 0xc]
movzx eax, word [eax]
shr eax, 8
mov byte [edi], al
inc edi
mov eax, dword [esp + 0xc]
movzx eax, word [eax]
shr eax, 8
mov byte [edi], al
inc edi
mov eax, dword [esp + 0xc]
movzx eax, word [eax]
shr eax, 8
mov byte [edi], al
inc edi
add dword [esp + 0xc], 2
dec ebx
jne 0x6484b7
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648493
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x64855b
inc ebx
mov eax, dword [esp + 0xc]
movzx eax, word [eax]
mov dword [esp + 0x388], eax
fild dword [esp + 0x388]
fdiv dword [0x6493c8]
fstp dword [edi]
wait
add edi, 4
add dword [esp + 0xc], 2
dec ebx
jne 0x648532
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x64850e
jmp case.0x647745.0
mov dl, 5
mov eax, dword [esp]
call fcn.006493d4
mov edx, dword [esp]
mov eax, esi
call fcn.006476d8
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x6485ef
inc ebx
mov eax, dword [esp + 0xc]
mov ax, word [eax]
mov word [edi], ax
add edi, 2
mov eax, dword [esp + 0xc]
mov ax, word [eax]
mov word [edi], ax
add edi, 2
mov eax, dword [esp + 0xc]
mov ax, word [eax]
mov word [edi], ax
add edi, 2
add dword [esp + 0xc], 2
dec ebx
jne 0x6485c0
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x64859c
jmp case.0x647745.0
xor eax, eax
mov al, byte [esi + 0x44]
cmp eax, 8
ja case.0x647745.0
jmp dword [eax*4 + 0x648613]
mov al, byte [esi + 0x58]
sub al, 1
jb 0x648649
je 0x64871c
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x648709
inc ebx
xor ebp, ebp
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
movzx eax, byte [eax + 2]
mov edx, dword [0x8aa290]
imul dword [edx]
mov edx, dword [esp + 0x40]
movzx edx, byte [edx + 1]
mov ecx, dword [0x8aa084]
imul edx, dword [ecx]
add eax, edx
mov edx, dword [esp + 0x40]
movzx edx, byte [edx]
mov ecx, dword [0x8a9590]
imul edx, dword [ecx]
add eax, edx
mov ecx, 0x64
cdq
idiv ecx
shr eax, 2
mov edx, ebp
and edx, 7
shl edx, 2
mov ecx, dword [0x8a9be4]
lea edx, [ecx + edx*8]
push edx
mov edx, dword [esp + 8]
and edx, 7
pop ecx
cmp eax, dword [ecx + edx*4]
setg cl
and ecx, 0x7f
mov edx, ebp
mov eax, edi
call fcn.005f52b0
add dword [esp + 0x10], 3
inc ebp
dec ebx
jne 0x64868c
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648662
jmp case.0x647745.0
lea eax, [esp + 0x358]
push eax
or ecx, 0xffffffff
mov edx, esi
mov eax, dword [esp + 4]
call fcn.00603c28
jmp case.0x647745.0
lea eax, [esp + 0x54]
push eax
push 0xff
mov eax, dword [esi + 0x5c]
push eax
push 0xffffffffffffffff
push 0
mov ecx, dword [esp + 0x14]
mov dl, 1
mov eax, dword [0x5e95fc]
call fcn.005ea158
mov dword [esp + 0x24], eax
xor eax, eax
lea edx, [esp + 0x56]
mov dword [esp + 0x50], edx
lea edx, [eax + eax*2]
mov ecx, dword [esi + 0x10]
mov ebx, dword [esp + 0x50]
mov bl, byte [ebx]
mov byte [ecx + edx + 2], bl
lea edx, [eax + eax*2]
mov ecx, dword [esi + 0x10]
mov ebx, dword [esp + 0x50]
mov bl, byte [ebx - 1]
mov byte [ecx + edx + 1], bl
lea edx, [eax + eax*2]
mov ecx, dword [esi + 0x10]
mov ebx, dword [esp + 0x50]
mov bl, byte [ebx - 2]
mov byte [ecx + edx], bl
inc eax
add dword [esp + 0x50], 3
cmp eax, 0x100
jne 0x648767
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl 0x64880a
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x648800
inc ebx
mov eax, dword [esp + 0x10]
mov dl, byte [eax + 2]
shl edx, 0x10
mov dx, word [eax]
push edx
mov eax, dword [esp + 0x28]
call fcn.005ea394
mov byte [edi], al
inc edi
add dword [esp + 0x10], 3
dec ebx
jne 0x6487de
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x6487ba
mov eax, dword [esp + 0x24]
call fcn.00403d28
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x648899
inc ebx
mov ecx, dword [esp + 0x10]
xor eax, eax
mov al, byte [ecx + 2]
mov edx, dword [0x8aa290]
imul dword [edx]
xor edx, edx
mov dl, byte [ecx + 1]
mov ebp, dword [0x8aa084]
imul edx, dword [ebp]
add eax, edx
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [0x8a9590]
imul edx, dword [ecx]
add eax, edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [edi], al
add dword [esp + 0x10], 3
inc edi
dec ebx
jne 0x648855
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648831
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x648936
inc ebx
mov ecx, dword [esp + 0x10]
xor eax, eax
mov al, byte [ecx + 2]
mov edx, eax
shl eax, 8
add eax, edx
imul eax, eax, 0xd4
xor edx, edx
mov dl, byte [ecx + 1]
mov ebp, edx
shl edx, 8
add edx, ebp
imul edx, edx, 0x2c9
add eax, edx
xor edx, edx
mov dl, byte [ecx]
mov ecx, edx
shl edx, 8
add edx, ecx
imul edx, edx, 0x4b
add eax, edx
mov ecx, 0x3e8
xor edx, edx
div ecx
mov word [edi], ax
add dword [esp + 0x10], 3
add edi, 2
dec ebx
jne 0x6488e5
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x6488c1
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x6489fb
inc ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
movzx eax, byte [eax + 2]
mov dword [esp + 0x388], eax
fild dword [esp + 0x388]
fld xword [0x6493a0]
fmulp st(1)
mov eax, dword [esp + 0x44]
movzx eax, byte [eax + 1]
mov dword [esp + 0x38c], eax
fild dword [esp + 0x38c]
fld xword [0x6493ac]
fmulp st(1)
faddp st(1)
mov eax, dword [esp + 0x44]
movzx eax, byte [eax]
mov dword [esp + 0x390], eax
fild dword [esp + 0x390]
fld xword [0x6493b8]
fmulp st(1)
faddp st(1)
fdiv dword [0x6493c4]
fstp dword [edi]
wait
add dword [esp + 0x10], 3
add edi, 4
dec ebx
jne 0x648982
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x64895e
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x18], eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x648a73
inc ebx
mov eax, dword [esp + 0x10]
mov dl, byte [eax + 2]
shl edx, 0x10
mov dx, word [eax]
push edx
call fcn.00628640
mov edx, dword [esp + 0x18]
mov dword [edx], eax
add dword [esp + 0x10], 3
add dword [esp + 0x18], 4
dec ebx
jne 0x648a4d
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648a27
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x648b05
inc ebx
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + 2]
mov edx, eax
shl eax, 8
add eax, edx
mov word [edi], ax
add edi, 2
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + 1]
mov edx, eax
shl eax, 8
add eax, edx
mov word [edi], ax
add edi, 2
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
mov edx, eax
shl eax, 8
add eax, edx
mov word [edi], ax
add edi, 2
add dword [esp + 0x10], 3
dec ebx
jne 0x648abf
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648a9b
jmp case.0x647745.0
xor eax, eax
mov al, byte [esi + 0x44]
cmp eax, 8
ja case.0x647745.0
jmp dword [eax*4 + 0x648b29]
mov al, byte [esi + 0x58]
sub al, 1
jb 0x648b5f
je 0x648bf1
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x648be2
inc ebx
xor ebp, ebp
mov eax, dword [esp + 0x14]
fld dword [eax]
fdiv dword [0x6493cc]
mov eax, ebp
and eax, 7
shl eax, 2
mov edx, dword [0x8a9be4]
lea eax, [edx + eax*8]
mov edx, dword [esp + 4]
and edx, 7
fild dword [eax + edx*4]
fcompp
fnstsw ax
sahf
setb cl
and ecx, 0x7f
mov edx, ebp
mov eax, edi
call fcn.005f52b0
add dword [esp + 0x14], 4
inc ebp
dec ebx
jne 0x648b9e
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648b78
jmp case.0x647745.0
lea eax, [esp + 0x358]
push eax
or ecx, 0xffffffff
mov edx, esi
mov eax, dword [esp + 4]
call fcn.00603c28
jmp case.0x647745.0
xor eax, eax
lea edx, [eax + eax*2]
mov ecx, dword [esi + 0x10]
lea edx, [ecx + edx]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x48]
mov byte [edx + 2], al
mov edx, dword [esp + 0x48]
mov byte [edx + 1], al
mov edx, dword [esp + 0x48]
mov byte [edx], al
inc eax
cmp eax, 0x100
jne 0x648c0e
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x648c90
inc ebx
mov eax, dword [esp + 0x14]
fld dword [eax]
fmul dword [0x6493c4]
call fcn.00402f88
mov byte [edi], al
add dword [esp + 0x14], 4
inc edi
dec ebx
jne 0x648c74
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648c50
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x648cf8
inc ebx
mov eax, dword [esp + 0x14]
fld dword [eax]
fmul dword [0x6493c4]
call fcn.00402f88
mov byte [edi], al
add dword [esp + 0x14], 4
inc edi
dec ebx
jne 0x648cdc
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648cb8
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x648d63
inc ebx
mov eax, dword [esp + 0x14]
fld dword [eax]
fmul dword [0x6493c8]
call fcn.00402f88
mov word [edi], ax
add dword [esp + 0x14], 4
add edi, 2
dec ebx
jne 0x648d44
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648d20
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x648dd1
inc ebx
mov eax, dword [esp + 0x14]
fld dword [eax]
fmul dword [0x6493c4]
call fcn.00402f88
mov byte [edi], al
inc edi
mov byte [edi], al
inc edi
mov byte [edi], al
inc edi
add dword [esp + 0x14], 4
dec ebx
jne 0x648daf
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648d8b
jmp case.0x647745.0
mov dl, 5
mov eax, dword [esp]
call fcn.006493d4
mov edx, dword [esp]
mov eax, esi
call fcn.006476d8
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x648e61
inc ebx
mov eax, dword [esp + 0x14]
fld dword [eax]
fmul dword [0x6493c8]
call fcn.00402f88
mov word [edi], ax
add edi, 2
mov word [edi], ax
add edi, 2
mov word [edi], ax
add edi, 2
add dword [esp + 0x14], 4
dec ebx
jne 0x648e36
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648e12
jmp case.0x647745.0
xor eax, eax
mov al, byte [esi + 0x44]
cmp eax, 8
ja case.0x647745.0
jmp dword [eax*4 + 0x648e85]
mov dl, 5
mov eax, dword [esp]
call fcn.006493d4
mov edx, dword [esp]
mov eax, esi
call fcn.006476d8
jmp case.0x647745.0
mov dl, 5
mov eax, dword [esp]
call fcn.006493d4
mov edx, dword [esp]
mov eax, esi
call fcn.006476d8
jmp case.0x647745.0
mov dl, 5
mov eax, dword [esp]
call fcn.006493d4
mov edx, dword [esp]
mov eax, esi
call fcn.006476d8
jmp case.0x647745.0
mov dl, 5
mov eax, dword [esp]
call fcn.006493d4
mov edx, dword [esp]
mov eax, esi
call fcn.006476d8
jmp case.0x647745.0
mov dl, 5
mov eax, dword [esp]
call fcn.006493d4
mov edx, dword [esp]
mov eax, esi
call fcn.006476d8
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x648f95
inc ebx
lea edx, [esp + 0x394]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
call fcn.006285e8
mov ax, word [esp + 0x394]
mov word [edi], ax
mov al, byte [esp + 0x396]
mov byte [edi + 2], al
add dword [esp + 0x1c], 4
add edi, 3
dec ebx
jne 0x648f63
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x648f3f
jmp case.0x647745.0
mov dl, 5
mov eax, dword [esp]
call fcn.006493d4
mov edx, dword [esp]
mov eax, esi
call fcn.006476d8
jmp case.0x647745.0
xor eax, eax
mov al, byte [esi + 0x44]
cmp eax, 7
ja case.0x647745.0
jmp dword [eax*4 + 0x648fd2]
mov al, byte [esi + 0x58]
sub al, 1
jb 0x649004
je 0x6490e4
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x6490d1
inc ebx
xor ebp, ebp
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
movzx eax, word [eax]
shr eax, 8
mov edx, dword [0x8aa290]
imul dword [edx]
mov edx, dword [esp + 0x4c]
movzx edx, word [edx + 2]
shr edx, 8
mov ecx, dword [0x8aa084]
imul edx, dword [ecx]
add eax, edx
mov edx, dword [esp + 0x4c]
movzx edx, word [edx + 4]
shr edx, 8
mov ecx, dword [0x8a9590]
imul edx, dword [ecx]
add eax, edx
mov ecx, 0x64
cdq
idiv ecx
shr eax, 2
mov edx, ebp
and edx, 7
shl edx, 2
mov ecx, dword [0x8a9be4]
lea edx, [ecx + edx*8]
push edx
mov edx, dword [esp + 8]
and edx, 7
pop ecx
cmp eax, dword [ecx + edx*4]
setg cl
and ecx, 0x7f
mov edx, ebp
mov eax, edi
call fcn.005f52b0
add dword [esp + 0x20], 6
inc ebp
dec ebx
jne 0x649047
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x64901d
jmp case.0x647745.0
mov dl, 5
mov eax, dword [esp]
call fcn.006493d4
lea eax, [esp + 0x358]
push eax
or ecx, 0xffffffff
mov edx, esi
mov eax, dword [esp + 4]
call fcn.00603c28
jmp case.0x647745.0
mov dl, 5
mov eax, dword [esp]
call fcn.006493d4
mov edx, dword [esp]
mov eax, esi
call fcn.006476d8
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x6491a9
inc ebx
mov ecx, dword [esp + 0x20]
movzx eax, word [ecx]
shr eax, 8
mov edx, dword [0x8aa290]
imul dword [edx]
movzx edx, word [ecx + 2]
shr edx, 8
mov ebp, dword [0x8aa084]
imul edx, dword [ebp]
add eax, edx
movzx edx, word [ecx + 4]
shr edx, 8
mov ecx, dword [0x8a9590]
imul edx, dword [ecx]
add eax, edx
mov ecx, 0x64
cdq
idiv ecx
mov byte [edi], al
add dword [esp + 0x20], 6
inc edi
dec ebx
jne 0x64915f
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x64913b
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x64922e
inc ebx
mov ecx, dword [esp + 0x20]
movzx eax, word [ecx]
imul eax, eax, 0xd4
movzx edx, word [ecx + 2]
imul edx, edx, 0x2c9
add eax, edx
movzx edx, word [ecx + 4]
imul edx, edx, 0x4b
add eax, edx
mov ecx, 0x3e8
xor edx, edx
div ecx
mov word [edi], ax
add dword [esp + 0x20], 6
add edi, 2
dec ebx
jne 0x6491f5
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x6491d1
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x6492f5
inc ebx
mov eax, dword [esp + 0x20]
movzx edx, word [eax]
mov dword [esp + 0x388], edx
fild dword [esp + 0x388]
fld xword [0x6493a0]
fmulp st(1)
fdiv dword [0x6493d0]
movzx edx, word [eax + 2]
mov dword [esp + 0x38c], edx
fild dword [esp + 0x38c]
fld xword [0x6493ac]
fmulp st(1)
fdiv dword [0x6493d0]
faddp st(1)
movzx eax, word [eax + 4]
mov dword [esp + 0x390], eax
fild dword [esp + 0x390]
fld xword [0x6493b8]
fmulp st(1)
fdiv dword [0x6493d0]
faddp st(1)
fdiv dword [0x6493c4]
fstp dword [edi]
wait
add dword [esp + 0x20], 6
add edi, 4
dec ebx
jne 0x64927a
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x649256
jmp case.0x647745.0
mov eax, dword [esi + 0x38]
dec eax
test eax, eax
jl case.0x647745.0
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov ebx, dword [esi + 0x34]
dec ebx
test ebx, ebx
jl 0x649373
inc ebx
mov eax, edi
mov edx, dword [esp + 0x20]
movzx edx, word [edx]
shr edx, 8
mov byte [eax + 2], dl
mov edx, dword [esp + 0x20]
movzx edx, word [edx + 2]
shr edx, 8
mov byte [eax + 1], dl
mov edx, dword [esp + 0x20]
movzx edx, word [edx + 4]
shr edx, 8
mov byte [eax], dl
add dword [esp + 0x20], 6
add edi, 3
dec ebx
jne 0x64933e
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x64931a
mov eax, dword [esp]
mov eax, dword [eax + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [esp]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, esi
call fcn.0064b8b4
add esp, 0x398
pop ebp
pop edi
pop esi
pop ebx
ret