Function at 0x10013950
Capabilities:
Check if file exists
Compare security identifiers
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
push eax
mov byte [ebp - 3], 0
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ebx
call sym.vmtools.dll_Unicode_Duplicate
add esp, 4
mov esi, eax
push esi
call sym.vmtools.dll_Unicode_LengthInCodePoints
push 0x10061674
mov edi, eax
call sym.vmtools.dll_Unicode_LengthInCodePoints
add esp, 8
cmp eax, edi
jg 0x10013a17
push ebx
push eax
push ebx
push 0x10061674
push eax
sub edi, eax
push edi
push esi
call sym.vmtools.dll_Unicode_CompareRange
add esp, 0x1c
test eax, eax
sete al
test al, al
je 0x10013a17
push esi
call sym.vmtools.dll_Unicode_LengthInCodePoints
push 0x1005d980
mov edi, eax
call sym.vmtools.dll_Unicode_LengthInCodePoints
add esp, 8
cmp eax, edi
jg 0x10013a17
push ebx
push eax
push ebx
push 0x1005d980
push eax
sub edi, eax
push edi
push esi
call sym.vmtools.dll_Unicode_CompareRange
add esp, 0x1c
test eax, eax
sete al
test al, al
je 0x10013a17
push esi
call sym.vmtools.dll_Unicode_LengthInCodePoints
dec eax
push eax
push ebx
push esi
call sym.vmtools.dll_Unicode_Substr
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x14
mov esi, edi
jmp 0x10013987
push 1
push esi
call sym.vmtools.dll_Unicode_GetAllocBytes
mov edi, eax
add esp, 8
push edi
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10013c2a
test al, 0x10
je 0x10013c2a
test eax, 0x400
jne 0x10013c2a
lea ecx, [ebp - 0xc]
push ecx
call fcn.100137a0
add esp, 4
test al, al
je 0x10013c16
lea edx, [ebp - 0x10]
push edx
call fcn.10013680
add esp, 4
test al, al
je 0x10013c16
lea eax, [ebp - 0x1c]
push eax
push ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
lea edx, [ebp - 0x14]
push edx
push 5
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x10013aa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.W32Util_IsDirectorySafe
push str._s:_GetNamedSecurityInfoW_failed:__d_n
jmp 0x10013c35
cmp dword [ebp - 0x18], ebx
jne 0x10013aba
push esi
push str.W32Util_IsDirectorySafe
push str._s:_Failed_DACL_presence_check____s__n
jmp 0x10013c35
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x10013af0
mov edi, dword [sym.imp.ADVAPI32.dll_EqualSid]
push eax
mov eax, dword [ebp - 0x10]
push eax
call edi
test eax, eax
jne 0x10013af0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
push ecx
push edx
call edi
test eax, eax
jne 0x10013af0
push esi
push str.W32Util_IsDirectorySafe
push str._s:_Failed_owner_SID_match____s__n
jmp 0x10013c35
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
jne 0x10013b1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.W32Util_IsDirectorySafe
push str._s:_GetSecurityDescriptorControl_failed:__d_n
jmp 0x10013c35
test dword [ebp - 0x28], 0x1000
jne 0x10013b35
push esi
push str.W32Util_IsDirectorySafe
push str._s:_Failed_DACL_inherit_check____s__n
jmp 0x10013c35
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclW]
test eax, eax
je 0x10013b61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.W32Util_IsDirectorySafe
push str._s:_GetExplicitEntriesFromAclW_failed:__d_n
jmp 0x10013c35
cmp dword [ebp - 0x24], 2
je 0x10013b77
push esi
push str.W32Util_IsDirectorySafe
push str._s:_Failed_DACL_num_entries_check____s__n
jmp 0x10013c35
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], ebx
xor edi, edi
jmp 0x10013b83
xor ebx, ebx
cmp dword [edi + eax + 0x14], ebx
jne 0x10013bfc
mov ebx, dword [edi + eax + 0x1c]
mov eax, dword [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10013bb5
mov eax, dword [ebp - 8]
cmp dword [edi + eax + 4], 1
jne 0x10013bdb
test dword [edi + eax], 0x20000
je 0x10013bdb
mov byte [ebp - 2], 1
jmp 0x10013bdb
mov ecx, dword [ebp - 0x10]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
mov eax, dword [ebp - 8]
je 0x10013bdb
cmp dword [edi + eax + 4], 1
jne 0x10013bdb
test dword [edi + eax], 0x20000
je 0x10013bdb
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 0x20]
inc ecx
add edi, 0x20
mov dword [ebp - 0x20], ecx
cmp ecx, dword [ebp - 0x24]
jb 0x10013b81
cmp byte [ebp - 1], 0
je 0x10013c09
cmp byte [ebp - 2], 0
je 0x10013c09
mov byte [ebp - 3], 1
jmp 0x10013c3d
push esi
push str.W32Util_IsDirectorySafe
push str._s:_Failed_trustee_SID_identity_check____s__n
jmp 0x10013c35
push esi
push str.W32Util_IsDirectorySafe
push str._s:_Failed_cur_user_and_admin_ACE_presence_check____s__n
jmp 0x10013c35
push str.W32Util_IsDirectorySafe
push str._s:_Couldnt_get_local_admin_or_user_SID_n
call sym.vmtools.dll_Log
add esp, 8
jmp 0x10013c3d
push esi
push str.W32Util_IsDirectorySafe
push str._s:_Failed_directory_attributes_check____s__n
call sym.vmtools.dll_Log
add esp, 0xc
push esi
mov esi, dword [sym.imp.MSVCR90.dll_free]
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
mov eax, dword [ebp - 0xc]
push eax
call esi
mov ecx, dword [ebp - 0x10]
push ecx
call esi
mov edx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
add esp, 0x10
push edx
call esi
mov eax, dword [ebp - 8]
push eax
call esi
mov al, byte [ebp - 3]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret