Function at 0x1400dcf10
Capabilities:
Get user security identifier

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rsp + 0xe8], rbx
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov qword [rbp - 0x19], rcx
xor r15d, r15d
mov dword [rbp - 0x29], r15d
mov dword [rbp - 0x11], r15d
mov dword [rbp - 0xd], r15d
cmp qword [rdx + 0x18], 8
jb 0x1400dcf68
mov rdx, qword [rdx]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0xd]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x11]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp dword [rbp - 0x11], r15d
jne 0x1400dcff3
test r14, r14
je 0x1400dcfe0
mov rbx, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rax, str.Unable_to_calculate_size._Error__u
mov qword [rsp + 0x30], rax
lea rax, str.SidUtilities
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, reloc.WS2_32.dll_WSAStartup
lea r8, str.d:jenkinsworkspace_n_mbcommon_srcmbcommon_sid.cpp
lea rdx, str.mb::common::system::Sid::CreateFromName
mov rcx, r14
call qword [rbx + 0x20]
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov dword [rbp - 0x29], 1
jmp 0x1400dd156
xor eax, eax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov edx, dword [rbp - 0xd]
lea rcx, [rbp + 0x17]
call fcn.14007f4d0
nop
xor eax, eax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov ebx, dword [rbp - 0x11]
mov eax, ntohl
cmp rbx, rax
cmovb ebx, eax
mov byte [rbp - 9], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xorps xmm0, xmm0
movdqu xmmword [rbp - 1], xmm0
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.1400dd380
nop
cmp qword [rsi + 0x18], 8
jb 0x1400dd063
mov rsi, qword [rsi]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0xd]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x17]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x11]
mov rbx, qword [rbp - 1]
mov r8, rbx
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400dd133
test r14, r14
je 0x1400dd0e8
mov rbx, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rax, str.Unable_to_query_account_name._Error__u
mov qword [rsp + 0x30], rax
lea rax, str.SidUtilities
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 0x7c
lea r8, str.d:jenkinsworkspace_n_mbcommon_srcmbcommon_sid.cpp
lea rdx, str.mb::common::system::Sid::CreateFromName
mov rcx, r14
call qword [rbx + 0x20]
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov dword [rbp - 0x29], 3
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x1400dd131
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400dd131
mov rbx, qword [rbp + 7]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x1400dd131
mov rcx, qword [rbp + 7]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x1400dd14d
mov qword [rdi], rbx
mov rax, qword [rbp + 7]
mov qword [rdi + 8], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 1], xmm0
mov dword [rbp - 0x29], 3
lea rcx, [rbp + 0x17]
call fcn.140029670
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140282c10
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret