Function at 0x1403a80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1416b38
push 0x1405bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1418010]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor esi, esi
xor edi, edi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1403cba
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1403cba
cmp dword [ebp + 0x1c], esi
je 0x1403cba
cmp dword [ebp + 0x20], esi
je 0x1403cba
mov dword [ebp - 4], esi
push 0x10
push edi
push eax
push edi
call fcn.014038f0
add esp, 0x10
test eax, eax
je 0x1403cb3
movzx ecx, word [ebx + 0xe]
movzx eax, word [ebx + 0xc]
add ecx, eax
mov dword [ebp + 8], ecx
lea eax, [ecx*8]
push eax
push 0x10
push dword [ebp + 0xc]
push edi
call fcn.014038f0
add esp, 0x10
test eax, eax
je 0x1403cb3
xor ecx, ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
cmp ecx, edx
jae 0x1403cb3
mov eax, 0x10
lea esi, [eax + ecx*8]
add esi, ebx
mov dword [ebp - 0x24], esi
test dword [esi], 0x80000000
jne 0x1403b4f
movzx eax, word [esi]
cmp eax, dword [ebp + 0x14]
je 0x1403b52
inc ecx
jmp 0x1403b27
cmp ecx, edx
jae 0x1403cb3
mov esi, dword [esi + 4]
test esi, esi
jns 0x1403cb3
and esi, 0x7fffffff
xor eax, eax
add esi, eax
push 0x10
push esi
push dword [ebp + 0xc]
push eax
call fcn.014038f0
add esp, 0x10
test eax, eax
je 0x1403cb3
lea eax, [esi + ebx]
add esi, 0x10
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
add ecx, eax
mov dword [ebp + 8], ecx
lea eax, [ecx*8]
push eax
push esi
push dword [ebp + 0xc]
xor ecx, ecx
push ecx
call fcn.014038f0
add esp, 0x10
test eax, eax
je 0x1403cb3
xor ecx, ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
cmp ecx, edx
jae 0x1403cb3
lea edi, [esi + ecx*8]
add edi, ebx
mov dword [ebp - 0x28], edi
test dword [edi], 0x80000000
jne 0x1403be0
movzx eax, word [edi]
cmp eax, dword [ebp + 0x18]
je 0x1403be3
inc ecx
jmp 0x1403bbd
cmp ecx, edx
jae 0x1403cb3
mov esi, dword [edi + 4]
test esi, esi
jns 0x1403cb3
and esi, 0x7fffffff
xor eax, eax
add esi, eax
push 0x10
push esi
mov edi, dword [ebp + 0xc]
push edi
push eax
call fcn.014038f0
add esp, 0x10
test eax, eax
je 0x1403cb3
lea eax, [esi + ebx]
add esi, 0x10
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
add ecx, eax
je 0x1403cb3
push 8
push esi
push edi
xor ecx, ecx
push ecx
call fcn.014038f0
add esp, 0x10
test eax, eax
je 0x1403cb3
mov eax, dword [esi + ebx + 4]
test eax, eax
js 0x1403cb3
xor ecx, ecx
lea edi, [eax + ecx]
push 0x10
push edi
push dword [ebp + 0xc]
push ecx
call fcn.014038f0
add esp, 0x10
test eax, eax
je 0x1403cb3
mov esi, dword [edi + ebx]
sub esi, dword [ebp + 0x10]
push dword [edi + ebx + 4]
push esi
push dword [ebp + 0xc]
xor ecx, ecx
push ecx
call fcn.014038f0
add esp, 0x10
test eax, eax
je 0x1403cb3
mov eax, dword [ebp + 0x1c]
mov dword [eax], esi
mov eax, dword [edi + ebx + 4]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret