Function at 0x46b760
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527341
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x595cb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x46b7ae
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 1
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x46b7d5
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x46b7f9
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 3
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x46b81d
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x46b841
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 5
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x46b865
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x40], 1
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x3c]
call fcn.00442320
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
setbe byte [ebp - 0xd]
mov dword [ebp - 0x50], 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.0041f910
push 0x20019
mov byte [ebp - 4], 7
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x46b8e3
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x28]
call fcn.00420f70
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 9
push ecx
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00420f70
add esp, 8
mov byte [ebp - 4], 0xa
push dword [eax]
push ecx
mov ecx, esp
push str.users
call fcn.0041f910
call fcn.0042b920
add esp, 4
lea ecx, [ebp - 0x58]
push eax
call fcn.0042b000
mov byte [ebp - 4], 9
or ebx, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov ecx, ebx
mov dword [ebp - 0x18], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x46b95e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46b97c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46b997
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46b9b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
mov esi, dword [ebp + 0xc]
jne 0x46bd28
xor ecx, ecx
mov dword [ebp - 0x30], 0x1fffff
mov eax, 0x1fffff
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f45af
push 0x3ffffe
push 0
push eax
mov dword [ebp - 0x20], eax
call fcn.004f9110
add esp, 0x10
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x46ba0c
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xb
test esi, esi
jne 0x46ba30
push 7
push str.Desktop
lea ecx, [ebp - 0x18]
call fcn.0041fd40
jmp 0x46ba58
cmp esi, 1
jne 0x46ba46
push 0xa
push str.Start_Menu
lea ecx, [ebp - 0x18]
call fcn.0041fd40
jmp 0x46ba58
cmp esi, 2
jne 0x46ba58
push str.Startup
lea ecx, [ebp - 0x18]
call fcn.0041fac0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x58]
push dword [ebp - 0x18]
call fcn.0042b0b0
test eax, eax
jne 0x46bba1
mov edx, dword [ebp - 0x20]
test edx, edx
jne 0x46ba7d
xor ecx, ecx
jmp 0x46ba91
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ba82
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0041fd40
push str.Query_string:
lea ecx, [ebp - 0x2c]
call fcn.0041f870
push str.getShortcutNonePublicPath
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
call fcn.0041f910
mov byte [ebp - 4], 0xd
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x46bad1
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
call fcn.00420f70
push edi
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x44]
call fcn.00420f70
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x10
cmp dword [eax + 0xc], 0
je 0x46bb20
push 0
push ecx
lea ecx, [ebp - 0x28]
add eax, 8
push ecx
push eax
call fcn.004210a0
mov byte [ebp - 4], 0xf
mov eax, ebx
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46bb3e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov eax, ebx
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46bb5c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46bb77
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov eax, ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46bb95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x2c]
jmp 0x46bce0
mov ecx, str.Start_Menu
test esi, esi
mov eax, str.Desktop
cmovne eax, ecx
lea ecx, [ebp - 0x30]
push eax
call fcn.0041f910
push str.failed_to_read_registry_value:
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x11
call fcn.0041f870
push str.getShortcutNonePublicPath
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x12
call fcn.0041f910
mov byte [ebp - 4], 0x13
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x46bbf4
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x48], esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x14
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x4c]
call fcn.00420f70
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x15
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.00420f70
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x16
cmp dword [eax + 0xc], 0
je 0x46bc46
push 2
push ecx
lea ecx, [ebp - 0x2c]
add eax, 8
push ecx
push eax
call fcn.004210a0
mov byte [ebp - 4], 0x15
mov eax, ebx
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46bc64
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
mov eax, ebx
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46bc82
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x13
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46bc9d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x12
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46bcbb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov eax, ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46bcd9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x30]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46bcf7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
call fcn.004f4577
mov ecx, dword [ebp - 0x58]
add esp, 4
test ecx, ecx
je 0x46bd15
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x54], 0
jmp 0x46bdfd
push str.failed_to_open_Shell_Folders_registry_key
lea ecx, [ebp - 0x2c]
call fcn.0041f870
push str.getShortcutNonePublicPath
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x17
call fcn.0041f910
mov byte [ebp - 4], 0x18
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x46bd5f
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x19
push eax
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x48]
call fcn.00420f70
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x1a
cmp dword [eax + 0xc], 0
je 0x46bd9f
push 2
push ecx
lea ecx, [ebp - 0x30]
add eax, 8
push ecx
push eax
call fcn.004210a0
mov byte [ebp - 4], 0x19
mov eax, ebx
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46bdbd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x18
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46bdd8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x17
mov eax, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46bdf6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x2c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46be14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov esi, dword [ebp - 0x34]
cmp dword [eax - 0xc], 0
jne 0x46be8f
mov cl, byte [ebp - 0xd]
test cl, cl
je 0x46be41
push ecx
mov ecx, esp
push str.USERPROFILE
call fcn.0041f910
lea ecx, [ebp - 0x14]
call fcn.0042b130
mov cl, byte [ebp - 0xd]
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x46be52
push dword [ebp - 0x14]
push str._sDesktop
jmp 0x46be86
cmp eax, 1
jne 0x46be6d
test cl, cl
je 0x46be65
push dword [ebp - 0x14]
push str._sStart_MenuPrograms
jmp 0x46be86
push esi
push str._sMicrosoftWindowsStart_MenuPrograms
jmp 0x46be86
cmp eax, 2
jne 0x46be8f
test cl, cl
je 0x46be80
push dword [ebp - 0x14]
push str._sStart_MenuProgramsStartup
jmp 0x46be86
push esi
push str._sMicrosoftWindowsStart_MenuProgramsStartup
push edi
call fcn.00420c20
add esp, 0xc
push str.Shortcut_path:
lea ecx, [ebp - 0x30]
call fcn.0041f870
push str.getShortcutNonePublicPath
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0x1b
call fcn.0041f910
mov byte [ebp - 4], 0x1c
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x46bec6
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x1d
push eax
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x44]
call fcn.00420f70
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
mov edx, eax
call fcn.00420f70
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x1f
cmp dword [eax + 0xc], 0
je 0x46bf17
push 0
push ecx
lea ecx, [ebp + 0xc]
add eax, 8
push ecx
push eax
call fcn.004210a0
mov byte [ebp - 4], 0x1e
mov eax, ebx
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46bf35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1d
mov eax, ebx
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46bf53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1c
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x46bf6e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1b
mov eax, ebx
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46bf8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46bfaa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x46bfb8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46bfd6
mov ecx, dword [edx]
push edx
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 0x46bff4
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 0x46c00f
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 - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46c02d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x46c049
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8