Function at 0x1c46a930
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
push ebp
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
lea ebx, [ebp + 0xc0]
add ebp, 4
push edi
push ebx
call fcn.1c46e1e0
add esp, 8
mov eax, dword [ebp]
push edi
push 0x12
push eax
push ebx
call fcn.1c46e2e0
add esp, 0x10
xor eax, eax
mov al, byte [ebp + 4]
nop
push edi
push 3
push eax
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov ecx, dword [ebp + 8]
cmp ecx, 1
sbb eax, eax
push edi
push 1
inc eax
push eax
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
sbb eax, eax
push edi
push 1
inc eax
push eax
push ebx
call fcn.1c46e2e0
add esp, 0x10
push edi
push 1
push 1
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov cl, byte [0x1c4b3944]
mov edx, dword [ebp + 0x10]
nop
push edi
push ecx
push edx
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov cl, byte [ebp + 4]
cmp cl, 5
jne 0x1c46a9e8
push edi
push ebx
call fcn.1c46e770
add esp, 8
push ebx
call fcn.1c46e570
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1c46aa6b
mov eax, dword [ebp + 0x18]
xor edx, edx
mov dx, word [ebp + 0x8c]
mov ecx, eax
and ecx, 0xff
mov esi, eax
shr eax, 0x10
and esi, 0xff00
add esi, edx
mov edx, ecx
shl edx, 8
inc esi
add eax, edx
inc ecx
inc eax
sub edx, edx
imul esi, eax
mov eax, esi
mov dword [esp + 0x14], esi
div ecx
mov eax, dword [esp + 0x14]
nop
lea esi, [edx + 1]
sub edx, edx
div esi
mov si, word [ebp + 0x8c]
mov ecx, eax
and esi, 0xff00
sub edx, edx
inc esi
push edi
div esi
inc edx
push 1
imul edx, ecx
push 1
mov dword [ebp + 0x1c], edx
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov cl, byte [0x1c4b3948]
mov edx, dword [ebp + 0x1c]
nop
push edi
push ecx
push edx
jmp 0x1c46aa70
push edi
push 1
push 0
push ebx
call fcn.1c46e2e0
add esp, 0x10
xor ecx, ecx
mov eax, dword [0x1c4b3950]
cmp ecx, eax
jge 0x1c46aaae
mov esi, 0x1c4b3958
mov dword [esp + 0x20], ebx
mov edx, dword [ebp + 0x24]
mov ebx, dword [esi]
cmp ebx, edx
jne 0x1c46aaa0
mov edx, dword [ebp + 0x20]
mov ebx, dword [esi + 4]
cmp ebx, edx
je 0x1c46aaa8
add esi, 8
inc ecx
cmp ecx, eax
jl 0x1c46aa8d
mov ebx, dword [esp + 0x20]
cmp ecx, eax
push edi
push 3
jne 0x1c46aad7
push 7
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov eax, dword [ebp + 0x24]
push edi
push 0x10
push eax
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov eax, dword [ebp + 0x20]
push edi
push 0x10
push eax
jmp 0x1c46aad8
push ecx
push ebx
call fcn.1c46e2e0
add esp, 0x10
xor eax, eax
mov cl, byte [0x1c4b3888]
mov edx, dword [ebp + 0x20]
mov byte [esp + 0x13], al
mov dword [esp + 0x18], eax
mov byte [esp + 0x12], cl
mov ecx, dword [ebp + 0x28]
cmp ecx, edx
jne 0x1c46ab17
mov eax, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x24]
cmp esi, eax
jne 0x1c46ab17
mov eax, dword [0x1c4b3880]
mov dword [esp + 0x14], eax
jmp 0x1c46abf0
mov al, byte [0x1c4b388c]
mov esi, dword [0x1c4b3884]
mov byte [esp + 0x13], al
mov dword [esp + 0x14], esi
cmp ecx, edx
jne 0x1c46ab3e
xor eax, eax
mov al, byte [0x1c4b390c]
shl eax, 4
mov dword [esp + 0x18], eax
jmp 0x1c46ab8a
xor edx, edx
cmp word [0x1c4b3910], dx
mov dword [esp + 0x1c], edx
jle 0x1c46ab74
mov eax, 0x1c4b3910
movsx esi, word [eax]
cmp esi, ecx
je 0x1c46ab65
add eax, 2
inc edx
cmp word [eax], 0
jg 0x1c46ab52
jmp 0x1c46ab74
mov dword [esp + 0x1c], 1
shl edx, 4
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x1c46ab8a
push 0x4030401
push edi
call fcn.1c474d74
add esp, 8
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x24]
cmp ecx, eax
jne 0x1c46aba7
xor eax, eax
mov ecx, dword [esp + 0x18]
mov al, byte [0x1c4b390c]
or ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x1c46abf0
xor edx, edx
cmp word [0x1c4b3910], dx
mov dword [esp + 0x1c], edx
jle 0x1c46abda
mov ecx, 0x1c4b3910
movsx esi, word [ecx]
cmp esi, eax
je 0x1c46abce
add ecx, 2
inc edx
cmp word [ecx], 0
jg 0x1c46abbb
jmp 0x1c46abda
mov dword [esp + 0x1c], 1
or dword [esp + 0x18], edx
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x1c46abf0
push 0x4030418
push edi
call fcn.1c474d74
add esp, 8
mov eax, dword [esp + 0x13]
push edi
mov ecx, dword [esp + 0x1c]
push eax
mov edx, dword [esp + 0x1a]
push ecx
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
call fcn.1c46e410
add esp, 0x18
xor edx, edx
cmp edx, dword [0x1c4b3990]
jge 0x1c46ac4f
mov esi, 0x1c4b3998
xor eax, eax
mov al, byte [ebp + 0x32]
mov dword [esp + 0x20], ebx
mov ecx, dword [esi]
cmp ecx, eax
jne 0x1c46ac38
xor ecx, ecx
mov ebx, dword [esi + 4]
mov cl, byte [ebp + 0x31]
cmp ecx, ebx
je 0x1c46ac44
add esi, 8
inc edx
cmp edx, dword [0x1c4b3990]
jl 0x1c46ac26
mov ebx, dword [esp + 0x20]
mov eax, dword [0x1c4b3990]
cmp edx, eax
push edi
jne 0x1c46ac6f
mov al, byte [ebp + 0x31]
push eax
push ebx
call fcn.1c46cd30
add esp, 0xc
mov al, byte [ebp + 0x32]
push edi
push eax
push ebx
call fcn.1c46cd30
add esp, 0xc
jmp 0x1c46ac7b
push 2
push edx
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov esi, dword [ebp + 0x34]
cmp byte [esi], 0xff
je 0x1c46ac9e
mov ecx, esi
push edi
inc esi
push 2
xor eax, eax
mov al, byte [ecx]
push eax
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov cl, byte [esi]
cmp cl, 0xff
jne 0x1c46ac83
mov esi, dword [ebp + 0x38]
cmp byte [esi], 0xff
je 0x1c46acc1
mov ecx, esi
push edi
inc esi
push 2
xor eax, eax
mov al, byte [ecx]
push eax
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov cl, byte [esi]
cmp cl, 0xff
jne 0x1c46aca6
push edi
push 1
push 1
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov eax, dword [ebp + 0x3c]
push edi
push 0x14
push eax
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov eax, dword [ebp + 0x40]
test eax, eax
nop
push edi
push 1
je 0x1c46ad04
push 1
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov al, byte [0x1c4b394c]
push edi
push eax
xor eax, eax
mov al, byte [ebp + 0x44]
push eax
jmp 0x1c46ad06
push 0
push ebx
call fcn.1c46e2e0
add esp, 0x10
lea eax, [ebp + 0x48]
push edi
push eax
push ebx
call fcn.1c46c800
add esp, 0xc
lea eax, [ebp + 0x60]
push edi
push eax
push ebx
call fcn.1c46c800
add esp, 0xc
mov al, byte [0x1c4b38f4]
cmp byte [ebp + 0x78], al
push edi
push 1
jne 0x1c46ad3c
push 0
jmp 0x1c46ad51
push 1
push ebx
call fcn.1c46e2e0
add esp, 0x10
xor eax, eax
mov al, byte [ebp + 0x78]
nop
push edi
push 3
push eax
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov al, byte [0x1c4b3838]
mov ecx, dword [ebp + 0x7c]
nop
push edi
push eax
push ecx
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov cl, byte [0x1c4b383c]
mov edx, dword [ebp + 0x80]
nop
push edi
push ecx
push edx
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov cl, byte [0x1c4b3840]
xor eax, eax
mov al, byte [ebp + 0x84]
push edi
push ecx
push eax
push ebx
call fcn.1c46e2e0
add esp, 0x10
push edi
push 1
push 1
push ebx
call fcn.1c46e2e0
add esp, 0x10
xor eax, eax
mov al, byte [ebp + 0x85]
nop
push edi
push 3
push eax
push ebx
call fcn.1c46e2e0
add esp, 0x10
push edi
push 1
push 1
push ebx
call fcn.1c46e2e0
add esp, 0x10
xor eax, eax
mov ax, word [ebp + 0x8c]
push edi
push 0x10
lea esi, [ebp + 0x90]
push eax
push ebx
call fcn.1c46e2e0
mov dword [esp + 0x24], 0
add esp, 0x10
mov eax, dword [esi]
push edi
push 1
test eax, eax
je 0x1c46ae32
push 1
add esi, 8
push ebx
call fcn.1c46e2e0
add esp, 0x10
xor eax, eax
mov al, byte [esi - 4]
nop
push edi
push 8
push eax
push ebx
call fcn.1c46e2e0
mov eax, dword [esp + 0x24]
add esp, 0x10
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x1c46adf8
jmp 0x1c46ae3d
push 0
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov esi, dword [ebp + 0xa0]
mov al, byte [0x1c4b37f4]
push edi
push 1
cmp byte [esi], al
jne 0x1c46ae5c
push 0
push ebx
call fcn.1c46e2e0
add esp, 0x10
jmp 0x1c46ae8e
push 1
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov al, byte [0x1c4b37f4]
cmp byte [esi], al
je 0x1c46ae8e
mov ecx, esi
push edi
inc esi
push 1
xor eax, eax
mov al, byte [ecx]
push eax
push ebx
call fcn.1c46e2e0
add esp, 0x10
mov cl, byte [0x1c4b37f4]
cmp byte [esi], cl
jne 0x1c46ae70
push edi
push ebx
call fcn.1c46e770
add esp, 8
push ebx
call fcn.1c46e570
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret