Function at 0x47b2f0
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 0x4b3da3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x170
mov eax, dword [0x4ec008]
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 - 0x158], edx
mov dword [ebp - 0x15c], ecx
mov eax, dword [ebx + 0x10]
push 1
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x18], 0
call fcn.004a4c57
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [eax], 0
lea eax, [ebp - 0x134]
push pe_nt_image_headers32
push 0
push eax
call sub.VCRUNTIME140.dll_memset
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 0x47b3bb
cmp dword [ebp - 0x134], 6
mov eax, dword [ebp - 0x18]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.0048c4f0
test al, al
je 0x47b5b9
mov edi, dword [ebp - 0x154]
test edi, edi
je 0x47b5b9
push 0xc
xor eax, eax
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0
lea ecx, [ebp - 0x180]
push str.Advapi32.dll
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 7
mov word [ebp - 0x180], ax
call fcn.004126a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x180]
push eax
call fcn.00483f40
mov ecx, eax
call fcn.00484000
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x180]
call fcn.00412640
test esi, esi
je 0x47b5b9
push str.DuplicateTokenEx
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47b5b9
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 0x47b4c2
mov esi, dword [ebp - 0x13c]
mov dword [ebp - 0x164], esi
mov byte [ebp - 0x14d], 1
jmp 0x47b4d1
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x47b4cf
push eax
call edi
xor esi, esi
push dword [ebp - 0x154]
call edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0048b750
cmp byte [ebp - 0x14d], 0
je 0x47b5c8
test esi, esi
je 0x47b5c8
mov edx, dword [ebp - 0x15c]
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x158]
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [ebp - 0x14c], xmm0
call fcn.0047b0e0
add esp, 8
mov byte [ebp - 0x14d], al
test al, al
je 0x47b55e
push dword [ebp - 0x160]
push ecx
mov ecx, dword [ebp - 0x14c]
call fcn.0047ba90
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 0x47b5ca
mov edx, dword [ebp - 0x158]
lea eax, [ebp - 0x154]
push eax
push ecx
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x154], 0
call fcn.0047b5f0
add esp, 8
mov byte [ebp - 0x14d], al
test al, al
je 0x47b5ae
push dword [ebp - 0x160]
mov esi, dword [ebp - 0x154]
push ecx
mov ecx, esi
call fcn.0047ba90
add esp, 8
push esi
call edi
mov esi, dword [ebp - 0x164]
push esi
call edi
mov al, byte [ebp - 0x14d]
jmp 0x47b5ca
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0048b750
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.004a4c33
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret