Function at 0x4790d0
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 0x4b1d53
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x170
mov eax, dword [0x4ea008]
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.004a2df7
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [eax], 0
lea eax, [ebp - 0x134]
push 0x118
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 0x47919b
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.0048a2d0
test al, al
je 0x479399
mov edi, dword [ebp - 0x154]
test edi, edi
je 0x479399
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.004122a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x180]
push eax
call fcn.00481d20
mov ecx, eax
call fcn.00481de0
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x180]
call fcn.00412240
test esi, esi
je 0x479399
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 0x479399
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 0x4792a2
mov esi, dword [ebp - 0x13c]
mov dword [ebp - 0x164], esi
mov byte [ebp - 0x14d], 1
jmp 0x4792b1
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x4792af
push eax
call edi
xor esi, esi
push dword [ebp - 0x154]
call edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00489530
cmp byte [ebp - 0x14d], 0
je 0x4793a8
test esi, esi
je 0x4793a8
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.00478ec0
add esp, 8
mov byte [ebp - 0x14d], al
test al, al
je 0x47933e
push dword [ebp - 0x160]
push ecx
mov ecx, dword [ebp - 0x14c]
call fcn.00479870
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 0x4793aa
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.004793d0
add esp, 8
mov byte [ebp - 0x14d], al
test al, al
je 0x47938e
push dword [ebp - 0x160]
mov esi, dword [ebp - 0x154]
push ecx
mov ecx, esi
call fcn.00479870
add esp, 8
push esi
call edi
mov esi, dword [ebp - 0x164]
push esi
call edi
mov al, byte [ebp - 0x14d]
jmp 0x4793aa
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00489530
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.004a2dd3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret