Function at 0x43b050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov dword [esp + 0x2f], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x22212027
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x12
ja 0x43b0d8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov eax, dword [esp + 4]
movzx edx, byte [esp + eax + 0x20]
lea eax, [ecx + edx]
add eax, 0x7be982db
add ecx, 0x7be982db
and ecx, edx
add ecx, ecx
sub eax, ecx
add al, 3
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x13
jb 0x43b0a0
mov esi, dword [esp + 0x20]
mov eax, dword [0x448cd8]
test eax, eax
je 0x43b12c
xor ecx, ecx
mov edx, dword [0x448cdc]
nop
nop
nop
cmp dword [edx + ecx*8], 0x542c2d52
je 0x43b100
inc ecx
cmp eax, ecx
jne 0x43b0f0
jmp 0x43b12c
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43b12c
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x448ce0]
push eax
call fcn.004373e0
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x43b418
push dword [esp + 0x18]
call fcn.00435440
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2f], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x22212027
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x12
ja 0x43b1ca
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx esi, byte [esp + ecx + 0x20]
lea ecx, [edx + esi]
add ecx, 0x7be982db
add edx, 0x7be982db
and edx, esi
add edx, edx
sub ecx, edx
add cl, 3
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x20], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x13
jb 0x43b190
mov esi, dword [esp + 0x20]
mov ecx, dword [0x448cd8]
test ecx, ecx
je 0x43b22e
mov edi, esi
xor edx, edx
mov esi, dword [0x448cdc]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x542c2d52
je 0x43b202
inc edx
cmp ecx, edx
jne 0x43b1f0
mov esi, edi
jmp 0x43b22e
mov ecx, dword [esi + edx*8 + 4]
mov esi, edi
cmp ecx, edi
je 0x43b22e
lea edx, [esp + 0x18]
push edx
push eax
push ebx
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x448ce0]
push ecx
call fcn.004373e0
add esp, 0x24
mov esi, eax
test esi, esi
js 0x43b40f
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
test edx, edx
mov dword [esp + 0x1c], esi
je 0x43b31c
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x43b315
mov eax, dword [ebx + 0x10]
shr eax, 1
mov edx, dword [edx]
cmp edx, eax
jb 0x43b260
mov edx, eax
test edx, edx
je 0x43b309
mov dword [esp + 0xc], ebx
mov esi, ebx
add esi, 0x14
mov eax, edx
and eax, 3
mov dword [esp + 8], edx
je 0x43b298
nop
nop
nop
nop
dec edx
movzx ecx, word [esi]
xor ebx, ebx
test cx, cx
setne bl
lea esi, [esi + ebx*2]
mov word [edi], cx
add edi, 2
dec eax
jne 0x43b280
cmp dword [esp + 8], 4
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 0x18]
jb 0x43b309
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, word [esi]
xor ecx, ecx
test ax, ax
setne cl
mov word [edi], ax
lea eax, [esi + ecx*2]
movzx ecx, word [esi + ecx*2]
xor ebx, ebx
test cx, cx
setne bl
mov word [edi + 2], cx
lea ecx, [eax + ebx*2]
movzx eax, word [eax + ebx*2]
xor ebx, ebx
test ax, ax
setne bl
mov word [edi + 4], ax
lea eax, [ecx + ebx*2]
movzx ecx, word [ecx + ebx*2]
xor ebx, ebx
test cx, cx
setne bl
lea esi, [eax + ebx*2]
mov word [edi + 6], cx
add edi, 8
add edx, 0xfffffffc
jne 0x43b2b0
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 0x18]
mov word [edi], 0
mov esi, dword [esp + 0x1c]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebx + 0x10]
shr eax, 1
mov dword [edx], eax
test ecx, ecx
je 0x43b325
mov eax, dword [ebx + 4]
mov dword [ecx], eax
cmp dword [ebp + 0x20], 0
je 0x43b40f
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x43b403
mov eax, dword [ebp + 0x20]
mov esi, dword [eax]
mov ecx, dword [ebx + 0xc]
cmp esi, ecx
jb 0x43b348
mov esi, ecx
mov edx, dword [ebx + 8]
add edx, ebx
mov ecx, esi
shr ecx, 2
mov dword [esp + 0xc], ebx
mov ebx, esi
and ebx, 0xfffffffc
mov eax, edi
add eax, ebx
add ebx, edx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov dword [esp + 8], esi
mov edx, esi
and edx, 3
mov ecx, edx
shr ecx, 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov edi, eax
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ebx, dword [esp + 0xc]
mov edi, edx
xor edi, 0xfffffffe
mov ecx, edx
or ecx, 1
and ecx, edi
je 0x43b403
mov eax, dword [esp + 8]
mov edi, eax
not edi
or edi, 0xfffffffe
lea ebx, [edx + edi]
mov dword [esp + 0x48], ebx
and eax, 2
mov dword [esp + 8], eax
mov esi, dword [esp + 0x10]
movzx ebx, byte [esi + eax]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x48]
mov byte [eax + esi + 1], bl
mov ebx, dword [esp + 0xc]
cmp ecx, 1
je 0x43b403
add edx, edi
inc edx
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x10]
movzx ebx, byte [esi + eax + 1]
mov eax, dword [esp + 0x14]
mov byte [eax + edx + 1], bl
mov ebx, dword [esp + 0xc]
cmp ecx, 2
je 0x43b403
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
movzx eax, byte [ecx + eax + 2]
mov ecx, dword [esp + 0x14]
mov byte [ecx + edx + 2], al
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov esi, dword [esp + 0x1c]
push ebx
call fcn.004354f0
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret