Function at 0x1400532a0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, reloc.mfc120u.dll_Ordinal_296
mov rax, qword [0x1401f3f10]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x98], 0x101f0000
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x8c], Ordinal_1031
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x94], Ordinal_1031
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x90], Ordinal_1031
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xa0], 0
mov eax, dword [rsp + 0x90]
mov qword [rsp + 0xe8], rax
mov eax, 2
mov rcx, qword [rsp + 0xe8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call sub.mfc120u.dll_Ordinal_265
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x1400533b5
jmp 0x140053804
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400533dd
jmp 0x140053804
mov eax, dword [rsp + 0x94]
mov ecx, eax
call qword [sym.imp.MSVCR120.dll_malloc]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140053403
jmp 0x140053804
mov eax, dword [rsp + 0x8c]
mov qword [rsp + 0xf8], rax
mov eax, 2
mov rcx, qword [rsp + 0xf8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call sub.mfc120u.dll_Ordinal_265
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140053462
jmp 0x140053804
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x94]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400534b8
jmp 0x140053804
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x58]
mov edx, 4
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1400534f4
jmp 0x140053804
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140053509
jmp 0x140053804
mov eax, dword [rsp + 0x44]
mov ecx, eax
call qword [sym.imp.MSVCR120.dll_malloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14005352c
jmp 0x140053804
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x44]
mov r8, qword [rsp + 0x58]
mov edx, 4
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140053568
jmp 0x140053804
mov eax, dword [rsp + 0x44]
mov ecx, eax
call qword [sym.imp.MSVCR120.dll_malloc]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x14005358b
jmp 0x140053804
mov edx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x1400535a9
jmp 0x140053804
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x1400535da
jmp 0x140053804
mov dword [rsp + 0x100], 0
mov dword [rsp + 0x108], 0
mov dword [rsp + 0x104], 8
cmp dword [rsp + 0x88], 0
je 0x140053640
cmp qword [rsp + 0xb0], 0
je 0x140053640
mov r9d, 2
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x140053640
jmp 0x140053804
mov eax, dword [rsp + 0x104]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov eax, eax
mov rcx, qword [rsp + 0xd0]
lea rax, [rcx + rax + 8]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov ecx, eax
call qword [sym.imp.MSVCR120.dll_malloc]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140053690
jmp 0x140053804
mov r8d, 2
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x1400536b3
jmp 0x140053804
cmp dword [rsp + 0x88], 0
je 0x140053797
cmp dword [rsp + 0x100], 0
je 0x140053797
mov dword [rsp + 0x48], 0
jmp 0x1400536e3
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x100]
cmp dword [rsp + 0x48], eax
jae 0x140053797
lea r8, [rsp + 0xa8]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x14005371c
jmp 0x140053804
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x14005375c
mov eax, dword [rsp + 0x98]
bts eax, 0x1e
mov rcx, qword [rsp + 0xa0]
mov ecx, dword [rcx + 4]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xa0]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0xa8]
movzx eax, word [rax + 2]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xa8]
mov r8d, 0xffffffff
mov edx, 2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
jne 0x140053792
jmp 0x140053804
jmp 0x1400536d9
mov r9, qword [rsp + 0x68]
mov r8d, dword [rsp + 0x98]
mov edx, 2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x1400537bc
jmp 0x140053802
xor r9d, r9d
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x1400537dc
jmp 0x140053800
mov r8, qword [rsp + 0x70]
mov edx, 4
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x1400537fc
jmp 0x1400537fe
jmp 0x140053804
jmp 0x140053804
jmp 0x140053804
jmp 0x140053804
cmp qword [rsp + 0x78], 0
je 0x140053826
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0xe0]
call sub.mfc120u.dll_Ordinal_266
cmp qword [rsp + 0x68], 0
je 0x140053839
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.MSVCR120.dll_free]
cmp qword [rsp + 0x80], 0
je 0x140053861
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0xf0]
call sub.mfc120u.dll_Ordinal_266
cmp qword [rsp + 0x58], 0
je 0x140053874
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCR120.dll_free]
cmp qword [rsp + 0x70], 0
je 0x140053887
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCR120.dll_free]
cmp qword [rsp + 0x50], 0
je 0x14005389a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCR120.dll_free]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14010f170
add rsp, reloc.mfc120u.dll_Ordinal_296
ret