Function at 0x4027d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x441400]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xfc], ecx
mov ecx, dword [ebp - 0xfc]
call fcn.00402c90
mov eax, dword [ebp - 0xfc]
mov dword [eax], vtable.CFileSecurity.0
mov ecx, dword [ebp - 0xfc]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0xfc]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0xfc]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0xfc]
mov dword [ecx + 0x10], 0
push 0xc
push 0
mov edx, dword [ebp - 0xfc]
add edx, 0x14
push edx
call fcn.00424040
add esp, 0xc
push 0x94
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.00424040
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 6
jb 0x402b07
mov byte [ebp - 0xac], 0
mov byte [ebp - 0xab], 0
mov byte [ebp - 0xaa], 0
mov byte [ebp - 0xa9], 0
mov byte [ebp - 0xa8], 0
mov byte [ebp - 0xa7], 1
mov byte [ebp - 0xb4], 0
mov byte [ebp - 0xb3], 0
mov byte [ebp - 0xb2], 0
mov byte [ebp - 0xb1], 0
mov byte [ebp - 0xb0], 0
mov byte [ebp - 0xaf], 5
mov edx, dword [ebp - 0xfc]
add edx, 4
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40291e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4376a8
call fcn.00425054
add esp, 8
jmp 0x402b07
push 0x40
push 0
lea ecx, [ebp - 0xf8]
push ecx
call fcn.00424040
add esp, 0xc
mov dword [ebp - 0xf8], 0xe0010000
mov dword [ebp - 0xf4], 2
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 5
mov edx, dword [ebp - 0xfc]
mov eax, dword [edx + 4]
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xfc]
add ecx, 8
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea edx, [ebp - 0xb4]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4029bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AllocateAndInitializeSid_Error__u_n
call fcn.00425054
add esp, 8
jmp 0x402b07
mov dword [ebp - 0xd8], 0x10000000
mov dword [ebp - 0xd4], 1
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 2
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xbc], ecx
mov edx, dword [ebp - 0xfc]
add edx, 0xc
push edx
push 0
lea eax, [ebp - 0xf8]
push eax
push 2
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
je 0x402a3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetEntriesInAcl_Error__u_n
call fcn.00425054
add esp, 8
jmp 0x402b07
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0xfc]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0xfc]
cmp dword [edx + 0x10], 0
jne 0x402a77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LocalAlloc_Error__u_n
call fcn.00425054
add esp, 8
jmp 0x402b07
push 1
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x402aa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeSecurityDescriptor_Error__u_n
call fcn.00425054
add esp, 8
jmp 0x402b07
push 0
mov edx, dword [ebp - 0xfc]
mov eax, dword [edx + 0xc]
push eax
push 1
mov ecx, dword [ebp - 0xfc]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x402adb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetSecurityDescriptorDacl_Error__u_n
call fcn.00425054
add esp, 8
jmp 0x402b07
mov eax, dword [ebp - 0xfc]
mov dword [eax + 0x14], 0xc
mov ecx, dword [ebp - 0xfc]
mov edx, dword [ebp - 0xfc]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x18], eax
mov ecx, dword [ebp - 0xfc]
mov dword [ecx + 0x1c], 0
mov eax, dword [ebp - 0xfc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423ff6
mov esp, ebp
pop ebp
ret