Function at 0x140006530
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
push rbp
lea rbp, [rax - 0x2b8]
sub rsp, 0x3b0
vmovaps xmmword [rax - 0x18], xmm6
vmovaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rbp + 0x280], rax
cmp byte [0x1400ca52c], 0
je 0x140006820
xor edx, edx
lea r8d, [rdx + 0x63]
lea rcx, str.ofwatermark
call fcn.14001b870
test al, al
je 0x140006820
vmovss xmm0, dword [0x1400718ec]
vmovss dword [rsp + 0x68], xmm0
vmovss xmm1, dword [0x140071864]
vmovss dword [rsp + 0x6c], xmm1
mov rcx, qword [0x1400c9b10]
mov rax, qword [rcx + 0x3ef8]
mov byte [rax + 0xb8], 1
mov rbx, qword [rcx + 0x3ef8]
movsxd rax, dword [rbx + 0xf0]
mov r8, qword [rbx + 0xf8]
mov r8d, dword [r8 + rax*4 - 4]
xor edx, edx
lea rcx, str.WM
call fcn.140011980
mov edi, eax
mov rdx, qword [rbx]
cmp dword [rdx + 0x3f40], eax
jne 0x140006605
lea r8, str.WM
mov edx, 0xb
mov ecx, eax
call fcn.140029810
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x68]
mov edx, edi
lea rcx, str.WM
call fcn.140018cc0
mov rcx, qword [0x1400c9b10]
mov rax, qword [rcx + 0x3ef8]
vmovss xmm6, dword [rax + 0x20]
vmovss xmm7, dword [rax + 0x24]
mov byte [rax + 0xb8], 1
mov rax, qword [rcx + 0x3ef8]
mov rbx, qword [rax + 0x2a0]
vmovups xmm0, xmmword [0x140071b00]
vmovups xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call fcn.140011f10
vaddss xmm0, xmm6, dword [0x14007187c]
vmovss dword [rsp + 0x50], xmm0
vaddss xmm1, xmm7, dword [0x140071798]
vmovss dword [rsp + 0x54], xmm1
test eax, 0xff000000
je 0x1400066e8
mov rdx, qword [rbx + 0x38]
mov rcx, qword [rdx + 8]
vmovups xmm0, xmmword [rbx + 0x88]
vmovups xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x48], 0
vxorps xmm1, xmm1, xmm1
vmovss dword [rsp + 0x40], xmm1
lea r8, [0x14006a053]
mov qword [rsp + 0x38], r8
lea r8, str.overflow.su
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x50]
vmovss xmm2, dword [rdx + 0x10]
mov rdx, rbx
call fcn.14003b390
vmovups xmm0, xmmword [0x140071af0]
vmovups xmmword [rsp + 0x58], xmm0
vaddss xmm1, xmm6, dword [0x140071928]
vmovss dword [rsp + 0x50], xmm1
vaddss xmm0, xmm7, dword [0x140071830]
vmovss dword [rsp + 0x54], xmm0
vmovss dword [rsp + 0x70], xmm6
vaddss xmm0, xmm7, dword [0x140071840]
vmovss dword [rsp + 0x74], xmm0
lea rcx, [rsp + 0x58]
call fcn.140011f10
mov r9d, eax
vmovss xmm0, dword [0x140071718]
vmovss dword [rsp + 0x20], xmm0
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.1400352b0
mov dword [rsp + 0x68], 0x100
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140006815
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x20], 0xffffffffffffffff
lea r9, [rbp + 0x80]
mov r8d, 0x100
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
test eax, eax
jne 0x140006815
cmp byte [0x1400c8900], al
je 0x140006815
mov rcx, qword [0x1400c9b10]
mov rax, qword [rcx + 0x3ef8]
mov byte [rax + 0xb8], 1
mov rax, qword [rcx + 0x3ef8]
vmovss xmm0, dword [rax + 0x20]
vsubss xmm1, xmm0, dword [rax + 0x84]
vaddss xmm3, xmm1, dword [0x140071884]
vmovss xmm0, dword [rax + 0x24]
vsubss xmm2, xmm0, dword [rax + 0x88]
vaddss xmm1, xmm2, dword [0x140071848]
vmovss dword [rax + 0x100], xmm3
vmovss dword [rax + 0x104], xmm1
mov byte [rax + 0x141], 1
lea rcx, [rbp - 0x80]
call fcn.140041740
call fcn.140018ef0
call fcn.14001da70
nop
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140061da0
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
vmovaps xmm6, xmmword [r11 - 0x10]
vmovaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rbp
ret