Function at 0x402cd0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x43c400]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xfc], ecx
mov ecx, dword [ebp - 0xfc]
call fcn.00403190
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.0041f300
add esp, 0xc
push 0x94
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.0041f300
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 0x403007
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 0x402e1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4326bc
call fcn.00420574
add esp, 8
jmp 0x403007
push 0x40
push 0
lea ecx, [ebp - 0xf8]
push ecx
call fcn.0041f300
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 0x402ebb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4326e0
call fcn.00420574
add esp, 8
jmp 0x403007
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 0x402f3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x432704
call fcn.00420574
add esp, 8
jmp 0x403007
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 0x402f77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x432720
call fcn.00420574
add esp, 8
jmp 0x403007
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 0x402fa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x432738
call fcn.00420574
add esp, 8
jmp 0x403007
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 0x402fdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x432760
call fcn.00420574
add esp, 8
jmp 0x403007
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.0041f2bc
mov esp, ebp
pop ebp
ret