Function at 0x439b40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov dword [esp + 0x10], 0xc8c9cecf
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x439bb6
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0x7e1cd722]
add eax, 0x22
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0x12
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x439b80
mov esi, dword [esp + 0x10]
mov eax, dword [0x447094]
test eax, eax
je 0x439c0c
xor ecx, ecx
mov edx, dword [0x447098]
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x77defcd
je 0x439be0
inc ecx
cmp eax, ecx
jne 0x439bd0
jmp 0x439c0c
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x439c0c
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x44709c]
push eax
call fcn.004366c0
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x439e02
push dword [esp + 8]
call fcn.00434840
add esp, 4
mov edi, eax
mov eax, dword [esp + 8]
mov dword [esp + 0x10], 0xc8c9cecf
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xf
ja 0x439c97
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
lea esi, [ecx + 0x7e1cd722]
add ecx, 0x22
and ecx, edx
or esi, edx
sub esi, ecx
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0xc]
add cl, 0x12
mov edx, dword [esp]
mov byte [esp + edx + 0x10], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x10
jb 0x439c60
mov edx, dword [ebp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, dword [0x447094]
test ecx, ecx
je 0x439d14
mov dword [esp + 4], eax
mov eax, esi
xor edx, edx
mov esi, dword [0x447098]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x77defcd
je 0x439cdf
mov ebx, edx
and ebx, 1
xor edx, 1
lea edx, [edx + ebx*2]
cmp edx, ecx
jb 0x439cc0
mov esi, eax
mov edx, dword [ebp + 0x14]
jmp 0x439d14
mov ecx, dword [esi + edx*8 + 4]
mov esi, eax
cmp ecx, eax
mov edx, dword [ebp + 0x14]
je 0x439d14
lea edx, [esp + 8]
push edx
push dword [esp + 8]
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x44709c]
push ecx
call fcn.004366c0
mov edx, dword [ebp + 0x14]
add esp, 0x24
mov esi, eax
test edx, edx
je 0x439df9
test esi, esi
js 0x439df9
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x439df2
mov ecx, dword [edi + 0xc]
shr ecx, 1
mov ebx, dword [edx]
cmp ebx, ecx
jb 0x439d3c
mov ebx, ecx
test ebx, ebx
mov dword [esp + 0x28], edi
je 0x439de6
mov edx, edi
add edx, 0x10
mov ecx, ebx
and ebx, 3
mov dword [esp + 4], esi
mov dword [esp + 0x24], ecx
mov edi, ecx
je 0x439d78
nop
nop
dec edi
movzx esi, word [edx]
xor ecx, ecx
test si, si
setne cl
lea edx, [edx + ecx*2]
mov word [eax], si
add eax, 2
dec ebx
jne 0x439d60
cmp dword [esp + 0x24], 4
mov esi, dword [esp + 4]
jb 0x439de6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [edx]
xor ebx, ebx
test cx, cx
setne bl
mov word [eax], cx
lea ecx, [edx + ebx*2]
movzx edx, word [edx + ebx*2]
xor ebx, ebx
test dx, dx
setne bl
mov word [eax + 2], dx
lea edx, [ecx + ebx*2]
movzx ecx, word [ecx + ebx*2]
xor ebx, ebx
test cx, cx
setne bl
mov word [eax + 4], cx
lea ecx, [edx + ebx*2]
movzx esi, word [edx + ebx*2]
xor edx, edx
test si, si
setne dl
lea edx, [ecx + edx*2]
mov word [eax + 6], si
add eax, 8
add edi, 0xfffffffc
jne 0x439d90
mov esi, dword [esp + 4]
mov word [eax], 0
mov edi, dword [esp + 0x28]
mov edx, dword [ebp + 0x14]
mov eax, dword [edi + 0xc]
shr eax, 1
mov dword [edx], eax
push edi
call fcn.00434930
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret