Function at 0x40ced0
Capabilities:
Check os version
Print debug messages

Disassembly:
sub esp, 0x44c
mov ecx, dword [0x41c1f0]
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x358]
push 0x104
push eax
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40cf04
xor ebx, ebx
jmp 0x40cf2f
lea edx, [esp + 0x358]
push 0x5c
push edx
call fcn.0040e650
add esp, 8
xor ebx, ebx
mov byte [eax], bl
lea eax, [esp + 0x358]
push 1
push 2
push eax
call sub.REDCOMM.dll_Ordinal_177
test eax, eax
je 0x40cf33
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.Software3000softRed_Spider
push reloc.REDHOOKS.dll_Ordinal_2
mov dword [esp + 0x34], ebx
call esi
cmp eax, ebx
je 0x40cf74
push eax
push str.RegCreateKeyEx_1_
push 1
push ebx
call sub.REDCOMM.dll_Ordinal_40
mov dword [esp + 0x14], ebx
jmp 0x40cf95
mov eax, dword [esp + 0x10]
push 4
push 2
push eax
call sub.REDCOMM.dll_Ordinal_176
test eax, eax
je 0x40cf8a
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str..rds
push Ordinal_1
mov dword [esp + 0x34], ebx
call esi
cmp eax, ebx
je 0x40cfd0
push eax
push str.RegCreateKeyEx_.rds_
push 1
push ebx
call sub.REDCOMM.dll_Ordinal_40
mov dword [esp + 0x14], ebx
jmp 0x40cff1
mov ecx, dword [esp + 0x10]
push 4
push 2
push ecx
call sub.REDCOMM.dll_Ordinal_176
test eax, eax
je 0x40cfe6
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x11c]
mov dword [esp + 0x11c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x12c], 2
jne 0x40d1ca
cmp dword [esp + 0x120], 5
jb 0x40d1ca
push str.EnumDisplayDevicesA
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
cmp ebp, ebx
jne 0x40d05b
push str.EnumDisplayDevices___isnt_supported.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44c
ret
mov ecx, 0x6a
xor eax, eax
lea edi, [esp + 0x1b0]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1b4]
mov dword [esp + 0x1b4], 0x1a8
push ecx
push ebx
push ebx
xor edi, edi
call ebp
mov esi, eax
cmp esi, ebx
je 0x40d0b8
lea edx, [esp + 0x1d4]
push str.3000soft_Video_Mirror_Driver
push edx
call fcn.0040f400
add esp, 8
test eax, eax
je 0x40d0d0
lea eax, [esp + 0x1b0]
inc edi
push ebx
push eax
push edi
push ebx
call ebp
mov esi, eax
cmp esi, ebx
jne 0x40d08b
push str.No_3000soft_Video_Mirror_Driver_found.__FUN_SetSecurityDescriptor_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44c
ret
cmp esi, ebx
je 0x40d0b8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1c]
push str.SYSTEMCurrentControlSetHardware_ProfilesCurrentSystemCurrentControlSetServices
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x1c]
push 0x41a6d0
push edx
call esi
lea eax, [esp + 0x1c]
push str.3kmirror
push eax
call esi
lea ecx, [esp + 0x1c]
push 0x41a6d0
push ecx
call esi
lea edx, [esp + 0x2d8]
push edx
call fcn.0040f2c7
lea eax, [esp + 0x2dc]
push str.DEVICE
push eax
call fcn.0040e8a0
add esp, 0xc
cmp eax, ebx
jne 0x40d14d
lea ecx, [esp + 0x1c]
push str.DEVICE0
push ecx
jmp 0x40d154
inc eax
lea edx, [esp + 0x1c]
push eax
push edx
call esi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
lea edx, [esp + 0x34]
push ebx
push edx
push reloc.REDHOOKS.dll_Ordinal_2
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
je 0x40d19c
push eax
push str.RegCreateKeyEx_szKey_
push 1
push ebx
call sub.REDCOMM.dll_Ordinal_40
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44c
ret
mov eax, dword [esp + 0x10]
push 4
push 2
push eax
call sub.REDCOMM.dll_Ordinal_176
test eax, eax
jne 0x40d1b2
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x44c
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44c
ret