Function at 0x410c30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push esi
push edi
xor esi, esi
mov dword [esp + 8], 0x5c739c
xor edi, edi
xor eax, eax
push 0
mov al, byte [edi + 0x7e1520]
push 1
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004119b0
and eax, 0xff
add esp, 0x10
add esi, eax
inc edi
cmp edi, 0x10
jl 0x410c3f
mov edx, dword [0x7e1530]
push 0
and edx, 0xff
push 1
lea eax, [esp + 0x10]
push edx
push eax
call fcn.004119b0
mov ecx, dword [0x7e1634]
push 0
and ecx, 0xff
push 1
lea edx, [esp + 0x20]
and eax, 0xff
push ecx
push edx
add esi, eax
call fcn.004119b0
and eax, 0xff
push 0
add esi, eax
xor eax, eax
mov al, byte [0x7e1531]
push 1
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.004119b0
and eax, 0xff
xor edx, edx
mov dl, byte [0x7e1635]
add esi, eax
push 0
push 1
lea eax, [esp + 0x40]
push edx
push eax
call fcn.004119b0
add esp, 0x40
xor ecx, ecx
mov cl, byte [0x7e1636]
lea edx, [esp + 8]
push 0
push 1
and eax, 0xff
push ecx
push edx
add esi, eax
call fcn.004119b0
and eax, 0xff
push 0
add esi, eax
xor eax, eax
mov al, byte [0x7e1663]
push 1
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004119b0
mov edx, dword [0x7e1664]
and eax, 0xff
add esi, eax
push 1
and edx, 0xffff
push 2
lea eax, [esp + 0x30]
push edx
push eax
call fcn.004119b0
xor ecx, ecx
push 1
mov cx, word [0x7e1666]
push 2
lea edx, [esp + 0x40]
and eax, 0xff
push ecx
push edx
add esi, eax
call fcn.004119b0
add esp, 0x40
and eax, 0xff
add esi, eax
xor eax, eax
mov al, byte [0x7e1669]
push 0
push 1
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004119b0
mov edx, dword [0x7e1674]
and eax, 0xff
add esi, eax
push 0
and edx, 0xff
push 1
lea eax, [esp + 0x20]
push edx
push eax
call fcn.004119b0
xor ecx, ecx
push 0
mov cx, word [0x7e1676]
push 2
lea edx, [esp + 0x30]
and eax, 0xff
push ecx
push edx
add esi, eax
call fcn.004119b0
and eax, 0xff
push 0
add esi, eax
mov eax, dword [0x7e1678]
and eax, 0xff
push 1
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.004119b0
add esp, 0x40
and eax, 0xff
xor edx, edx
add esi, eax
mov dx, word [0x7e167a]
push 0
push 2
lea eax, [esp + 0x10]
push edx
push eax
call fcn.004119b0
mov ecx, dword [0x7e167c]
push 0
and ecx, 0xff
push 1
lea edx, [esp + 0x20]
and eax, 0xff
push ecx
push edx
add esi, eax
call fcn.004119b0
and eax, 0xff
push 0
add esi, eax
xor eax, eax
mov ax, word [0x7e167e]
push 2
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.004119b0
and eax, 0xff
xor edx, edx
add esi, eax
mov eax, dword [0x7e1644]
div dword [0x4b64f0]
push 0
push 2
lea edx, [esp + 0x40]
push eax
push edx
call fcn.004119b0
and eax, 0xff
add esp, 0x40
add esi, eax
xor eax, eax
mov al, byte [0x7e1533]
push 0
push 1
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004119b0
and eax, 0xff
add esp, 0x10
add esi, eax
mov edi, 0x7e1534
mov eax, dword [edi]
push 0
cmp eax, 0xffffffff
push 2
je 0x410ead
xor edx, edx
div dword [0x4b64f0]
lea edx, [esp + 0x10]
push eax
push edx
jmp 0x410eb3
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004119b0
and eax, 0xff
add edi, 4
add esp, 0x10
add esi, eax
cmp edi, 0x7e1634
jl 0x410e92
mov eax, dword [0x7e1648]
xor edx, edx
div dword [0x4b64f0]
push 0
push 2
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004119b0
mov edx, dword [0x7e164c]
and eax, 0xff
add esi, eax
push 0
and edx, 0xff
push 1
lea eax, [esp + 0x20]
push edx
push eax
call fcn.004119b0
mov ecx, dword [0x7e1638]
push 0
and ecx, 0xffff
push 2
lea edx, [esp + 0x30]
and eax, 0xff
push ecx
push edx
add esi, eax
call fcn.004119b0
and eax, 0xff
xor edx, edx
add esi, eax
mov eax, dword [0x7e163c]
div dword [0x4b64f0]
push 0
push 2
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004119b0
and eax, 0xff
add esp, 0x40
add esi, eax
cmp esi, 0x1e0
jge 0x410f7e
mov eax, 0x1e0
sub eax, esi
add esi, eax
mov ecx, dword [esp + 8]
mov byte [ecx], 0xff
mov edx, dword [esp + 8]
inc edx
dec eax
mov dword [esp + 8], edx
jne 0x410f6b
xor edx, edx
push 0
mov dx, word [0x7e164e]
push 2
lea eax, [esp + 0x10]
push edx
push eax
call fcn.004119b0
mov ecx, dword [0x7e1650]
push 0
and ecx, 0xffff
push 2
lea edx, [esp + 0x20]
and eax, 0xff
push ecx
push edx
add esi, eax
call fcn.004119b0
and eax, 0xff
push 0
add esi, eax
xor eax, eax
mov ax, word [0x7e1652]
push 2
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.004119b0
and eax, 0xff
add esp, 0x30
add esi, eax
cmp esi, 0x1f0
jge 0x411004
mov eax, 0x1f0
sub eax, esi
add esi, eax
mov edx, dword [esp + 8]
mov byte [edx], 0xff
mov edx, dword [esp + 8]
inc edx
dec eax
mov dword [esp + 8], edx
jne 0x410ff1
cmp esi, 0x1f8
mov ecx, 0x7e16c8
jge 0x41102f
mov eax, 0x1f8
sub eax, esi
add esi, eax
mov edi, dword [esp + 8]
mov dl, byte [ecx]
mov byte [edi], dl
mov edx, dword [esp + 8]
inc edx
inc ecx
dec eax
mov dword [esp + 8], edx
jne 0x41101a
cmp esi, 0x200
mov ecx, 0x7e16d0
jge 0x41105a
mov eax, 0x200
sub eax, esi
add esi, eax
mov edi, dword [esp + 8]
mov dl, byte [ecx]
mov byte [edi], dl
mov edx, dword [esp + 8]
inc edx
inc ecx
dec eax
mov dword [esp + 8], edx
jne 0x411045
mov ax, si
pop edi
pop esi
pop ecx
ret