Function at 0x415f24
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov ebx, eax
mov dword [esp], edx
mov eax, dword [esp]
mov dl, byte [eax + 0x5769]
mov byte [ebx + 0x14a1], dl
mov ecx, dword [esp]
mov al, byte [ecx + 0x576a]
mov byte [ebx + 0x14a0], al
mov edx, dword [esp]
mov ecx, dword [edx + 0x55b8]
mov dword [ebx + 0x149c], ecx
mov eax, dword [esp]
mov edx, dword [eax + 0x4c00]
lea eax, [ebx + 0x60b0]
mov dword [ebx + 0x60a4], edx
mov edx, dword [esp]
add edx, 0x55c0
call fcn.004193bc
mov edx, dword [ebx + 0x20]
cmp edx, 0x400000
jae 0x415fdd
mov eax, dword [ebx + 0x149c]
cmp edx, eax
jbe 0x415fb0
mov esi, 0x400000
sub esi, edx
jmp 0x415fa9
mov edx, dword [ebx]
lea ecx, [edx + eax]
mov cl, byte [ecx + esi]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [ebx + 0x20]
jb 0x415f9d
jmp 0x415fdd
xor eax, eax
mov esi, dword [ebx + 0x149c]
sub esi, dword [ebx + 0x20]
jmp 0x415fc9
mov edx, dword [ebx]
lea ecx, [edx + eax]
mov cl, byte [ecx + esi]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [ebx + 0x20]
jb 0x415fbd
xor eax, eax
mov dword [ebx + 0x149c], eax
mov byte [ebx + 0x14a1], 1
push 0x111
mov eax, dword [ebx]
push eax
add eax, dword [ebx + 0x20]
push eax
call fcn.00482810
add esp, 0xc
mov eax, dword [ebx + 0x149c]
mov dword [esp + 4], eax
inc eax
and eax, dword [ebx + 0x24]
mov dword [ebx + 0x149c], eax
jmp 0x4160f2
mov edx, dword [ebx]
xor ecx, ecx
mov cl, byte [edx + eax]
inc eax
and eax, dword [ebx + 0x24]
mov edx, dword [ebx]
movzx eax, byte [edx + eax]
shl eax, 8
mov dl, byte [ebx + 0x149c]
add ecx, eax
mov eax, ecx
mov ecx, dword [ebx + 4]
and eax, 0x3fff
mov byte [ecx + eax], dl
xor edx, edx
mov eax, dword [ebx + 0x149c]
mov ecx, dword [ebx]
mov dl, byte [ecx + eax + 2]
mov ecx, dword [ebx]
movzx ecx, byte [ecx + eax + 1]
mov edx, dword [edx*4 + 0x4a0728]
shl edx, 0xa
mov ecx, dword [ecx*4 + 0x4a0728]
shl ecx, 4
add edx, ecx
mov ecx, dword [ebx]
movzx eax, byte [ecx + eax]
add edx, eax
mov cx, word [ebx + 0x149c]
and edx, 0x3ffff
mov eax, edx
mov edx, dword [ebx + 8]
mov word [edx + eax*2], cx
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x149c]
movzx ecx, byte [ecx + edx + 3]
mov ecx, dword [ecx*4 + 0x4a0728]
shl ecx, 6
add eax, ecx
mov ecx, dword [ebx + 0xc]
and eax, 0x3ffff
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + 0x149c]
mov edx, dword [ebx]
mov esi, dword [ebx + 0x10]
movzx edx, byte [edx + ecx + 4]
mov edx, dword [edx*4 + 0x4a0728]
shl edx, 8
add eax, edx
and eax, dword [ebx + 0x1c]
mov edx, dword [esi + eax*4]
and edx, dword [ebx + 0x24]
mov dword [esi + eax*4], ecx
mov ecx, dword [ebx]
movzx ecx, byte [ecx + edx]
xor eax, ecx
test al, 0xf
je 0x4160d6
xor edx, edx
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x149c]
mov dword [eax + ecx*4], edx
mov eax, dword [ebx + 0x149c]
inc eax
and eax, dword [ebx + 0x24]
mov dword [ebx + 0x149c], eax
mov eax, dword [ebx + 0x149c]
cmp eax, dword [esp + 4]
jne 0x41600a
mov byte [ebx + 0x60a0], 0
mov edx, dword [esp]
lea edi, [ebx + 0x14b0]
mov ecx, 0x12fc
lea esi, [edx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp]
add eax, 0x10
call fcn.00430728
lea eax, [ebx + 0xda4]
call fcn.00417748
xor edx, edx
xor ecx, ecx
mov dword [ebx + 0x974], edx
mov dword [ebx + 0x978], ecx
mov byte [ebx + 0x97c], 1
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret