Function at 0x1000f289
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100b802c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [edi], ebx
jne 0x1000f444
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._advapi32.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10056804
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
jne 0x1000f301
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x1000f4d9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetEntriesInAclW
push eax
call esi
push str.GetFileSecurityW
push dword [edi]
mov dword [edi + 0x1c], eax
call esi
push str.SetFileSecurityW
push dword [edi]
mov dword [edi + 0x20], eax
call esi
push str.LookupAccountSidW
push dword [edi]
mov dword [edi + 0x3c], eax
call esi
push str.GetExplicitEntriesFromAclW
push dword [edi]
mov dword [edi + 0x68], eax
call esi
push 0x100914f8
push dword [edi]
mov dword [edi + 0x80], eax
call esi
push 0x1009150c
push dword [edi]
mov dword [edi + 0x24], eax
call esi
push str.InitializeSecurityDescriptor
push dword [edi]
mov dword [edi + 0x28], eax
call esi
push str.SetSecurityDescriptorDacl
push dword [edi]
mov dword [edi + 0x2c], eax
call esi
push str.GetSecurityDescriptorDacl
push dword [edi]
mov dword [edi + 0x30], eax
call esi
push str.AllocateAndInitializeSid
push dword [edi]
mov dword [edi + 0x34], eax
call esi
push 0x10091594
push dword [edi]
mov dword [edi + 0x38], eax
call esi
push str.OpenThreadToken
push dword [edi]
mov dword [edi + 0x40], eax
call esi
push str.GetTokenInformation
push dword [edi]
mov dword [edi + 0x60], eax
call esi
push str.InitializeAcl
push dword [edi]
mov dword [edi + 0x64], eax
call esi
push str.InitializeSid
push dword [edi]
mov dword [edi + 0x44], eax
call esi
push str.GetSidSubAuthority
push dword [edi]
mov dword [edi + 0x48], eax
call esi
push str.AddAccessAllowedAce
push dword [edi]
mov dword [edi + 0x4c], eax
call esi
push str.GetSecurityInfo
push dword [edi]
mov dword [edi + 0x50], eax
call esi
push str.SetSecurityInfo
push dword [edi]
mov dword [edi + 0x54], eax
call esi
mov dword [edi + 0x58], eax
push str.QueryServiceStatusEx
push dword [edi]
call esi
push str.GetAce
push dword [edi]
mov dword [edi + 0x5c], eax
call esi
push str.DeleteAce
push dword [edi]
mov dword [edi + 0x6c], eax
call esi
push str.EqualSid
push dword [edi]
mov dword [edi + 0x70], eax
call esi
push str.GetAclInformation
push dword [edi]
mov dword [edi + 0x74], eax
call esi
push str.SetSecurityDescriptorControl
push dword [edi]
mov dword [edi + 0x78], eax
call esi
mov dword [edi + 0x7c], eax
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi + 0x1c], ebx
je 0x1000f4d7
cmp dword [edi + 0x20], ebx
je 0x1000f4d7
cmp dword [edi + 0x24], ebx
je 0x1000f4d7
cmp dword [edi + 0x28], ebx
je 0x1000f4d7
cmp dword [edi + 0x2c], ebx
je 0x1000f4d7
cmp dword [edi + 0x30], ebx
je 0x1000f4d7
cmp dword [edi + 0x34], ebx
je 0x1000f4d7
cmp dword [edi + 0x38], ebx
je 0x1000f4d7
cmp dword [edi + 0x3c], ebx
je 0x1000f4d7
cmp dword [edi + 0x40], ebx
je 0x1000f4d7
cmp dword [edi + 0x44], ebx
je 0x1000f4d7
cmp dword [edi + 0x48], ebx
je 0x1000f4d7
cmp dword [edi + 0x4c], ebx
je 0x1000f4d7
cmp dword [edi + 0x50], ebx
je 0x1000f4d7
cmp dword [edi + 0x54], ebx
je 0x1000f4d7
cmp dword [edi + 0x58], ebx
je 0x1000f4d7
cmp dword [edi + 0x5c], ebx
je 0x1000f4d7
cmp dword [edi + 0x60], ebx
je 0x1000f4d7
cmp dword [edi + 0x64], ebx
je 0x1000f4d7
cmp dword [edi + 0x68], ebx
je 0x1000f4d7
cmp dword [edi + 0x78], ebx
je 0x1000f4d7
cmp dword [edi + 0x6c], ebx
je 0x1000f4d7
cmp dword [edi + 0x70], ebx
je 0x1000f4d7
cmp dword [edi + 0x74], ebx
je 0x1000f4d7
cmp dword [edi + 0x7c], ebx
je 0x1000f4d7
cmp dword [edi + 0x80], ebx
je 0x1000f4d7
xor ebx, ebx
inc ebx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10037f93
mov esp, ebp
pop ebp
ret