Function at 0x10031080
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f8cf6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x890
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x888], esi
xorps xmm0, xmm0
mov dword [ebp - 0x894], 0
or edx, 0xffffffff
movq qword [ebp - 0x864], xmm0
movups xmmword [ebp - 0x874], xmm0
mov dword [ebp - 0x85c], 0
mov dword [ebp - 0x880], edx
nop dword [eax + eax]
xor ecx, ecx
mov edi, 1
mov dword [ebp - 0x884], ecx
mov dword [ebp - 0x88c], edi
cmp dword [esi + 0x1ac], 2
jne 0x100317e5
cmp ecx, 7
jne 0x1003113f
cmp edx, 0xffffffff
jne 0x1003113f
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x884]
mov edx, dword [ebp - 0x880]
test edx, edi
je 0x100317cd
lea eax, [ecx*8]
mov edx, 0x10103c80
sub eax, ecx
mov esi, 0xc
shl eax, 2
mov dword [ebp - 0x898], eax
lea edi, [eax + 0x1013f910]
mov dword [ebp - 0x890], edi
mov ecx, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10031195
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10031171
mov esi, dword [ebp - 0x888]
cmp byte [esi + 0x1a9], 0
je 0x100317bb
mov dword [ebp - 0x878], 0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x87c], eax
mov edx, edi
mov byte [ebp - 4], 1
mov esi, str.KSATABR
lea edi, [eax + 0xc]
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x100311d5
add edx, 4
add esi, 4
sub edi, 4
jae 0x100311c0
xor ecx, ecx
jmp 0x100311fa
cmp cl, byte [esi]
jne 0x100311f5
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x100311f5
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x100311f5
mov cl, byte [edx + 3]
cmp cl, byte [esi + 3]
jne 0x100311f5
xor ecx, ecx
jmp 0x100311fa
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x100312b4
mov ecx, 0x23
lea edi, [ebp - 0x220]
mov esi, str._APPDATA_MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar
lea eax, [ebp - 0x192]
rep movsd dword es:[edi], dword [esi]
push 0x17a
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.100d6eb0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
push 0
push 0
lea eax, [ebp - 0x878]
push eax
push 0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHELL32.dll_SHParseDisplayName]
test eax, eax
mov eax, dword [ebp - 0x878]
js 0x100312ab
test eax, eax
je 0x100312ab
lea ecx, [ebp - 0x87c]
push ecx
push 0x10103e10
push eax
call dword [sym.imp.SHELL32.dll_SHCreateItemFromIDList]
test eax, eax
mov eax, dword [ebp - 0x87c]
js 0x1003128b
test eax, eax
jne 0x100315c5
mov byte [ebp - 4], 3
test eax, eax
je 0x10031299
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x878]
jmp 0x100317a0
mov byte [ebp - 4], 2
jmp 0x10031783
mov edx, dword [ebp - 0x890]
mov esi, str.SALCISC
mov edi, 0xc
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x100312d9
add edx, 4
add esi, 4
sub edi, 4
jae 0x100312c4
xor ecx, ecx
jmp 0x100312fe
cmp cl, byte [esi]
jne 0x100312f9
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x100312f9
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x100312f9
mov cl, byte [edx + 3]
cmp cl, byte [esi + 3]
jne 0x100312f9
xor ecx, ecx
jmp 0x100312fe
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x10031475
mov esi, dword [0x1014e914]
cmp dword [esi], ecx
je 0x10031348
mov eax, dword [esi + 4]
cmp eax, 2
je 0x10031327
cmp eax, 3
je 0x10031327
cmp eax, 4
je 0x10031327
cmp eax, 5
jne 0x1003133a
push str.PinnedPrograms
push dword [esi]
call fcn.100dc721
add esp, 8
test eax, eax
je 0x10031351
add esi, 0x60
cmp dword [esi], 0
jne 0x10031310
mov eax, dword [ebp - 0x87c]
mov byte [ebp - 4], 4
jmp 0x1003128f
push 0x10158d3c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov esi, dword [esi + 0x40]
push 0x10158d3c
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp esi, 1
jne 0x10031342
mov edx, str.PinnedItemsPath
lea ecx, [ebp - 0x89c]
call fcn.100aa8e0
mov edx, dword [eax]
mov esi, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10031386
sub esi, ecx
sar esi, 1
cmp esi, 0x103
jle 0x100313a4
mov esi, 0x103
jmp 0x100313a8
test esi, esi
jle 0x100313c1
movzx eax, word [edx + esi*2]
mov ecx, 0xdc00
cmp ax, cx
jb 0x100313c1
mov ecx, 0xdfff
cmp ax, cx
ja 0x100313c1
dec esi
add esi, esi
lea eax, [ebp - 0x428]
push esi
push edx
push eax
call fcn.100d7080
mov edx, dword [ebp - 0x89c]
xor eax, eax
add esp, 0xc
mov word [ebp + esi - 0x428], ax
add edx, 0xfffffff0
mov byte [ebp - 4], 5
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031400
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x104
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
push 0
push 0
lea eax, [ebp - 0x878]
push eax
push 0
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHELL32.dll_SHParseDisplayName]
test eax, eax
mov eax, dword [ebp - 0x878]
js 0x1003146c
test eax, eax
je 0x1003146c
lea ecx, [ebp - 0x87c]
push ecx
push 0x10103e10
push eax
call dword [sym.imp.SHELL32.dll_SHCreateItemFromIDList]
test eax, eax
mov eax, dword [ebp - 0x87c]
js 0x10031463
test eax, eax
jne 0x100315c5
mov byte [ebp - 4], 7
jmp 0x1003128f
mov byte [ebp - 4], 6
jmp 0x10031783
mov edx, dword [ebp - 0x890]
mov esi, 0x1013f8fc
mov edi, 0xc
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x1003149a
add edx, 4
add esi, 4
sub edi, 4
jae 0x10031485
xor ecx, ecx
jmp 0x100314bf
cmp cl, byte [esi]
jne 0x100314ba
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x100314ba
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x100314ba
mov cl, byte [edx + 3]
cmp cl, byte [esi + 3]
jne 0x100314ba
xor ecx, ecx
jmp 0x100314bf
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x10031575
mov cx, word [0x10159320]
test cx, cx
jne 0x100314f8
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
movzx eax, al
shr ecx, 8
shl ax, 8
movzx ecx, cl
or cx, ax
mov eax, dword [ebp - 0x87c]
mov word [0x10159320], cx
mov edx, 0x602
cmp cx, dx
jae 0x1003150b
mov byte [ebp - 4], 8
jmp 0x1003128f
mov ecx, 0x1b
lea edi, [ebp - 0x630]
mov esi, str._LOCALAPPDATA_MicrosoftWindowsApplication_Shortcuts
lea eax, [ebp - 0x5c2]
rep movsd dword es:[edi], dword [esi]
push 0x19a
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.100d6eb0
add esp, 0xc
lea eax, [ebp - 0x630]
push 0x104
push eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov ecx, dword [ebp - 0x878]
mov esi, eax
test ecx, ecx
je 0x10031567
push ecx
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp - 0x87c]
mov dword [ebp - 0x878], esi
jmp 0x100315c5
mov ecx, dword [ebp - 0x890]
lea edx, [ebp - 0x878]
call fcn.100348d0
test eax, eax
mov eax, dword [ebp - 0x878]
js 0x1003177f
test eax, eax
je 0x1003177f
lea ecx, [ebp - 0x87c]
push ecx
push 0x10103e10
push eax
call dword [sym.imp.SHELL32.dll_SHCreateItemFromIDList]
test eax, eax
mov eax, dword [ebp - 0x87c]
js 0x10031776
test eax, eax
je 0x10031776
cmp dword [ebp - 0x884], 7
jge 0x1003162b
cmp dword [ebp - 0x880], 0xffffffff
jne 0x1003162b
lea eax, [ebp - 0x838]
push eax
push dword [ebp - 0x878]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
js 0x10031625
push 0x13
push 1
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov ecx, dword [ebp - 0x894]
mov dword [ebp + ecx*4 - 0x858], eax
cmp eax, 0xffffffff
je 0x10031625
mov eax, dword [ebp - 0x88c]
mov dword [ebp + ecx*4 - 0x874], eax
inc ecx
mov dword [ebp - 0x894], ecx
mov eax, dword [ebp - 0x87c]
mov ecx, dword [ebp - 0x898]
mov esi, dword [ebp - 0x888]
mov ecx, dword [ecx + 0x1013f920]
mov edi, ecx
and edi, 7
cmp byte [esi + 0x1a8], 0
cmovne edi, ecx
test edi, edi
je 0x1003174e
mov ecx, dword [ebp - 0x890]
mov edx, 0x1013f8fc
mov esi, 0xc
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x10031694
mov ecx, dword [ebp - 0x890]
add edx, 4
add ecx, 4
mov dword [ebp - 0x890], ecx
sub esi, 4
jae 0x10031664
mov esi, dword [ebp - 0x888]
mov ecx, esi
push edi
call fcn.100309c0
jmp 0x10031748
mov ecx, dword [ebp - 0x898]
cmp dword [ecx + 0x1013f928], 3
jne 0x1003172d
mov esi, dword [0x1014e914]
cmp dword [esi], 0
je 0x100316ea
mov eax, dword [esi + 4]
cmp eax, 2
je 0x100316c9
cmp eax, 3
je 0x100316c9
cmp eax, 4
je 0x100316c9
cmp eax, 5
jne 0x100316dc
push str.CompatibilityFixes
push dword [esi]
call fcn.100dc721
add esp, 8
test eax, eax
je 0x100316fa
add esi, 0x60
cmp dword [esi], 0
jne 0x100316b2
mov eax, dword [ebp - 0x87c]
xor ecx, ecx
test cl, 4
je 0x10031727
mov byte [ebp - 4], 0xb
jmp 0x1003128f
push 0x10158d3c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov eax, dword [esi + 0x40]
push 0x10158d3c
mov dword [ebp - 0x890], eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
mov eax, dword [ebp - 0x87c]
mov ecx, dword [ebp - 0x890]
jmp 0x100316ec
mov ecx, dword [ebp - 0x898]
push dword [ecx + 0x1013f928]
mov esi, dword [ebp - 0x888]
push dword [ecx + 0x1013f924]
mov ecx, esi
push edi
push eax
call fcn.10030660
mov eax, dword [ebp - 0x87c]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x1003175c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x878]
test eax, eax
je 0x100317b1
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
jmp 0x100317b1
mov byte [ebp - 4], 0xa
jmp 0x1003128f
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x87c]
test ecx, ecx
je 0x10031799
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x878]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x100317ab
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov esi, dword [ebp - 0x888]
mov dword [ebp - 0x878], 0
mov ecx, dword [ebp - 0x884]
mov edi, dword [ebp - 0x88c]
mov edx, dword [ebp - 0x880]
inc ecx
rol edi, 1
mov dword [ebp - 0x884], ecx
mov dword [ebp - 0x88c], edi
cmp ecx, 9
jb 0x10031113
cmp edx, 0xffffffff
jne 0x100317f3
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [ebp - 0x894]
test edi, edi
je 0x1003186c
mov eax, dword [esi + 0x2c]
push 0xffffffffffffffff
mov dword [ebp + edi*4 - 0x858], eax
lea eax, [ebp - 0x858]
push 0
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, eax
lea ecx, [edi - 1]
cmp esi, ecx
ja 0x1003186c
mov ecx, dword [ebp + esi*4 - 0x874]
push dword [ebp + esi*4 - 0x858]
mov dword [ebp - 0x880], ecx
call dword [sym.imp.KERNEL32.dll_FindNextChangeNotification]
test eax, eax
jne 0x10031850
push dword [ebp + esi*4 - 0x858]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x888]
mov edx, dword [ebp - 0x880]
jmp 0x10031100
xor esi, esi
test edi, edi
jle 0x10031892
mov edi, dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
nop dword [eax + eax]
push dword [ebp + esi*4 - 0x858]
call edi
inc esi
cmp esi, dword [ebp - 0x894]
jl 0x10031880
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100d4906
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret