Function at 0x104632e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x34]
cmp dword [eax + 0x14200], 0
lea ecx, [eax + 0x141f8]
mov dword [esp + 8], ecx
je 0x10463590
push ebp
mov ebp, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
push esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
movzx eax, byte [eax + 0xcb55]
add eax, 0xfffffffc
cmp eax, 0x3c
ja case.0x1046332c.5
movzx eax, byte [eax + 0x104635ac]
jmp dword [eax*4 + 0x10463594]
mov al, byte [0x109da77c]
mov cl, byte [0x109da794]
jmp 0x10463372
mov al, byte [0x109da779]
mov cl, byte [0x109da791]
jmp 0x10463372
mov al, byte [0x109da773]
mov cl, byte [0x109da78b]
jmp 0x10463372
mov al, byte [0x109da770]
mov cl, byte [0x109da788]
jmp 0x10463372
mov cl, byte [0x109da78e]
mov al, byte [0x109da776]
push ebx
movzx ebx, cl
xor edx, edx
mov ecx, dword [esp + 0x44]
push edi
movzx edi, al
movzx eax, byte [ecx + 0x109da770]
div edi
xor edx, edx
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 0x109da788]
div ebx
cmp dword [esp + 0x10], 1
mov dword [esp + 0x1c], eax
jl 0x1046358c
cmp eax, 1
jl 0x1046358c
mov ecx, dword [esi + 0x3e7a8]
mov eax, ebp
cdq
mov ebp, dword [esp + 0x18]
mov esi, dword [ecx + 0x1c]
movzx ecx, byte [esi + 0x109da788]
idiv ecx
movzx ecx, byte [esi + 0x109da770]
mov eax, edx
cdq
idiv ebx
mov ebx, eax
mov eax, dword [esp + 0x44]
cdq
idiv ecx
imul ebx, dword [ebp + 0xb10]
mov eax, edx
cdq
idiv edi
xor edx, edx
add ebx, eax
mov eax, dword [esp + 0x1c]
imul eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], eax
mov dword [ebx + 4], eax
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0xb10]
imul eax, ecx
mov ecx, dword [esp + 0x20]
add ecx, 0x25
add eax, edx
add eax, ecx
lea ecx, [eax*8]
sub ecx, eax
add ecx, dword [esp + 0x4c]
mov eax, dword [ebp + ecx*4]
mov edx, eax
shr edx, 0x10
movzx esi, ax
cmp eax, 0x80008000
je 0x1046358c
mov ebp, dword [esp + 0x54]
mov eax, esi
not eax
movzx ecx, ax
shr ecx, 0xf
mov ebp, dword [ebp]
add ecx, 3
movsx eax, si
add eax, ecx
sar eax, 3
movzx eax, ax
mov esi, eax
mov word [esp + 0x34], ax
mov eax, edx
not eax
movzx ecx, ax
shr ecx, 0xf
add ecx, 3
movsx eax, dx
add eax, ecx
mov ecx, ebp
sar eax, 3
mov dword [esp + 0x28], eax
mov word [esp + 0x36], ax
xor eax, eax
test ebp, ebp
jle 0x10463513
mov ecx, esi
not ecx
movzx edx, cx
movsx ecx, si
shr edx, 0xf
add ecx, 3
add ecx, edx
sar ecx, 3
mov dword [esp + 0x24], ecx
movzx esi, word [ebx + eax*8]
lea edi, [ebx + eax*8]
mov ecx, esi
not ecx
movzx edx, cx
movsx ecx, si
add ecx, 3
shr edx, 0xf
add ecx, edx
sar ecx, 3
cmp dword [esp + 0x24], ecx
jne 0x1046350c
movzx esi, word [ebx + eax*8 + 2]
mov ecx, esi
movsx esi, si
not ecx
movzx edx, cx
mov ecx, dword [esp + 0x36]
shr edx, 0xf
not ecx
add edx, 3
add esi, edx
movzx edx, cx
mov ecx, dword [esp + 0x28]
movsx ecx, cx
shr edx, 0xf
add ecx, 3
add ecx, edx
xor esi, ecx
test esi, 0xfffffff8
je 0x10463557
inc eax
cmp eax, ebp
jl 0x104634b1
mov ecx, ebp
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x34]
mov dword [ebx + ecx*8], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esi]
mov dword [ebx + eax*8 + 4], 1
inc dword [esi]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
inc edx
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x10]
jl 0x10463410
inc ecx
mov dword [esp + 0x44], ecx
cmp ecx, dword [esp + 0x1c]
jge 0x10463568
xor edx, edx
jmp 0x1046340c
mov ecx, dword [esp + 0x44]
inc dword [edi + 4]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x44], ecx
jmp 0x1046352e
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x30]
add ecx, ecx
mov dword [eax], ecx
mov eax, dword [esi]
cmp eax, 2
jle 0x1046358c
push 0x10463210
push 8
push eax
push ebx
call fcn.105265a0
add esp, 0x10
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x2c
ret