Function at 0x401c00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov cl, byte [eax]
mov dl, byte [eax + 1]
mov dword [esp + 4], 0
jle 0x401e47
push ebx
push ebp
push esi
push edi
movzx edi, cl
movzx ebp, dl
lea esp, [esp]
lea eax, [edi + 1]
cdq
mov ecx, 0x37a
idiv ecx
mov ecx, dword [0x44e75c]
mov esi, 0x37a
push 0x43d973
push 0x451148
movzx edi, dl
movzx eax, byte [edi + ecx]
add eax, ebp
mov byte [esp + 0x1a], dl
cdq
idiv esi
movzx ebp, dl
mov bl, byte [ecx + ebp]
lea eax, [ecx + ebp]
mov byte [esp + 0x1b], dl
mov dl, byte [edi + ecx]
mov byte [edi + ecx], bl
mov byte [eax], dl
mov ecx, dword [0x44e75c]
movzx edx, byte [edi + ecx]
movzx eax, byte [ecx + ebp]
add eax, edx
cdq
mov ecx, esi
idiv ecx
mov byte [esp + 0x19], dl
call fcn.00403150
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403360
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor ebx, ebx
test byte [eax + 8], 6
jne 0x401cc6
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x401cc6
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x401ce7
mov eax, dword [ecx + 8]
or eax, ebx
cmp dword [ecx + 0x28], 0
jne 0x401cdf
or eax, 4
push 0
push eax
call fcn.00402db0
push 0x43d9a4
push 0x451148
call fcn.00403150
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403360
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor ebx, ebx
test byte [eax + 8], 6
jne 0x401d29
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x401d29
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x401d4a
mov eax, dword [ecx + 8]
or eax, ebx
cmp dword [ecx + 0x28], 0
jne 0x401d42
or eax, 4
push 0
push eax
call fcn.00402db0
push 0x43d9a5
push 0x451148
call fcn.00403150
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403360
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor ebx, ebx
test byte [eax + 8], 6
jne 0x401d8c
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x401d8c
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x401dad
mov eax, dword [ecx + 8]
or eax, ebx
cmp dword [ecx + 0x28], 0
jne 0x401da5
or eax, 4
push 0
push eax
call fcn.00402db0
push 0x43d9a6
push 0x451148
call fcn.00403150
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403360
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor ebx, ebx
test byte [eax + 8], 6
jne 0x401def
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x401def
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x401e10
mov eax, dword [ecx + 8]
or eax, ebx
cmp dword [ecx + 0x28], 0
jne 0x401e08
or eax, 4
push 0
push eax
call fcn.00402db0
movzx edx, byte [esp + 0x11]
mov eax, dword [0x44e75c]
mov dl, byte [edx + eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
xor byte [eax + ecx], dl
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jl 0x401c30
mov cl, byte [esp + 0x12]
mov eax, dword [esp + 0x24]
mov dl, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
mov byte [eax + 1], dl
mov byte [eax], cl
add esp, 8
ret