Function at 0x42df20
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 0x49f518
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1a8
mov eax, dword [0x4cd070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1b0], edx
mov dword [ebp - 0x1b4], ecx
push 0x110
lea eax, [ebp - 0x184]
push 0
push eax
call fcn.0047e1d0
add esp, 0xc
mov dword [ebp - 0x188], 0x114
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x184], 6
jae 0x42dfaa
xor eax, eax
jmp 0x42e1b1
push 0
push str.Progman
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x190], 0x3000
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x18c], 0x3000
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x42e1ab
lea ecx, [ebp - 0x194]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 0x194]
lea edx, [ebp - 0x18c]
call fcn.0042dd90
test eax, eax
je 0x42e1ab
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea edx, [ebp - 0x190]
mov ecx, eax
call fcn.0042dd90
test eax, eax
je 0x42e1ab
cmp dword [ebp - 0x190], 0x3000
jne 0x42e1ab
cmp dword [ebp - 0x18c], 0x2000
jne 0x42e1ab
push dword [ebp - 0x194]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x1b8], edi
test edi, edi
je 0x42e1ab
lea eax, [ebp - 0x190]
mov dword [ebp - 0x190], 0
push eax
push 0xf01ff
push edi
mov dword [ebp - 0x18c], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42e1a8
lea eax, [ebp - 0x18c]
push eax
push 1
push 2
push 0
push 0xf01ff
push dword [ebp - 0x190]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x42e1a0
mov ecx, dword [ebp - 0x18c]
call fcn.0042d940
sub esp, 0x14
mov dword [ebp - 0x18], 0
mov ecx, esp
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
push 0xffffffffffffffff
push str.AdvApi32.dll
call fcn.00405b70
lea ecx, [ebp - 0x28]
call fcn.00428a60
add esp, 0x14
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42e110
cmp word [eax], 0
jne 0x42e115
mov eax, 0x4aebf4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x42e18a
push str.CreateProcessWithTokenW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1ac], eax
test eax, eax
je 0x42e183
push 0x44
lea eax, [ebp - 0x70]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x1a4], xmm0
call fcn.0047e1d0
add esp, 0xc
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1b0]
push dword [ebp - 0x1b4]
push 0
push dword [ebp - 0x18c]
call dword [ebp - 0x1ac]
mov dword [ebp - 0x1a8], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x18c]
call esi
lea ecx, [ebp - 0x28]
call fcn.00405df0
mov edi, dword [ebp - 0x1b8]
push dword [ebp - 0x190]
call esi
push edi
call esi
mov eax, dword [ebp - 0x1a8]
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.00464f19
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret