Function at 0x140004510
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3b0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rax, qword [0x140108180]
xor rax, rsp
mov qword [rsp + 0x370], rax
cmp byte [0x14010821c], 0
je 0x140004b22
mov rax, qword [0x14012e9a8]
or dword [rax + 0x47d0], 0x40
mov dword [rax + 0x4830], 0x3f400000
mov dword [rax + 0x37e4], 0x3f800000
mov qword [rax + 0x3908], 0x3f800000
xor r14d, r14d
mov dword [rax + 0x3910], r14d
mov dword [rax + 0x3914], 0x3f800000
xor edx, edx
lea r8d, [r14 + 0x63]
lea rcx, str.Watermark
call fcn.140037080
mov rsi, qword [0x14012e9a8]
mov rax, qword [rsi + 0x3ef8]
mov byte [rax + 0xb8], 1
mov rax, qword [rsi + 0x3ef8]
mov r13, qword [rax + 0x298]
mov qword [rsp + 0x30], r13
lea r8, [0x14012f500]
cmp byte [0x14012ff48], r14b
jne 0x140004700
movss xmm8, dword [0x1400ea4dc]
lea r13, [0x14012f500]
nop word [rax + rax]
mov rax, qword [rsi + 0x3ef8]
movss xmm6, dword [rax + 0x24]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movd xmm7, eax
cvtdq2ps xmm7, xmm7
mov rax, qword [0x14012e9a8]
mulss xmm7, dword [rax + 0x14]
divss xmm7, xmm8
addss xmm7, xmm6
mov rax, qword [rax + 0x3ef8]
movss xmm6, dword [rax + 0x20]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov rax, qword [0x14012e9a8]
mulss xmm0, dword [rax + 0x10]
divss xmm0, xmm8
addss xmm0, xmm6
movss dword [r14 + r13], xmm0
movss dword [r14 + r13 + 4], xmm7
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x2e8ba2e9
imul r8d
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xb
sub r8d, ecx
sub r8d, 5
movd xmm6, r8d
cvtdq2ps xmm6, xmm6
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x2e8ba2e9
imul r8d
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xb
sub r8d, ecx
sub r8d, 5
movd xmm0, r8d
cvtdq2ps xmm0, xmm0
lea r9, [0x14012fe20]
movss dword [r14 + r9], xmm0
movss dword [r14 + r9 + 4], xmm6
add r14, 8
mov rsi, qword [0x14012e9a8]
cmp r14, 0xc8
jl 0x140004600
mov byte [0x14012ff48], 1
mov r13, qword [rsp + 0x30]
lea r8, [0x14012f500]
mov r15d, 1
lea rbp, [0x14012f504]
movss xmm7, dword [0x1400ea468]
movss xmm6, dword [0x1400ea314]
xorps xmm8, xmm8
mov r12d, 0x19
cmp r15d, r12d
jge 0x1400047ed
lea rbx, [rbp + 4]
movsxd rax, r15d
lea rdi, [r8 + rax*8]
mov r14d, r12d
sub r14d, r15d
lea r12, [0x14012f500]
nop dword [rax + rax]
movss xmm1, dword [rbx + 4]
subss xmm1, dword [rbp]
movss xmm0, dword [rbx]
subss xmm0, dword [rbp - 4]
call sub.api_ms_win_crt_math_l1_1_0.dll__hypotf
divss xmm0, xmm7
movaps xmm1, xmm6
subss xmm1, xmm0
comiss xmm1, xmm8
jbe 0x1400047c8
mov qword [rsp + 0x30], 0x3f800000
mov dword [rsp + 0x38], 0
mulss xmm1, dword [rsi + 0x37d0]
movss dword [rsp + 0x3c], xmm1
lea rcx, [rsp + 0x30]
call fcn.14002c140
mov r9d, eax
lea eax, [r15 - 1]
movsxd rcx, eax
lea rdx, [r12 + rcx*8]
movss dword [rsp + 0x20], xmm6
mov r8, rdi
mov rcx, r13
call fcn.140051970
mov rsi, qword [0x14012e9a8]
add rdi, 8
add rbx, 8
sub r14, 1
jne 0x140004750
inc r15d
add rbp, 8
lea r8, [0x14012f500]
jmp 0x140004721
movss xmm6, dword [rsi + 0x18]
movaps xmm0, xmmword [0x1400ea790]
movups xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.14002c140
mov r15d, eax
mov ebp, eax
and ebp, 0xff000000
mov rdi, r8
xor r14d, r14d
mov ebx, r14d
movss xmm7, dword [0x1400ea338]
lea r9, [0x14012fe20]
nop dword [rax + rax]
movaps xmm2, xmm6
mulss xmm2, dword [rbx + r9]
addss xmm2, dword [rbx + r8]
movss dword [rbx + r8], xmm2
movaps xmm1, xmm6
mulss xmm1, dword [rbx + r9 + 4]
addss xmm1, dword [rbx + r8 + 4]
movss dword [rbx + r8 + 4], xmm1
mov rax, qword [rsi + 0x3ef8]
movss xmm3, dword [rax + 0x20]
movss xmm0, dword [rax + 0x28]
addss xmm0, xmm3
comiss xmm3, xmm2
jbe 0x14000487f
movss dword [rbx + r8], xmm0
jmp 0x14000488a
comiss xmm2, xmm0
jbe 0x14000488a
movss dword [rbx + r8], xmm3
mov rax, qword [rsi + 0x3ef8]
movss xmm2, dword [rax + 0x24]
movss xmm0, dword [rax + 0x2c]
addss xmm0, xmm2
comiss xmm2, xmm1
jbe 0x1400048ad
movss dword [rbx + r8 + 4], xmm0
jmp 0x1400048b9
comiss xmm1, xmm0
jbe 0x1400048b9
movss dword [rbx + r8 + 4], xmm2
test ebp, ebp
je 0x14000490c
mov dword [rsp + 0x20], 0x30
xor r9d, r9d
movaps xmm2, xmm7
mov rdx, rdi
mov rcx, r13
call fcn.140050aa0
mov r8d, dword [r13 + 0x78]
dec r8d
mov dword [r13 + 0x78], r8d
mov r9d, r15d
mov rdx, qword [r13 + 0x80]
mov rcx, r13
call fcn.1400504d0
mov dword [r13 + 0x78], r14d
mov rsi, qword [0x14012e9a8]
lea r8, [0x14012f500]
lea r9, [0x14012fe20]
add rdi, 8
add rbx, 8
sub r12, 1
jne 0x140004830
movss xmm0, dword [rsi + 0xe0]
movss dword [0x140108254], xmm0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
mov dword [rsp + 0x40], 0x100
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x170]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140004b22
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x20], 0xffffffffffffffff
lea r9, [rsp + 0x170]
mov r8d, 0x100
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
test eax, eax
jne 0x140004b22
lea rcx, [0x1400e04d8]
call fcn.1400607d0
mov rax, qword [0x14012e9a8]
mov rcx, qword [rax + 0x3ef8]
cmp byte [rcx + 0xbb], r14b
jne 0x140004a10
movss xmm1, dword [rax + 0x381c]
addss xmm1, dword [rcx + 0x108]
movss xmm0, dword [rcx + 0x10c]
movss dword [rcx + 0x100], xmm1
movss dword [rcx + 0x104], xmm0
movsd xmm0, qword [rcx + 0x130]
movsd qword [rcx + 0x128], xmm0
mov eax, dword [rcx + 0x13c]
mov dword [rcx + 0x138], eax
mov byte [rcx + 0x140], 1
movss xmm0, dword [0x140108254]
ucomiss xmm0, xmm8
jp 0x140004a20
je 0x140004a25
cvttss2si r14d, xmm0
mov edx, r14d
lea rcx, str._02d_fps_
call fcn.1400607d0
mov rax, qword [0x14012e9a8]
mov rcx, qword [rax + 0x3ef8]
cmp byte [rcx + 0xbb], 0
jne 0x140004a96
movss xmm1, dword [rax + 0x381c]
addss xmm1, dword [rcx + 0x108]
movss xmm0, dword [rcx + 0x10c]
movss dword [rcx + 0x100], xmm1
movss dword [rcx + 0x104], xmm0
movsd xmm0, qword [rcx + 0x130]
movsd qword [rcx + 0x128], xmm0
mov eax, dword [rcx + 0x13c]
mov dword [rcx + 0x138], eax
mov byte [rcx + 0x140], 1
mov r9d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x50]
lea rcx, str._02d:_02d:_02d_
call fcn.1400607d0
mov rax, qword [0x14012e9a8]
mov rcx, qword [rax + 0x3ef8]
cmp byte [rcx + 0xbb], 0
jne 0x140004b12
movss xmm1, dword [rax + 0x381c]
addss xmm1, dword [rcx + 0x108]
movss xmm0, dword [rcx + 0x10c]
movss dword [rcx + 0x100], xmm1
movss dword [rcx + 0x104], xmm0
movsd xmm0, qword [rcx + 0x130]
movsd qword [rcx + 0x128], xmm0
mov eax, dword [rcx + 0x13c]
mov dword [rcx + 0x138], eax
mov byte [rcx + 0x140], 1
lea rcx, [rsp + 0x70]
call fcn.1400607d0
call fcn.1400392b0
nop
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.1400cf130
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret