Function at 0x43fd00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x43fd20
sar ecx, 1
mov edx, ecx
and edx, 0xfffd
mov edi, ecx
and edi, 2
or ecx, 2
imul ecx, edi
xor edi, 2
imul edi, edx
lea edx, [edi + ecx]
mov word [esp + 0x14], dx
add ecx, edi
add ecx, 2
mov word [esp + 0x16], cx
mov dword [esp + 0x18], eax
mov dword [esp + 4], 0x7e7f7c7d
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 3
ja 0x43fdc1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
lea edx, [eax - 0x4a552c98]
lea edi, [eax + ecx]
add edi, 0xb5aad368
add eax, 0x68
or eax, edx
and eax, ecx
add eax, eax
sub edi, eax
mov dword [esp + 8], edi
mov eax, dword [esp + 8]
add al, 0xea
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 4
jb 0x43fd80
mov ebx, dword [esp + 4]
mov eax, dword [0x44996c]
test eax, eax
je 0x43fe1f
xor ecx, ecx
mov edx, dword [0x449970]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xf81c0144
je 0x43fdf0
inc ecx
cmp eax, ecx
jne 0x43fde0
jmp 0x43fe1f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43fe1f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x48]
push 6
push dword [0x449974]
push eax
call fcn.0043c800
add esp, 0x24
mov ebx, eax
mov dword [esp + 8], 0xe8abaa42
mov byte [esp + 0xc], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 4
ja 0x43fe86
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx edx, byte [esp + ecx + 8]
lea ecx, [eax + edx]
add eax, 0x47
and eax, edx
sub ecx, eax
add ecx, 0x174b0e47
mov edx, ecx
not edx
and edx, eax
not eax
and eax, ecx
sub eax, edx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0x1e
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x43fe40
cmp ebx, dword [esp + 8]
jne 0x43ffe2
push dword [esp + 0x10]
call fcn.0043a6f0
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], 0x7e7f7c7d
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 3
ja 0x43ff02
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov edi, dword [esp]
movzx edi, byte [esp + edi + 4]
lea ebx, [edx - 0x4a552c98]
lea ebp, [edx + edi]
add ebp, 0xb5aad368
add edx, 0x68
or edx, ebx
and edx, edi
add edx, edx
sub ebp, edx
mov dword [esp + 8], ebp
mov edx, dword [esp + 8]
add dl, 0xea
mov edi, dword [esp]
mov byte [esp + edi + 4], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 4
jb 0x43fec0
mov ebx, dword [esp + 4]
mov edx, dword [0x44996c]
test edx, edx
je 0x43ff61
xor ebp, ebp
mov edi, dword [0x449970]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + ebp*8], 0xf81c0144
je 0x43ff30
inc ebp
cmp edx, ebp
jne 0x43ff20
jmp 0x43ff61
mov edx, dword [edi + ebp*8 + 4]
cmp edx, ebx
je 0x43ff61
lea edi, [esp + 0x10]
lea ebx, [esp + 0x14]
push edi
push ecx
push eax
push 2
push ebx
push dword [esp + 0x48]
push 6
push dword [0x449974]
push edx
mov edi, eax
call fcn.0043c800
add esp, 0x24
mov ebx, eax
mov eax, edi
test ebx, ebx
js 0x43ffd9
test esi, esi
je 0x43ff6e
mov ecx, dword [eax + 4]
mov dword [esi], ecx
cmp dword [esp + 0x44], 0
je 0x43ffd9
mov esi, dword [esp + 0x40]
test esi, esi
je 0x43ffd0
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x43ff8c
mov edx, ecx
lea ebp, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov edi, esi
xchg esi, ebp
rep movsd dword es:[edi], dword [esi]
xchg esi, ebp
mov ecx, edx
and ecx, 0xfffffffc
add esi, ecx
lea ebp, [eax + ecx]
add ebp, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov dword [esp + 0x1c], ebp
mov edi, esi
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
test dl, 1
je 0x43ffd0
and edx, 2
mov ecx, dword [esp + 0x1c]
movzx ecx, byte [ecx + edx]
mov byte [esi + edx], cl
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x44]
mov dword [edx], ecx
push eax
call fcn.0043a780
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret