Function at 0x410970
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41863e
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x30
lea eax, [ebp - 0x40]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 8
lea edx, [ebp - 0x40]
mov ecx, 0x41caa4
call fcn.00410450
add esp, 4
test eax, eax
jne 0x410c1c
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x410c14
cmp dword [ebp - 0xe4], 6
jne 0x4109f8
cmp dword [ebp - 0xdc], 0xece
jbe 0x410c14
push ecx
lea edx, [ebp - 0x40]
mov dword [ebp - 0x48], 0
mov ecx, str.Explorer.exe
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0xec], 0
call fcn.00410450
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x410c19
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call esi
mov dword [ebp + ebx*4 - 0x40], eax
lea eax, [ebp - 0x4c]
push eax
inc ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov esi, eax
test esi, esi
jne 0x410a5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
jmp 0x410c1c
test ebx, ebx
je 0x410c1c
lea ecx, [ebp - 0x40]
cmp dword [ecx + ebx*4 - 4], 0
lea ecx, [ecx + ebx*4]
je 0x410c10
mov esi, dword [ebp + ebx*4 - 0x44]
lea ecx, [ebp - 0x44]
dec ebx
xor edi, edi
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0xf0], edi
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea eax, [ebp - 0x48]
mov dword [ebp - 4], edi
push eax
push esi
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0xf8], edi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x410b80
push esi
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x410b80
cmp edi, 0xffffffff
je 0x410b80
lea eax, [ebp - 0xf4]
push eax
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x410b80
lea eax, [ebp - 0xec]
push eax
push 1
push 2
push 0
push 0x18b
push dword [ebp - 0xf4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
test esi, esi
je 0x410b80
push 0x2000
lea eax, [ebp - 0x44]
push str.S_1_16__d
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidA]
test eax, eax
je 0x410b8a
mov eax, dword [ebp - 0xf0]
push eax
mov dword [ebp - 0xf8], 0x20
mov dword [ebp - 0xfc], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0xfc]
push eax
push 0x19
push dword [ebp - 0xec]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x410b8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
neg esi
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x410ba0
cmp eax, 0xffffffff
je 0x410ba0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x410bb4
cmp edi, 0xffffffff
je 0x410bb4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x410bba
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140.dll_Ordinal_1044]
test esi, esi
jle 0x410c08
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x4c]
jne 0x410be5
mov ecx, dword [ebp - 0xec]
call fcn.00410540
mov esi, eax
jmp 0x410be7
xor esi, esi
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x410c03
cmp eax, 0xffffffff
je 0x410c03
push eax
call edi
mov dword [ebp - 0xec], 0
cmp esi, 1
je 0x410c10
test ebx, ebx
jne 0x410a66
mov eax, esi
jmp 0x410c1c
call fcn.00410780
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416a63
mov esp, ebp
pop ebp
ret