Function at 0x419d15
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [ecx], 0xffffffff
je 0x419d87
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov edi, ecx
push 0x1006c792
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
lea ecx, [esp + 0x10]
push 8
push 2
push ecx
push dword [edi]
call eax
test eax, eax
jg 0x419d8c
cmp dword [edi], 0xffffffff
je 0x419d8c
push 0xea8d1240
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
push 2
push dword [edi]
call eax
push 0xa3d60213
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
push dword [edi]
call eax
mov dword [edi], 0xffffffff
jmp 0x419fda
xor eax, eax
ret 4
test eax, eax
jle 0x419fda
movzx eax, byte [esp + 0x11]
mov ecx, eax
and ecx, 0x7f
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
cmp ecx, 0x7f
je 0x419e3e
cmp ecx, 0x7e
jne 0x419ecb
mov word [esp], 0
push 0x1006c792
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
mov ecx, esp
push 8
push 2
push ecx
push dword [edi]
call eax
test eax, eax
setg bl
jg 0x419e22
cmp dword [edi], 0xffffffff
je 0x419e22
push 0xea8d1240
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
push 2
push dword [edi]
call eax
push 0xa3d60213
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
push dword [edi]
call eax
mov dword [edi], 0xffffffff
movzx eax, word [esp]
rol ax, 8
movzx eax, ax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
jmp 0x419ec0
mov dword [esp + 4], 0
mov dword [esp], 0
push 0x1006c792
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
mov ecx, esp
push 8
push 8
push ecx
push dword [edi]
call eax
test eax, eax
setg bl
jg 0x419ead
cmp dword [edi], 0xffffffff
je 0x419ead
push 0xea8d1240
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
push 2
push dword [edi]
call eax
push 0xa3d60213
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
push dword [edi]
call eax
mov dword [edi], 0xffffffff
mov eax, dword [esp]
mov ecx, dword [esp + 4]
bswap ecx
bswap eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
movzx eax, byte [esp + 0x11]
test al, al
jns 0x419f33
jmp 0x419ed1
xor ebx, ebx
test al, al
jns 0x419f33
lea esi, [esp + 0x20]
push 0x1006c792
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
push 8
push 4
push esi
push dword [edi]
call eax
test eax, eax
setg al
jg 0x419f35
cmp dword [edi], 0xffffffff
je 0x419f35
push 0xea8d1240
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
push 2
push dword [edi]
call eax
push 0xa3d60213
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
push dword [edi]
call eax
mov dword [edi], 0xffffffff
xor eax, eax
test bl, bl
je 0x419fda
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
push esi
call fcn.004081b0
add esp, 4
mov dword [esp + 0x24], eax
or edi, esi
je 0x41a01c
xor edi, edi
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 0x30], ebx
sub esi, edi
cmp esi, 0xffff
jl 0x419f83
mov esi, 0xffff
mov ebx, dword [esp + 0x24]
add ebx, edi
push 0x1006c792
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
push 8
push esi
push ebx
mov esi, dword [esp + 0x34]
push dword [esi]
call eax
test eax, eax
jg 0x419fb1
cmp dword [esi], 0xffffffff
jne 0x419fe6
test eax, eax
mov ebx, dword [esp + 0x30]
jle 0x41a01c
mov ecx, edi
and ecx, eax
mov edx, ecx
shr edx, 0x1f
add ecx, ecx
xor edi, eax
add edi, ecx
adc ebx, edx
mov esi, dword [esp + 0x18]
cmp edi, esi
mov eax, ebx
sbb eax, dword [esp + 0x1c]
jb 0x419f70
jmp 0x41a01c
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
push 0xea8d1240
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
push 2
push dword [esi]
call eax
push 0xa3d60213
push dword [0x447dd0]
call fcn.0043b9b0
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
setne al
mov ecx, dword [esp + 0x2c]
and cl, al
cmp cl, 1
jne 0x41a070
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, dword [esp + 0x24]
movzx ebx, byte [edi + eax]
mov esi, eax
and esi, 3
mov bh, byte [esp + esi + 0x20]
mov dl, bh
and dl, bl
add bh, bl
add dl, dl
sub bh, dl
mov byte [edi + eax], bh
add eax, 1
adc ecx, 0
cmp eax, dword [esp + 0x18]
mov edx, ecx
sbb edx, dword [esp + 0x1c]
jb 0x41a040
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x28]
cmp byte [ecx + 5], 0
je 0x41a08c
mov eax, esp
lea edx, [esp + 0x10]
push edx
push eax
call fcn.0041b570
jmp 0x41a099
mov eax, esp
lea edx, [esp + 0x10]
push edx
push eax
call fcn.0041b3e0
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov al, 1
jmp 0x419fdc