Function at 0x10065e70
Capabilities:
Get file attributes
Get session user name
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101000fb
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4a0], ecx
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x4a0]
mov ecx, dword [eax + 0x1194]
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp - 0x4a0]
add edx, 0xd4
je 0x10065ef4
mov eax, dword [ebp - 0x4a0]
add eax, 0xd4
push eax
call fcn.100cb090
add esp, 4
test eax, eax
jbe 0x10065ef4
mov eax, 1
jmp 0x100663f4
mov byte [ebp - 0x124], 0
push 0x103
push 0
lea ecx, [ebp - 0x123]
push ecx
call fcn.100cac20
add esp, 0xc
mov dword [ebp - 0x14], 0x104
mov edx, dword [ebp - 0x4a0]
cmp dword [edx + 0x1194], 0
jne 0x100660a6
mov byte [ebp - 0x344], 0
push 0x1ff
push 0
lea eax, [ebp - 0x343]
push eax
call fcn.100cac20
add esp, 0xc
mov dword [ebp - 0x348], 0x200
lea ecx, [ebp - 0x350]
call fcn.10008b40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x348]
push ecx
lea edx, [ebp - 0x344]
push edx
push 2
call sub.Secur32.dll_GetUserNameExA
movzx eax, al
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
je 0x10066094
lea ecx, [ebp - 0x354]
call fcn.10008b40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x344]
push ecx
lea ecx, [ebp - 0x354]
call fcn.10012200
push 0
push 0x5c
lea ecx, [ebp - 0x354]
call fcn.10012560
push eax
lea edx, [ebp - 0x488]
push edx
lea ecx, [ebp - 0x354]
call fcn.10012760
mov dword [ebp - 0x4a4], eax
mov eax, dword [ebp - 0x4a4]
mov dword [ebp - 0x4a8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4a8]
push ecx
lea ecx, [ebp - 0x350]
call fcn.100121e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x488]
call fcn.10008b60
lea ecx, [ebp - 0x350]
call fcn.10008bc0
push eax
call fcn.100cb090
add esp, 4
add eax, 1
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x140], 0
jne 0x10066063
mov edx, dword [ebp - 0x358]
push edx
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0x48c], eax
mov eax, dword [ebp - 0x48c]
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x350]
call fcn.10008bc0
push eax
mov edx, dword [ebp - 0x358]
push edx
mov eax, dword [ebp - 0x140]
push eax
call fcn.100cad54
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x354]
call fcn.10008b60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x350]
call fcn.10008b60
mov ecx, dword [ebp - 0x140]
push ecx
mov edx, dword [ebp - 0x4a0]
mov eax, dword [edx + 0x1190]
push eax
lea ecx, [ebp - 0x13c]
call fcn.100145f0
mov dword [ebp - 4], 3
push 0x104
push 0
mov ecx, dword [ebp - 0x4a0]
add ecx, 0xd4
push ecx
call fcn.100cac20
add esp, 0xc
cmp dword [ebp - 0x140], 0
jne 0x10066161
mov edx, dword [ebp - 0x4a0]
cmp dword [edx + 0x1190], 0
je 0x10066161
mov byte [ebp - 0x464], 0
push 0x103
push 0
lea eax, [ebp - 0x463]
push eax
call fcn.100cac20
add esp, 0xc
mov dword [ebp - 0x468], 0x103
mov ecx, dword [ebp - 0x468]
push ecx
lea edx, [ebp - 0x464]
push edx
lea ecx, [ebp - 0x13c]
call fcn.100156e0
lea eax, [ebp - 0x464]
push eax
mov ecx, dword [ebp - 0x4a0]
add ecx, 0xd4
push ecx
call fcn.100d13f0
add esp, 8
jmp 0x10066310
push 0xffffffffffffffff
lea edx, [ebp - 0x490]
push edx
lea ecx, [ebp - 0x13c]
call fcn.100146b0
mov dword [ebp - 0x4ac], eax
mov ecx, dword [ebp - 0x4ac]
call fcn.10008bc0
push eax
push 0x104
mov eax, dword [ebp - 0x4a0]
add eax, 0xd4
push eax
call fcn.10003fa0
add esp, 0x10
lea ecx, [ebp - 0x490]
call fcn.10008b60
lea ecx, [ebp - 0x46c]
push ecx
lea ecx, [ebp - 0x13c]
call fcn.100146b0
mov byte [ebp - 4], 4
push 0
push 0x1012d09c
lea ecx, [ebp - 0x46c]
call fcn.100125d0
test eax, eax
jg 0x10066207
push 0
push str.LocalService_
lea ecx, [ebp - 0x46c]
call fcn.100125d0
test eax, eax
jg 0x10066207
push 0
push str.Default_User_
lea ecx, [ebp - 0x46c]
call fcn.100125d0
test eax, eax
jle 0x10066301
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x100662a8
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x4a0]
mov ecx, dword [eax + 0x1190]
push ecx
lea ecx, [ebp - 0x480]
call fcn.100145f0
mov byte [ebp - 4], 5
push 0xffffffffffffffff
lea edx, [ebp - 0x494]
push edx
lea ecx, [ebp - 0x480]
call fcn.100146b0
mov dword [ebp - 0x4b0], eax
mov ecx, dword [ebp - 0x4b0]
call fcn.10008bc0
push eax
push 0x104
mov eax, dword [ebp - 0x4a0]
add eax, 0xd4
push eax
call fcn.10003fa0
add esp, 0x10
lea ecx, [ebp - 0x494]
call fcn.10008b60
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x480]
call fcn.10014670
lea ecx, [ebp - 0x470]
call fcn.10008b40
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x4a0]
add ecx, 0xd4
push ecx
push str.PrepareDomainAwareProfilePath__current_user_folder_is:__s_
lea edx, [ebp - 0x470]
push edx
call fcn.10013190
add esp, 0xc
lea ecx, [ebp - 0x470]
call fcn.10008bc0
push eax
mov ecx, dword [ebp - 0x4a0]
add ecx, 4
call sym.PfMgrApi.dll_protected:_void___thiscall_CProfileDbControllerBase::LogEvTraceDbg_char__const
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x470]
call fcn.10008b60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x46c]
call fcn.10008b60
mov eax, dword [0x1012b334]
push eax
mov ecx, dword [ebp - 0x4a0]
add ecx, 0xd4
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
cmp dword [ebp - 0x12c], 0
je 0x100663af
mov edx, dword [ebp - 0x4a0]
add edx, 0xd4
push edx
mov ecx, dword [ebp - 0x4a0]
call sym.PfMgrApi.dll_protected:_int___thiscall_CProfileDbController::VerifyAndCreateFolder_char_const__
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x4a0]
add eax, 0xd4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x484], eax
mov ecx, dword [ebp - 0x484]
or ecx, 2
mov dword [ebp - 0x484], ecx
mov edx, dword [ebp - 0x484]
push edx
mov eax, dword [ebp - 0x4a0]
add eax, 0xd4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x1012d110
push 0x104
mov ecx, dword [ebp - 0x4a0]
add ecx, 0xd4
push ecx
call fcn.100cb017
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x100663d0
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x498], edx
mov eax, dword [ebp - 0x498]
push eax
call fcn.100aaaba
add esp, 4
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x49c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.10014670
mov eax, dword [ebp - 0x49c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret