Function at 0x4cc688
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
mov eax, 0x4ea8dc
push ebx
push esi
push edi
call fcn.0049c448
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0xb58]
cmp ecx, dword [eax + 0xb54]
jne 0x4cc6c0
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x4cc9a8
lea ecx, [ebp - 0x68]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call sub.USER32.DLL_GetClientRect
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x54], edx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp + 8]
push dword [eax + 0xb60]
mov eax, dword [ebp - 0x54]
pop edx
mov ecx, edx
xor edx, edx
div ecx
mov edi, eax
test edi, edi
jne 0x4cc70a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb64]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x4cc9a8
mov ecx, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ecx + 0xb64]
mov eax, ecx
div edi
test al, 1
mov eax, ecx
sete bl
xor edx, edx
mov ecx, dword [ebp + 8]
div edi
and ebx, 1
mov eax, dword [ebp + 0xc]
imul edx, dword [ecx + 0xb60]
mov edi, edx
push eax
call sub.USER32.DLL_GetDC
mov dword [ebp - 0x30], eax
xor edx, edx
mov dl, byte [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x48], edx
movzx ecx, word [ebp - 0x34]
sar ecx, 8
mov al, cl
mov dword [ebp - 0x4c], eax
mov eax, dword [0x42e770]
mov edx, dword [ebp - 0x34]
shr edx, 0x10
xor ecx, ecx
mov cl, dl
mov dl, 1
mov dword [ebp - 0x50], ecx
call fcn.0043045c
mov esi, eax
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.004d52e8
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xb64]
mov edx, eax
mov ecx, eax
shr edx, 0x18
shr ecx, 0x10
mov byte [ebp - 0x3d], dl
shr eax, 8
mov byte [ebp - 0x3e], cl
mov byte [ebp - 0x3f], al
test bl, bl
je 0x4cc86f
xor ebx, ebx
cmp edi, ebx
jbe 0x4cc940
xor eax, eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], eax
lea edx, [edi + 1]
fild qword [ebp - 0x70]
xor ecx, ecx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], ecx
xor eax, eax
fild qword [ebp - 0x78]
fdivp st(1)
fstp qword [ebp - 0x3c]
mov al, byte [ebp - 0x3d]
sub eax, dword [ebp - 0x48]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x3c]
fild dword [ebp - 0x48]
faddp st(1)
call fcn.0049f730
mov byte [ebp - 0x40], al
xor edx, edx
mov dl, byte [ebp - 0x3e]
sub edx, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], edx
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x3c]
fild dword [ebp - 0x4c]
faddp st(1)
call fcn.0049f730
mov byte [ebp - 0x41], al
xor edx, edx
mov dl, byte [ebp - 0x3f]
sub edx, dword [ebp - 0x50]
mov dword [ebp - 0x6c], edx
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x3c]
fild dword [ebp - 0x50]
faddp st(1)
call fcn.0049f730
xor ecx, ecx
xor edx, edx
mov cl, byte [ebp - 0x41]
and eax, 0xff
movzx ecx, cx
shl ecx, 8
mov dl, byte [ebp - 0x40]
shl eax, 0x10
or edx, ecx
or edx, eax
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 0x10]
call fcn.00430028
xor ecx, ecx
mov edx, ebx
mov eax, esi
call fcn.004307d0
mov ecx, dword [ebp - 0x58]
mov edx, ebx
mov eax, esi
call fcn.00430770
inc ebx
cmp edi, ebx
ja 0x4cc7ab
jmp 0x4cc940
xor ebx, ebx
cmp edi, ebx
jbe 0x4cc940
xor eax, eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], eax
lea edx, [edi + 1]
fild qword [ebp - 0x70]
xor ecx, ecx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], ecx
xor eax, eax
fild qword [ebp - 0x78]
fdivp st(1)
fstp qword [ebp - 0x3c]
mov al, byte [ebp - 0x3d]
sub eax, dword [ebp - 0x48]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x3c]
fild dword [ebp - 0x48]
faddp st(1)
call fcn.0049f730
mov byte [ebp - 0x40], al
xor edx, edx
mov dl, byte [ebp - 0x3e]
sub edx, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], edx
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x3c]
fild dword [ebp - 0x4c]
faddp st(1)
call fcn.0049f730
mov byte [ebp - 0x41], al
xor edx, edx
mov dl, byte [ebp - 0x3f]
sub edx, dword [ebp - 0x50]
mov dword [ebp - 0x6c], edx
fild dword [ebp - 0x6c]
fmul qword [ebp - 0x3c]
fild dword [ebp - 0x50]
faddp st(1)
call fcn.0049f730
xor ecx, ecx
xor edx, edx
mov cl, byte [ebp - 0x41]
and eax, 0xff
movzx ecx, cx
shl ecx, 8
mov dl, byte [ebp - 0x40]
shl eax, 0x10
or edx, ecx
or edx, eax
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 0x10]
call fcn.00430028
mov edx, dword [ebp - 0x54]
sub edx, ebx
dec edx
xor ecx, ecx
mov eax, esi
call fcn.004307d0
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
sub edx, ebx
mov eax, esi
dec edx
call fcn.00430770
inc ebx
cmp edi, ebx
ja 0x4cc879
mov eax, dword [ebp - 0x30]
push eax
mov edx, dword [ebp + 0xc]
push edx
call sub.USER32.DLL_ReleaseDC
mov ebx, esi
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x4cc974
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov word [ebp - 0x1c], 0x14
mov edx, 3
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x1c], 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xb5c]
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 0xb58]
mov eax, dword [ebp + 8]
setb cl
and ecx, 1
add dword [eax + 0xb64], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xb64]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret