Function at 0x401c60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
mov eax, dword [0x41527c]
push ebx
xor eax, ebp
push esi
mov esi, ecx
mov dword [esp + 0xf8], eax
xor ebx, ebx
xor ecx, ecx
mov dword [esi], 0x40f48c
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea eax, [esi + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], ecx
push edi
mov dword [eax + 8], ecx
xor eax, eax
lea edx, [esp + 0x60]
mov ecx, 0x25
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x64], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x64], 6
jb 0x401ee0
lea eax, [esi + 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0x84], bl
mov byte [esp + 0x85], bl
mov byte [esp + 0x86], bl
mov byte [esp + 0x87], bl
mov byte [esp + 0x88], bl
mov byte [esp + 0x89], 1
mov byte [esp + 0x7c], bl
mov byte [esp + 0x7d], bl
mov byte [esp + 0x7e], bl
mov byte [esp + 0x7f], bl
mov byte [esp + 0x80], bl
mov byte [esp + 0x81], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401d8b
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 4]
lea edi, [esi + 8]
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x3c], 0xe0010000
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 5
mov dword [esp + 0x58], ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x401db6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AllocateAndInitializeSid_Error__u_n
call fcn.00406246
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, ebp
call fcn.004052d1
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
lea edi, [esi + 0xc]
push edi
push ebx
lea ecx, [esp + 0x18]
push ecx
push 2
mov dword [esp + 0x40], 0x10000000
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 2
mov dword [esp + 0x5c], eax
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
test eax, eax
je 0x401e1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetEntriesInAcl_Error__u_n
call fcn.00406246
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, ebp
call fcn.004052d1
mov esp, ebp
pop ebp
ret
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x401e59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LocalAlloc_Error__u_n
call fcn.00406246
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, ebp
call fcn.004052d1
mov esp, ebp
pop ebp
ret
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x401e91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeSecurityDescriptor_Error__u_n
call fcn.00406246
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, ebp
call fcn.004052d1
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
mov eax, dword [esi + 0x10]
push ebx
push edx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x401ed0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetSecurityDescriptorDacl_Error__u_n
call fcn.00406246
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, ebp
call fcn.004052d1
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], 0xc
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ebx
mov ecx, dword [esp + 0xfc]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004052d1
mov esp, ebp
pop ebp
ret