Function at 0x459e40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489289
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4b0014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], edx
mov esi, ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x459e9c
push 0x80004005
call fcn.0041ffd0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 1
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x459ec3
push 0x80004005
call fcn.0041ffd0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x459ee7
push 0x80004005
call fcn.0041ffd0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x459f0b
push 0x80004005
call fcn.0041ffd0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x459f2f
push 0x80004005
call fcn.0041ffd0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 5
mov dword [esi], 0
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x459f59
push 0x80004005
call fcn.0041ffd0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x50], 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x38]
call fcn.004532b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
setbe byte [ebp - 0x39]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 6
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x459fcd
push 0x80004005
call fcn.0041ffd0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
push dword [edi - 0xc]
push edi
call fcn.0042d170
push 0x41
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x1c]
call fcn.0042d170
mov ebx, dword [ebp - 0x1c]
push 0x20019
push ebx
push ecx
mov ecx, esp
push str.users
call fcn.0042c3c0
call fcn.00458500
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.00420890
test eax, eax
jne 0x45a188
xor ecx, ecx
mov dword [ebp - 0x44], 0x1fffff
mov eax, 0x1fffff
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045d2c8
push 0x3ffffe
push 0
push eax
mov dword [ebp - 0x48], eax
call fcn.00461b50
add esp, 0x10
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x45a073
push 0x80004005
call fcn.0041ffd0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 8
test eax, eax
jne 0x45a09a
push 7
push str.Desktop
lea ecx, [ebp - 0x18]
call fcn.0042da10
jmp 0x45a0c2
cmp eax, 1
jne 0x45a0b0
push 0xa
push str.Start_Menu
lea ecx, [ebp - 0x18]
call fcn.0042da10
jmp 0x45a0c2
cmp eax, 2
jne 0x45a0c2
push str.Startup
lea ecx, [ebp - 0x18]
call fcn.0042c260
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
call fcn.00431180
test eax, eax
jne 0x45a119
mov edx, dword [ebp - 0x48]
test edx, edx
jne 0x45a0e3
xor ecx, ecx
jmp 0x45a100
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x44], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45a0f0
sub ecx, dword [ebp - 0x44]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0042da10
push dword [esi]
push str.Tools::GetShortcutNonePublicPath
push str._s_Shortcut_Query_string___s_
push 0
jmp 0x45a138
mov edx, dword [ebp - 0x4c]
mov eax, str.Desktop
test edx, edx
mov ecx, str.Start_Menu
cmovne eax, ecx
push eax
push str.Tools::GetShortcutNonePublicPath
push str._s_failed_to_read_registry_value___s_
push 2
push 5
call fcn.004569b0
add esp, 0x14
push dword [ebp - 0x48]
call fcn.0045d290
mov ecx, dword [ebp - 0x28]
add esp, 4
test ecx, ecx
je 0x45a160
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x24], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a19e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45a19e
push str.Tools::GetShortcutNonePublicPath
push str._s_failed_to_open_Shell_Folders_registry_key
push 2
push 5
call fcn.004569b0
add esp, 0x10
mov eax, dword [esi]
mov esi, dword [ebp - 0x30]
cmp dword [eax - 0xc], 0
jne 0x45a21b
mov cl, byte [ebp - 0x39]
test cl, cl
je 0x45a1cb
push ecx
mov ecx, esp
push str.USERPROFILE
call fcn.0042c3c0
lea ecx, [ebp - 0x14]
call fcn.004583f0
mov cl, byte [ebp - 0x39]
add esp, 4
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x45a1dc
push dword [ebp - 0x14]
push str._sDesktop
jmp 0x45a210
cmp eax, 1
jne 0x45a1f7
test cl, cl
je 0x45a1ef
push dword [ebp - 0x14]
push str._sStart_MenuPrograms
jmp 0x45a210
push esi
push str._sMicrosoftWindowsStart_MenuPrograms
jmp 0x45a210
cmp eax, 2
jne 0x45a21b
test cl, cl
je 0x45a20a
push dword [ebp - 0x14]
push str._sStart_MenuProgramsStartup
jmp 0x45a210
push esi
push str._sMicrosoftWindowsStart_MenuProgramsStartup
push dword [ebp - 0x40]
call fcn.0042e840
add esp, 0xc
mov eax, dword [ebp - 0x40]
push dword [eax]
push str.Tools::GetShortcutNonePublicPath
push str._s_Shortcut_path___s_
push 0
push 5
call fcn.004569b0
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 6
or ebx, 0xffffffff
add esp, 0x14
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a254
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x45a262
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 4
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x45a27d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a29b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45a2b6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a2d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45a2f0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret