Function at 0x411798
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov ebx, ecx
push edi
lea esi, [ebx + 0xcc]
xor edi, edi
cmp dword [esi], edi
je 0x411a2e
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x411a2e
mov esi, dword [esi]
lea ecx, [ebp - 8]
push ecx
push 0x4421a0
mov dword [ebp - 8], edi
mov eax, dword [esi]
push esi
call dword [eax]
test eax, eax
jl 0x411a21
lea eax, [ebp - 0x3c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebx + 0x64]
call fcn.00401683
test al, al
jne 0x41180d
lea eax, [ebx + 0xa4]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x411876
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
lea edi, [ebx + 0xa4]
lea esi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x20
push eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebx + 0x64]
movsd dword es:[edi], dword [esi]
call fcn.00411714
cmp dword [ebx + 0xc4], 0
je 0x411856
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
push 0x20
push eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
lea ecx, [ebx + 0x84]
push eax
call fcn.00411714
lea esi, [ebx + 0xb4]
cmp dword [esi], 0
jne 0x411874
push 0xc
lea ecx, [ebx + 0x64]
call fcn.004109dc
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [esi], eax
xor edi, edi
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub edx, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebx + 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [ebx + 0xb4], 0x20
jne 0x411a35
cmp dword [ebx + 0xc4], edi
jne 0x4118e3
lea esi, [ebx + 0x64]
cmp dword [esi + 0x1c], edi
je 0x4118c6
xor eax, eax
jmp 0x4118c9
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x1c]
shl ecx, 2
push ecx
push edi
push eax
call fcn.0042d500
add esp, 0xc
jmp 0x411a78
cmp dword [ebx + 0x80], edi
je 0x4118ef
xor esi, esi
jmp 0x4118f2
mov esi, dword [ebx + 0x70]
cmp dword [ebx + 0xa0], edi
jne 0x411900
mov edi, dword [ebx + 0x90]
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
shl eax, 2
push eax
push 0
push esi
call fcn.0042d500
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
shl eax, 2
push eax
push 0xff
push edi
call fcn.0042d500
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
add esp, 0x18
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebx + 0x64]
call fcn.004109dc
push eax
push 0x20
push dword [ebp - 0x14]
call sub.ole32.dll_OleDraw
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebx + 0x84]
call fcn.004109dc
push eax
push 0x20
push dword [ebp - 0x14]
call sub.ole32.dll_OleDraw
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
jle 0x4119da
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x1c], 0
jle 0x4119cf
mov al, byte [esi]
mov byte [ebp - 4], al
inc esi
mov al, byte [esi]
mov byte [ebp - 2], al
inc esi
mov al, byte [esi]
mov byte [ebp - 1], al
mov al, byte [edi]
inc esi
inc esi
inc edi
mov cl, byte [edi]
sub cl, byte [ebp - 2]
mov byte [ebp - 3], al
inc edi
mov al, byte [edi]
sub al, byte [ebp - 1]
movzx ecx, cl
movzx eax, al
add eax, ecx
mov cl, byte [ebp - 3]
sub cl, byte [ebp - 4]
push 3
movzx ecx, cl
add eax, ecx
cdq
pop ecx
idiv ecx
inc edi
or cl, 0xff
inc edi
sub cl, al
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov byte [esi - 1], cl
cmp eax, dword [ebp - 0x1c]
jl 0x41197d
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jl 0x411973
xor edi, edi
xor eax, eax
cmp dword [ebx + 0xb4], 0x20
lea ecx, [ebx + 0x64]
setne al
mov byte [ebp - 0xc], 0
mov byte [ebp - 9], 1
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0xff
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
call fcn.004109dc
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebx + 4]
call dword [0x457354]
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x411a2e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push 0xcc0020
push edi
push edi
push eax
push dword [ebp - 0x40]
lea esi, [ebx + 0x64]
push dword [ebp - 0x44]
mov ecx, esi
push edi
push edi
mov dword [ebp - 0x14], eax
call fcn.004109dc
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.004109dc
push eax
push 0x20
push dword [ebp - 0x14]
call sub.ole32.dll_OleDraw
jmp 0x4119dc