Function at 0x4625a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510f19
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x570be0]
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 [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 1
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 3
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 5
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
mov dword [ebp - 0x40], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
call fcn.00443a20
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x18]
call fcn.00443d70
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.00443f60
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 0x4626d4
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 [0x571ba4]
push 0x20019
mov ecx, 0x571ba4
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.004215a0
lea ecx, [ebp - 0x24]
push ecx
mov edx, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call fcn.004215a0
add esp, 8
mov byte [ebp - 4], 0xb
push dword [eax]
push ecx
mov ecx, esp
push str.users
call fcn.004204a0
call fcn.0042b640
add esp, 4
lea ecx, [ebp - 0x58]
push eax
call fcn.0042ad00
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 0x462796
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 0x4627b6
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 0x4627d3
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 0x4627f3
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 0x462b49
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.004e7a06
push 0x3ffffe
push 0
push eax
mov dword [ebp - 0x24], eax
call fcn.004ecdb0
mov edx, dword [0x571ba4]
add esp, 0x10
mov ecx, 0x571ba4
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xc
test esi, esi
jne 0x462862
push 7
push str.Desktop
lea ecx, [ebp - 0x18]
call fcn.00420c80
jmp 0x462880
cmp esi, 1
jne 0x46286e
push str.Start_Menu
jmp 0x462878
cmp esi, 2
jne 0x462880
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.0042ad70
test eax, eax
jne 0x4629ca
mov edx, dword [ebp - 0x24]
test edx, edx
jne 0x4628a5
xor ecx, ecx
jmp 0x4628bf
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4628b0
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 [0x571ba4]
mov ecx, 0x571ba4
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.004215a0
push edi
mov edx, eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x10
call fcn.004215a0
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x11
cmp dword [eax + 0xc], 0
je 0x462941
push 0
push ecx
lea ecx, [ebp - 0x28]
push ecx
add eax, 8
push eax
call fcn.004216b0
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 0x462961
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 0x462981
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 0x46299e
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 0x4629be
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 0x462b06
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 [0x571ba4]
mov ecx, 0x571ba4
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.004215a0
lea ecx, [ebp - 0x30]
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x16
call fcn.004215a0
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x17
cmp dword [eax + 0xc], 0
je 0x462a62
push 2
push ecx
lea ecx, [ebp - 0x2c]
push ecx
add eax, 8
push eax
call fcn.004216b0
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 0x462a82
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 0x462aa2
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 0x462abf
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 0x462adf
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 0x462aff
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 0x462b1f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x24]
call fcn.004e7a01
mov edx, dword [ebp - 0x58]
add esp, 4
test edx, edx
je 0x462b3d
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], 0
jmp 0x462c4d
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
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 0x462b86
movzx esi, ax
mov ecx, esi
call fcn.0041fcd0
test eax, eax
je 0x462b93
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.00420bb0
jmp 0x462b93
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 [0x571ba4]
mov ecx, 0x571ba4
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.004215a0
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x1c
cmp dword [eax + 0xc], 0
je 0x462bf0
push 2
push ecx
lea ecx, [ebp - 0x30]
push ecx
add eax, 8
push eax
call fcn.004216b0
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 0x462c10
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 0x462c2d
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 0x462c4d
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 0x462c6d
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 0x462ce8
mov cl, byte [ebp - 0xd]
test cl, cl
je 0x462c9a
push ecx
mov ecx, esp
push str.USERPROFILE
call fcn.004204a0
lea ecx, [ebp - 0x14]
call fcn.0042adf0
mov cl, byte [ebp - 0xd]
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x462cab
push dword [ebp - 0x14]
push str._sDesktop
jmp 0x462cdf
cmp eax, 1
jne 0x462cc6
test cl, cl
je 0x462cbe
push dword [ebp - 0x14]
push str._sStart_MenuPrograms
jmp 0x462cdf
push esi
push str._sMicrosoftWindowsStart_MenuPrograms
jmp 0x462cdf
cmp eax, 2
jne 0x462ce8
test cl, cl
je 0x462cd9
push dword [ebp - 0x14]
push str._sStart_MenuProgramsStartup
jmp 0x462cdf
push esi
push str._sMicrosoftWindowsStart_MenuProgramsStartup
push edi
call fcn.00421320
add esp, 0xc
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
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 0x462d25
movzx edi, ax
mov ecx, edi
call fcn.0041fcd0
test eax, eax
je 0x462d32
push edi
push eax
lea ecx, [ebp + 0xc]
call fcn.00420bb0
jmp 0x462d32
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 [0x571ba4]
mov ecx, 0x571ba4
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.004215a0
mov byte [ebp - 4], 0x21
push dword [ebp + 8]
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.004215a0
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x22
cmp dword [eax + 0xc], 0
je 0x462da0
push 0
push ecx
lea ecx, [ebp - 0x30]
push ecx
add eax, 8
push eax
call fcn.004216b0
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 0x462dc0
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 0x462de0
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 0x462dfd
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 0x462e1d
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 0x462e3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x462e4b
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 0x462e6b
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 0x462e8b
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 0x462ea8
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 0x462ec8
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 0x462ee6
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