Function at 0x40cb50
Capabilities:
Check os version
Set registry value

Disassembly:
sub esp, 0xb0
mov eax, dword [0x46c5a0]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
lea eax, [esp + 0x1c]
push eax
xor ebx, ebx
push 0x2001f
push ebx
mov esi, ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPolicies
push SysReAllocString
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], 0xffffffff
mov byte [esi], bl
call ebp
cmp eax, ebx
je 0x40cbcb
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPolicies
push 3
push str.RegOpenKeyEx_regPath___s_code:_d_n
mov esi, 0x17d
mov edi, str.e:_svngsmw_branchesgdca_client_sm2_20120618_application_exedowntoolcodeinc_saturnwin32_util.h
call fcn.0040ecf0
add esp, 0x10
jmp 0x40cd2d
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push SysReAllocString
call ebp
cmp eax, ebx
je 0x40cc8e
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 3
push str.RegOpenKeyEx_regPath___s_code:_d_n
mov esi, 0x17d
mov edi, str.e:_svngsmw_branchesgdca_client_sm2_20120618_application_exedowntoolcodeinc_saturnwin32_util.h
call fcn.0040ecf0
mov eax, dword [esp + 0x2c]
add esp, 0x10
push ebx
lea edx, [esp + 0x18]
push edx
push ebx
push 4
push ebx
push ebx
push ebx
push str.Explorer
push eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
je 0x40cc4c
push eax
push str.Explorer
push 3
push str.RegCreateKeyEx_szKeyName_s__code:_d_n
mov esi, 0x193
call fcn.0040ecf0
add esp, 0x10
jmp 0x40cd2d
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40cc64
push eax
call esi
lea edx, [esp + 0x10]
push edx
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push SysReAllocString
call ebp
cmp eax, ebx
je 0x40cc8a
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
jmp 0x40cbad
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
call fcn.0040cd70
test eax, eax
jne 0x40ccb3
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0xc4]
jne 0x40ccb3
mov dword [esp + 0x18], ebx
jmp 0x40cd2d
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc4]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push ebx
push str.NoDriveTypeAutoRun
push ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x40cd01
push eax
push str.NoDriveTypeAutoRun
push 3
push str.WriteVal__RegSetValueEx_cszName_s__code:_d_n
mov esi, 0x241
mov edi, str.e:_svngsmw_branchesgdca_client_sm2_20120618_application_exedowntoolcodeinc_saturnwin32_util.h
call fcn.0040ecf0
mov esi, dword [esp + 0x34]
add esp, 0x10
jmp 0x40cd05
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x2c], 6
jne 0x40cd2a
cmp dword [esp + 0x30], 2
jne 0x40cd2a
mov byte [esi], bl
jmp 0x40cd2d
mov byte [esi], 1
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40cd3c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
cmp eax, ebx
pop ebx
je 0x40cd4f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 8]
xor ecx, esp
call fcn.0042d034
add esp, 0xb0
ret