Function at 0x4679c2
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0x5c
mov eax, 0x499c29
call fcn.00492b86
mov edi, ecx
mov dword [ebp - 0x3c], edi
call fcn.0046797c
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 0x467a10
cmp eax, ecx
jle 0x467a10
cmp byte [edi + 0xb8], 0
jne 0x467a10
mov ecx, edi
call fcn.004685fe
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 0x467a58
mov esi, dword [edi + 0x30]
mov eax, dword [edi + 0x2c]
add esi, 0xf
and esi, 0xfffffff0
jmp 0x467a5e
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 0x467b63
cmp eax, dword [ebp - 0x24]
jae 0x467d70
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 0x467aaf
xor ebx, ebx
jmp 0x467b46
push ecx
mov ecx, edi
call fcn.004616ea
mov dword [ebp - 0x30], eax
jmp 0x467b0f
mov cl, byte [eax + esi]
inc esi
mov dword [ebp - 0x10], esi
test cl, cl
je 0x467ad1
add esi, 0xf
and esi, 0xfffffff0
xor ebx, ebx
jmp 0x467b11
add ebx, 8
cmp ebx, dword [ebp - 0x14]
jne 0x467b11
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.0046794f
test al, al
je 0x467da7
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 0x467abc
test edx, edx
jne 0x467b35
test ebx, ebx
jne 0x467b35
mov edx, dword [edi + 0x98]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [edx + eax*4]
jge 0x467b35
mov dword [edx + eax*4], ecx
push dword [ebp - 0x30]
lea ecx, [edi + 0x60]
call fcn.0046a9e5
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 0x467a88
jmp 0x467d6a
xor ebx, ebx
cmp eax, dword [ebp - 0x24]
jae 0x467d70
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 0x467b9d
xor ebx, ebx
jmp 0x467d4f
push ecx
mov ecx, edi
call fcn.004616ea
mov ecx, eax
mov eax, esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], eax
cmp esi, 0x1000
jae 0x467d22
mov edx, dword [ebp - 0x14]
movzx eax, byte [ecx + esi]
mov dword [ebp - 0x34], eax
movzx ecx, byte [eax + 0x4b4748]
add ecx, ebx
cmp ecx, edx
jl 0x467c14
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.0046794f
test al, al
je 0x467ef3
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 0x467d13
movzx eax, byte [eax + 0x4b4648]
cmp eax, edx
mov eax, dword [ebp - 0x34]
jb 0x467cfa
movzx ecx, byte [eax + 0x4b4528]
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.0046794f
test al, al
jne 0x467bfa
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.004678e7
cmp dword [ebp + 0xc], 0
lea eax, [edi + 0x60]
je 0x467cbe
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00461579
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.0046a7eb
or esi, dword [ebp - 0x28]
mov ecx, edi
or esi, 2
push esi
push dword [ebp + 0xc]
call fcn.00461650
mov esi, dword [ebp - 0x10]
lea eax, [edi + 0x60]
push dword [ebp - 0x30]
mov ecx, eax
call fcn.0046a9e5
push ebx
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.004674ec
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 0x467ee0
mov al, byte [eax + 0x4b4868]
inc esi
mov dword [ebp - 0x10], esi
cmp al, 8
jne 0x467d0d
add ebx, 8
jmp 0x467d10
movzx ebx, al
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
cmp esi, 0x1000
jb 0x467bbe
test eax, eax
jne 0x467d3e
test ebx, ebx
jne 0x467d3e
mov ecx, dword [edi + 0x98]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x44]
cmp edx, dword [ecx + eax*4]
jge 0x467d3e
mov dword [ecx + eax*4], edx
push dword [ebp - 0x30]
lea ecx, [edi + 0x60]
call fcn.0046a9e5
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 0x467b76
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmp eax, 3
je 0x4680ba
xor esi, esi
cmp dword [edi + 0xb0], esi
je 0x467d90
cmp byte [edi + 0xb8], 0
je 0x468078
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 0x467a5e
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.004678e7
cmp dword [ebp + 0xc], 0
lea eax, [edi + 0x60]
je 0x467e13
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00461579
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.0046a7eb
or esi, dword [ebp - 0x28]
mov ecx, edi
or esi, 2
push esi
push dword [ebp + 0xc]
call fcn.00461650
mov esi, dword [ebp - 0x10]
lea eax, [edi + 0x60]
push dword [ebp - 0x30]
mov ecx, eax
call fcn.0046a9e5
push dword [ebp + 8]
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.004674ec
sar ebx, 3
mov ecx, eax
mov eax, 0xff
cmp ebx, esi
jbe 0x467e68
push esi
push eax
push ecx
call fcn.0046e730
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.004674ec
mov esi, 0x1000
mov ecx, eax
mov dword [ebp - 0x10], esi
mov eax, 0xff
cmp ebx, 0x1000
jbe 0x467ebc
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.0046e730
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.004674ec
sub dword [ebp + 0xc], 1
mov ecx, eax
mov eax, 0xff
jne 0x467e80
mov esi, dword [ebp - 0x10]
push ebx
mov eax, 0xff
sub ecx, ebx
push eax
add ecx, esi
push ecx
call fcn.0046e730
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.0046aea1
mov eax, dword [ebp - 0x28]
call fcn.00492b63
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.004678e7
cmp dword [ebp + 0xc], 0
lea eax, [edi + 0x60]
je 0x467f5f
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00461579
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.0046a7eb
or esi, dword [ebp - 0x28]
mov ecx, edi
or esi, 2
push esi
push dword [ebp + 0xc]
call fcn.00461650
mov esi, dword [ebp - 0x10]
lea eax, [edi + 0x60]
push dword [ebp - 0x30]
mov ecx, eax
call fcn.0046a9e5
push dword [ebp + 8]
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.004674ec
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 0x468063
mov ecx, esi
mov eax, 0xff
shl ecx, 3
cmp ebx, ecx
jbe 0x467fd1
push esi
push eax
push dword [ebp + 0xc]
call fcn.0046e730
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.004674ec
mov esi, 0x1000
mov edx, eax
mov dword [ebp - 0x10], esi
jmp 0x467fd4
mov edx, dword [ebp + 0xc]
cmp ebx, 0x8000
jle 0x468031
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.0046e730
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.004674ec
mov edx, eax
sub ebx, 1
jne 0x467ffa
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x10]
sub ebx, 8
test ebx, ebx
jle 0x468054
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 0x468049
jmp 0x468059
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 0x467ee0
mov ebx, dword [ebp - 0x18]
mov ecx, edi
sub dword [edi + 0xb4], ebx
call fcn.004685fe
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.004679c2
mov esi, eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 5
call fcn.0046aea1
mov eax, esi
jmp 0x467eeb
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 0x46846b
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 0x468123
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 0x46846b
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.004678e7
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 0x4681c4
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.0046a5c4
push 0x1000
mov esi, eax
push ebx
push esi
call fcn.0046e730
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
push esi
call fcn.0046a9e5
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 0x468182
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.0046a5c4
push dword [ebp - 0x30]
mov esi, eax
push ebx
push esi
call fcn.0046e730
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.0046a9e5
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.0046a5c4
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 0x4682a1
mov edi, ecx
mov ecx, dword [ebp - 0x38]
push ecx
add eax, edi
push ebx
push eax
call fcn.0046e730
mov ecx, dword [ebp - 0x34]
add esp, 0xc
push dword [ebp - 0x28]
call fcn.0046a9e5
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.0046a5c4
mov edx, dword [ebp - 0x30]
mov ecx, 0x1000
sub ecx, edi
mov dword [ebp - 0x28], eax
cmp ecx, edx
jb 0x468244
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.0046e730
add esp, 0xc
lea ecx, [edi + 0x60]
push dword [ebp - 0x28]
call fcn.0046a9e5
sub dword [ebp + 8], 1
mov esi, dword [ebp - 0x20]
mov eax, esi
mov dword [ebp - 0x30], eax
js 0x468311
jmp 0x4682cc
mov eax, dword [ebp - 0x30]
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 dword [edx + esi*4], eax
mov eax, dword [ebp - 0x30]
mov ecx, eax
mov esi, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x30], eax
mov eax, esi
or eax, 3
push eax
push ecx
mov ecx, edi
call fcn.00461650
add esi, 0x1000
sub dword [ebp + 8], 1
mov dword [ebp - 0x24], esi
jns 0x4682c9
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 0x468344
and dword [edi + 0x28], 0
mov dword [edi + 0x24], ecx
jmp 0x468358
and dword [edi + 0x30], 0
mov dword [edi + 0x2c], ecx
jmp 0x468358
mov eax, dword [edi + 0x98]
dec ecx
and dword [eax + ecx*4], 0
cmp ecx, esi
ja 0x46834d
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 0x4683aa
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00461579
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.0046a7eb
or esi, dword [ebp - 0x10]
mov ecx, edi
or esi, 2
push esi
push dword [ebp + 0xc]
call fcn.00461650
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x468454
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 0x468413
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.004674ec
push 0x1000
push ebx
push eax
call fcn.0046e730
mov eax, dword [edi + 0x98]
add esp, 0xc
and dword [eax + esi*4], 0
sub dword [ebp + 0xc], 1
jne 0x4683e7
dec esi
lea eax, [ebp - 0x68]
push esi
push eax
mov ecx, edi
call fcn.004674ec
mov ecx, dword [ebp - 0x1c]
sub ecx, 8
lea esi, [eax + 0x1000]
test ecx, ecx
jle 0x468444
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 0x46843c
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.0046aea1
mov eax, dword [ebp - 0x10]
jmp 0x467eeb
push str.Out_of_memory
push 5
mov ecx, edi
call fcn.00466697
int3