Function at 0x6ae070
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, edx
push ebx
sub esp, 0xcc
mov edx, dword [eax]
mov dword [ebp - 0x9c], ecx
mov ebx, dword [ebp - 0x9c]
mov dword [ebp - 0x90], esp
cmp dword [edx + 0x220], 1
sbb eax, eax
add eax, 3
cmp dword [edx + 0x220], 1
mov dword [ebp - 0x84], eax
sbb eax, eax
add eax, 3
cmp dword [edx + 0x220], 1
sbb ecx, ecx
and ecx, 0xfffffffc
add ecx, 0xc
cmp dword [edx + 0x220], 1
mov dword [ebp - 0x14], ecx
sbb ecx, ecx
add ebx, 6
imul eax, ebx
and ecx, 0xfffffff4
mov dword [ebp - 0x98], ebx
add ecx, 0x24
mov ebx, eax
add ebx, ebx
lea edx, [ebx + eax]
add edx, edx
mov dword [ebp - 0x94], eax
lea eax, [edx + 0x1e]
and eax, 0xfffffff0
call fcn.00aa20e0
lea eax, [esp + 0x1b]
and eax, 0xfffffff0
mov dword [ebp - 0xa0], eax
lea eax, [ecx + 0x1e]
and eax, 0xfffffff0
call fcn.00aa20e0
lea ecx, [esp + 0x1b]
and ecx, 0xfffffff0
mov dword [ebp - 0xa4], ecx
mov dword [edi + 0xd70], 0
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xa0]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
test eax, eax
jle 0x6aefe1
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x20], esi
add ecx, ecx
shr edx, 2
shl eax, 2
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0xa8], eax
add eax, dword [ebp - 0x9c]
shl ecx, 2
mov dword [ebp - 0x1c], edx
shl eax, 2
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc4], ebx
mov esi, dword [ebp - 0x84]
xor ebx, ebx
test esi, esi
jle 0x6ae212
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa4]
add edx, ebx
mov eax, edx
sar edx, 0x1f
idiv dword [ebp - 0x84]
imul edx, dword [ebp - 0x98]
lea eax, [esi + edx*2 + 6]
mov esi, dword [ebp - 0x30]
mov dword [ecx + ebx*4], eax
mov eax, dword [ebp - 0x94]
lea ecx, [ebx + esi]
mov esi, dword [ebp - 0xa0]
add eax, edx
add edx, dword [ebp - 0xc4]
lea eax, [esi + eax*2 + 6]
mov esi, dword [ebp - 0xa4]
mov dword [esi + ecx*4], eax
mov ecx, dword [ebp - 0xa0]
lea eax, [esi + ebx*4]
mov esi, dword [ebp - 0x30]
add ebx, 1
cmp ebx, dword [ebp - 0x84]
lea edx, [ecx + edx*2 + 6]
mov dword [eax + esi*8], edx
jne 0x6ae1a3
mov ebx, dword [ebp - 0x9c]
test ebx, ebx
jle 0x6ae2c7
mov ebx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
mov edx, dword [edx]
mov ecx, dword [ebx + ecx*4]
mov esi, dword [ebx + esi*8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xbc], esi
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x8c]
add dword [ebp - 0x8c], 1
add dword [ebp - 0x10], 4
mov edx, dword [eax]
add esi, esi
movzx ebx, dh
movzx ecx, dl
sar edx, 0x10
sub ecx, ebx
and edx, 0xff
sub edx, ebx
lea eax, [edx + ecx]
add ecx, 0x100
sar eax, 2
add edx, 0x100
add eax, ebx
mov ebx, dword [ebp - 0xb4]
mov word [ebx + esi], ax
mov eax, dword [ebp - 0xb8]
mov ebx, dword [ebp - 0x9c]
cmp dword [ebp - 0x8c], ebx
mov word [eax + esi], cx
mov ecx, dword [ebp - 0xbc]
mov word [ecx + esi], dx
jne 0x6ae25c
mov esi, dword [ebp - 0xa4]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x30]
imul eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0xa4]
mov esi, dword [ebp - 0x88]
mov ecx, dword [edx + eax*4]
mov eax, dword [edx + eax*4 + 4]
test esi, esi
movzx edx, word [eax]
mov word [ecx - 2], dx
mov ecx, dword [ebp - 0x2c]
movzx edx, word [eax + ecx - 2]
mov word [eax + ecx], dx
jle 0x6ae313
mov esi, 1
mov eax, dword [edi + 0x32c]
mov ebx, dword [edi + 0xd70]
test eax, eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x28], eax
je 0x6af07d
mov eax, dword [edi + 0x21c]
sub eax, dword [edi + 0x218]
cmp eax, dword [ebp - 0xac]
jl 0x6af0b2
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
jle 0x6aefae
shl esi, 4
add esi, edi
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0xc0], esi
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x24]
mov edx, dword [edx + 8]
add ecx, ecx
mov esi, dword [ebx]
mov eax, ecx
add eax, dword [ebx + 4]
mov dword [ebp - 0x64], edx
movsx ebx, word [eax]
add esi, ecx
movsx edx, word [eax - 2]
movsx eax, word [eax + 2]
cmp word [edi + 0xa6e], 0
mov dword [ebp - 0x60], esi
movsx esi, word [esi - 2]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], eax
je 0x6ae97e
mov eax, esi
sub eax, edx
and eax, 0xff
movsx edx, word [edi + eax*2 + 0x370]
mov eax, dword [ebp - 0x58]
sub eax, ebx
and eax, 0xff
movsx eax, word [edi + eax*2 + 0x570]
add edx, eax
mov dword [ebp - 0xcc], edx
mov edx, dword [ebp - 0x64]
movsx eax, word [edx + ecx]
mov edx, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0x60]
sub eax, ebx
and eax, 0xff
movsx eax, word [edi + eax*2 + 0xb70]
add edx, eax
mov eax, ebx
sub eax, dword [ebp - 0x5c]
and eax, 0xff
movsx eax, word [edi + eax*2 + 0x770]
add edx, eax
movsx eax, word [ecx - 4]
sub eax, esi
and eax, 0xff
movsx eax, word [edi + eax*2 + 0x970]
add edx, eax
mov dword [ebp - 0x7c], edx
mov edx, ecx
movzx eax, word [edx]
lea edx, [esi + ebx]
sub edx, dword [ebp - 0x58]
cmp esi, edx
jle 0x6ae7c8
cmp ebx, edx
jle 0x6ae44c
cmp esi, ebx
mov edx, esi
jg 0x6ae7da
cwde
sub eax, edx
mov edx, dword [ebp - 0x7c]
test edx, edx
js 0x6ae7ea
mov esi, dword [ebp - 0x28]
add eax, 0x100
and eax, 0x1ff
sub eax, 0x100
mov dword [ebp - 0x4c], eax
test esi, esi
je 0x6ae9c2
mov ebx, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0x7c]
mov ebx, dword [ebx + 0x334]
shl ecx, 5
add ecx, ebx
test eax, eax
mov dword [ebp - 0x68], ecx
je 0x6aed99
mov esi, dword [ebp - 0x4c]
sar eax, 0x1f
xor edx, edx
xor esi, eax
sub esi, eax
mov dword [ebp - 0x54], esi
mov eax, esi
and esi, 0xffff0000
je 0x6ae4b4
shr eax, 0x10
mov dl, 0x10
test ax, 0xff00
je 0x6ae4c0
shr eax, 8
add edx, 8
movzx eax, byte [eax + 0xbccde0]
mov ecx, dword [ebp - 0x68]
add eax, edx
mov edx, dword [edi + 8]
mov dword [ebp - 0x50], eax
movzx eax, byte [ecx]
imul eax, edx
sar eax, 8
sub edx, eax
mov dword [edi + 8], edx
movzx eax, byte [ecx]
movzx eax, byte [edi + eax + 0x14]
mov byte [ecx], al
cmp dword [edi + 8], 0xff
jg 0x6ae562
mov edx, dword [edi + 0x10]
test edx, edx
js 0x6ae53f
mov eax, dword [edi + 4]
cmp eax, 0xff00
jg 0x6ae92d
mov eax, dword [edi + 0x218]
mov byte [eax], dl
mov ebx, dword [edi + 0xc]
add eax, 1
mov dword [edi + 0x218], eax
test ebx, ebx
je 0x6ae53f
mov eax, dword [edi + 0x218]
mov byte [eax], 0xff
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
sub eax, 1
test eax, eax
mov dword [edi + 0xc], eax
jne 0x6ae520
mov eax, dword [edi + 4]
sar eax, 8
mov dword [edi + 0x10], eax
movzx eax, byte [edi + 4]
shl eax, 8
mov dword [edi + 4], eax
mov eax, dword [edi + 8]
shl eax, 8
cmp eax, 0xff
mov dword [edi + 8], eax
jle 0x6ae4f3
mov edx, dword [ebp - 0x50]
test edx, edx
jle 0x6af0d1
mov ecx, dword [ebp - 0x68]
xor ebx, ebx
add ecx, 1
mov esi, dword [ebp - 0x68]
mov eax, dword [edi + 8]
movzx edx, byte [ebx + esi + 1]
imul edx, eax
add eax, dword [edi + 4]
sar edx, 8
sub eax, edx
mov dword [edi + 8], edx
mov dword [edi + 4], eax
movzx eax, byte [ebx + esi + 1]
movzx eax, byte [edi + eax + 0x114]
mov byte [ebx + esi + 1], al
cmp dword [edi + 8], 0xff
jg 0x6ae622
nop
lea esi, [esi]
mov edx, dword [edi + 0x10]
test edx, edx
js 0x6ae5ff
mov eax, dword [edi + 4]
cmp eax, 0xff00
jg 0x6ae84b
mov eax, dword [edi + 0x218]
mov byte [eax], dl
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x6ae5ff
lea esi, [esi]
mov eax, dword [edi + 0x218]
mov byte [eax], 0xff
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
sub eax, 1
test eax, eax
mov dword [edi + 0xc], eax
jne 0x6ae5e0
mov eax, dword [edi + 4]
sar eax, 8
mov dword [edi + 0x10], eax
movzx eax, byte [edi + 4]
shl eax, 8
mov dword [edi + 4], eax
mov eax, dword [edi + 8]
shl eax, 8
cmp eax, 0xff
mov dword [edi + 8], eax
jle 0x6ae5b0
add ebx, 1
cmp ebx, dword [ebp - 0x50]
jne 0x6ae575
mov eax, dword [ebp - 0x50]
add ecx, eax
mov edx, dword [edi + 8]
movzx eax, byte [ecx]
imul eax, edx
sar eax, 8
sub edx, eax
mov dword [edi + 8], edx
movzx eax, byte [ecx]
movzx eax, byte [edi + eax + 0x14]
mov byte [ecx], al
mov eax, dword [edi + 8]
cmp eax, 0xff
mov dword [ebp - 0xc8], eax
jg 0x6ae6d4
mov edx, dword [edi + 0x10]
test edx, edx
js 0x6ae6aa
mov eax, dword [edi + 4]
cmp eax, 0xff00
jg 0x6ae8dc
mov eax, dword [edi + 0x218]
mov byte [eax], dl
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x6ae6aa
mov eax, dword [edi + 0x218]
mov byte [eax], 0xff
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
sub eax, 1
test eax, eax
mov dword [edi + 0xc], eax
jne 0x6ae68b
mov eax, dword [edi + 4]
sar eax, 8
mov dword [edi + 0x10], eax
mov edx, dword [edi + 8]
movzx eax, byte [edi + 4]
shl edx, 8
shl eax, 8
cmp edx, 0xff
mov dword [edi + 4], eax
mov dword [ebp - 0xc8], edx
mov dword [edi + 8], edx
jle 0x6ae65e
mov esi, dword [ebp - 0x50]
sub esi, 1
js 0x6aea86
mov ebx, dword [ebp - 0x68]
mov edx, dword [ebp - 0xc8]
add ebx, dword [ebp - 0x50]
movzx eax, byte [ebx + 0x15]
mov ecx, esi
imul edx, eax
mov eax, dword [ebp - 0x54]
sar eax, cl
sar edx, 8
test al, 1
jne 0x6ae8ad
sub dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
mov dword [edi + 8], eax
movzx eax, byte [ebx + 0x15]
movzx eax, byte [edi + eax + 0x14]
mov byte [ebx + 0x15], al
mov edx, dword [edi + 8]
cmp edx, 0xff
mov dword [ebp - 0xc8], edx
jg 0x6ae7a9
mov edx, dword [edi + 0x10]
test edx, edx
js 0x6ae77f
mov eax, dword [edi + 4]
cmp eax, 0xff00
jg 0x6ae7f4
mov eax, dword [edi + 0x218]
mov byte [eax], dl
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x6ae77f
nop
mov eax, dword [edi + 0x218]
mov byte [eax], 0xff
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
sub eax, 1
test eax, eax
mov dword [edi + 0xc], eax
jne 0x6ae760
mov eax, dword [edi + 4]
sar eax, 8
mov dword [edi + 0x10], eax
mov ecx, dword [edi + 8]
movzx eax, byte [edi + 4]
shl ecx, 8
shl eax, 8
cmp ecx, 0xff
mov dword [edi + 4], eax
mov dword [ebp - 0xc8], ecx
mov dword [edi + 8], ecx
jle 0x6ae731
sub esi, 1
sub ebx, 1
cmp esi, 0xffffffff
je 0x6aea86
mov eax, dword [edi + 8]
mov edx, eax
mov dword [ebp - 0xc8], eax
jmp 0x6ae6ec
cmp ebx, edx
jge 0x6ae44c
cmp esi, ebx
mov edx, esi
jge 0x6ae44c
mov edx, ebx
cwde
sub eax, edx
mov edx, dword [ebp - 0x7c]
test edx, edx
jns 0x6ae45a
neg dword [ebp - 0x7c]
neg eax
jmp 0x6ae45a
cmp eax, 0xffff
jle 0x6ae8a4
mov eax, dword [edi + 0x218]
add edx, 1
mov byte [eax], dl
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x6ae83f
lea esi, [esi]
mov eax, dword [edi + 0x218]
mov byte [eax], 0
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
sub eax, 1
test eax, eax
mov dword [edi + 0xc], eax
jne 0x6ae820
movzx eax, byte [edi + 5]
mov dword [edi + 0x10], eax
jmp 0x6ae788
cmp eax, 0xffff
jle 0x6ae89b
mov eax, dword [edi + 0x218]
add edx, 1
mov byte [eax], dl
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x6ae88f
lea esi, [esi]
mov eax, dword [edi + 0x218]
mov byte [eax], 0
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
sub eax, 1
test eax, eax
mov dword [edi + 0xc], eax
jne 0x6ae870
movzx eax, byte [edi + 5]
mov dword [edi + 0x10], eax
jmp 0x6ae608
add dword [edi + 0xc], 1
jmp 0x6ae608
add dword [edi + 0xc], 1
jmp 0x6ae788
mov ecx, dword [edi + 4]
add dword [ebp - 0xc8], ecx
sub dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
mov dword [edi + 8], edx
mov dword [edi + 4], eax
movzx eax, byte [ebx + 0x15]
movzx eax, byte [edi + eax + 0x114]
mov byte [ebx + 0x15], al
jmp 0x6ae720
cmp eax, 0xffff
jle 0x6aea7d
mov eax, dword [edi + 0x218]
add edx, 1
mov byte [eax], dl
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x6ae921
mov eax, dword [edi + 0x218]
mov byte [eax], 0
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
sub eax, 1
test eax, eax
mov dword [edi + 0xc], eax
jne 0x6ae902
movzx eax, byte [edi + 5]
mov dword [edi + 0x10], eax
jmp 0x6ae6b3
cmp eax, 0xffff
jle 0x6aea74
mov eax, dword [edi + 0x218]
add edx, 1
mov byte [eax], dl
mov ecx, dword [edi + 0xc]
add eax, 1
mov dword [edi + 0x218], eax
test ecx, ecx
je 0x6ae972
mov eax, dword [edi + 0x218]
mov byte [eax], 0
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
sub eax, 1
test eax, eax
mov dword [edi + 0xc], eax
jne 0x6ae953
movzx eax, byte [edi + 5]
mov dword [edi + 0x10], eax
jmp 0x6ae548
mov eax, edx
sub eax, ebx
and eax, 0xff
movsx edx, word [edi + eax*2 + 0x570]
mov eax, esi
sub eax, dword [ebp - 0x58]
and eax, 0xff
movsx eax, word [edi + eax*2 + 0x370]
add edx, eax
mov eax, ebx
sub eax, dword [ebp - 0x5c]
and eax, 0xff
movsx eax, word [edi + eax*2 + 0x770]
add edx, eax
mov dword [ebp - 0x7c], edx
mov edx, dword [ebp - 0x60]
jmp 0x6ae42d
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x6aebac
mov dword [ebp - 0x78], 1
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x6aeee4
mov eax, dword [ebp - 0x70]
movzx ecx, byte [eax + 0xb4c3e0]
mov eax, 1
shl eax, cl
cmp dword [ebp - 0x74], eax
jl 0x6aee8a
mov esi, dword [ebp - 0x70]
add esi, 0xb4c3e0
jmp 0x6aea30
lea eax, [edx + edx]
or eax, 1
lea edx, [ebx - 1]
movzx ecx, byte [esi + 1]
add esi, 1
mov dword [edi + 0x230], eax
mov eax, 1
mov dword [edi + 0x234], edx
shl eax, cl
cmp eax, dword [ebp - 0x74]
jg 0x6aee8a
mov ebx, dword [edi + 0x234]
sub dword [ebp - 0x74], eax
add dword [ebp - 0x70], 1
mov edx, dword [edi + 0x230]
cmp ebx, 1
jg 0x6aea04
mov eax, 1
mov ecx, eax
sub ecx, ebx
shr eax, cl
mov ecx, ebx
shl edx, cl
or eax, edx
mov edx, dword [edi + 0x23c]
add dword [edi + 0x23c], 4
bswap eax
mov dword [edx], eax
lea edx, [ebx + 0x1f]
mov eax, 1
jmp 0x6aea0d
add dword [edi + 0xc], 1
jmp 0x6ae548
add dword [edi + 0xc], 1
jmp 0x6ae6b3
mov ecx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x68]
lea edx, [ecx + ebx + 0xb]
mov ecx, dword [ebp - 0x4c]
movzx eax, byte [edx]
imul eax, dword [ebp - 0xc8]
sar eax, 8
test ecx, ecx
js 0x6aef50
sub dword [ebp - 0xc8], eax
mov esi, dword [ebp - 0xc8]
mov dword [edi + 8], esi
movzx eax, byte [edx]
movzx eax, byte [edi + eax + 0x14]
mov byte [edx], al
cmp dword [edi + 8], 0xff
jg 0x6aeb35
mov edx, dword [edi + 0x10]
test edx, edx
js 0x6aeb12
mov eax, dword [edi + 4]
cmp eax, 0xff00
jg 0x6aeb56
mov eax, dword [edi + 0x218]
mov byte [eax], dl
mov esi, dword [edi + 0xc]
add eax, 1
mov dword [edi + 0x218], eax
test esi, esi
je 0x6aeb12
mov eax, dword [edi + 0x218]
mov byte [eax], 0xff
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
sub eax, 1
test eax, eax
mov dword [edi + 0xc], eax
jne 0x6aeaf3
mov eax, dword [edi + 4]
sar eax, 8
mov dword [edi + 0x10], eax
movzx eax, byte [edi + 4]
shl eax, 8
mov dword [edi + 4], eax
mov eax, dword [edi + 8]
shl eax, 8
cmp eax, 0xff
mov dword [edi + 8], eax
jle 0x6aeaca
add dword [ebp - 0x6c], 1
mov edx, dword [ebp - 0x9c]
cmp dword [ebp - 0x6c], edx
je 0x6aecfa
mov ecx, dword [edi + 0x32c]
mov dword [ebp - 0x28], ecx
jmp 0x6ae373
cmp eax, 0xffff
jle 0x6aeba3
mov eax, dword [edi + 0x218]
add edx, 1
mov byte [eax], dl
mov ebx, dword [edi + 0xc]
add eax, 1
mov dword [edi + 0x218], eax
test ebx, ebx
je 0x6aeb97
mov eax, dword [edi + 0x218]
mov byte [eax], 0
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
sub eax, 1
test eax, eax
mov dword [edi + 0xc], eax
jne 0x6aeb78
movzx eax, byte [edi + 5]
mov dword [edi + 0x10], eax
jmp 0x6aeb1b
add dword [edi + 0xc], 1
jmp 0x6aeb1b
mov eax, dword [ebp - 0x78]
test eax, eax
jne 0x6ae9d4
mov esi, dword [ebp - 0x7c]
xor ecx, ecx
lea eax, [esi + esi*2]
lea esi, [eax + eax]
mov eax, dword [ebp - 0xc0]
add esi, dword [eax + 0x338]
movsx eax, byte [esi + 4]
sub dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
lea eax, [edx + 0x100]
movzx edx, word [esi + 2]
and eax, 0x1ff
sub eax, 0x100
mov dword [ebp - 0x38], eax
movzx ebx, byte [esi + 5]
cmp ebx, edx
jge 0x6aec02
mov eax, ebx
add eax, eax
add ecx, 1
cmp eax, edx
jl 0x6aebf9
movsx eax, word [esi]
mov dword [ebp - 0xb0], eax
lea eax, [ebx + eax*2]
sar eax, 0x1f
xor eax, dword [ebp - 0x38]
add eax, eax
not eax
mov ebx, eax
sar ebx, 0x1f
xor ebx, eax
mov edx, ebx
sar edx, cl
cmp edx, 0xb
mov dword [ebp - 0x3c], edx
jg 0x6aeeed
mov edx, 1
shl edx, cl
lea eax, [edx - 1]
and eax, ebx
mov ebx, dword [ebp - 0x3c]
add eax, edx
mov edx, dword [edi + 0x230]
mov dword [ebp - 0x44], eax
lea ecx, [ebx + ecx + 1]
mov ebx, dword [edi + 0x234]
mov dword [ebp - 0x40], ecx
cmp ecx, ebx
jge 0x6af057
shl edx, cl
or eax, edx
mov dword [ebp - 0x44], eax
mov eax, ebx
sub eax, ecx
mov ebx, dword [ebp - 0x44]
mov dword [edi + 0x234], eax
mov dword [edi + 0x230], ebx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
movzx ecx, byte [esi + 5]
sar edx, 0x1f
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x38]
movzx ebx, cl
add ax, word [esi + 2]
add edx, dword [ebp - 0xb0]
cmp cl, 0x80
mov word [esi + 2], ax
je 0x6af01c
lea ecx, [ebx + 1]
mov eax, ecx
neg eax
cmp edx, eax
mov dword [ebp - 0x34], eax
jg 0x6aef25
movzx eax, byte [esi + 4]
cmp al, 0x80
je 0x6aecc6
sub eax, 1
mov byte [esi + 4], al
lea eax, [ecx + edx]
cmp dword [ebp - 0x34], eax
mov ebx, eax
jl 0x6aecda
mov eax, 1
mov ebx, eax
sub bx, cx
mov byte [esi + 5], cl
mov edx, dword [ebp - 0x9c]
add dword [ebp - 0x6c], 1
cmp dword [ebp - 0x6c], edx
mov word [esi], bx
mov dword [ebp - 0x78], 0
jne 0x6aeb48
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x6aefae
mov ebx, dword [ebp - 0x70]
mov eax, 1
movzx ecx, byte [ebx + 0xb4c3e0]
shl eax, cl
cmp dword [ebp - 0x74], eax
jl 0x6aef7d
mov esi, ebx
add esi, 0xb4c3e0
jmp 0x6aed55
lea eax, [edx + edx]
or eax, 1
lea edx, [ebx - 1]
movzx ecx, byte [esi + 1]
add esi, 1
mov dword [edi + 0x230], eax
mov eax, 1
mov dword [edi + 0x234], edx
shl eax, cl
cmp eax, dword [ebp - 0x74]
jg 0x6aef7d
mov ebx, dword [edi + 0x234]
sub dword [ebp - 0x74], eax
add dword [ebp - 0x70], 1
mov edx, dword [edi + 0x230]
cmp ebx, 1
jg 0x6aed29
mov eax, 1
mov ecx, eax
sub ecx, ebx
shr eax, cl
mov ecx, ebx
shl edx, cl
or eax, edx
mov edx, dword [edi + 0x23c]
add dword [edi + 0x23c], 4
bswap eax
mov dword [edx], eax
lea edx, [ebx + 0x1f]
mov eax, 1
jmp 0x6aed32
mov eax, dword [edi + 8]
movzx edx, byte [ecx]
imul edx, eax
add eax, dword [edi + 4]
sar edx, 8
sub eax, edx
mov dword [edi + 8], edx
mov dword [edi + 4], eax
movzx eax, byte [ecx]
movzx eax, byte [edi + eax + 0x114]
mov byte [ecx], al
cmp dword [edi + 8], 0xff
jg 0x6aeb35
mov edx, dword [edi + 0x10]
test edx, edx
js 0x6aee12
mov eax, dword [edi + 4]
cmp eax, 0xff00
jg 0x6aee3a
mov eax, dword [edi + 0x218]
mov byte [eax], dl
mov ecx, dword [edi + 0xc]
add eax, 1
mov dword [edi + 0x218], eax
test ecx, ecx
je 0x6aee12
mov eax, dword [edi + 0x218]
mov byte [eax], 0xff
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
sub eax, 1
test eax, eax
mov dword [edi + 0xc], eax
jne 0x6aedf3
mov eax, dword [edi + 4]
sar eax, 8
mov dword [edi + 0x10], eax
movzx eax, byte [edi + 4]
shl eax, 8
mov dword [edi + 4], eax
mov eax, dword [edi + 8]
shl eax, 8
cmp eax, 0xff
mov dword [edi + 8], eax
jle 0x6aedca
jmp 0x6aeb35
cmp eax, 0xffff
jle 0x6aee84
mov eax, dword [edi + 0x218]
add edx, 1
mov byte [eax], dl
mov edx, dword [edi + 0xc]
add eax, 1
mov dword [edi + 0x218], eax
test edx, edx
je 0x6aee7b
mov eax, dword [edi + 0x218]
mov byte [eax], 0
add eax, 1
mov dword [edi + 0x218], eax
mov eax, dword [edi + 0xc]
sub eax, 1
test eax, eax
mov dword [edi + 0xc], eax
jne 0x6aee5c
movzx eax, byte [edi + 5]
mov dword [edi + 0x10], eax
jmp 0x6aee1b
add dword [edi + 0xc], 1
jmp 0x6aee1b
mov ebx, dword [ebp - 0x74]
lea esi, [ecx + 1]
mov edx, dword [edi + 0x230]
mov dword [ebp - 0x80], ebx
mov ebx, dword [edi + 0x234]
cmp esi, ebx
jge 0x6aefef
mov eax, dword [ebp - 0x74]
mov ecx, esi
shl edx, cl
or edx, eax
mov eax, ebx
mov dword [ebp - 0x80], edx
sub eax, esi
mov ebx, edx
mov dword [edi + 0x234], eax
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x70], 1
adc dword [ebp - 0x70], 0xffffffff
test eax, eax
mov dword [edi + 0x230], ebx
jle 0x6aeed8
sub dword [ebp - 0x4c], 1
mov dword [ebp - 0x74], 0
jmp 0x6aebb7
add dword [ebp - 0x74], 1
jmp 0x6aeb35
sub ebx, 0xb
mov edx, dword [edi + 0x230]
mov dword [ebp - 0x48], ebx
mov ebx, dword [edi + 0x234]
cmp ebx, 0x15
jle 0x6af02c
shl edx, 0x15
or dword [ebp - 0x48], edx
lea eax, [ebx - 0x15]
mov ebx, dword [ebp - 0x48]
mov dword [edi + 0x234], eax
mov dword [edi + 0x230], ebx
jmp 0x6aec78
test edx, edx
mov ebx, edx
jle 0x6aecda
movzx eax, byte [esi + 4]
cmp al, 0x7f
je 0x6aef3d
add eax, 1
mov byte [esi + 4], al
sub edx, ecx
xor eax, eax
test edx, edx
setg al
lea ebx, [eax - 1]
and ebx, edx
jmp 0x6aecda
mov ecx, dword [edi + 4]
add dword [ebp - 0xc8], ecx
sub dword [ebp - 0xc8], eax
mov ebx, dword [ebp - 0xc8]
mov dword [edi + 8], eax
mov dword [edi + 4], ebx
movzx eax, byte [edx]
movzx eax, byte [edi + eax + 0x114]
mov byte [edx], al
jmp 0x6aeac1
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x6aefae
mov ebx, dword [edi + 0x234]
mov edx, dword [edi + 0x230]
cmp ebx, 1
jle 0x6af0de
lea eax, [edx + edx]
or eax, 1
lea edx, [ebx - 1]
mov dword [edi + 0x230], eax
mov dword [edi + 0x234], edx
mov ebx, dword [ebp - 0x70]
mov dword [edi + 0xd70], ebx
add dword [ebp - 0x88], 1
mov esi, dword [ebp - 0x14]
add dword [ebp - 0x24], esi
cmp dword [ebp - 0x88], 3
jne 0x6ae2da
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x20], eax
sub dword [ebp - 0x1c], 1
jne 0x6ae197
mov esp, dword [ebp - 0x90]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x74]
mov ecx, esi
sub ecx, ebx
shr eax, cl
mov ecx, ebx
shl edx, cl
or eax, edx
mov edx, dword [edi + 0x23c]
bswap eax
add dword [edi + 0x23c], 4
mov dword [edx], eax
lea eax, [ebx + 0x20]
mov ebx, dword [ebp - 0x80]
sub eax, esi
jmp 0x6aeeb9
shr ax, 1
sar ebx, 1
sar edx, 1
mov word [esi + 2], ax
jmp 0x6aeca6
mov eax, dword [ebp - 0x48]
mov ecx, 0x15
sub ecx, ebx
shr eax, cl
mov ecx, ebx
shl edx, cl
or eax, edx
mov edx, dword [edi + 0x23c]
add dword [edi + 0x23c], 4
bswap eax
mov dword [edx], eax
lea eax, [ebx + 0xb]
jmp 0x6aef11
sub ecx, ebx
shr eax, cl
mov ecx, ebx
shl edx, cl
or eax, edx
mov edx, dword [edi + 0x23c]
add dword [edi + 0x23c], 4
bswap eax
mov dword [edx], eax
lea eax, [ebx + 0x20]
sub eax, dword [ebp - 0x40]
jmp 0x6aec69
mov ebx, dword [edi + 0x238]
mov edx, 0x20
mov eax, dword [edi + 0x23c]
sub edx, dword [edi + 0x234]
mov ecx, dword [edi + 0x240]
sub eax, ebx
lea eax, [edx + eax*8]
sub ecx, ebx
sar eax, 3
sub ecx, eax
cmp ecx, dword [ebp - 0xa8]
jge 0x6ae345
mov dword [esp + 8], 0xb4c3a8
mov dword [esp + 4], 0
mov eax, dword [edi]
mov dword [esp], eax
call fcn.0090e610
jmp 0x6aefb7
mov ecx, dword [ebp - 0x68]
xor eax, eax
add ecx, 1
jmp 0x6ae631
mov eax, 1
mov ecx, eax
sub ecx, ebx
shr eax, cl
mov ecx, ebx
shl edx, cl
or eax, edx
mov edx, dword [edi + 0x23c]
add dword [edi + 0x23c], 4
bswap eax
mov dword [edx], eax
lea edx, [ebx + 0x1f]
mov eax, 1
jmp 0x6aefa2