Function at 0x40a2a4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x18
mov ebp, dword [esp + 0x2c]
mov edx, dword [ebp]
mov bl, 0
mov eax, dword [esp + 0x30]
push eax
push ebp
call dword [edx + 0xc]
test eax, eax
jne 0x40a466
lea eax, [esp + 4]
push eax
push ebp
mov edx, dword [ebp]
call dword [edx + 0x10]
test eax, eax
jne 0x40a466
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x30]
lea esi, [edx + 0x2c]
mov dword [esp], esi
lea edi, [eax + 0x2c]
mov ecx, 0x10
xor eax, eax
test ecx, ecx
je 0x40a306
mov al, byte [esi]
sub al, byte [edi]
jne 0x40a306
add esi, 1
add edi, 1
sub ecx, 1
jne 0x40a2f5
seta al
setb cl
sub al, cl
movsx eax, al
test eax, eax
jne 0x40a460
mov esi, dword [esp]
mov edi, 0x4114a8
mov ecx, 0x10
xor eax, eax
test ecx, ecx
je 0x40a33d
mov al, byte [esi]
sub al, byte [edi]
jne 0x40a33d
add esi, 1
add edi, 1
sub ecx, 1
jne 0x40a32c
seta al
setb cl
sub al, cl
movsx eax, al
test eax, eax
jne 0x40a3c0
mov eax, dword [esp + 0x30]
mov ecx, dword [edx + 0x44]
mov eax, dword [eax + 0x44]
mov edi, dword [eax + 0x28]
mov esi, dword [eax + 0x2c]
sub edi, dword [ecx + 0x28]
sub esi, dword [ecx + 0x2c]
or edi, esi
jne 0x40a460
mov esi, dword [eax + 0x34]
cmp esi, dword [ecx + 0x34]
jne 0x40a460
mov esi, dword [eax + 0x38]
cmp esi, dword [ecx + 0x38]
jne 0x40a460
movzx esi, word [eax + 0x3e]
movzx edi, word [ecx + 0x3e]
cmp esi, edi
jne 0x40a460
mov esi, dword [eax + 0x40]
cmp esi, dword [ecx + 0x40]
jne 0x40a460
mov ecx, dword [eax]
mov dword [esp + 8], ecx
mov esi, dword [eax + 4]
mov bl, 1
mov dword [esp + 0xc], esi
mov edi, dword [eax + 8]
mov dword [esp + 0x10], edi
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], eax
jmp 0x40a460
mov esi, dword [esp]
mov edi, 0x411488
mov ecx, 0x10
xor eax, eax
test ecx, ecx
je 0x40a3e4
mov al, byte [esi]
sub al, byte [edi]
jne 0x40a3e4
add esi, 1
add edi, 1
sub ecx, 1
jne 0x40a3d3
seta al
setb cl
sub al, cl
movsx eax, al
test eax, eax
jne 0x40a45e
mov eax, dword [esp + 0x30]
mov ecx, dword [edx + 0x44]
mov eax, dword [eax + 0x44]
mov edi, dword [eax + 0x28]
mov esi, dword [eax + 0x2c]
sub edi, dword [ecx + 0x28]
sub esi, dword [ecx + 0x2c]
or edi, esi
jne 0x40a460
mov esi, dword [eax + 0x4c]
cmp esi, dword [ecx + 0x4c]
jne 0x40a460
mov esi, dword [eax + 0x50]
cmp esi, dword [ecx + 0x50]
jne 0x40a460
movzx esi, word [eax + 0x56]
movzx edi, word [ecx + 0x56]
cmp esi, edi
jne 0x40a460
mov esi, dword [eax + 0x58]
cmp esi, dword [ecx + 0x58]
jne 0x40a460
mov esi, dword [eax + 0x30]
xor esi, dword [ecx + 0x30]
test esi, 0xffffff3f
jne 0x40a460
mov ecx, dword [eax]
mov dword [esp + 8], ecx
mov esi, dword [eax + 4]
mov bl, 1
mov dword [esp + 0xc], esi
mov edi, dword [eax + 8]
mov dword [esp + 0x10], edi
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], eax
jmp 0x40a460
mov bl, 1
push edx
call fcn.0040ef38
test bl, bl
jne 0x40a474
xor eax, eax
add esp, 0x18
pop ebx
pop ebp
pop esi
pop edi
ret
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
xor ebx, ebx
test eax, eax
lea eax, [esp + 8]
push eax
setne bl
push ebp
call fcn.00409f44
add esp, 8
movzx edx, al
xor eax, eax
or ebx, edx
setne al
add esp, 0x18
pop ebx
pop ebp
pop esi
pop edi
ret