Function at 0x4041d0
Capabilities:
Check os version

Disassembly:
mov eax, 0x428766
call fcn.00410ccc
sub esp, 0x26c
push ebx
push esi
push edi
lea ecx, [ebp - 0x4c]
call fcn.00403c39
xor ebx, ebx
lea ecx, [ebp - 0x9c]
mov dword [ebp - 4], ebx
call fcn.00403d37
push 1
lea ecx, [ebp - 0xc4]
pop esi
mov byte [ebp - 4], 1
call fcn.00403d4f
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.00403d6b
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push dword [ebp + 8]
mov byte [ebp - 4], 7
call fcn.0040992e
mov edi, 0x94
lea eax, [ebp - 0x178]
push edi
push ebx
push eax
call fcn.00410eb0
add esp, 0x10
lea eax, [ebp - 0x178]
mov dword [ebp - 0x178], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4042a8
push ebx
push str.GetVersionEx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push dword [ebp + 8]
call fcn.00409a6a
add esp, 0x14
cmp dword [ebp - 0x18], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x404287
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x1c], ebx
je 0x404291
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x10], ebx
je 0x404445
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404445
cmp dword [ebp - 0x168], 2
jne 0x404277
cmp dword [ebp - 0x174], 5
jb 0x404277
mov edi, dword [ebp + 8]
push ebx
push edi
lea ecx, [ebp - 0x4c]
call fcn.0040450a
test eax, eax
je 0x404277
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x4c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x221
push 0x20
push 2
push 0x4341d0
call fcn.00403d67
call eax
test eax, eax
jne 0x404302
push ebx
push str.AllocateAndInitializeSid
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404403
lea eax, [ebp - 0x10]
push eax
push 0x60000
push dword [ebp + 0xc]
lea eax, [ebp - 0x278]
push dword [ebp + 0x14]
push edi
push eax
call fcn.00409c02
add esp, 0x18
cmp dword [edi], ebx
jne 0x404277
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x20]
push ebx
push eax
push ebx
push ebx
push 4
push 4
push dword [ebp - 0x10]
call fcn.00403d67
call eax
cmp eax, ebx
je 0x40435d
lea ecx, [ebp - 0x278]
push ecx
push str.GetSecurityInfo
jmp 0x404403
cmp dword [ebp - 0x20], ebx
je 0x404277
push 0x20
lea eax, [ebp - 0xe4]
push ebx
push eax
call fcn.00410eb0
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xe4]
push dword [ebp - 0x20]
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xdc], 2
push eax
push esi
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xcc], 5
call fcn.00403d67
call eax
cmp eax, ebx
je 0x4043d8
push ebx
push str.SetEntriesInAcl
jmp 0x404403
mov eax, dword [ebp - 0x24]
push ebx
push eax
push ebx
push ebx
push 4
push 4
lea ecx, [ebp - 0x74]
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
call fcn.00403d67
call eax
cmp eax, ebx
je 0x40440b
lea ecx, [ebp - 0x278]
push ecx
push str.SetSecurityInfo
push eax
push esi
push edi
jmp 0x40426f
push dword [ebp - 0x10]
lea eax, [ebp - 0x278]
push edi
push eax
call fcn.0040a065
add esp, 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 6
call fcn.004044a5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.004044a5
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00404497
cmp dword [ebp - 0x14], ebx
je 0x404453
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.004044c1
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.004044c1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], bl
call fcn.004044c1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004044c1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret