Function at 0x46c9b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514a89
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x574be0]
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 [0x575ba4]
mov ecx, 0x575ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 1
mov eax, dword [0x575ba4]
mov ecx, 0x575ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
mov eax, dword [0x575ba4]
mov ecx, 0x575ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 3
mov eax, dword [0x575ba4]
mov ecx, 0x575ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov eax, dword [0x575ba4]
mov ecx, 0x575ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 5
mov eax, dword [0x575ba4]
mov ecx, 0x575ba4
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [0x575ba4]
mov ecx, 0x575ba4
mov dword [ebp - 0x40], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
call fcn.00443ba0
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.00443ef0
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.004440e0
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 0x46cae4
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 [0x575ba4]
push 0x20019
mov ecx, 0x575ba4
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 0x46cba6
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 0x46cbc6
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 0x46cbe3
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 0x46cc03
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 0x46cf59
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.004eaae6
push 0x3ffffe
push 0
push eax
mov dword [ebp - 0x24], eax
call fcn.004efe90
mov edx, dword [0x575ba4]
add esp, 0x10
mov ecx, 0x575ba4
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xc
test esi, esi
jne 0x46cc72
push 7
push str.Desktop
lea ecx, [ebp - 0x18]
call fcn.00420c80
jmp 0x46cc90
cmp esi, 1
jne 0x46cc7e
push str.Start_Menu
jmp 0x46cc88
cmp esi, 2
jne 0x46cc90
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 0x46cdda
mov edx, dword [ebp - 0x24]
test edx, edx
jne 0x46ccb5
xor ecx, ecx
jmp 0x46cccf
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ccc0
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 [0x575ba4]
mov ecx, 0x575ba4
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 0x46cd51
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 0x46cd71
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 0x46cd91
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 0x46cdae
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 0x46cdce
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 0x46cf16
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 [0x575ba4]
mov ecx, 0x575ba4
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 0x46ce72
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 0x46ce92
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 0x46ceb2
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 0x46cecf
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 0x46ceef
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 0x46cf0f
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 0x46cf2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x24]
call fcn.004eaae1
mov edx, dword [ebp - 0x58]
add esp, 4
test edx, edx
je 0x46cf4d
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], 0
jmp 0x46d05d
mov eax, dword [0x575ba4]
mov ecx, 0x575ba4
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 0x46cf96
movzx esi, ax
mov ecx, esi
call fcn.0041fcd0
test eax, eax
je 0x46cfa3
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.00420bb0
jmp 0x46cfa3
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 [0x575ba4]
mov ecx, 0x575ba4
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 0x46d000
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 0x46d020
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 0x46d03d
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 0x46d05d
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 0x46d07d
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 0x46d0f8
mov cl, byte [ebp - 0xd]
test cl, cl
je 0x46d0aa
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 0x46d0bb
push dword [ebp - 0x14]
push str._sDesktop
jmp 0x46d0ef
cmp eax, 1
jne 0x46d0d6
test cl, cl
je 0x46d0ce
push dword [ebp - 0x14]
push str._sStart_MenuPrograms
jmp 0x46d0ef
push esi
push str._sMicrosoftWindowsStart_MenuPrograms
jmp 0x46d0ef
cmp eax, 2
jne 0x46d0f8
test cl, cl
je 0x46d0e9
push dword [ebp - 0x14]
push str._sStart_MenuProgramsStartup
jmp 0x46d0ef
push esi
push str._sMicrosoftWindowsStart_MenuProgramsStartup
push edi
call fcn.00421610
add esp, 0xc
mov eax, dword [0x575ba4]
mov ecx, 0x575ba4
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 0x46d135
movzx edi, ax
mov ecx, edi
call fcn.0041fcd0
test eax, eax
je 0x46d142
push edi
push eax
lea ecx, [ebp + 0xc]
call fcn.00420bb0
jmp 0x46d142
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 [0x575ba4]
mov ecx, 0x575ba4
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 0x46d1b0
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 0x46d1d0
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 0x46d1f0
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 0x46d20d
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 0x46d22d
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 0x46d24d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x46d25b
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 0x46d27b
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 0x46d29b
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 0x46d2b8
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 0x46d2d8
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 0x46d2f6
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