Function at 0x140001190
Capabilities:
Get session user name

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x250
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1c8], 0xfffffffffffffffe
mov rsi, rcx
mov dword [rbp + 0x1c4], 0x101
lea rcx, [rbp - 0x60]
lea rdx, [rbp + 0x1c4]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x14000128b
lea rcx, [rbp + 0xa8]
mov edx, 1
call fcn.140002540
lea rcx, [rbp + 0xb8]
lea rdx, [rbp - 0x60]
call fcn.140002770
lea rcx, [rbp + 0xa8]
lea rdi, [rbp + 0x1a0]
mov rdx, rdi
call fcn.140002c50
mov rbx, qword [rbp + 0x1b0]
mov rax, qword [rbp + 0x1b8]
cmp rax, 8
jb 0x140001228
mov rdi, qword [rbp + 0x1a0]
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x1400012c1
mov qword [rsi + 0x18], 0xf
js 0x140001437
cmp rbx, 0x10
jb 0x1400012e4
mov rax, rbx
or rax, 0xf
cmp rax, 0x17
mov r14d, 0x16
cmovae r14, rax
cmp r14, 0xfff
jb 0x1400012d4
lea rcx, [r14 + 0x28]
call fcn.14000b960
mov rcx, rax
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400012dd
lea rcx, [0x1400446b0]
lea rdx, str.Error:_Unable_to_retrieve_username.
call fcn.140001d80
mov rcx, rax
call fcn.140002170
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 0xf
jmp 0x140001426
mov qword [rsi + 0x18], 0xf
cmp rax, 8
jae 0x14000133a
jmp 0x140001379
lea rcx, [r14 + 1]
call fcn.14000b960
mov qword [rsi], rax
mov qword [rsi + 0x18], r14
add rbx, rbx
xor ecx, ecx
xor eax, eax
jmp 0x14000130d
movzx r8d, byte [rdi + rcx]
mov byte [rdx + rax], r8b
mov rax, qword [rsi + 0x10]
inc rax
mov qword [rsi + 0x10], rax
add rcx, 2
cmp rbx, rcx
je 0x14000131c
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x1400012f0
mov rdx, qword [rsi]
jmp 0x1400012f0
cmp qword [rsi + 0x18], 0x10
mov rcx, rsi
jb 0x140001329
mov rcx, qword [rsi]
mov byte [rcx + rax], 0
mov rax, qword [rbp + 0x1b8]
cmp rax, 8
jb 0x140001379
mov rcx, qword [rbp + 0x1a0]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140001374
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14000143c
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14000b99c
lea rdi, [rbp + 0x140]
mov rax, qword [rbp + 0xa8]
movsxd rax, dword [rax + 4]
lea rcx, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rax + 0xa8], rcx
mov rax, qword [rbp + 0xa8]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0x98]
mov dword [rbp + rax + 0xa4], ecx
lea rcx, [rbp + 0xc0]
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + 0xc0], rax
call fcn.140003470
lea rax, vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0xc0], rax
mov rbx, qword [rbp + 0x120]
test rbx, rbx
je 0x140001410
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140001408
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140001408
mov r8, qword [rax]
mov rcx, rax
mov edx, 1
call qword [r8]
mov rcx, rbx
call fcn.14000b9a4
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x140], rax
mov rcx, rdi
call fcn.14000c7f8
mov rax, rsi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
call fcn.1400054f0
call fcn.1400136f4
int3