Function at 0x779de3
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, 0x822bff
call fcn.007ed2bc
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x3c], edi
call fcn.00779d9d
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 0x779e35
cmp eax, ecx
jle 0x779e35
cmp byte [edi + 0xb8], 0
jne 0x779e35
mov ecx, edi
call fcn.0077aa7a
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 0x779e7d
mov esi, dword [edi + 0x30]
mov eax, dword [edi + 0x2c]
add esi, 0xf
and esi, 0xfffffff0
jmp 0x779e83
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 0x779f88
cmp eax, dword [ebp - 0x24]
jae 0x77a195
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 0x779ed4
xor ebx, ebx
jmp 0x779f6b
push ecx
mov ecx, edi
call fcn.00778b1d
mov dword [ebp - 0x30], eax
jmp 0x779f34
mov cl, byte [eax + esi]
inc esi
mov dword [ebp - 0x10], esi
test cl, cl
je 0x779ef6
add esi, 0xf
and esi, 0xfffffff0
xor ebx, ebx
jmp 0x779f36
add ebx, 8
cmp ebx, dword [ebp - 0x14]
jne 0x779f36
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.00779d71
test al, al
je 0x77a1cc
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 0x779ee1
test edx, edx
jne 0x779f5a
test ebx, ebx
jne 0x779f5a
mov edx, dword [edi + 0x98]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [edx + eax*4]
jge 0x779f5a
mov dword [edx + eax*4], ecx
push dword [ebp - 0x30]
lea ecx, [edi + 0x60]
call fcn.0077bc1a
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 0x779ead
jmp 0x77a18f
xor ebx, ebx
cmp eax, dword [ebp - 0x24]
jae 0x77a195
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 0x779fc2
xor ebx, ebx
jmp 0x77a174
push ecx
mov ecx, edi
call fcn.00778b1d
mov ecx, eax
mov eax, esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], eax
cmp esi, 0x1000
jae 0x77a147
mov edx, dword [ebp - 0x14]
movzx eax, byte [ecx + esi]
mov dword [ebp - 0x34], eax
movzx ecx, byte [eax + 0x8adb98]
add ecx, ebx
cmp ecx, edx
jl 0x77a039
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.00779d71
test al, al
je 0x77a321
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 0x77a138
movzx eax, byte [eax + 0x8ada80]
cmp eax, edx
mov eax, dword [ebp - 0x34]
jb 0x77a11f
movzx ecx, byte [eax + 0x8ad968]
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.00779d71
test al, al
jne 0x77a01f
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.00779d0b
cmp dword [ebp + 0xc], 0
lea eax, [edi + 0x60]
je 0x77a0e3
push dword [ebp + 0xc]
mov ecx, edi
call fcn.007789ec
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.0077ba22
or esi, dword [ebp - 0x28]
mov ecx, edi
or esi, 2
push esi
push dword [ebp + 0xc]
call fcn.00778ab6
mov esi, dword [ebp - 0x10]
lea eax, [edi + 0x60]
push dword [ebp - 0x30]
mov ecx, eax
call fcn.0077bc1a
push ebx
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.00779825
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 0x77a305
mov al, byte [eax + 0x8adc98]
inc esi
mov dword [ebp - 0x10], esi
cmp al, 8
jne 0x77a132
add ebx, 8
jmp 0x77a135
movzx ebx, al
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
cmp esi, 0x1000
jb 0x779fe3
test eax, eax
jne 0x77a163
test ebx, ebx
jne 0x77a163
mov ecx, dword [edi + 0x98]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x44]
cmp edx, dword [ecx + eax*4]
jge 0x77a163
mov dword [ecx + eax*4], edx
push dword [ebp - 0x30]
lea ecx, [edi + 0x60]
call fcn.0077bc1a
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 0x779f9b
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmp eax, 3
je 0x77a4e8
xor esi, esi
cmp dword [edi + 0xb0], esi
je 0x77a1b5
cmp byte [edi + 0xb8], 0
je 0x77a4a6
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 0x779e83
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.00779d0b
cmp dword [ebp + 0xc], 0
lea eax, [edi + 0x60]
je 0x77a238
push dword [ebp + 0xc]
mov ecx, edi
call fcn.007789ec
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.0077ba22
or esi, dword [ebp - 0x28]
mov ecx, edi
or esi, 2
push esi
push dword [ebp + 0xc]
call fcn.00778ab6
mov esi, dword [ebp - 0x10]
lea eax, [edi + 0x60]
push dword [ebp - 0x30]
mov ecx, eax
call fcn.0077bc1a
push dword [ebp + 8]
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.00779825
sar ebx, 3
mov ecx, eax
mov eax, 0xff
cmp ebx, esi
jbe 0x77a28d
push esi
push eax
push ecx
call fcn.0079a580
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.00779825
mov esi, 0x1000
mov ecx, eax
mov dword [ebp - 0x10], esi
mov eax, 0xff
cmp ebx, 0x1000
jbe 0x77a2e1
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.0079a580
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.00779825
sub dword [ebp + 0xc], 1
mov ecx, eax
mov eax, 0xff
jne 0x77a2a5
mov esi, dword [ebp - 0x10]
push ebx
mov eax, 0xff
sub ecx, ebx
push eax
add ecx, esi
push ecx
call fcn.0079a580
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.0077c0f7
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.00779d0b
cmp dword [ebp + 0xc], 0
lea eax, [edi + 0x60]
je 0x77a38d
push dword [ebp + 0xc]
mov ecx, edi
call fcn.007789ec
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.0077ba22
or esi, dword [ebp - 0x28]
mov ecx, edi
or esi, 2
push esi
push dword [ebp + 0xc]
call fcn.00778ab6
mov esi, dword [ebp - 0x10]
lea eax, [edi + 0x60]
push dword [ebp - 0x30]
mov ecx, eax
call fcn.0077bc1a
push dword [ebp + 8]
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.00779825
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 0x77a491
mov ecx, esi
mov eax, 0xff
shl ecx, 3
cmp ebx, ecx
jbe 0x77a3ff
push esi
push eax
push dword [ebp + 0xc]
call fcn.0079a580
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.00779825
mov esi, 0x1000
mov edx, eax
mov dword [ebp - 0x10], esi
jmp 0x77a402
mov edx, dword [ebp + 0xc]
cmp ebx, 0x8000
jle 0x77a45f
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.0079a580
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.00779825
mov edx, eax
sub ebx, 1
jne 0x77a428
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x10]
sub ebx, 8
test ebx, ebx
jle 0x77a482
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 0x77a477
jmp 0x77a487
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 0x77a305
mov ebx, dword [ebp - 0x18]
mov ecx, edi
sub dword [edi + 0xb4], ebx
call fcn.0077aa7a
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.00779de3
mov esi, eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 5
call fcn.0077c0f7
mov eax, esi
jmp 0x77a310
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 0x77a895
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 0x77a551
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 0x77a895
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.00779d0b
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 0x77a5f2
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.0077b807
push 0x1000
mov esi, eax
push ebx
push esi
call fcn.0079a580
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
push esi
call fcn.0077bc1a
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 0x77a5b0
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.0077b807
push dword [ebp - 0x30]
mov esi, eax
push ebx
push esi
call fcn.0079a580
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.0077bc1a
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.0077b807
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 0x77a6cf
mov edi, ecx
mov ecx, dword [ebp - 0x38]
push ecx
add eax, edi
push ebx
push eax
call fcn.0079a580
mov ecx, dword [ebp - 0x34]
add esp, 0xc
push dword [ebp - 0x28]
call fcn.0077bc1a
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.0077b807
mov edx, dword [ebp - 0x30]
mov ecx, 0x1000
sub ecx, edi
mov dword [ebp - 0x28], eax
cmp ecx, edx
jb 0x77a672
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.0079a580
add esp, 0xc
lea ecx, [edi + 0x60]
push dword [ebp - 0x28]
call fcn.0077bc1a
sub dword [ebp + 8], 1
mov esi, dword [ebp - 0x20]
mov eax, esi
mov dword [ebp - 0x30], eax
js 0x77a73b
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.00778ab6
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 0x77a6f5
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 0x77a76e
and dword [edi + 0x28], 0
mov dword [edi + 0x24], ecx
jmp 0x77a782
and dword [edi + 0x30], 0
mov dword [edi + 0x2c], ecx
jmp 0x77a782
mov eax, dword [edi + 0x98]
dec ecx
and dword [eax + ecx*4], 0
cmp ecx, esi
ja 0x77a777
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 0x77a7d4
push dword [ebp + 0xc]
mov ecx, edi
call fcn.007789ec
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.0077ba22
or esi, dword [ebp - 0x10]
mov ecx, edi
or esi, 2
push esi
push dword [ebp + 0xc]
call fcn.00778ab6
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x77a87e
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 0x77a83d
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.00779825
push 0x1000
push ebx
push eax
call fcn.0079a580
mov eax, dword [edi + 0x98]
add esp, 0xc
and dword [eax + esi*4], 0
sub dword [ebp + 0xc], 1
jne 0x77a811
dec esi
lea eax, [ebp - 0x68]
push esi
push eax
mov ecx, edi
call fcn.00779825
mov ecx, dword [ebp - 0x1c]
sub ecx, 8
lea esi, [eax + 0x1000]
test ecx, ecx
jle 0x77a86e
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 0x77a866
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.0077c0f7
mov eax, dword [ebp - 0x10]
jmp 0x77a310
push str.Out_of_memory
push 5
mov ecx, edi
call fcn.00778b7a
int3