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

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x14027df48]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov qword [rsp + 0x50], rdx
mov r13, rcx
mov esi, 0x104
lea rcx, [rsp + 0x70]
mov r8d, esi
xor edx, edx
xor r12d, r12d
call fcn.140104310
mov dword [rsp + 0x6c], esi
lea r14, [rsp + 0x70]
mov qword [rsp + 0x60], r12
test r13, r13
je 0x1400f33ab
mov qword [rsp + 0x190], r15
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x70]
lea r15, str.Failed_getting_user_name
call qword [sym.imp.ADVAPI32.DLL_GetUserNameA]
test eax, eax
je 0x1400f3371
cmp dword [0x140277860], 4
mov qword [rsp + 0x1e0], rbx
jl 0x1400f315a
test dword [0x1402778dc], 0x10000
je 0x1400f315a
lea ebx, [r12 + 1]
jmp 0x1400f315c
xor ebx, ebx
mov edx, 4
mov ecx, 0x10000
call fcn.1400e3b80
test ebx, ebx
jne 0x1400f3173
test eax, eax
je 0x1400f31be
lea rcx, [rsp + 0x70]
mov r9d, 4
mov qword [rsp + 0x40], rcx
mov r8d, 0x10000
lea rcx, str.User_Name_is__s_n
mov edx, eax
mov qword [rsp + 0x38], rcx
lea rcx, str.C:jenkinsworkspacedptf_2SrcESIFProductsESIF_UFSourceswin_named_pipe.c
mov dword [rsp + 0x30], 0xf1
mov qword [rsp + 0x28], rcx
lea rcx, str.GetProcessSid
mov qword [rsp + 0x20], rcx
mov ecx, ebx
call fcn.1400bb960
mov edx, 0x5c
lea rcx, [rsp + 0x70]
call fcn.1401044b0
test rax, rax
je 0x1400f31e7
lea r14, [rax + 1]
mov byte [rax], r12b
lea r12, [rsp + 0x70]
test r14, r14
je 0x1400f3369
xor eax, eax
mov qword [rsp + 0x198], rdi
xor edi, edi
mov dword [rsp + 0x58], esi
xor ebx, ebx
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x68], eax
test eax, eax
je 0x1400f321d
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, dword [rsp + 0x58]
mov rbx, rax
mov eax, dword [rsp + 0x5c]
test esi, esi
je 0x1400f3239
mov edx, esi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, dword [rsp + 0x58]
mov rdi, rax
mov eax, dword [rsp + 0x5c]
test eax, eax
je 0x1400f3246
test rbx, rbx
je 0x1400f32d5
test esi, esi
je 0x1400f3253
test rdi, rdi
je 0x1400f32d5
lea rax, [rsp + 0x68]
mov r8, rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x5c]
lea rax, [rsp + 0x58]
mov rdx, r14
mov qword [rsp + 0x28], rax
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.DLL_LookupAccountNameA]
test eax, eax
je 0x1400f3296
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_IsValidSid]
test eax, eax
jne 0x1400f32dc
lea esi, [rax + 0xd]
jmp 0x1400f329e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
test rbx, rbx
je 0x1400f32ae
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor ebx, ebx
test rdi, rdi
je 0x1400f32bc
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor edi, edi
cmp esi, 0x7a
jne 0x1400f32fc
test rbx, rbx
jne 0x1400f32fc
mov esi, dword [rsp + 0x58]
mov eax, dword [rsp + 0x5c]
jmp 0x1400f3201
mov esi, 0xe
jmp 0x1400f3300
mov eax, dword [rsp + 0x68]
test eax, eax
jle 0x1400f32f5
cmp eax, 2
jle 0x1400f32f1
add eax, 0xfffffffc
cmp eax, 1
ja 0x1400f32f5
xor esi, esi
jmp 0x1400f3310
mov esi, 0x4e9
jmp 0x1400f3300
test esi, esi
je 0x1400f3310
test rbx, rbx
je 0x1400f3310
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor ebx, ebx
test rdi, rdi
je 0x1400f331e
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rdi, qword [rsp + 0x198]
test esi, esi
jne 0x1400f335b
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.ADVAPI32.DLL_ConvertSidToStringSidA
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x1400f3358
mov r8, qword [rsp + 0x60]
mov r9, 0xffffffffffffffff
mov rdx, rax
mov rcx, r13
call fcn.1401121b8
mov r15, r13
test rbx, rbx
je 0x1400f3369
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rbx, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400f3381
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rax, r15
mov r15, qword [rsp + 0x190]
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140102a00
add rsp, 0x1a0
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
lea rax, str.Invalid_Buffer
jmp 0x1400f338c