Function at 0x439720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov edi, 0xc0000008
cmp dword [ecx + 4], 0
je 0x4399e0
mov esi, ecx
mov eax, dword [ecx]
test eax, eax
je 0x4399e0
mov ebx, dword [ebp + 0x10]
mov dword [esp + 8], 0xc68bc37c
mov ecx, dword [esp + 8]
add ecx, 0x83
movzx edx, cl
mov dword [esp + 8], 0xc68bc37c
mov ecx, dword [esp + 8]
shl ecx, 8
add ecx, 0x8300
movzx ecx, cx
or ecx, edx
mov dword [esp + 8], 0xc68bc37c
mov edx, dword [esp + 8]
shl edx, 0x10
add edx, 0x830000
mov dword [esp + 8], 0xc68bc37c
mov edi, dword [esp + 8]
shl edi, 0x18
and edx, 0xff0000
or edx, ecx
add edi, edx
add edi, 0x83000000
mov dword [esp + 8], 0xc68bc35f
mov ecx, dword [esp + 8]
mov dword [esp + 8], 0xc68bc360
mov ecx, dword [esp + 8]
mov dword [esp + 8], 0xc68bc361
mov ecx, dword [esp + 8]
mov dword [esp + 8], 0xc68bc362
mov ecx, dword [esp + 8]
mov dword [esp + 8], 0xc68bc363
mov ecx, dword [esp + 8]
mov dword [esp + 8], 0xc68bc364
mov ecx, dword [esp + 8]
mov dword [esp + 8], 0xc68bc365
mov ecx, dword [esp + 8]
mov dword [esp + 8], 0xc68bc366
mov ecx, dword [esp + 8]
mov edx, dword [0x4494bc]
test edx, edx
je 0x439855
xor ebx, ebx
mov ecx, dword [0x4494c0]
nop
cmp dword [ecx + ebx*8], 0x45a3f4b9
je 0x439833
inc ebx
cmp edx, ebx
jne 0x439820
mov ebx, dword [ebp + 0x10]
jmp 0x439855
mov ecx, dword [ecx + ebx*8 + 4]
cmp ecx, edi
mov ebx, dword [ebp + 0x10]
je 0x439855
push dword [ebp + 8]
push eax
push 2
push dword [0x4494c4]
push ecx
call fcn.0043abc0
add esp, 0x14
mov edi, eax
mov dword [esp + 0x14], esi
cmp dword [ebp + 0xc], 1
mov eax, ebx
sbb eax, 0
jl 0x4399d3
cmp edi, 0xc000010a
jne 0x4399d3
mov esi, ebx
mov ebx, dword [ebp + 0xc]
mov edi, ebx
and edi, 0xffffd8f0
mov eax, edi
xor eax, 0xffffd8f0
not esi
mov ecx, ebx
and ecx, 0x270f
imul esi, ecx
mul ecx
mov dword [esp + 0x18], eax
mov ecx, edx
add ecx, esi
or ebx, 0xffffd8f0
mov esi, dword [ebp + 0x10]
imul esi, ebx
mov eax, ebx
mul edi
add edx, esi
sub edx, edi
add eax, dword [esp + 0x18]
adc edx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 4], 0xc68bc37c
mov ecx, dword [esp + 4]
add ecx, 0x83
movzx edx, cl
mov dword [esp + 4], 0xc68bc37c
mov ecx, dword [esp + 4]
shl ecx, 8
add ecx, 0x8300
movzx ecx, cx
or ecx, edx
mov dword [esp + 4], 0xc68bc37c
mov edx, dword [esp + 4]
shl edx, 0x10
add edx, 0x830000
mov dword [esp + 4], 0xc68bc37c
and edx, 0xff0000
or edx, ecx
mov ecx, dword [esp + 4]
shl ecx, 0x18
lea edi, [ecx + edx]
add edi, 0x83000000
mov dword [esp + 4], 0xc68bc35f
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0xc68bc360
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0xc68bc361
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0xc68bc362
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0xc68bc363
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0xc68bc364
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0xc68bc365
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0xc68bc366
mov ecx, dword [esp + 4]
mov ecx, dword [0x4494bc]
test ecx, ecx
je 0x4399d3
xor edx, edx
mov esi, dword [0x4494c0]
nop
nop
nop
cmp dword [esi + edx*8], 0x39c83604
je 0x4399b0
inc edx
cmp ecx, edx
jne 0x4399a0
jmp 0x4399d3
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, edi
je 0x4399d3
lea edx, [esp + 8]
push edx
push 0
push eax
push 3
push dword [0x4494c4]
push ecx
call fcn.0043abc0
add esp, 0x18
mov edi, eax
test edi, edi
js 0x4399e0
mov ecx, dword [esp + 0x14]
call fcn.00439610
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc