Function at 0x140024c40
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 [0x1400ca040]
xor rax, rsp
mov qword [rbp + 0x450], rax
cmp byte [0x1400ca109], 0
je 0x1400255e1
mov rax, qword [0x14018df08]
mov rcx, qword [rax + 0x48d0]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rcx]
call fcn.14004d3e0
mov r12, rax
mov eax, 8
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x14018e3cc], ecx
jle 0x140024d05
lea rcx, [0x14018e3cc]
call fcn.1400a2fa8
cmp dword [0x14018e3cc], 0xffffffff
jne 0x140024d05
mov rdx, qword [0x14018df08]
movss xmm0, dword [rdx + 0xe0]
movss dword [0x14018e3d0], xmm0
lea rcx, [0x14018e3cc]
call fcn.1400a2f3c
mov rax, qword [0x14018df08]
movss xmm0, dword [rax + 0xe0]
movss dword [0x14018e3d0], 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 0x1400255e1
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 0x1400255e1
cmp byte [0x1400ca109], r15b
je 0x1400255e1
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
movdqa xmm6, xmmword [0x1400b6520]
movdqu xmmword [rbp + 0x90], xmm6
mov byte [rbp + 0x80], r15b
mov eax, dword [0x14010333c]
test al, 1
je 0x140024dd0
mov r8d, 4
lea rdx, [0x1400ad0d0]
lea rcx, [rbp + 0x80]
call fcn.1400077f0
mov eax, dword [0x14010333c]
lea r13, [0x1400ad0d8]
test al, 2
je 0x140024f03
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 0x140024e00
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0xc0]
call fcn.1400082c0
lea rdx, [0x1400aae0f]
cmp byte [rbp + 0x150], r15b
cmovne rdx, r13
lea r8, [rbp + 0xc0]
lea rcx, [rbp + 0xe0]
call fcn.14002ee30
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140024e4f
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.1400077f0
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0xf
jbe 0x140024e9b
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024e96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024ee2
call fcn.1400a336c
movdqu xmmword [rbp + 0xf0], xmm6
mov byte [rbp + 0xe0], r15b
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x140024eee
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024ee9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140024ee9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a336c
movdqu xmmword [rbp + 0xd0], xmm6
mov byte [rbp + 0xc0], r15b
mov eax, dword [0x14010333c]
test al, 4
je 0x1400250bc
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.14002e8e0
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 0x140024f70
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.14002f080
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 0x140024fd5
mov rax, qword [rbp - 0x48]
mov r8, qword [rax]
test r8, r8
je 0x140024fd5
mov rax, qword [rbp - 0x68]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x20]
cmovb r8, qword [rbp - 0x20]
sub r8, rdx
jmp 0x140025006
test cl, 4
jne 0x140024ffc
mov rax, qword [rbp - 0x50]
mov rcx, qword [rax]
test rcx, rcx
je 0x140024ffc
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 0x140025006
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140025014
lea rcx, [rbp + 0x60]
call fcn.14002eb70
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.1400077f0
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x140025070
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002506b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002506b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a336c
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.14002e7f0
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 [0x14010333c]
lea rdi, [0x1400ad0db]
mov r14d, 3
test al, 8
je 0x140025269
cvttss2si edx, dword [0x14018e3d0]
lea rcx, [rbp + 0x100]
call fcn.140009590
mov rdi, rax
mov r8, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, r14
jb 0x14002516c
lea rax, [r8 + 3]
mov qword [rdi + 0x10], rax
mov rsi, rdi
cmp rcx, 0xf
jbe 0x14002510f
mov rsi, qword [rdi]
lea rax, [0x1400ad0db]
cmp rax, rsi
jbe 0x140025131
lea rax, [rsi + r8]
cmp r13, rax
ja 0x140025131
cmp rsi, r13
jbe 0x140025134
mov r15, rsi
sub r15, r13
jmp 0x140025134
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 0x140025184
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r13
mov rdx, r14
mov rcx, rdi
call fcn.140030710
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.1400077f0
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x140025209
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025204
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025241
call fcn.1400a336c
mov rdx, qword [rbp + 0x118]
cmp rdx, 0xf
jbe 0x14002524d
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025248
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140025248
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a336c
movdqu xmmword [rbp + 0x110], xmm6
mov byte [rbp + 0x100], 0
mov eax, dword [0x14010333c]
lea rdi, [0x1400ad0db]
test al, 0x10
je 0x14002543f
lea rax, str.Admin
lea rdx, str.Beta
cmp byte [0x14018e01c], 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 0x1400252a0
mov r8, rbx
lea rcx, [rbp + 0xa0]
call fcn.1400082c0
mov r8, qword [rbp + 0xb0]
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
sub rax, r8
cmp rax, r14
jb 0x14002534e
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 0x14002530f
lea rax, [rbx + r8]
cmp r13, rax
ja 0x14002530f
cmp rbx, r13
ja 0x140025307
mov rdi, r15
jmp 0x140025312
mov rdi, rbx
sub rdi, r13
jmp 0x140025312
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 0x140025367
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r13
mov rdx, r14
lea rcx, [rbp + 0xa0]
call fcn.140030710
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.1400077f0
mov rdx, qword [rbp + 0x78]
cmp rdx, 0xf
jbe 0x1400253ec
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400253e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025424
call fcn.1400a336c
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x140025430
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002542b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002542b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a336c
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 [0x14018df08]
xorps xmm7, xmm7
test rax, rax
jne 0x14002546a
xorps xmm6, xmm6
jmp 0x1400254bc
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
movss xmm0, dword [0x1400b6494]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x1400b6478]
movss xmm2, dword [rcx + 0x3c20]
lea rdx, [rsp + 0x48]
mov rcx, qword [rcx + 0x3c18]
call fcn.140074ce0
movss xmm0, dword [rsp + 0x48]
addss xmm0, dword [0x1400b6250]
cvttss2si eax, xmm0
movd xmm6, eax
cvtdq2ps xmm6, xmm6
addss xmm6, dword [0x1400b637c]
addss xmm6, dword [0x1400b6344]
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.14006d5b0
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.14006d5b0
lea r9, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova r9, qword [rbp + 0x80]
movdqa xmm0, xmmword [0x1400b7b00]
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x40], 0x41000000
mov dword [rsp + 0x44], 0x41000000
lea rcx, [rsp + 0x48]
call fcn.140048c20
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.14006e5e0
mov rdx, qword [rbp + 0x98]
cmp rdx, 0xf
jbe 0x1400255e1
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400255db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400255db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a336c
nop
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.1400a2ee0
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