Function at 0x1400f0fd0
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 [0x14027aef8]
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.140102230
mov dword [rsp + 0x6c], esi
lea r14, [rsp + 0x70]
mov qword [rsp + 0x60], r12
test r13, r13
je 0x1400f12cb
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 0x1400f1291
cmp dword [0x140274810], 4
mov qword [rsp + 0x1e0], rbx
jl 0x1400f107a
test dword [0x14027488c], 0x10000
je 0x1400f107a
lea ebx, [r12 + 1]
jmp 0x1400f107c
xor ebx, ebx
mov edx, 4
mov ecx, 0x10000
call fcn.1400e1c40
test ebx, ebx
jne 0x1400f1093
test eax, eax
je 0x1400f10de
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:jenkinsworkspacedptfSrcESIFProductsESIF_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.1400ba210
mov edx, 0x5c
lea rcx, [rsp + 0x70]
call fcn.1401023d0
test rax, rax
je 0x1400f1107
lea r14, [rax + 1]
mov byte [rax], r12b
lea r12, [rsp + 0x70]
test r14, r14
je 0x1400f1289
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 0x1400f113d
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 0x1400f1159
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 0x1400f1166
test rbx, rbx
je 0x1400f11f5
test esi, esi
je 0x1400f1173
test rdi, rdi
je 0x1400f11f5
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 0x1400f11b6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_IsValidSid]
test eax, eax
jne 0x1400f11fc
lea esi, [rax + 0xd]
jmp 0x1400f11be
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
test rbx, rbx
je 0x1400f11ce
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor ebx, ebx
test rdi, rdi
je 0x1400f11dc
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor edi, edi
cmp esi, 0x7a
jne 0x1400f121c
test rbx, rbx
jne 0x1400f121c
mov esi, dword [rsp + 0x58]
mov eax, dword [rsp + 0x5c]
jmp 0x1400f1121
mov esi, 0xe
jmp 0x1400f1220
mov eax, dword [rsp + 0x68]
test eax, eax
jle 0x1400f1215
cmp eax, 2
jle 0x1400f1211
add eax, 0xfffffffc
cmp eax, 1
ja 0x1400f1215
xor esi, esi
jmp 0x1400f1230
mov esi, 0x4e9
jmp 0x1400f1220
test esi, esi
je 0x1400f1230
test rbx, rbx
je 0x1400f1230
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor ebx, ebx
test rdi, rdi
je 0x1400f123e
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rdi, qword [rsp + 0x198]
test esi, esi
jne 0x1400f127b
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.ADVAPI32.DLL_ConvertSidToStringSidA
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x1400f1278
mov r8, qword [rsp + 0x60]
mov r9, 0xffffffffffffffff
mov rdx, rax
mov rcx, r13
call fcn.1401100d8
mov r15, r13
test rbx, rbx
je 0x1400f1289
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rbx, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400f12a1
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.140100920
add rsp, 0x1a0
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
lea rax, str.Invalid_Buffer
jmp 0x1400f12ac