Function at 0x10009090
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 0x101d21c6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x178
mov eax, dword [0x102632d4]
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 - 0x15c], edx
mov dword [ebp - 0x160], ecx
mov eax, dword [ebx + 0x10]
push 1
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x154], 0
call fcn.101912bf
add esp, 4
mov dword [ebp - 0x154], eax
mov byte [eax], 0
lea eax, [ebp - 0x134]
push 0x118
push 0
push eax
call fcn.101a9880
add esp, 0xc
mov dword [ebp - 0x138], 0x11c
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10009164
cmp dword [ebp - 0x134], 6
mov eax, dword [ebp - 0x154]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x154]
call fcn.10019650
test al, al
je 0x10009371
mov edi, dword [ebp - 0x158]
test edi, edi
je 0x10009371
push 0xc
xor eax, eax
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x170], 0
lea ecx, [ebp - 0x184]
push 0x10216704
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x170], 7
mov word [ebp - 0x184], ax
call fcn.10008910
mov byte [ebp - 4], 1
lea eax, [ebp - 0x184]
push eax
call fcn.1001c670
mov ecx, eax
call fcn.1001c730
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x184]
call fcn.100088b0
test esi, esi
je 0x10009371
push str.DuplicateTokenEx
push 0x10216704
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10009371
lea ecx, [ebp - 0x13c]
mov byte [ebp - 0x14d], 0
push ecx
push 1
push 2
push 0
push 0x18b
push edi
mov dword [ebp - 0x13c], 0
call eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10009271
mov esi, dword [ebp - 0x13c]
mov dword [ebp - 0x168], esi
mov byte [ebp - 0x14d], 1
jmp 0x10009280
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x1000927e
push eax
call edi
xor esi, esi
push dword [ebp - 0x158]
call edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.10018900
cmp byte [ebp - 0x14d], 0
je 0x10009383
test esi, esi
je 0x10009383
mov edx, dword [ebp - 0x160]
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x15c]
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [ebp - 0x14c], xmm0
call fcn.10008e10
add esp, 8
mov byte [ebp - 0x14d], al
test al, al
je 0x10009313
push dword [ebp - 0x164]
mov ecx, dword [ebp - 0x14c]
xor edx, edx
push 0
call fcn.10009850
add esp, 8
push dword [ebp - 0x14c]
call edi
push dword [ebp - 0x148]
call edi
push esi
call edi
mov al, byte [ebp - 0x14d]
jmp 0x10009385
mov edx, dword [ebp - 0x15c]
lea eax, [ebp - 0x158]
push eax
push ecx
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x158], 0
call fcn.100093b0
add esp, 8
mov byte [ebp - 0x14d], al
test al, al
je 0x10009366
push dword [ebp - 0x164]
mov esi, dword [ebp - 0x158]
xor edx, edx
push 0
mov ecx, esi
call fcn.10009850
add esp, 8
push esi
call edi
mov esi, dword [ebp - 0x168]
push esi
call edi
mov al, byte [ebp - 0x14d]
jmp 0x10009385
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.10018900
xor al, al
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.101912fd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret