Function at 0x45c6e4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x210], 0
je 0x45c703
xor eax, eax
jmp 0x45c8f9
mov edx, dword [ebp + 0x10]
push edx
call fcn.0045affc
pop ecx
test eax, eax
je 0x45c71d
cmp dword [ebp + 0xc], 0
jg 0x45c724
cmp dword [ebp + 0x18], 0
je 0x45c724
xor eax, eax
jmp 0x45c8f9
mov edx, dword [ebp + 0x10]
push edx
call fcn.0045ac4c
pop ecx
cmp dword [ebx], 0
jne 0x45c855
mov dword [ebp - 8], 4
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
and eax, 0x7fffffff
mov dword [ebp - 0xc], eax
dec dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
imul edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
xor edx, edx
mov dword [ebp - 4], edx
test eax, eax
je 0x45c77a
inc dword [ebp - 4]
shr eax, 8
inc dword [ebp - 0x10]
test eax, eax
jne 0x45c76d
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cdq
idiv ecx
mov dword [ebp - 4], edx
cmp dword [ebp + 0xc], 0
jle 0x45c7a6
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jle 0x45c7a6
push 0xe
push ebx
call fcn.0045a1e4
add esp, 8
xor eax, eax
jmp 0x45c8f9
cmp dword [ebp + 0x18], 0
je 0x45c7ca
mov edx, dword [ebp + 0xc]
mov eax, esi
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
xor edx, edx
cmp edx, dword [ebp - 0x14]
jge 0x45c7cf
mov byte [eax], 0
inc edx
inc eax
cmp edx, dword [ebp - 0x14]
jl 0x45c7be
jmp 0x45c7cf
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 4], 0
je 0x45c804
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + ecx*4]
dec dword [ebp - 0xc]
mov edx, dword [ebp - 4]
dec edx
lea ecx, [esi + edx]
mov ebx, dword [ebp - 0x14]
add ecx, ebx
test edx, edx
jl 0x45c804
mov ebx, eax
dec edx
and bl, 0xff
mov byte [ecx], bl
dec ecx
shr eax, 8
test edx, edx
jge 0x45c7f4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
lea ecx, [esi + eax]
mov dword [ebp - 0x1c], ecx
cmp edx, dword [ebp - 0x10]
jge 0x45c8eb
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
mov eax, dword [ecx + eax*4]
dec dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0x1c]
add ebx, edx
dec ecx
test ecx, ecx
lea esi, [ebx + ecx]
jl 0x45c848
mov ebx, eax
dec ecx
and bl, 0xff
mov byte [esi], bl
dec esi
shr eax, 8
test ecx, ecx
jge 0x45c838
add edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x10]
jl 0x45c819
jmp 0x45c8eb
mov eax, dword [ebx + 0x1bc]
push eax
mov edx, dword [ebp + 0x10]
push edx
call fcn.0045adec
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [ebx + 0x210], 0
jne 0x45c8eb
mov eax, dword [ebx + 0x1bc]
push eax
call fcn.0045affc
pop ecx
test eax, eax
jne 0x45c895
cmp dword [ebp + 0x18], 0
je 0x45c8eb
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0xc]
je 0x45c8eb
cmp dword [ebp + 0xc], 0
jle 0x45c8b2
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jl 0x45c8b2
push 0xe
push ebx
call fcn.0045a1e4
add esp, 8
xor eax, eax
jmp 0x45c8f9
mov edi, dword [ebx + 0x1bc]
push edi
push pe_nt_image_headers32
push edi
push ebx
call fcn.0045c444
add esp, 0x10
mov byte [ebp - 0x15], al
mov edx, dword [ebp - 0x10]
lea eax, [esi + edx - 1]
test edx, edx
jle 0x45c8e1
mov cl, byte [eax]
dec edx
mov byte [eax + 1], cl
dec eax
test edx, edx
jg 0x45c8d6
mov al, byte [ebp - 0x15]
mov byte [esi], al
inc dword [ebp - 0x10]
jmp 0x45c86d
cmp dword [ebp + 0x18], 0
je 0x45c8f6
mov eax, dword [ebp + 0xc]
jmp 0x45c8f9
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret