Function at 0x14004e310
Capabilities:
Get session user name

Disassembly:
push rbp
push r12
push r13
push r15
lea rbp, [rsp - 0x5d8]
sub rsp, 0x6d8
mov rax, qword [0x1400ad368]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
lea r15, [rcx + 0x407c]
mov byte [rsp + 0x20], 1
lea r12, [rcx + 0x4080]
mov qword [rsp + 0x48], r15
lea r13, [rcx + 0x4088]
mov dword [r15], 0x32
xor eax, eax
mov qword [rsp + 0x50], r12
mov rcx, 0xffffffff80000001
mov dword [r12], eax
mov r9d, 0x20019
mov qword [rsp + 0x58], r13
lea r8, [rsp + 0x30]
mov dword [r13], 0xf5
lea rdx, str.Console_
call fcn.1400476e0
test al, al
je 0x14004e6ed
mov rcx, qword [rsp + 0x30]
lea rdx, str.HistoryBufferSize
mov qword [rsp + 0x708], rbx
mov r8, r15
mov qword [rsp + 0x710], rsi
mov qword [rsp + 0x718], rdi
mov qword [rsp + 0x6d0], r14
call fcn.1400478e0
mov rcx, qword [rsp + 0x30]
lea rdx, str.HistoryNoDup
mov r8, r12
call fcn.1400478e0
mov rcx, qword [rsp + 0x30]
lea rdx, str.PopupColors
mov r8, r13
call fcn.1400478e0
mov edi, 0x102
lea rcx, [rbp + 0x1a0]
mov dword [rsp + 0x40], edi
lea edx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
test eax, eax
je 0x14004e6ba
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14004e6ba
mov r9, qword [0x1400b0ea0]
lea r8, str.____s
mov edx, 0x14
lea rcx, [rsp + 0x60]
call fcn.140048080
mov rsi, 0xffffffffffffffff
lea rax, [rsp + 0x60]
mov r14, rsi
nop dword [rax]
inc r14
cmp word [rax + r14*2], 0
jne 0x14004e460
lea rax, [rbp + 0x1a0]
mov rbx, rsi
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14004e475
mov eax, ebx
sub eax, r14d
mov dword [rsp + 0x44], eax
test eax, eax
jle 0x14004e544
movzx r15d, word [rsp + 0x60]
test r15w, r15w
je 0x14004e506
cmp r14, rbx
ja 0x14004e506
movzx ecx, r15w
lea rdi, [rbp + 0x1a0]
call fcn.14006999c
movzx ecx, r15w
movzx r12d, ax
call fcn.1400654b8
xor r15d, r15d
sub rbx, r14
movzx r13d, ax
add rbx, 1
je 0x14004e506
lfence
movzx ecx, word [rdi]
cmp cx, r12w
je 0x14004e4e0
cmp cx, r13w
jne 0x14004e4fa
lea r8, [r14 - 1]
lea rcx, [rdi + 2]
lea rdx, [rsp + 0x62]
call fcn.14005e748
test eax, eax
je 0x14004e5bf
add rdi, 2
inc r15
cmp r15, rbx
jb 0x14004e4d1
xor ebx, ebx
mov edi, ebx
movsxd rax, dword [rsp + 0x44]
lea rcx, [rbp + 0x1a0]
add rax, rax
add rcx, rax
cmp rcx, rdi
jne 0x14004e530
cmp rax, 0x208
jae 0x14004e70b
mov word [rcx], bx
mov r13, qword [rsp + 0x58]
mov edi, 0x102
mov r12, qword [rsp + 0x50]
mov r15, qword [rsp + 0x48]
lea rax, [rbp - 0x70]
mov rcx, rsi
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x14004e550
lea rax, [rcx + 1]
cmp rax, rdi
jae 0x14004e57f
lea rax, [rcx + 3]
lea r8, [0x14009df34]
cmp rax, rdi
ja 0x14004e5c6
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140069860
xor ebx, ebx
lea rax, [rbp - 0x70]
mov r8, rsi
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14004e590
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp - 0x70]
call fcn.14005e748
test eax, eax
jne 0x14004e5f0
lea rax, [rbp - 0x70]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x14004e5b3
jmp 0x14004e5f3
xor ebx, ebx
jmp 0x14004e50a
lfence
sub rdi, rcx
lea rax, [rbp - 0x70]
mov r9d, 0x101
mov rdx, rdi
sub r9, rcx
lea rcx, [rax + rcx*2]
call fcn.14005a91c
xor ebx, ebx
mov word [rbp + 0x192], bx
jmp 0x14004e581
mov rsi, rbx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x104
lea rcx, [rcx + rsi*2]
lea rdx, [rbp + 0x3b0]
call qword [0x1400ad2d8]
movzx ecx, word [rbp + 0x3b0]
lea rax, [rbp + 0x3b0]
test cx, cx
je 0x14004e646
mov edx, 0x5f
nop dword [rax]
cmp cx, 0x5c
jne 0x14004e639
mov word [rax], dx
movzx ecx, word [rax + 2]
add rax, 2
test cx, cx
jne 0x14004e630
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov r9d, 0x20019
mov byte [rsp + 0x20], 1
lea rdx, [rbp + 0x3b0]
call fcn.1400476e0
test al, al
je 0x14004e6ba
mov rcx, qword [rsp + 0x38]
lea rdx, str.HistoryBufferSize
mov r8, r15
call fcn.1400478e0
mov rcx, qword [rsp + 0x38]
lea rdx, str.HistoryNoDup
mov r8, r12
call fcn.1400478e0
mov rcx, qword [rsp + 0x38]
lea rdx, str.PopupColors
mov r8, r13
call fcn.1400478e0
mov rcx, qword [rsp + 0x38]
call qword [0x1400ad2b0]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
call qword [0x1400ad2b0]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x718]
mov rsi, qword [rsp + 0x710]
mov rbx, qword [rsp + 0x708]
mov r14, qword [rsp + 0x6d0]
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.140050ca0
add rsp, 0x6d8
pop r15
pop r13
pop r12
pop rbp
ret
call fcn.140051344
int3