Function at 0x140004060
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, rcx
mov qword [rbp - 0x11], rcx
xor r15d, r15d
mov dword [rbp - 0x59], r15d
mov qword [rbp + 0xf], r15
mov esi, r15d
mov qword [rbp + 0x1f], r15
mov r13d, reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x27], r13
mov byte [rbp + 0xf], sil
mov dword [rbp - 0x11], r15d
lea r8, [rbp - 0x11]
xor edx, edx
mov ebx, 2
mov ecx, ebx
call qword [sym.imp.Secur32.dll_GetUserNameExW]
xorps xmm0, xmm0
mov r12d, dword [rbp - 0x11]
movdqu xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r15
test r12, r12
je 0x140004115
mov edx, r12d
lea rcx, [rbp - 9]
call fcn.140009180
mov rdi, rax
mov qword [rbp - 9], rax
lea r8, [r12 + r12]
lea r15, [r8 + rax]
mov qword [rbp + 7], r15
xor edx, edx
mov rcx, rax
call fcn.1400fb5b0
mov qword [rbp - 1], r15
xor r15d, r15d
mov rdx, qword [rbp - 9]
test rdx, rdx
je 0x140004250
lea r8, [rbp - 0x11]
mov ecx, ebx
call qword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x140004250
mov eax, dword [rbp - 0x11]
lea r8d, [rax + rax]
mov rdx, qword [rbp - 9]
lea rcx, [rbp - 0x31]
call fcn.1400035e0
mov rdi, rax
lea rax, [rbp + 0xf]
cmp rax, rdi
je 0x140004185
lea rcx, [rbp + 0xf]
call fcn.1400091f0
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp + 0x1f], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov r13, qword [rbp + 0x27]
mov rsi, qword [rbp + 0x1f]
lea rcx, [rbp - 0x31]
call fcn.1400091f0
test rsi, rsi
je 0x140004250
lea r15, [rbp + 0xf]
cmp r13, 0x10
cmovae r15, qword [rbp + 0xf]
cmp rsi, 0x10
jae 0x1400041ca
movups xmm0, xmmword [r15]
movups xmmword [rbp - 0x51], xmm0
mov qword [rbp - 0x39], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x41], rsi
lea rax, [rbp - 0x51]
xor r15d, r15d
jmp 0x140004284
mov rdi, rsi
or rdi, 0xf
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
cmova rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x14000421e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140004310
mov rcx, rax
call fcn.1400f89d8
mov rcx, rax
test rax, rax
je 0x14000430a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000422c
test rcx, rcx
je 0x14000422a
call fcn.1400f89d8
jmp 0x14000422c
xor eax, eax
mov qword [rbp - 0x51], rax
lea r8, [rsi + 1]
mov rdx, r15
mov rcx, rax
call fcn.1400faf00
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x41], rsi
lea rax, [rbp - 0x51]
xor r15d, r15d
jmp 0x140004284
mov qword [rbp - 0x31], r15
movdqa xmm0, xmmword [0x140166ac0]
movdqu xmmword [rbp - 0x21], xmm0
mov byte [rbp - 0x31], 0
mov r8d, 7
lea rdx, str.UNKNOWN
lea rcx, [rbp - 0x31]
call fcn.140009250
lea rax, [rbp - 0x31]
mov ebx, 1
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r14 + 0x10], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or ebx, 4
test bl, 2
je 0x1400042b8
and ebx, 0xfffffffd
lea rcx, [rbp - 0x51]
call fcn.1400091f0
nop
test bl, 1
je 0x1400042c7
lea rcx, [rbp - 0x31]
call fcn.1400091f0
nop
lea rcx, [rbp - 9]
call fcn.140008f80
nop
lea rcx, [rbp + 0xf]
call fcn.1400091f0
mov rax, r14
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400f89b0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14010347c
nop
call fcn.1400012e0
int3