Function at 0x46be50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5139b9
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x573be0]
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
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 1
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 3
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 5
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
mov dword [ebp - 0x40], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
call fcn.004438c0
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.00443c10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.00443e00
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 0x14
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x46bf84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
setbe byte [ebp - 0xd]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.004204a0
mov byte [ebp - 4], 8
mov eax, dword [0x574ba4]
push 0x20019
mov ecx, 0x574ba4
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.00421890
lea ecx, [ebp - 0x24]
push ecx
mov edx, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call fcn.00421890
add esp, 8
mov byte [ebp - 4], 0xb
push dword [eax]
push ecx
mov ecx, esp
push str.users
call fcn.004204a0
call fcn.0042b930
add esp, 4
lea ecx, [ebp - 0x58]
push eax
call fcn.0042aff0
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov dword [ebp - 0x28], eax
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46c046
mov ecx, dword [eax]
push dword [ebp - 0x28]
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c066
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c083
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c0a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x44], 0
mov esi, dword [ebp + 0xc]
jne 0x46c3f9
xor ecx, ecx
mov eax, 0x1fffff
mov edx, 2
mul edx
seto cl
mov dword [ebp - 0x44], 0x1fffff
neg ecx
or ecx, eax
push ecx
call fcn.004e9b36
push 0x3ffffe
push 0
push eax
mov dword [ebp - 0x24], eax
call fcn.004eee10
mov edx, dword [0x574ba4]
add esp, 0x10
mov ecx, 0x574ba4
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xc
test esi, esi
jne 0x46c112
push 7
push str.Desktop
lea ecx, [ebp - 0x18]
call fcn.00420c80
jmp 0x46c130
cmp esi, 1
jne 0x46c11e
push str.Start_Menu
jmp 0x46c128
cmp esi, 2
jne 0x46c130
push str.Startup
lea ecx, [ebp - 0x18]
call fcn.00420600
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x24]
lea ecx, [ebp - 0x58]
push dword [ebp - 0x18]
call fcn.0042b060
test eax, eax
jne 0x46c27a
mov edx, dword [ebp - 0x24]
test edx, edx
jne 0x46c155
xor ecx, ecx
jmp 0x46c16f
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c160
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00420c80
push str.Query_string:
lea ecx, [ebp - 0x2c]
call fcn.00420550
push str.getShortcutNonePublicPath
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.004204a0
mov byte [ebp - 4], 0xe
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call fcn.00421890
push edi
mov edx, eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x10
call fcn.00421890
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x11
cmp dword [eax + 0xc], 0
je 0x46c1f1
push 0
push ecx
lea ecx, [ebp - 0x28]
push ecx
add eax, 8
push eax
call fcn.004219a0
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c211
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c231
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c24e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c26e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x2c]
jmp 0x46c3b6
mov ecx, str.Start_Menu
mov eax, str.Desktop
test esi, esi
cmovne eax, ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.004204a0
push str.failed_to_read_registry_value:
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x12
call fcn.00420550
push str.getShortcutNonePublicPath
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x13
call fcn.004204a0
mov byte [ebp - 4], 0x14
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x48], esi
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x15
call fcn.00421890
lea ecx, [ebp - 0x30]
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x16
call fcn.00421890
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x17
cmp dword [eax + 0xc], 0
je 0x46c312
push 2
push ecx
lea ecx, [ebp - 0x2c]
push ecx
add eax, 8
push eax
call fcn.004219a0
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c332
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c352
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x14
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c36f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c38f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c3af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c3cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x24]
call fcn.004e9b31
mov edx, dword [ebp - 0x58]
add esp, 4
test edx, edx
je 0x46c3ed
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], 0
jmp 0x46c4fd
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, str.failed_to_open_Shell_Folders_registry_key
mov byte [ebp - 4], 0x18
test eax, 0xffff0000
jne 0x46c436
movzx esi, ax
mov ecx, esi
call fcn.0041fcd0
test eax, eax
je 0x46c443
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.00420bb0
jmp 0x46c443
push str.failed_to_open_Shell_Folders_registry_key
lea ecx, [ebp - 0x18]
call fcn.00420650
push str.getShortcutNonePublicPath
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x19
call fcn.004204a0
mov byte [ebp - 4], 0x1a
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x1b
call fcn.00421890
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x1c
cmp dword [eax + 0xc], 0
je 0x46c4a0
push 2
push ecx
lea ecx, [ebp - 0x30]
push ecx
add eax, 8
push eax
call fcn.004219a0
mov byte [ebp - 4], 0x1b
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c4c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x1a
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c4dd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c4fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c51d
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 0x46c598
mov cl, byte [ebp - 0xd]
test cl, cl
je 0x46c54a
push ecx
mov ecx, esp
push str.USERPROFILE
call fcn.004204a0
lea ecx, [ebp - 0x14]
call fcn.0042b0e0
mov cl, byte [ebp - 0xd]
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x46c55b
push dword [ebp - 0x14]
push str._sDesktop
jmp 0x46c58f
cmp eax, 1
jne 0x46c576
test cl, cl
je 0x46c56e
push dword [ebp - 0x14]
push str._sStart_MenuPrograms
jmp 0x46c58f
push esi
push str._sMicrosoftWindowsStart_MenuPrograms
jmp 0x46c58f
cmp eax, 2
jne 0x46c598
test cl, cl
je 0x46c589
push dword [ebp - 0x14]
push str._sStart_MenuProgramsStartup
jmp 0x46c58f
push esi
push str._sMicrosoftWindowsStart_MenuProgramsStartup
push edi
call fcn.00421610
add esp, 0xc
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov eax, str.Shortcut_path:
mov byte [ebp - 4], 0x1d
test eax, 0xffff0000
jne 0x46c5d5
movzx edi, ax
mov ecx, edi
call fcn.0041fcd0
test eax, eax
je 0x46c5e2
push edi
push eax
lea ecx, [ebp + 0xc]
call fcn.00420bb0
jmp 0x46c5e2
push str.Shortcut_path:
lea ecx, [ebp + 0xc]
call fcn.00420650
push str.getShortcutNonePublicPath
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1e
call fcn.004204a0
mov byte [ebp - 4], 0x1f
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x4c], edi
lea eax, [ebp + 0xc]
push eax
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x20
call fcn.00421890
mov byte [ebp - 4], 0x21
push dword [ebp + 8]
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00421890
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x22
cmp dword [eax + 0xc], 0
je 0x46c650
push 0
push ecx
lea ecx, [ebp - 0x30]
push ecx
add eax, 8
push eax
call fcn.004219a0
mov byte [ebp - 4], 0x21
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c670
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x20
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c690
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0x1f
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c6ad
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1e
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c6cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c6ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x46c6fb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c71b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c73b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c758
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c778
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x3c]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x46c796
mov ecx, dword [esi]
push esi
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