Function at 0x777969
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, 0x8207ef
call fcn.007eae2c
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x3c], edi
call fcn.00777923
mov ebx, dword [ebp + 8]
mov eax, dword [edi + 0xb4]
add ebx, 0x1f
mov ecx, dword [edi + 0xb0]
and ebx, 0xffffffe0
add eax, ebx
mov dword [ebp - 0x18], ebx
mov dword [edi + 0xb4], eax
test ecx, ecx
je 0x7779bb
cmp eax, ecx
jle 0x7779bb
cmp byte [edi + 0xb8], 0
jne 0x7779bb
mov ecx, edi
call fcn.00778600
mov eax, ebx
and ebx, 0xfff
shr eax, 5
mov dword [ebp - 0x14], eax
xor eax, eax
mov edx, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], eax
push 2
pop eax
sub eax, dword [edi + 0x18]
imul ecx, eax, 0x28
mov eax, dword [edi + 0xc]
mov ecx, dword [ecx + eax]
mov dword [ebp - 0x24], ecx
test ebx, ebx
jne 0x777a03
mov esi, dword [edi + 0x30]
mov eax, dword [edi + 0x2c]
add esi, 0xf
and esi, 0xfffffff0
jmp 0x777a09
mov eax, dword [edi + 0x24]
mov esi, dword [edi + 0x28]
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 0x10], esi
mov dword [ebp + 8], ecx
test ebx, ebx
jne 0x777b0e
cmp eax, dword [ebp - 0x24]
jae 0x777d1b
mov edx, eax
shl edx, 0xc
sub edx, 0x3000
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
mov edx, 0x8000
sub eax, ebx
cmp eax, edx
cmovl edx, eax
mov eax, dword [edi + 0x98]
mov dword [ebp - 0x34], edx
cmp dword [eax + ecx*4], edx
mov edx, dword [ebp - 0x20]
jg 0x777a5a
xor ebx, ebx
jmp 0x777af1
push ecx
mov ecx, edi
call fcn.007766a3
mov dword [ebp - 0x30], eax
jmp 0x777aba
mov cl, byte [eax + esi]
inc esi
mov dword [ebp - 0x10], esi
test cl, cl
je 0x777a7c
add esi, 0xf
and esi, 0xfffffff0
xor ebx, ebx
jmp 0x777abc
add ebx, 8
cmp ebx, dword [ebp - 0x14]
jne 0x777abc
mov eax, dword [ebp - 0x20]
mov ecx, edi
push dword [ebp - 0x18]
add eax, esi
shl eax, 3
sub eax, ebx
shl eax, 5
push eax
mov dword [ebp - 0x28], eax
call fcn.007778f7
test al, al
je 0x777d52
mov eax, dword [ebp - 0x14]
sar eax, 3
add eax, 0xf
add esi, eax
mov eax, dword [ebp - 0x30]
and esi, 0xfffffff0
xor ebx, ebx
mov edx, esi
cmp esi, 0x1000
jb 0x777a67
test edx, edx
jne 0x777ae0
test ebx, ebx
jne 0x777ae0
mov edx, dword [edi + 0x98]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [edx + eax*4]
jge 0x777ae0
mov dword [edx + eax*4], ecx
push dword [ebp - 0x30]
lea ecx, [edi + 0x60]
call fcn.007797a0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
inc ecx
add edx, 0x1000
xor esi, esi
mov dword [ebp + 8], ecx
mov dword [ebp - 0x20], edx
cmp ecx, dword [ebp - 0x24]
jb 0x777a33
jmp 0x777d15
xor ebx, ebx
cmp eax, dword [ebp - 0x24]
jae 0x777d1b
mov edx, eax
shl edx, 0xc
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
mov edx, 0x8000
sub eax, ebx
cmp eax, edx
cmovl edx, eax
mov eax, dword [edi + 0x98]
mov dword [ebp - 0x44], edx
cmp dword [eax + ecx*4], edx
mov edx, dword [ebp - 0x20]
jg 0x777b48
xor ebx, ebx
jmp 0x777cfa
push ecx
mov ecx, edi
call fcn.007766a3
mov ecx, eax
mov eax, esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], eax
cmp esi, 0x1000
jae 0x777ccd
mov edx, dword [ebp - 0x14]
movzx eax, byte [ecx + esi]
mov dword [ebp - 0x34], eax
movzx ecx, byte [eax + 0x8a9700]
add ecx, ebx
cmp ecx, edx
jl 0x777bbf
mov eax, dword [ebp - 0x20]
mov ecx, edi
push dword [ebp - 0x18]
add eax, esi
shl eax, 3
sub eax, ebx
sub eax, 0x18000
shl eax, 5
push eax
mov dword [ebp - 0x28], eax
call fcn.007778f7
test al, al
je 0x777ea7
mov edx, dword [ebp - 0x14]
lea eax, [edx + 7]
shr eax, 3
add esi, eax
xor ebx, ebx
mov eax, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x28], eax
jmp 0x777cbe
movzx eax, byte [eax + 0x8a95e8]
cmp eax, edx
mov eax, dword [ebp - 0x34]
jb 0x777ca5
movzx ecx, byte [eax + 0x8a94d0]
mov ebx, dword [ebp - 0x20]
push dword [ebp - 0x18]
mov dword [ebp - 0x34], ecx
add ebx, esi
add ecx, 0xfffe8000
lea ebx, [ecx + ebx*8]
mov ecx, edi
shl ebx, 5
push ebx
mov dword [ebp - 0x28], ebx
call fcn.007778f7
test al, al
jne 0x777ba5
mov eax, dword [edi + 0x34]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x50]
mov dword [edi + 0x34], eax
mov eax, dword [ebp - 0x28]
add eax, ecx
mov dword [ebp - 0x50], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
mov ecx, edi
push eax
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], esi
call fcn.00777891
cmp dword [ebp + 0xc], 0
lea eax, [edi + 0x60]
je 0x777c69
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00776572
push dword [ebp - 0x18]
mov esi, eax
lea ecx, [edi + 0x60]
and esi, 7
sub eax, esi
push eax
push dword [ebp - 0x28]
call fcn.007795a8
or esi, dword [ebp - 0x28]
mov ecx, edi
or esi, 2
push esi
push dword [ebp + 0xc]
call fcn.0077663c
mov esi, dword [ebp - 0x10]
lea eax, [edi + 0x60]
push dword [ebp - 0x30]
mov ecx, eax
call fcn.007797a0
push ebx
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.007773ab
mov ecx, dword [ebp - 0x14]
mov dl, 1
shl dl, cl
mov ecx, dword [ebp - 0x34]
dec dl
shl dl, cl
or byte [eax + esi], dl
mov ecx, dword [edi + 0x34]
mov ecx, dword [ecx + 8]
mov dword [edi + 0x34], ecx
mov dword [ebp - 4], 3
jmp 0x777e8b
mov al, byte [eax + 0x8a9800]
inc esi
mov dword [ebp - 0x10], esi
cmp al, 8
jne 0x777cb8
add ebx, 8
jmp 0x777cbb
movzx ebx, al
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
cmp esi, 0x1000
jb 0x777b69
test eax, eax
jne 0x777ce9
test ebx, ebx
jne 0x777ce9
mov ecx, dword [edi + 0x98]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x44]
cmp edx, dword [ecx + eax*4]
jge 0x777ce9
mov dword [ecx + eax*4], edx
push dword [ebp - 0x30]
lea ecx, [edi + 0x60]
call fcn.007797a0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
inc ecx
add edx, 0x1000
xor esi, esi
mov dword [ebp + 8], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], esi
cmp ecx, dword [ebp - 0x24]
jb 0x777b21
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmp eax, 3
je 0x77806e
xor esi, esi
cmp dword [edi + 0xb0], esi
je 0x777d3b
cmp byte [edi + 0xb8], 0
je 0x77802c
inc eax
mov dword [ebp - 0x38], ecx
mov edx, ebx
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x40]
push 3
mov dword [ebp - 0x1c], edx
pop eax
jmp 0x777a09
mov eax, dword [edi + 0x34]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x50]
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x2c], eax
lea eax, [edx + ecx]
mov dword [ebp - 0x4c], ecx
mov ecx, edi
push eax
mov dword [ebp - 0x50], edx
mov dword [edi + 0x30], esi
call fcn.00777891
cmp dword [ebp + 0xc], 0
lea eax, [edi + 0x60]
je 0x777dbe
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00776572
push dword [ebp - 0x18]
mov esi, eax
lea ecx, [edi + 0x60]
and esi, 7
sub eax, esi
push eax
push dword [ebp - 0x28]
call fcn.007795a8
or esi, dword [ebp - 0x28]
mov ecx, edi
or esi, 2
push esi
push dword [ebp + 0xc]
call fcn.0077663c
mov esi, dword [ebp - 0x10]
lea eax, [edi + 0x60]
push dword [ebp - 0x30]
mov ecx, eax
call fcn.007797a0
push dword [ebp + 8]
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.007773ab
sar ebx, 3
mov ecx, eax
mov eax, 0xff
cmp ebx, esi
jbe 0x777e13
push esi
push eax
push ecx
call fcn.00798110
mov eax, dword [ebp + 8]
add esp, 0xc
sub ebx, esi
mov ecx, edi
dec eax
mov dword [ebp + 8], eax
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.007773ab
mov esi, 0x1000
mov ecx, eax
mov dword [ebp - 0x10], esi
mov eax, 0xff
cmp ebx, 0x1000
jbe 0x777e67
mov esi, dword [ebp + 8]
lea edx, [ebx - 0x1001]
shr edx, 0xc
inc edx
mov dword [ebp + 0xc], edx
push 0x1000
push eax
push ecx
call fcn.00798110
mov eax, dword [edi + 0x98]
add esp, 0xc
sub ebx, 0x1000
mov ecx, edi
and dword [eax + esi*4], 0
dec esi
push esi
lea eax, [ebp - 0x68]
push eax
call fcn.007773ab
sub dword [ebp + 0xc], 1
mov ecx, eax
mov eax, 0xff
jne 0x777e2b
mov esi, dword [ebp - 0x10]
push ebx
mov eax, 0xff
sub ecx, ebx
push eax
add ecx, esi
push ecx
call fcn.00798110
mov ecx, dword [edi + 0x34]
add esp, 0xc
mov ecx, dword [ecx + 8]
mov dword [edi + 0x34], ecx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00779c7d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
mov eax, dword [edi + 0x34]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x50]
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x24], eax
lea eax, [edx + ecx]
mov dword [ebp - 0x4c], ecx
mov ecx, edi
push eax
mov dword [ebp - 0x50], edx
mov dword [edi + 0x28], esi
call fcn.00777891
cmp dword [ebp + 0xc], 0
lea eax, [edi + 0x60]
je 0x777f13
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00776572
push dword [ebp - 0x18]
mov esi, eax
lea ecx, [edi + 0x60]
and esi, 7
sub eax, esi
push eax
push dword [ebp - 0x28]
call fcn.007795a8
or esi, dword [ebp - 0x28]
mov ecx, edi
or esi, 2
push esi
push dword [ebp + 0xc]
call fcn.0077663c
mov esi, dword [ebp - 0x10]
lea eax, [edi + 0x60]
push dword [ebp - 0x30]
mov ecx, eax
call fcn.007797a0
push dword [ebp + 8]
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.007773ab
mov ecx, dword [ebp - 0x14]
mov dl, 1
sub ecx, ebx
mov dword [ebp + 0xc], eax
shl dl, cl
dec dl
or byte [eax + esi], dl
test ebx, ebx
je 0x778017
mov ecx, esi
mov eax, 0xff
shl ecx, 3
cmp ebx, ecx
jbe 0x777f85
push esi
push eax
push dword [ebp + 0xc]
call fcn.00798110
mov eax, esi
add esp, 0xc
shl eax, 3
mov ecx, edi
sub ebx, eax
mov eax, dword [ebp + 8]
dec eax
push eax
mov dword [ebp + 8], eax
lea eax, [ebp - 0x68]
push eax
call fcn.007773ab
mov esi, 0x1000
mov edx, eax
mov dword [ebp - 0x10], esi
jmp 0x777f88
mov edx, dword [ebp + 0xc]
cmp ebx, 0x8000
jle 0x777fe5
mov esi, dword [ebp + 8]
lea eax, [ebx - 0x8001]
shr eax, 0xf
inc eax
mov dword [ebp + 0xc], eax
imul eax, eax, 0xffff8000
add ebx, eax
mov dword [ebp - 0x44], ebx
mov ebx, dword [ebp + 0xc]
push 0x1000
push 0xff
push edx
call fcn.00798110
mov eax, dword [edi + 0x98]
add esp, 0xc
mov ecx, edi
and dword [eax + esi*4], 0
dec esi
push esi
lea eax, [ebp - 0x68]
push eax
call fcn.007773ab
mov edx, eax
sub ebx, 1
jne 0x777fae
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x10]
sub ebx, 8
test ebx, ebx
jle 0x778008
lea ecx, [ebx - 1]
shr ecx, 3
inc ecx
imul eax, ecx, 0xfffffff8
add ebx, eax
mov eax, 0xff
dec esi
mov byte [edx + esi], al
sub ecx, 1
jne 0x777ffd
jmp 0x77800d
mov eax, 0xff
neg ebx
mov ecx, ebx
shl al, cl
or byte [edx + esi - 1], al
mov ecx, dword [edi + 0x34]
mov ecx, dword [ecx + 8]
mov dword [edi + 0x34], ecx
mov dword [ebp - 4], 2
jmp 0x777e8b
mov ebx, dword [ebp - 0x18]
mov ecx, edi
sub dword [edi + 0xb4], ebx
call fcn.00778600
push 3
pop eax
push dword [ebp + 0xc]
mov ecx, edi
mov dword [edi + 0x2c], eax
push ebx
mov dword [edi + 0x24], eax
mov dword [edi + 0x30], esi
mov dword [edi + 0x28], esi
call fcn.00777969
mov esi, eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 5
call fcn.00779c7d
mov eax, esi
jmp 0x777e96
mov esi, dword [ebp - 0x38]
cmp esi, ecx
cmovbe esi, ecx
cmovbe edx, ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edx
cmp esi, 0x1003
je 0x77841b
mov ebx, dword [ebp - 0x18]
mov ecx, 0xff000
cmp ebx, dword [edi + 4]
mov eax, ebx
cmovbe eax, dword [edi + 4]
xor edx, edx
add eax, 0xfefff
div ecx
mov edx, eax
mov dword [ebp + 8], edx
lea ecx, [esi + edx]
cmp ecx, 0x1003
jbe 0x7780d7
xor edx, edx
lea eax, [ebx + 0xfefff]
mov ecx, 0xff000
div ecx
mov edx, eax
mov dword [ebp + 8], eax
lea eax, [esi + edx]
cmp eax, 0x1003
ja 0x77841b
mov ebx, dword [ebp - 0x14]
mov eax, esi
sub ebx, dword [ebp - 0x1c]
shl eax, 0xf
add eax, 0xfffe8000
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
lea ecx, [ebx + 0x7f]
and ecx, 0xffffff80
mov dword [ebp - 0x44], ecx
lea esi, [eax + ecx]
mov eax, edx
shl esi, 5
mov ecx, edi
shl eax, 0xc
add eax, esi
mov dword [ebp - 0x24], esi
push eax
call fcn.00777891
mov eax, ebx
mov ecx, esi
sar eax, 3
mov ebx, 0xff
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], ecx
cmp eax, 0x1000
jb 0x778178
lea edx, [edi + 0x60]
shr eax, 0xc
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], eax
push 1
push ecx
mov ecx, edx
call fcn.0077938d
push 0x1000
mov esi, eax
push ebx
push esi
call fcn.00798110
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
push esi
call fcn.007797a0
mov ecx, dword [ebp - 0x38]
mov eax, 0x1000
mov edx, dword [ebp - 0x2c]
add ecx, eax
sub edi, eax
mov dword [ebp - 0x38], ecx
sub dword [ebp - 0x34], 1
jne 0x778136
mov dword [ebp - 0x30], edi
mov edi, dword [ebp - 0x3c]
lea eax, [edi + 0x60]
push 1
push ecx
mov ecx, eax
mov dword [ebp - 0x34], eax
call fcn.0077938d
push dword [ebp - 0x30]
mov esi, eax
push ebx
push esi
call fcn.00798110
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [ebp - 0x30]
and ecx, 7
mov dl, 1
shl dl, cl
lea ecx, [edi + 0x60]
dec dl
push esi
mov byte [esi + eax], dl
call fcn.007797a0
mov esi, dword [ebp - 0x44]
lea ecx, [edi + 0x60]
mov eax, dword [ebp + 8]
shl eax, 4
sar esi, 3
add esi, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, esi
and eax, 0xfff
sub esi, eax
mov dword [ebp - 0x2c], eax
push 1
push esi
call fcn.0077938d
mov ecx, dword [ebp - 0x2c]
mov edx, 0x1000
sub edx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x30]
cmp dword [ebp - 0x38], edx
jae 0x778255
mov edi, ecx
mov ecx, dword [ebp - 0x38]
push ecx
add eax, edi
push ebx
push eax
call fcn.00798110
mov ecx, dword [ebp - 0x34]
add esp, 0xc
push dword [ebp - 0x28]
call fcn.007797a0
mov ecx, dword [ebp - 0x30]
lea eax, [esi + 0x1000]
add ecx, 0xfffff000
mov esi, eax
add ecx, edi
mov edi, eax
and edi, 0xfff
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x34]
sub esi, edi
push 1
push esi
call fcn.0077938d
mov edx, dword [ebp - 0x30]
mov ecx, 0x1000
sub ecx, edi
mov dword [ebp - 0x28], eax
cmp ecx, edx
jb 0x7781f8
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
push edx
add eax, ecx
push ebx
push eax
call fcn.00798110
add esp, 0xc
lea ecx, [edi + 0x60]
push dword [ebp - 0x28]
call fcn.007797a0
sub dword [ebp + 8], 1
mov esi, dword [ebp - 0x20]
mov eax, esi
mov dword [ebp - 0x30], eax
js 0x7782c1
mov edx, dword [edi + 0x10]
mov esi, eax
mov ecx, eax
shr esi, 0xf
shr ecx, 0xa
and ecx, 0x1f
mov eax, dword [edx + esi*4]
bts eax, ecx
mov ecx, edi
mov dword [edx + esi*4], eax
mov esi, dword [ebp - 0x24]
mov eax, esi
mov edx, dword [ebp - 0x30]
or eax, 3
push eax
push edx
call fcn.0077663c
mov eax, dword [ebp - 0x30]
add esi, 0x1000
inc eax
mov dword [ebp - 0x24], esi
sub dword [ebp + 8], 1
mov dword [ebp - 0x30], eax
jns 0x77827b
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
push 2
pop eax
sub eax, dword [edi + 0x18]
imul ecx, eax, 0x28
mov eax, dword [edi + 0xc]
mov dword [ecx + eax], edx
mov eax, dword [ebp - 0x14]
cdq
and edx, 0x7fff
lea ecx, [edx + eax]
sar ecx, 0xf
add ecx, esi
cmp dword [ebp - 0x40], 0
je 0x7782f4
and dword [edi + 0x28], 0
mov dword [edi + 0x24], ecx
jmp 0x778308
and dword [edi + 0x30], 0
mov dword [edi + 0x2c], ecx
jmp 0x778308
mov eax, dword [edi + 0x98]
dec ecx
and dword [eax + ecx*4], 0
cmp ecx, esi
ja 0x7782fd
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
shl eax, 5
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], eax
je 0x77835a
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00776572
push dword [ebp - 0x18]
mov esi, eax
lea ecx, [edi + 0x60]
and esi, 7
sub eax, esi
push eax
push dword [ebp - 0x10]
call fcn.007795a8
or esi, dword [ebp - 0x10]
mov ecx, edi
or esi, 2
push esi
push dword [ebp + 0xc]
call fcn.0077663c
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x778404
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x50]
mov dword [edi + 0x34], eax
cmp ecx, 0x8000
jle 0x7783c3
lea eax, [ecx - 0x8001]
shr eax, 0xf
inc eax
mov dword [ebp + 0xc], eax
imul eax, eax, 0xffff8000
add ecx, eax
mov dword [ebp - 0x1c], ecx
dec esi
lea eax, [ebp - 0x68]
push esi
push eax
mov ecx, edi
call fcn.007773ab
push 0x1000
push ebx
push eax
call fcn.00798110
mov eax, dword [edi + 0x98]
add esp, 0xc
and dword [eax + esi*4], 0
sub dword [ebp + 0xc], 1
jne 0x778397
dec esi
lea eax, [ebp - 0x68]
push esi
push eax
mov ecx, edi
call fcn.007773ab
mov ecx, dword [ebp - 0x1c]
sub ecx, 8
lea esi, [eax + 0x1000]
test ecx, ecx
jle 0x7783f4
lea edx, [ecx - 1]
shr edx, 3
inc edx
imul eax, edx, 0xfffffff8
add ecx, eax
dec esi
mov byte [esi], bl
sub edx, 1
jne 0x7783ec
neg ecx
shl bl, cl
or byte [esi - 1], bl
mov ecx, dword [edi + 0x34]
mov ecx, dword [ecx + 8]
mov dword [edi + 0x34], ecx
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 4
call fcn.00779c7d
mov eax, dword [ebp - 0x10]
jmp 0x777e96
push str.Out_of_memory
push 5
mov ecx, edi
call fcn.00776700
int3