Function at 0x41f260
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fa73
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x4643c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
cmp dword [edi + 0x74], eax
jne 0x41f302
sub esp, 0x1c
mov esi, esp
mov ebx, 7
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [ebp - 0x1d8], esp
mov word [esi], ax
push 0x2d
mov eax, str.Object_path_and_or_object_type_not_specified.
mov edi, SysReAllocStringLen
call fcn.00413470
sub esp, 0x1c
xor eax, eax
mov dword [ebp - 4], eax
mov esi, esp
mov dword [esi + 0x10], eax
mov dword [ebp - 0x1dc], esp
xor ecx, ecx
mov dword [esi + 0x14], ebx
push ebx
mov eax, str.Prepare
mov word [esi], cx
call fcn.00413470
push 4
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.00419f60
add esp, 0x3c
lea eax, [ebx - 3]
jmp 0x41f8a4
cmp dword [edi + 0x80], eax
jne 0x41f37d
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x10], eax
mov dword [ebp - 0x1dc], esp
mov ebx, 7
xor edx, edx
mov dword [esi + 0x14], ebx
push 0x22
mov eax, str.The_object_type_was_not_specified.
mov edi, SysReAllocStringLen
mov word [esi], dx
call fcn.00413470
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 4], 1
xor eax, eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
mov dword [ebp - 0x1d8], esp
mov word [esi], ax
push ebx
mov eax, str.Prepare
call fcn.00413470
push 4
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.00419f60
add esp, 0x3c
lea eax, [ebx - 3]
jmp 0x41f8a4
mov ecx, 0x114
lea eax, [ebp - 0x1d0]
mov byte [eax], 0
inc eax
dec ecx
jne 0x41f388
lea ecx, [ebp - 0x1d0]
push ecx
mov dword [ebp - 0x1d0], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41f424
mov ebx, 2
cmp dword [ebp - 0x1c0], ebx
jne 0x41f3d5
mov eax, dword [ebp - 0x1cc]
cmp eax, 5
ja 0x41f46d
jne 0x41f3d5
cmp dword [ebp - 0x1c8], 0
ja 0x41f46d
sub esp, 0x1c
mov eax, str.SetACL_works_only_on_NT_based_operating_systems_newer_than_Windows_2000.
mov ecx, esp
mov esi, SysReAllocStringLen
mov dword [ebp - 0x1dc], esp
call fcn.00413560
sub esp, 0x1c
mov dword [ebp - 4], ebx
mov eax, str.Prepare
mov ecx, esp
mov dword [ebp - 0x1d8], esp
call fcn.00413560
push 4
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00419f60
add esp, 0x3c
mov eax, 0x25
jmp 0x41f8a4
sub esp, 0x1c
mov eax, str.The_version_of_your_operating_system_could_not_be_determined._SetACL_may_not_work_correctly.
mov ecx, esp
mov esi, SysReAllocStringLen
mov dword [ebp - 0x1dc], esp
call fcn.00413560
sub esp, 0x1c
mov dword [ebp - 4], 3
mov eax, str.Prepare
mov ecx, esp
mov dword [ebp - 0x1d8], esp
call fcn.00413560
push 2
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00419f60
add esp, 0x3c
xor edx, edx
mov ebx, 7
push 0x11
mov eax, str.SeBackupPrivilege
lea esi, [ebp - 0xb8]
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], dx
call fcn.00413470
xor eax, eax
mov dword [ebp - 4], 4
mov word [ebp - 0x64], ax
push eax
mov eax, 0x4554f0
lea esi, [ebp - 0x64]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], 0
call fcn.00413470
push 0
lea edx, [ebp - 0xb8]
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00413b00
add esp, 4
test eax, eax
mov esi, 8
setne byte [ebp - 0x1d1]
cmp dword [ebp - 0x50], esi
jb 0x41f4f7
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0043644d
add esp, 4
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], dx
cmp dword [ebp - 0xa4], esi
jb 0x41f525
mov eax, dword [ebp - 0xb8]
push eax
call fcn.0043644d
add esp, 4
cmp byte [ebp - 0x1d1], 0
je 0x41f577
sub esp, 0x1c
mov eax, str.Privilege_Back_up_files_and_directories_could_not_be_enabled._SetACLs_powers_are_restricted._Better_run_SetACL_with_admin_rights.
mov ecx, esp
mov esi, SysReAllocStringLen
mov dword [ebp - 0x1dc], esp
call fcn.00413560
sub esp, 0x1c
mov dword [ebp - 4], 6
mov eax, str.Prepare
mov ecx, esp
mov dword [ebp - 0x1d8], esp
call fcn.00413560
push 3
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00419f60
add esp, 0x3c
xor ecx, ecx
push 0x12
mov eax, str.SeRestorePrivilege
lea esi, [ebp - 0x9c]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], 0
mov word [ebp - 0x9c], cx
call fcn.00413470
xor edx, edx
mov dword [ebp - 4], ebx
push edx
mov eax, 0x4554f0
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
call fcn.00413470
push 0
lea edx, [ebp - 0x9c]
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00413b00
add esp, 4
test eax, eax
mov esi, 8
setne byte [ebp - 0x1d1]
cmp dword [ebp - 0x18], esi
jb 0x41f5f8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0043644d
add esp, 4
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x88], esi
jb 0x41f626
mov edx, dword [ebp - 0x9c]
push edx
call fcn.0043644d
add esp, 4
cmp byte [ebp - 0x1d1], 0
je 0x41f678
sub esp, 0x1c
mov eax, str.Privilege_Restore_files_and_directories_could_not_be_enabled._SetACLs_powers_are_restricted._Better_run_SetACL_with_admin_rights.
mov ecx, esp
mov esi, SysReAllocStringLen
mov dword [ebp - 0x1dc], esp
call fcn.00413560
sub esp, 0x1c
mov dword [ebp - 4], 9
mov eax, str.Prepare
mov ecx, esp
mov dword [ebp - 0x1d8], esp
call fcn.00413560
push 3
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00419f60
add esp, 0x3c
xor eax, eax
mov word [ebp - 0x80], ax
push 0x18
mov eax, str.SeTakeOwnershipPrivilege
lea esi, [ebp - 0x80]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], 0
call fcn.00413470
xor ecx, ecx
mov dword [ebp - 4], 0xa
push ecx
mov eax, 0x4554f0
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
call fcn.00413470
push 0
lea edx, [ebp - 0x80]
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.00413b00
add esp, 4
test eax, eax
mov esi, 8
setne byte [ebp - 0x1d1]
cmp dword [ebp - 0x34], esi
jb 0x41f6ee
mov edx, dword [ebp - 0x48]
push edx
call fcn.0043644d
add esp, 4
mov dword [ebp - 0x34], ebx
or ebx, 0xffffffff
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x6c], esi
jb 0x41f715
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.0043644d
add esp, 4
cmp byte [ebp - 0x1d1], 0
je 0x41f763
sub esp, 0x1c
mov eax, str.Privilege_Take_ownership_of_files_or_other_objects_could_not_be_enabled._SetACLs_powers_are_restricted._Better_run_SetACL_with_admin_rights.
mov ecx, esp
mov esi, SysReAllocStringLen
mov dword [ebp - 0x1dc], esp
call fcn.00413560
sub esp, 0x1c
mov dword [ebp - 4], 0xc
mov eax, str.Prepare
mov ecx, esp
mov dword [ebp - 0x1d8], esp
call fcn.00413560
push 3
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00419f60
add esp, 0x3c
mov esi, dword [edi + 0xf0]
mov ecx, dword [edi + 0xf4]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor ebx, ebx
add eax, edx
je 0x41f7d0
mov dword [ebp - 0x1d8], ebx
mov ecx, dword [ebp - 0x1d8]
push 0
lea ecx, [ecx + esi + 4]
call fcn.0042e240
test eax, eax
jne 0x41f8c0
mov esi, dword [edi + 0xf0]
mov ecx, dword [edi + 0xf4]
add dword [ebp - 0x1d8], 0x60
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
cmp ebx, eax
jb 0x41f78c
mov ecx, dword [edi + 8]
sub ecx, dword [edi + 4]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
xor esi, esi
add ecx, edx
je 0x41f840
xor ebx, ebx
lea ecx, [ecx]
mov ecx, dword [edi + 4]
add ecx, ebx
lea eax, [ecx + 0x2c]
push 0
mov dword [ebp - 0x1d8], eax
call fcn.0042e240
test eax, eax
jne 0x41f8c0
mov ecx, dword [ebp - 0x1d8]
push eax
call fcn.0042e240
test eax, eax
jne 0x41f8c0
mov ecx, dword [edi + 8]
sub ecx, dword [edi + 4]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
inc esi
add ecx, edx
add ebx, 0x58
cmp esi, ecx
jb 0x41f7f0
push 0
lea ecx, [edi + 0x98]
call fcn.0042e240
test eax, eax
jne 0x41f8c0
push eax
lea ecx, [edi + 0xc4]
call fcn.0042e240
test eax, eax
jne 0x41f8c0
mov ecx, edi
call fcn.0041fb00
test eax, eax
jne 0x41f8a4
cmp dword [edi + 0x80], 4
jne 0x41f891
push eax
push 1
lea edx, [edi + 0x64]
push edi
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x1d8], eax
call fcn.00424a00
test eax, eax
jne 0x41f8a4
cmp dword [edi + 0x80], 1
jne 0x41f8a2
lea ebx, [edi + 0x64]
call fcn.00431b80
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436268
mov esp, ebp
pop ebp
ret
mov eax, 6
jmp 0x41f8a4