Function at 0x10004600
Capabilities:
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x8c
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
xor ebx, ebx
push ebp
push esi
push edi
lea eax, [esp + 0x74]
push eax
mov esi, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x88], bl
mov byte [esp + 0x89], bl
mov byte [esp + 0x8a], bl
mov byte [esp + 0x8b], bl
mov byte [esp + 0x8c], bl
mov byte [esp + 0x8d], 1
mov byte [esp + 0x90], bl
mov byte [esp + 0x91], bl
mov byte [esp + 0x92], bl
mov byte [esp + 0x93], bl
mov byte [esp + 0x94], bl
mov byte [esp + 0x95], 5
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ebp, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea edx, [esp + 0xac]
push edx
call ebp
test eax, eax
je 0x1000485b
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
mov edi, 2
push edi
lea ecx, [esp + 0xb4]
push ecx
call ebp
test eax, eax
je 0x1000485b
push 0x40
lea edx, [esp + 0x34]
push ebx
push edx
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov eax, 0x10000000
add esp, 0xc
mov dword [esp + 0x30], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x50], ecx
push ebx
lea ecx, [esp + 0x38]
push ecx
mov ebp, 5
push edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], edx
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
test eax, eax
jne 0x1000485b
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
push ebx
push edx
push ebx
push ebx
push 4
push 1
push esi
call edi
cmp eax, ebx
jne 0x10004790
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call edi
push 0x80
push esi
call edi
mov dword [esp + 0x20], 1
jmp 0x1000485b
cmp eax, ebp
jne 0x1000485b
lea eax, [esp + 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000485b
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
push str.SeTakeOwnershipPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000485b
push ebp
lea ecx, [esp + 0x2c]
mov eax, 1
call fcn.100163e0
add esp, 4
cmp eax, ebx
je 0x1000485b
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push edx
push 1
push 1
push esi
call edi
test eax, eax
jne 0x1000485b
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
push str.SeTakeOwnershipPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000485b
push ebp
lea ecx, [esp + 0x2c]
xor eax, eax
call fcn.100163e0
add esp, 4
cmp eax, ebx
je 0x1000485b
mov ecx, dword [esp + 0x14]
push ebx
push ecx
push ebx
push ebx
push 4
push 1
push esi
call edi
mov edi, eax
cmp edi, ebx
jne 0x10004857
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call ebp
push 0x80
push esi
call ebp
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp eax, ebx
je 0x1000486c
push eax
call esi
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x10004877
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10004886
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10004895
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100191d2
add esp, 0x8c
ret