Function at 0x598868
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 + 0x30]
cmp eax, dword [esi + 0x30]
jne 0x59a525
mov eax, dword [edx + 0x34]
cmp eax, dword [esi + 0x34]
jne 0x59a525
cmp byte [esi + 0x42], 2
je 0x59a525
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 + 0x40]
test al, al
je case.0x5988d5.0
and eax, 0x7f
cmp eax, 8
ja case.0x5988d5.0
jmp dword [eax*4 + 0x5988dc]
xor eax, eax
mov al, byte [esi + 0x40]
cmp eax, 8
ja case.0x5988d5.0
jmp dword [eax*4 + 0x598915]
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 + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x5989ce
inc ebx
xor ebp, ebp
mov edx, ebp
mov eax, dword [esp + 8]
call fcn.005662f4
test eax, eax
setne al
mov byte [edi], al
inc edi
inc ebp
dec ebx
jne 0x5989b7
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x598991
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x598a3a
inc ebx
xor ebp, ebp
mov edx, ebp
mov eax, dword [esp + 8]
call fcn.005662f4
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 0x598a1c
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x5989f6
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x598aac
inc ebx
xor ebp, ebp
mov edx, ebp
mov eax, dword [esp + 8]
call fcn.005662f4
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 0x598a88
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x598a62
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x598b21
inc ebx
xor ebp, ebp
mov edx, ebp
mov eax, dword [esp + 8]
call fcn.005662f4
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 0x598afa
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x598ad4
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x598b9a
inc ebx
xor ebp, ebp
mov edx, ebp
mov eax, dword [esp + 8]
call fcn.005662f4
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 0x598b6f
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x598b49
jmp case.0x5988d5.0
mov dl, 5
mov eax, dword [esp]
call fcn.0059a564
mov edx, dword [esp]
mov eax, esi
call fcn.00598868
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x598c31
inc ebx
xor ebp, ebp
mov edx, ebp
mov eax, dword [esp + 8]
call fcn.005662f4
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 0x598c01
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x598bdb
jmp case.0x5988d5.0
xor eax, eax
mov al, byte [esi + 0x40]
cmp eax, 8
ja case.0x5988d5.0
jmp dword [eax*4 + 0x598c55]
mov al, byte [esi + 0x4c]
sub al, 1
jb 0x598c8b
je 0x598d70
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x598d5d
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 [0x64f17c]
imul dword [edx]
mov edx, dword [esp + 0x34]
movzx edx, byte [edx + 1]
mov ecx, dword [0x64f0ac]
imul edx, dword [ecx]
add eax, edx
mov edx, dword [esp + 0x34]
movzx edx, byte [edx]
mov ecx, dword [0x64ed20]
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 [0x64ef24]
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.00566310
inc dword [esp + 8]
inc ebp
dec ebx
jne 0x598cce
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x598ca4
jmp case.0x5988d5.0
lea eax, [esp + 0x358]
push eax
or ecx, 0xffffffff
mov edx, esi
mov eax, dword [esp + 4]
call fcn.0056ffec
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x598e1a
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 [0x64f17c]
imul dword [edx]
xor edx, edx
mov dl, byte [ecx + 1]
mov ebp, dword [0x64f0ac]
imul edx, dword [ebp]
add eax, edx
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [0x64ed20]
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 0x598dc8
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x598da4
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x598ec5
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 0x598e66
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x598e42
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x598f40
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 0x598f15
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x598ef1
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599005
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 [0x59a530]
fmulp st(1)
xor edx, edx
mov dl, byte [eax + 1]
mov dword [esp + 0x38c], edx
fild dword [esp + 0x38c]
fld xword [0x59a53c]
fmulp st(1)
faddp st(1)
movzx eax, byte [eax]
mov dword [esp + 0x390], eax
fild dword [esp + 0x390]
fld xword [0x59a548]
fmulp st(1)
faddp st(1)
fdiv dword [0x59a554]
fstp dword [edi]
wait
add edi, 4
inc dword [esp + 8]
dec ebx
jne 0x598f8c
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x598f68
jmp case.0x5988d5.0
mov dl, 5
mov eax, dword [esp]
call fcn.0059a564
mov edx, dword [esp]
mov eax, esi
call fcn.00598868
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x5990bc
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 0x59906e
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x59904a
jmp case.0x5988d5.0
xor eax, eax
mov al, byte [esi + 0x40]
cmp eax, 8
ja case.0x5988d5.0
jmp dword [eax*4 + 0x5990e0]
mov al, byte [esi + 0x4c]
sub al, 1
jb 0x599116
je 0x5991a2
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599193
inc ebx
xor ebp, ebp
mov eax, ebp
and eax, 7
shl eax, 2
mov edx, dword [0x64ef24]
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.00566310
inc dword [esp + 8]
inc ebp
dec ebx
jne 0x599155
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x59912f
jmp case.0x5988d5.0
lea eax, [esp + 0x358]
push eax
or ecx, 0xffffffff
mov edx, esi
mov eax, dword [esp + 4]
call fcn.0056ffec
jmp case.0x5988d5.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 0x5991bf
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x3c]
mov edx, dword [esp + 8]
mov eax, edi
call fcn.00407e40
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x599201
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599291
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 0x599276
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x599252
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x5992ff
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 0x5992dd
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x5992b9
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599373
inc ebx
mov eax, dword [esp + 8]
movzx eax, byte [eax]
mov dword [esp + 0x388], eax
fild dword [esp + 0x388]
fdiv dword [0x59a554]
fstp dword [edi]
wait
inc dword [esp + 8]
add edi, 4
dec ebx
jne 0x59934b
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x599327
jmp case.0x5988d5.0
mov dl, 5
mov eax, dword [esp]
call fcn.0059a564
mov edx, dword [esp]
mov eax, esi
call fcn.00598868
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x59941b
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 0x5993d8
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x5993b4
jmp case.0x5988d5.0
xor eax, eax
mov al, byte [esi + 0x40]
cmp eax, 8
ja case.0x5988d5.0
jmp dword [eax*4 + 0x59943f]
mov al, byte [esi + 0x4c]
sub al, 1
jb 0x599475
je 0x599502
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x5994f3
inc ebx
xor ebp, ebp
mov eax, ebp
and eax, 7
shl eax, 2
mov edx, dword [0x64ef24]
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.00566310
add dword [esp + 0xc], 2
inc ebp
dec ebx
jne 0x5994b4
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x59948e
jmp case.0x5988d5.0
lea eax, [esp + 0x358]
push eax
or ecx, 0xffffffff
mov edx, esi
mov eax, dword [esp + 4]
call fcn.0056ffec
jmp case.0x5988d5.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 0x59951f
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x59959a
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 0x599585
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x599561
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x5995fb
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 0x5995e6
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x5995c2
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599676
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 0x599647
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x599623
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x5996eb
inc ebx
mov eax, dword [esp + 0xc]
movzx eax, word [eax]
mov dword [esp + 0x388], eax
fild dword [esp + 0x388]
fdiv dword [0x59a558]
fstp dword [edi]
wait
add edi, 4
add dword [esp + 0xc], 2
dec ebx
jne 0x5996c2
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x59969e
jmp case.0x5988d5.0
mov dl, 5
mov eax, dword [esp]
call fcn.0059a564
mov edx, dword [esp]
mov eax, esi
call fcn.00598868
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x59977f
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 0x599750
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x59972c
jmp case.0x5988d5.0
xor eax, eax
mov al, byte [esi + 0x40]
cmp eax, 8
ja case.0x5988d5.0
jmp dword [eax*4 + 0x5997a3]
mov al, byte [esi + 0x4c]
sub al, 1
jb 0x5997d9
je 0x5998ac
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599899
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 [0x64f17c]
imul dword [edx]
mov edx, dword [esp + 0x40]
movzx edx, byte [edx + 1]
mov ecx, dword [0x64f0ac]
imul edx, dword [ecx]
add eax, edx
mov edx, dword [esp + 0x40]
movzx edx, byte [edx]
mov ecx, dword [0x64ed20]
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 [0x64ef24]
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.00566310
add dword [esp + 0x10], 3
inc ebp
dec ebx
jne 0x59981c
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x5997f2
jmp case.0x5988d5.0
lea eax, [esp + 0x358]
push eax
or ecx, 0xffffffff
mov edx, esi
mov eax, dword [esp + 4]
call fcn.0056ffec
jmp case.0x5988d5.0
lea eax, [esp + 0x54]
push eax
push 0xff
mov eax, dword [esi + 0x50]
push eax
push 0xffffffffffffffff
push 0
mov ecx, dword [esp + 0x14]
mov dl, 1
mov eax, dword [0x55df90]
call fcn.0055eaec
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 0x5998f7
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl 0x59999a
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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599990
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.0055ed28
mov byte [edi], al
inc edi
add dword [esp + 0x10], 3
dec ebx
jne 0x59996e
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x59994a
mov eax, dword [esp + 0x24]
call fcn.00403a6c
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599a29
inc ebx
mov ecx, dword [esp + 0x10]
xor eax, eax
mov al, byte [ecx + 2]
mov edx, dword [0x64f17c]
imul dword [edx]
xor edx, edx
mov dl, byte [ecx + 1]
mov ebp, dword [0x64f0ac]
imul edx, dword [ebp]
add eax, edx
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [0x64ed20]
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 0x5999e5
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x5999c1
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599ac6
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 0x599a75
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x599a51
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599b8b
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 [0x59a530]
fmulp st(1)
mov eax, dword [esp + 0x44]
movzx eax, byte [eax + 1]
mov dword [esp + 0x38c], eax
fild dword [esp + 0x38c]
fld xword [0x59a53c]
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 [0x59a548]
fmulp st(1)
faddp st(1)
fdiv dword [0x59a554]
fstp dword [edi]
wait
add dword [esp + 0x10], 3
add edi, 4
dec ebx
jne 0x599b12
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x599aee
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599c03
inc ebx
mov eax, dword [esp + 0x10]
mov dl, byte [eax + 2]
shl edx, 0x10
mov dx, word [eax]
push edx
call fcn.00581b64
mov edx, dword [esp + 0x18]
mov dword [edx], eax
add dword [esp + 0x10], 3
add dword [esp + 0x18], 4
dec ebx
jne 0x599bdd
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x599bb7
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599c95
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 0x599c4f
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x599c2b
jmp case.0x5988d5.0
xor eax, eax
mov al, byte [esi + 0x40]
cmp eax, 8
ja case.0x5988d5.0
jmp dword [eax*4 + 0x599cb9]
mov al, byte [esi + 0x4c]
sub al, 1
jb 0x599cef
je 0x599d81
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599d72
inc ebx
xor ebp, ebp
mov eax, dword [esp + 0x14]
fld dword [eax]
fdiv dword [0x59a55c]
mov eax, ebp
and eax, 7
shl eax, 2
mov edx, dword [0x64ef24]
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.00566310
add dword [esp + 0x14], 4
inc ebp
dec ebx
jne 0x599d2e
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x599d08
jmp case.0x5988d5.0
lea eax, [esp + 0x358]
push eax
or ecx, 0xffffffff
mov edx, esi
mov eax, dword [esp + 4]
call fcn.0056ffec
jmp case.0x5988d5.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 0x599d9e
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599e20
inc ebx
mov eax, dword [esp + 0x14]
fld dword [eax]
fmul dword [0x59a554]
call fcn.00402ccc
mov byte [edi], al
add dword [esp + 0x14], 4
inc edi
dec ebx
jne 0x599e04
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x599de0
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599e88
inc ebx
mov eax, dword [esp + 0x14]
fld dword [eax]
fmul dword [0x59a554]
call fcn.00402ccc
mov byte [edi], al
add dword [esp + 0x14], 4
inc edi
dec ebx
jne 0x599e6c
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x599e48
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599ef3
inc ebx
mov eax, dword [esp + 0x14]
fld dword [eax]
fmul dword [0x59a558]
call fcn.00402ccc
mov word [edi], ax
add dword [esp + 0x14], 4
add edi, 2
dec ebx
jne 0x599ed4
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x599eb0
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599f61
inc ebx
mov eax, dword [esp + 0x14]
fld dword [eax]
fmul dword [0x59a554]
call fcn.00402ccc
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 0x599f3f
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x599f1b
jmp case.0x5988d5.0
mov dl, 5
mov eax, dword [esp]
call fcn.0059a564
mov edx, dword [esp]
mov eax, esi
call fcn.00598868
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x599ff1
inc ebx
mov eax, dword [esp + 0x14]
fld dword [eax]
fmul dword [0x59a558]
call fcn.00402ccc
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 0x599fc6
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x599fa2
jmp case.0x5988d5.0
xor eax, eax
mov al, byte [esi + 0x40]
cmp eax, 8
ja case.0x5988d5.0
jmp dword [eax*4 + 0x59a015]
mov dl, 5
mov eax, dword [esp]
call fcn.0059a564
mov edx, dword [esp]
mov eax, esi
call fcn.00598868
jmp case.0x5988d5.0
mov dl, 5
mov eax, dword [esp]
call fcn.0059a564
mov edx, dword [esp]
mov eax, esi
call fcn.00598868
jmp case.0x5988d5.0
mov dl, 5
mov eax, dword [esp]
call fcn.0059a564
mov edx, dword [esp]
mov eax, esi
call fcn.00598868
jmp case.0x5988d5.0
mov dl, 5
mov eax, dword [esp]
call fcn.0059a564
mov edx, dword [esp]
mov eax, esi
call fcn.00598868
jmp case.0x5988d5.0
mov dl, 5
mov eax, dword [esp]
call fcn.0059a564
mov edx, dword [esp]
mov eax, esi
call fcn.00598868
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x59a125
inc ebx
lea edx, [esp + 0x394]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
call fcn.00581b0c
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 0x59a0f3
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x59a0cf
jmp case.0x5988d5.0
mov dl, 5
mov eax, dword [esp]
call fcn.0059a564
mov edx, dword [esp]
mov eax, esi
call fcn.00598868
jmp case.0x5988d5.0
xor eax, eax
mov al, byte [esi + 0x40]
cmp eax, 7
ja case.0x5988d5.0
jmp dword [eax*4 + 0x59a162]
mov al, byte [esi + 0x4c]
sub al, 1
jb 0x59a194
je 0x59a274
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x59a261
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 [0x64f17c]
imul dword [edx]
mov edx, dword [esp + 0x4c]
movzx edx, word [edx + 2]
shr edx, 8
mov ecx, dword [0x64f0ac]
imul edx, dword [ecx]
add eax, edx
mov edx, dword [esp + 0x4c]
movzx edx, word [edx + 4]
shr edx, 8
mov ecx, dword [0x64ed20]
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 [0x64ef24]
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.00566310
add dword [esp + 0x20], 6
inc ebp
dec ebx
jne 0x59a1d7
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x59a1ad
jmp case.0x5988d5.0
mov dl, 5
mov eax, dword [esp]
call fcn.0059a564
lea eax, [esp + 0x358]
push eax
or ecx, 0xffffffff
mov edx, esi
mov eax, dword [esp + 4]
call fcn.0056ffec
jmp case.0x5988d5.0
mov dl, 5
mov eax, dword [esp]
call fcn.0059a564
mov edx, dword [esp]
mov eax, esi
call fcn.00598868
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x59a339
inc ebx
mov ecx, dword [esp + 0x20]
movzx eax, word [ecx]
shr eax, 8
mov edx, dword [0x64f17c]
imul dword [edx]
movzx edx, word [ecx + 2]
shr edx, 8
mov ebp, dword [0x64f0ac]
imul edx, dword [ebp]
add eax, edx
movzx edx, word [ecx + 4]
shr edx, 8
mov ecx, dword [0x64ed20]
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 0x59a2ef
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x59a2cb
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x59a3be
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 0x59a385
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x59a361
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x59a485
inc ebx
mov eax, dword [esp + 0x20]
movzx edx, word [eax]
mov dword [esp + 0x388], edx
fild dword [esp + 0x388]
fld xword [0x59a530]
fmulp st(1)
fdiv dword [0x59a560]
movzx edx, word [eax + 2]
mov dword [esp + 0x38c], edx
fild dword [esp + 0x38c]
fld xword [0x59a53c]
fmulp st(1)
fdiv dword [0x59a560]
faddp st(1)
movzx eax, word [eax + 4]
mov dword [esp + 0x390], eax
fild dword [esp + 0x390]
fld xword [0x59a548]
fmulp st(1)
fdiv dword [0x59a560]
faddp st(1)
fdiv dword [0x59a554]
fstp dword [edi]
wait
add dword [esp + 0x20], 6
add edi, 4
dec ebx
jne 0x59a40a
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x59a3e6
jmp case.0x5988d5.0
mov eax, dword [esi + 0x34]
dec eax
test eax, eax
jl case.0x5988d5.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 + 0x30]
dec ebx
test ebx, ebx
jl 0x59a503
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 0x59a4ce
inc dword [esp + 4]
dec dword [esp + 0x30]
jne 0x59a4aa
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.0059c218
add esp, 0x398
pop ebp
pop edi
pop esi
pop ebx
ret