Function at 0x479530
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 0x4b1e13
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.004a2ea7
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 0x4795fb
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.0048a740
test al, al
je 0x4797f9
mov edi, dword [ebp - 0x154]
test edi, edi
je 0x4797f9
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.00482190
mov ecx, eax
call fcn.00482250
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x180]
call fcn.00412640
test esi, esi
je 0x4797f9
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 0x4797f9
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 0x479702
mov esi, dword [ebp - 0x13c]
mov dword [ebp - 0x164], esi
mov byte [ebp - 0x14d], 1
jmp 0x479711
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x47970f
push eax
call edi
xor esi, esi
push dword [ebp - 0x154]
call edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004899a0
cmp byte [ebp - 0x14d], 0
je 0x479808
test esi, esi
je 0x479808
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.00479320
add esp, 8
mov byte [ebp - 0x14d], al
test al, al
je 0x47979e
push dword [ebp - 0x160]
push ecx
mov ecx, dword [ebp - 0x14c]
call fcn.00479cd0
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 0x47980a
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.00479830
add esp, 8
mov byte [ebp - 0x14d], al
test al, al
je 0x4797ee
push dword [ebp - 0x160]
mov esi, dword [ebp - 0x154]
push ecx
mov ecx, esi
call fcn.00479cd0
add esp, 8
push esi
call edi
mov esi, dword [ebp - 0x164]
push esi
call edi
mov al, byte [ebp - 0x14d]
jmp 0x47980a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004899a0
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.004a2e83
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret