Function at 0x140025520
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4a8]
sub rsp, 0x580
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x1400cb040]
xor rax, rsp
mov qword [rbp + 0x450], rax
cmp byte [0x1400cb109], 0
je 0x140025ec1
mov rax, qword [0x140189c98]
mov rcx, qword [rax + 0x48d0]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rcx]
call fcn.14004e2d0
mov r12, rax
mov eax, 8
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x14018a170], ecx
jle 0x1400255e5
lea rcx, [0x14018a170]
call fcn.1400a3c48
cmp dword [0x14018a170], 0xffffffff
jne 0x1400255e5
mov rdx, qword [0x140189c98]
movss xmm0, dword [rdx + 0xe0]
movss dword [0x14018a174], xmm0
lea rcx, [0x14018a170]
call fcn.1400a3bdc
mov rax, qword [0x140189c98]
movss xmm0, dword [rax + 0xe0]
movss dword [0x14018a174], xmm0
mov dword [rsp + 0x60], 0x100
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x250]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140025ec1
xor r15d, r15d
mov qword [rsp + 0x68], r15
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x250]
mov r8d, 0x100
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
test eax, eax
jne 0x140025ec1
cmp byte [0x1400cb109], r15b
je 0x140025ec1
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
movdqa xmm6, xmmword [0x1400b74c0]
movdqu xmmword [rbp + 0x90], xmm6
mov byte [rbp + 0x80], r15b
mov eax, dword [0x1400ff088]
test al, 1
je 0x1400256b0
mov r8d, 4
lea rdx, [0x1400ae130]
lea rcx, [rbp + 0x80]
call fcn.1400077a0
mov eax, dword [0x1400ff088]
lea r13, [0x1400ae138]
test al, 2
je 0x1400257e3
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xd0], xmm1
lea rax, [rbp + 0x150]
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], r15b
jne 0x1400256e0
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0xc0]
call fcn.1400082e0
lea rdx, [0x1400abe0f]
cmp byte [rbp + 0x150], r15b
cmovne rdx, r13
lea r8, [rbp + 0xc0]
lea rcx, [rbp + 0xe0]
call fcn.14002fc70
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14002572f
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.1400077a0
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0xf
jbe 0x14002577b
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025776
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400257c2
call fcn.1400a400c
movdqu xmmword [rbp + 0xf0], xmm6
mov byte [rbp + 0xe0], r15b
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x1400257ce
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400257c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400257c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a400c
movdqu xmmword [rbp + 0xd0], xmm6
mov byte [rbp + 0xc0], r15b
mov eax, dword [0x1400ff088]
test al, 4
je 0x14002599c
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, rax
movabs rax, 0xd6bf94d5e57a42bd
imul rcx
add rdx, rcx
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rsp + 0x40], rdx
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x120]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
lea rcx, [rsp + 0x70]
call fcn.14002f720
lea rax, [rbp + 0x120]
mov qword [rsp + 0x48], rax
lea rax, str.___H:_M:_S
mov qword [rsp + 0x50], rax
nop dword [rax + rax]
inc rax
cmp byte [rax], r15b
jne 0x140025850
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.14002fec0
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
movdqu xmmword [rbp + 0x70], xmm6
mov byte [rbp + 0x60], r15b
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
mov rcx, qword [rbp - 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400258b5
mov rax, qword [rbp - 0x48]
mov r8, qword [rax]
test r8, r8
je 0x1400258b5
mov rax, qword [rbp - 0x68]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x20]
cmovb r8, qword [rbp - 0x20]
sub r8, rdx
jmp 0x1400258e6
test cl, 4
jne 0x1400258dc
mov rax, qword [rbp - 0x50]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400258dc
mov rax, qword [rbp - 0x70]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x38]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x1400258e6
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400258f4
lea rcx, [rbp + 0x60]
call fcn.14002f9b0
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0xf
cmova rdx, qword [rbp + 0x60]
mov r8, qword [rbp + 0x70]
lea rcx, [rbp + 0x80]
call fcn.1400077a0
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x140025950
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002594b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002594b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a400c
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.14002f630
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, dword [0x1400ff088]
lea rdi, [0x1400ae13b]
mov r14d, 3
test al, 8
je 0x140025b49
cvttss2si edx, dword [0x14018a174]
lea rcx, [rbp + 0x100]
call fcn.1400095f0
mov rdi, rax
mov r8, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, r14
jb 0x140025a4c
lea rax, [r8 + 3]
mov qword [rdi + 0x10], rax
mov rsi, rdi
cmp rcx, 0xf
jbe 0x1400259ef
mov rsi, qword [rdi]
lea rax, [0x1400ae13b]
cmp rax, rsi
jbe 0x140025a11
lea rax, [rsi + r8]
cmp r13, rax
ja 0x140025a11
cmp rsi, r13
jbe 0x140025a14
mov r15, rsi
sub r15, r13
jmp 0x140025a14
mov r15, r14
inc r8
lea rcx, [rsi + 3]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r15
mov rdx, r13
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r14
sub r8, r15
lea rdx, [r13 + 3]
add rdx, r15
lea rcx, [rsi + r15]
call sub.VCRUNTIME140.dll_memcpy
xor r15d, r15d
jmp 0x140025a64
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r13
mov rdx, r14
mov rcx, rdi
call fcn.140031780
mov rdi, rax
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 0x60], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp + 0x70], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
lea rdx, [rbp + 0x60]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova rdx, rcx
movq r8, xmm1
lea rcx, [rbp + 0x80]
call fcn.1400077a0
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x140025ae9
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025ae4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025b21
call fcn.1400a400c
mov rdx, qword [rbp + 0x118]
cmp rdx, 0xf
jbe 0x140025b2d
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025b28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140025b28
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a400c
movdqu xmmword [rbp + 0x110], xmm6
mov byte [rbp + 0x100], 0
mov eax, dword [0x1400ff088]
lea rdi, [0x1400ae13b]
test al, 0x10
je 0x140025d1f
lea rax, str.Admin
lea rdx, str.Beta
cmp byte [0x140189db8], 0
cmovne rdx, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xb0], xmm1
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140025b80
mov r8, rbx
lea rcx, [rbp + 0xa0]
call fcn.1400082e0
mov r8, qword [rbp + 0xb0]
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
sub rax, r8
cmp rax, r14
jb 0x140025c2e
lea rax, [r8 + 3]
mov qword [rbp + 0xb0], rax
lea rbx, [rbp + 0xa0]
cmp rcx, 0xf
cmova rbx, qword [rbp + 0xa0]
cmp rdi, rbx
jbe 0x140025bef
lea rax, [rbx + r8]
cmp r13, rax
ja 0x140025bef
cmp rbx, r13
ja 0x140025be7
mov rdi, r15
jmp 0x140025bf2
mov rdi, rbx
sub rdi, r13
jmp 0x140025bf2
mov rdi, r14
inc r8
lea rcx, [rbx + 3]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, r13
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
sub r14, rdi
lea rdx, [r13 + 3]
add rdx, rdi
lea rcx, [rbx + rdi]
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp + 0xa0]
jmp 0x140025c47
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r13
mov rdx, r14
lea rcx, [rbp + 0xa0]
call fcn.140031780
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x70], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rbp + 0x60]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova rdx, rcx
movq r8, xmm1
lea rcx, [rbp + 0x80]
call fcn.1400077a0
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x140025ccc
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025cc7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025d04
call fcn.1400a400c
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x140025d10
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025d0b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140025d0b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a400c
movdqu xmmword [rbp + 0xb0], xmm6
mov byte [rbp + 0xa0], 0
lea rax, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova rax, qword [rbp + 0x80]
mov rcx, qword [0x140189c98]
xorps xmm7, xmm7
test rax, rax
jne 0x140025d4a
xorps xmm6, xmm6
jmp 0x140025d9c
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
movss xmm0, dword [0x1400b7438]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x1400b741c]
movss xmm2, dword [rcx + 0x3c20]
lea rdx, [rsp + 0x48]
mov rcx, qword [rcx + 0x3c18]
call fcn.140075c00
movss xmm0, dword [rsp + 0x48]
addss xmm0, dword [0x1400b71f8]
cvttss2si eax, xmm0
movd xmm6, eax
cvtdq2ps xmm6, xmm6
addss xmm6, dword [0x1400b7320]
addss xmm6, dword [0x1400b72ec]
movss dword [rsp + 0x48], xmm6
mov dword [rsp + 0x4c], 0x40c00000
mov dword [rsp + 0x40], 0x41000000
mov dword [rsp + 0x44], 0x40800000
mov dword [rsp + 0x28], r15d
movss dword [rsp + 0x20], xmm7
mov r9d, 0xc8282828
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.14006e4b0
movss dword [rsp + 0x40], xmm6
mov dword [rsp + 0x44], 0x420c0000
mov dword [rsp + 0x48], 0x41000000
mov dword [rsp + 0x4c], 0x40c00000
mov dword [rsp + 0x28], r15d
movss dword [rsp + 0x20], xmm7
mov r9d, 0xc8282828
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, r12
call fcn.14006e4b0
lea r9, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova r9, qword [rbp + 0x80]
movdqa xmm0, xmmword [0x1400b89f0]
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x40], 0x41000000
mov dword [rsp + 0x44], 0x41000000
lea rcx, [rsp + 0x48]
call fcn.140049b10
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.14006f4e0
mov rdx, qword [rbp + 0x98]
cmp rdx, 0xf
jbe 0x140025ec1
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025ebb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140025ebb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a400c
nop
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.1400a3b80
lea r11, [rsp + 0x580]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret