Function at 0x14009df24
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x790]
sub rsp, 0x890
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov rbx, qword [rbp + 0x7f0]
xor edi, edi
mov byte [rsp + 0x41], r8b
mov r15, r9
mov qword [rsp + 0x78], rbx
mov rsi, rdx
mov r14, rcx
test rcx, rcx
jne 0x14009df8b
lea edx, [rcx + 0x5d]
lea rcx, str.base_stor_blbutil_securityutils.cpp
lea r8, str.wszFilePath
call fcn.1400906e0
test rsi, rsi
jne 0x14009dfa6
lea r8, str.wszUserName
lea edx, [rsi + 0x5e]
lea rcx, str.base_stor_blbutil_securityutils.cpp
call fcn.1400906e0
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x68], rdi
mov rcx, r14
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rdi
mov r13, rdi
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x48], edi
mov byte [rsp + 0x40], dil
mov dword [rbx], edi
call fcn.140090cf4
mov r12, qword [rsp + 0x60]
mov ebx, eax
test eax, eax
jns 0x14009e030
mov rcx, qword [0x140173048]
lea rdi, [0x140173048]
cmp rcx, rdi
je 0x14009e3e6
test byte [rcx + 0x1c], 1
je 0x14009e3e6
cmp byte [rcx + 0x19], 2
jb 0x14009e3e6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157670]
mov edx, 0xa
mov dword [rsp + 0x20], eax
mov r9, r14
call fcn.1400151b8
jmp 0x14009e3e6
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x44]
mov rdx, rsi
mov qword [rsp + 0x28], rax
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14009e0ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
je 0x14009e0ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14009e097
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
lea rdi, [0x140173048]
cmp rcx, rdi
je 0x14009e0d7
test byte [rcx + 0x1c], 1
je 0x14009e0d7
cmp byte [rcx + 0x19], 2
jb 0x14009e0d7
mov edx, 0xb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157670]
mov dword [rsp + 0x28], ebx
mov r9, r12
mov qword [rsp + 0x20], rsi
call fcn.1400152ec
cmp ebx, 0x80070534
jne 0x14009e3e6
mov ebx, 0x8078008b
jmp 0x14009e3e6
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov r13, rax
test rax, rax
jne 0x14009e10f
mov ebx, 0x8007000e
jmp 0x14009e3e6
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov rcx, r13
call sub.msvcrt.dll_memset
mov ecx, dword [rsp + 0x44]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rsp + 0x70], rax
mov rbx, rax
test rax, rax
je 0x14009e105
mov r8d, dword [rsp + 0x44]
xor edx, edx
add r8, r8
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x58]
mov r8, r13
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x44]
mov rdx, rsi
mov qword [rsp + 0x28], rax
mov rcx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14009e1d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14009e1a2
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
lea rdi, [0x140173048]
cmp rcx, rdi
je 0x14009e0d7
test byte [rcx + 0x1c], 1
je 0x14009e0d7
cmp byte [rcx + 0x19], 2
jb 0x14009e0d7
mov edx, 0xc
jmp 0x14009e0bb
mov rcx, qword [0x140173048]
lea rdi, [0x140173048]
cmp rcx, rdi
je 0x14009e213
test byte [rcx + 0x1c], 1
je 0x14009e213
cmp byte [rcx + 0x19], 4
jb 0x14009e213
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157670]
mov edx, 0xd
mov qword [rsp + 0x20], rbx
mov r9, rsi
call fcn.140015238
xor r14d, r14d
cmp byte [rsp + 0x41], r14b
jne 0x14009e27e
lea r8, [rsp + 0x40]
mov rdx, r12
mov rcx, rsi
call fcn.14009e490
mov ebx, eax
test eax, eax
js 0x14009e3e6
cmp byte [rsp + 0x40], r14b
je 0x14009e27e
mov rcx, qword [0x140173048]
cmp rcx, rdi
je 0x14009e0e3
test byte [rcx + 0x1c], 1
je 0x14009e0e3
cmp byte [rcx + 0x19], 2
jb 0x14009e0e3
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0xe]
mov r9, rsi
lea r8, [0x140157670]
call fcn.140015150
jmp 0x14009e0e3
lea rdx, [rsp + 0x50]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
nop dword [rax + rax]
test eax, eax
jne 0x14009e2f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14009e2b1
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, rdi
je 0x14009e3e6
test byte [rcx + 0x1c], 1
je 0x14009e3e6
cmp byte [rcx + 0x19], 2
jb 0x14009e3e6
mov edx, 0xf
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157670]
mov r9d, ebx
call fcn.14000c354
jmp 0x14009e3e6
mov rcx, qword [0x140173048]
cmp rcx, rdi
je 0x14009e331
test byte [rcx + 0x1c], 1
je 0x14009e331
cmp byte [rcx + 0x19], 4
jb 0x14009e331
mov rax, qword [rsp + 0x50]
lea r8, [0x140157670]
mov rcx, qword [rcx + 0x10]
mov edx, 0x10
mov qword [rsp + 0x28], rax
mov r9, rsi
mov qword [rsp + 0x20], r12
call fcn.1400153bc
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x800
call sub.msvcrt.dll_memset
mov r9, qword [rsp + 0x50]
lea r8, str.O:_wsD:AR_A_OICI_FA___BA__A_OICI_FA___BO__A_OICI_FA___CO__A_OICI_FA____ws_
mov edx, 0x400
mov qword [rsp + 0x20], r9
lea rcx, [rbp - 0x80]
call fcn.140014420
mov ebx, eax
test eax, eax
js 0x14009e3e6
lea r9, [rsp + 0x5c]
mov edx, 1
lea r8, [rsp + 0x68]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
nop dword [rax + rax]
test eax, eax
jne 0x14009e3c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14009e3a5
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, rdi
je 0x14009e3e6
test byte [rcx + 0x1c], 1
je 0x14009e3e6
cmp byte [rcx + 0x19], 2
jb 0x14009e3e6
mov edx, 0x11
jmp 0x14009e2da
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x78]
mov dword [rcx], eax
mov rax, qword [rsp + 0x68]
mov qword [r15 + 8], rax
mov dword [r15 + 0x10], r14d
mov dword [r15], 0x18
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.140007410
mov rbx, qword [rsp + 0x8e0]
add rsp, 0x890
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret