Function at 0x6c373500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x4c
mov dword [esp + 0x3c], ebx
mov ebx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x48], ebp
mov ebp, edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x6c373541
mov eax, dword [edx + 0x29c]
test eax, eax
jne 0x6c3735a5
mov dword [esp + 0x20], 0x6c57d800
mov edi, 0x6c57d7e0
mov dword [esp + 0x1c], 0x6c57d7f0
mov dword [esp + 0x24], 0x6c57d840
mov eax, dword [ebx + 0x440]
mov ecx, dword [ebx + 0x438]
mov edx, eax
shr edx, 3
movzx edx, byte [ecx + edx]
mov ecx, eax
and ecx, 7
shl edx, cl
xor ecx, ecx
cmp eax, dword [ebx + 0x448]
setl cl
add eax, ecx
test dl, dl
mov dword [ebx + 0x440], eax
js 0x6c3735d0
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
add esp, 0x4c
ret
lea eax, [edx + 0x2d0]
mov dword [esp + 0x1c], eax
lea eax, [edx + 0x300]
mov dword [esp + 0x20], eax
lea eax, [edx + 0x3c0]
lea edi, [edx + 0x2a0]
mov dword [esp + 0x24], eax
jmp 0x6c37355e
mov eax, dword [esp + 0x14]
mov ecx, 0x10
mov edx, esi
or dword [ebp + 0x29c], eax
mov eax, ebx
mov dword [esp + 4], edi
lea edi, [esi + 0x10]
mov dword [esp], 0x6c57d7e0
call fcn.6c373330
mov edx, edi
mov ecx, 0x10
mov eax, ebx
mov dword [esp + 4], esi
mov dword [esp], 0x6c57d7e0
call fcn.6c373330
lea edx, [esi + 0x20]
mov ecx, 0x10
mov dword [esp + 4], edi
mov eax, ebx
mov dword [esp], 0x6c57d7e0
lea edi, [esi + 0x40]
call fcn.6c373330
lea eax, [esi + 0x30]
mov ecx, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov dword [esp], 0x6c57d7f0
mov dword [esp + 4], eax
mov eax, ebx
call fcn.6c373330
mov eax, dword [esp + 0x2c]
mov edx, edi
mov ecx, 0x10
mov dword [esp], 0x6c57d7f0
mov dword [esp + 4], eax
mov eax, ebx
call fcn.6c373330
lea edx, [esi + 0x50]
mov ecx, 0x10
mov dword [esp + 4], edi
mov eax, ebx
mov dword [esp], 0x6c57d7f0
call fcn.6c373330
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x6c37369f
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
test esi, esi
je 0x6c373591
mov eax, dword [esp + 0x20]
mov ecx, 0x40
mov edx, dword [esp + 0x18]
mov dword [esp], 0x6c57d800
mov dword [esp + 4], eax
mov eax, ebx
call fcn.6c373330
mov esi, dword [esp + 0x18]
mov ecx, 0x40
mov eax, dword [esp + 0x24]
mov dword [esp], 0x6c57d840
add esi, 0xc0
mov dword [esp + 4], eax
mov edx, esi
mov eax, ebx
call fcn.6c373330
cmp dword [ebp + 0xc], 3
jne 0x6c373591
mov ebp, dword [esp + 0x18]
mov ecx, 0x40
mov eax, dword [esp + 0x18]
mov dword [esp], 0x6c57d800
add ebp, 0x40
mov dword [esp + 4], eax
mov edx, ebp
mov eax, ebx
call fcn.6c373330
mov edi, dword [esp + 0x18]
mov eax, ebx
mov dword [esp + 4], esi
mov ecx, 0x40
mov dword [esp], 0x6c57d840
add edi, 0x100
mov edx, edi
call fcn.6c373330
mov edx, dword [esp + 0x18]
mov eax, ebx
mov dword [esp + 4], ebp
mov ecx, 0x40
mov dword [esp], 0x6c57d800
sub edx, 0xffffff80
call fcn.6c373330
mov edx, dword [esp + 0x18]
mov eax, ebx
mov dword [esp + 0x54], edi
mov ebx, dword [esp + 0x3c]
mov ecx, 0x40
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
add edx, 0x140
mov dword [esp + 0x50], 0x6c57d840
add esp, 0x4c
jmp fcn.6c373330