Function at 0x5034af2
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5073904
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1dfc
call fcn.050704b0
mov eax, dword [0x509ddfc]
xor eax, esp
mov dword [esp + 0x1df8], eax
push ebx
push esi
push edi
mov eax, dword [0x509ddfc]
xor eax, esp
push eax
lea eax, [esp + 0x1e10]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
xor esi, esi
add eax, 0x60
mov edi, ecx
push esi
push eax
mov dword [esp + 0x28], edi
call fcn.050148cd
cmp dword [edi], esi
pop ecx
pop ecx
jne 0x5034b6e
mov eax, dword [ebx + 4]
push esi
push 0x753
push 0xb71b
push eax
call fcn.05062683
add esp, 0x10
mov dword [edi], eax
mov ecx, ebx
mov dword [esp + 0x24], ebx
call fcn.0503f80c
xor edx, edx
mov dword [esp + 0x1e18], esi
lea eax, [esp + 0x15d0]
inc edx
mov ecx, edx
shr ecx, 1
movzx ecx, cx
mov word [eax - 2], cx
mov word [eax], cx
mov word [eax + 2], cx
add edx, 0x101
add eax, 8
cmp edx, 0x10101
jb 0x5034b8a
push esi
push 0x504c4142
push 0x50524742
mov esi, 0x100
push esi
lea eax, [esp + 0x15dc]
push eax
push eax
mov ecx, ebx
call fcn.0506bbf5
xor eax, eax
mov cx, word [esp + eax*8 + 0x15ce]
mov word [esp + eax*2 + 0x13cc], cx
inc eax
cmp eax, esi
jb 0x5034bd0
lea ecx, [esp + 0x13cc]
call fcn.0502f325
test al, al
jne 0x5034c01
lea ecx, [esp + 0x13cc]
call fcn.0502f30c
push 2
lea ecx, [esp + 0x13d0]
call fcn.0502f341
xor edx, edx
lea eax, [edi + 0x204]
movzx ecx, word [esp + edx*2 + 0x13cc]
mov word [eax - 0x200], cx
mov word [eax], cx
mov word [eax + 0x200], cx
inc edx
inc eax
inc eax
cmp edx, esi
jb 0x5034c17
lea eax, [esp + 0x15cc]
push eax
lea ecx, [esp + 0x13d0]
call fcn.0502f4ac
lea esi, [esp + 0x1dd4]
mov dword [esp + 0x10], 0xc
mov eax, dword [esp + 0x10]
push 0x18
pop ecx
xor edx, edx
div ecx
lea ecx, [esp + 0x15cc]
push eax
call fcn.0502f1e6
add dword [esp + 0x10], 0x8000
mov word [esi], ax
inc esi
inc esi
cmp dword [esp + 0x10], 0xc800c
jb 0x5034c5a
and dword [esp + 0x14], 0
lea eax, [esp + 0x1dd4]
mov dword [esp + 0x1c], eax
jmp 0x5034c9f
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
movzx eax, word [eax]
and dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x48]
mov edx, dword [esp + 0x10]
movzx edx, word [esp + edx*2 + 0x1dd4]
xor ecx, ecx
mov si, word [esp + 0x18]
mov word [eax - 2], si
mov si, word [esp + ecx*2 + 0x1dd4]
mov word [eax], dx
mov word [eax + 2], si
inc ecx
add eax, 8
cmp ecx, 0x19
jb 0x5034cc1
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x19
jb 0x5034cb3
push 0
push 0x504c4142
push 0x50524742
push 0x271
lea eax, [esp + 0x54]
push eax
push eax
mov ecx, ebx
call fcn.0506bbf5
push 1
push 0x753
push dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push dword [edi]
call fcn.050623fb
lea ecx, [esp + 0x30]
mov byte [esp + 0x1e18], 1
call fcn.05062448
lea edi, [esp + 0x44]
lea esi, [eax + 2]
mov dword [esp + 0x18], 0x19
mov dword [esp + 0x10], 0x19
mov eax, dword [edi]
mov ecx, dword [edi + 4]
shr eax, 0x10
imul eax, eax, 0xff
add eax, 0x4000
shr eax, 0xf
mov byte [esi - 2], al
movzx eax, cx
push eax
mov dword [esp + 0x30], ecx
call fcn.05030efb
mov byte [esi - 1], al
movzx eax, word [esp + 0x32]
push eax
call fcn.05030efb
mov byte [esi], al
pop ecx
add esi, 3
add edi, 8
dec dword [esp + 0x14]
pop ecx
jne 0x5034d49
dec dword [esp + 0x18]
jne 0x5034d41
lea ecx, [esp + 0x30]
mov byte [esp + 0x1e18], 0
call fcn.0506242e
add dword [esp + 0x14], 0x753
add dword [esp + 0x1c], 2
cmp dword [esp + 0x14], 0xb71b
jb 0x5034c9b
or dword [esp + 0x1e18], 0xffffffff
mov ecx, ebx
call fcn.0503f832
mov ecx, dword [esp + 0x1e10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1df8]
xor ecx, esp
call fcn.05070186
mov esp, ebp
pop ebp
ret 4