Function at 0x43c4c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add eax, esi
sub eax, ebx
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x43c749
mov ebp, dword [esp + 0x40]
xor ecx, ecx
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
jmp 0x43c549
mov ecx, dword [esp + 8]
mov edx, ecx
mov eax, dword [esp + 4]
sub edx, eax
cmp ecx, dword [esp + 0xc]
je 0x43c5a6
mov dword [eax + edx], esi
add ecx, 4
mov dword [edi + 4], ecx
add esi, ebx
dec esi
inc esi
cmp esi, dword [esp + 0x14]
jae 0x43c749
mov dword [esp + 8], ecx
test ebp, ebp
je 0x43c557
cmp byte [ebp], 0x3f
je 0x43c562
movzx ecx, byte [esi]
mov edx, dword [esp + 0x38]
cmp cl, byte [edx]
jne 0x43c5a0
cmp ebx, 2
jb 0x43c520
mov ecx, 1
jmp 0x43c590
movzx edx, byte [esi + ecx]
mov eax, dword [esp + 0x38]
cmp dl, byte [eax + ecx]
jne 0x43c6bf
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
cmp ecx, ebx
jae 0x43c520
test ebp, ebp
je 0x43c570
cmp byte [ebp + ecx], 0x3f
jne 0x43c570
jmp 0x43c581
mov ecx, dword [esp + 8]
jmp 0x43c53e
mov dword [esp], edx
mov ecx, edx
sar ecx, 2
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43c5bd
mov edx, eax
mov dword [esp + 0xc], edx
lea eax, [edx*4]
push eax
call fcn.00409620
add esp, 4
mov ebp, eax
mov eax, dword [esp + 4]
test eax, eax
je 0x43c71d
mov ecx, dword [esp]
lea edx, [ecx - 0x33f7a21c]
cmp ebp, eax
mov ebx, eax
mov eax, dword [esp + 8]
mov dword [esp + 0x10], ebp
jbe 0x43c6cb
cmp eax, ebp
jbe 0x43c6cb
cmp dword [esp], 0
je 0x43c705
mov ebx, dword [esp + 4]
lea eax, [ebx + edx]
add eax, 0x33f7a21b
mov ecx, dword [esp + 0x10]
add ecx, edx
add ecx, 0x33f7a21b
mov edx, dword [esp]
mov edi, edx
and edi, 7
je 0x43c657
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x43c640
add eax, edx
add ecx, edx
add edx, dword [esp]
mov ebx, dword [esp + 4]
mov edi, ebx
sub edi, dword [esp + 8]
cmp edi, 0xfffffff8
ja 0x43c705
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x43c670
jmp 0x43c705
add esi, ecx
dec esi
mov ecx, dword [esp + 8]
jmp 0x43c53e
mov ecx, dword [esp]
shr ecx, 2
mov eax, ebx
mov edi, ebp
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, dword [esp]
and eax, 0xfffffffc
add ebp, eax
add eax, ebx
mov ecx, edx
shr ecx, 1
and ecx, 1
mov ebx, eax
mov edi, ebp
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test dl, 1
je 0x43c705
and edx, 2
movzx eax, byte [eax + edx]
mov byte [ebp + edx], al
push dword [esp + 4]
call fcn.00409630
add esp, 4
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x10]
mov dword [edi], ebp
mov eax, dword [esp + 0xc]
lea eax, [eax*4]
add eax, ebp
mov ecx, ebp
mov edx, dword [esp]
add ecx, edx
mov dword [esp + 0xc], eax
mov dword [edi + 8], eax
mov eax, ebp
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x40]
jmp 0x43c532
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret