Function at 0x140035ef0
Capabilities:
Get session user name

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x140086040]
xor rax, rsp
mov qword [rbp + 0x130], rax
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x40], 0x101
lea rcx, [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xor r14d, r14d
lea rax, [rbp + 0x20]
xorps xmm0, xmm0
mov qword [rsp + 0x70], r14
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x78], r14
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x140035f50
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x260], rsi
lea rcx, [rsp + 0x60]
call fcn.1400396d0
mov rcx, qword [rsp + 0x78]
mov esi, 9
mov r8, qword [rsp + 0x70]
mov rax, rcx
sub rax, r8
cmp rax, rsi
jb 0x140036030
lea rax, [r8 + 9]
mov qword [rsp + 0x268], rdi
cmp rcx, 0xf
mov qword [rsp + 0x70], rax
lea rbx, [rsp + 0x60]
mov qword [rsp + 0x270], r15
cmova rbx, qword [rsp + 0x60]
lea rax, [0x14007cb49]
lea r15, str.C:Users_
cmp rax, rbx
jbe 0x140035fe3
lea rax, [rbx + r8]
cmp r15, rax
ja 0x140035fe3
cmp rbx, r15
ja 0x140035fdb
mov rdi, r14
jmp 0x140035fe6
mov rdi, rbx
sub rdi, r15
jmp 0x140035fe6
mov rdi, rsi
inc r8
lea rcx, [rbx + 9]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
sub rsi, rdi
lea rdx, [r15 + 9]
add rdx, rdi
lea rcx, [rbx + rdi]
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r15, qword [rsp + 0x270]
lea rax, [rsp + 0x60]
mov rdi, qword [rsp + 0x268]
jmp 0x140036042
mov rdx, rsi
mov qword [rsp + 0x28], rsi
lea rcx, [rsp + 0x60]
call fcn.140039e60
xorps xmm0, xmm0
lea rdx, str.AppDataRoamingMicrosoftWindowsThemesTranscodedWallpaper
movups xmmword [rbp - 0x60], xmm0
lea rcx, [rbp - 0x60]
mov r8d, 0x3d
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], r14b
call fcn.140038f20
xorps xmm0, xmm0
lea rdx, [rbp - 0x80]
movups xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x38]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], r14b
call fcn.140035c60
mov rsi, qword [rsp + 0x260]
mov rbx, rax
lea rax, [0x140187eb8]
cmp rax, rbx
je 0x140036153
mov rcx, qword [0x140187eb8]
test rcx, rcx
je 0x140036128
mov rdx, qword [0x140187ec8]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140036111
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140036261
mov rcx, r8
call fcn.14003a6ec
xorps xmm0, xmm0
mov qword [0x140187ec8], r14
movdqu xmmword [0x140187eb8], xmm0
mov rax, qword [rbx]
mov qword [0x140187eb8], rax
mov rax, qword [rbx + 8]
mov qword [0x140187ec0], rax
mov rax, qword [rbx + 0x10]
mov qword [0x140187ec8], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140036199
mov rdx, qword [rbp - 0x28]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140036188
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036261
call fcn.14003a6ec
xorps xmm0, xmm0
mov qword [rbp - 0x38], r14
movdqu xmmword [rbp - 0x30], xmm0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x1400361d4
mov rcx, qword [rbp - 0x80]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400361cf
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036261
call fcn.14003a6ec
mov rdx, qword [rbp - 0x48]
movdqa xmm0, xmmword [0x14007d130]
mov byte [rbp - 0x80], r14b
movdqu xmmword [rbp - 0x70], xmm0
cmp rdx, 0xf
jbe 0x14003621c
mov rcx, qword [rbp - 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036217
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036261
call fcn.14003a6ec
mov rdx, qword [rsp + 0x78]
movdqa xmm0, xmmword [0x14007d130]
mov byte [rbp - 0x60], r14b
movdqu xmmword [rbp - 0x50], xmm0
cmp rdx, 0xf
jbe 0x14003626d
mov rcx, qword [rsp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036268
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036268
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003a6ec
xor edx, edx
mov ebx, 4
lea ecx, [rdx + 0xa]
call fcn.14002ddf0
test eax, eax
je 0x1400362f3
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rbx + rcx]
cmp dword [0x140188034], eax
jle 0x1400362cc
lea rcx, [0x140188034]
call fcn.14003a760
cmp dword [0x140188034], 0xffffffff
jne 0x1400362cc
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x140188034]
mov qword [0x140188010], rax
call fcn.14003a6f4
mov rcx, qword [0x140188010]
lea rdx, str.SetThreadDpiAwarenessContext
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400362f3
mov rcx, 0xfffffffffffffffc
call rax
jmp 0x140036378
mov edx, 3
lea ecx, [rdx + 3]
call fcn.14002ddf0
test eax, eax
je 0x140036372
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rbx + rcx]
cmp dword [0x140188020], eax
jle 0x140036350
lea rcx, [0x140188020]
call fcn.14003a760
cmp dword [0x140188020], 0xffffffff
jne 0x140036350
lea rcx, str.shcore.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x140188020]
mov qword [0x140188018], rax
call fcn.14003a6f4
mov rcx, qword [0x140188018]
lea rdx, str.SetProcessDpiAwareness
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140036372
mov ecx, 2
call rax
jmp 0x140036378
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
mov rdx, qword [0x140187eb8]
lea rcx, [0x140093300]
mov r8, qword [0x140187ec0]
sub r8, rdx
call sub.VCRUNTIME140.dll_memmove
cmp byte [rbp - 0x20], 1
jne 0x1400363b4
mov r8d, 6
lea rdx, str.Laptop
jmp 0x1400363c1
mov r8d, 7
lea rdx, str.Desktop
call fcn.140038fa0
xorps xmm0, xmm0
mov dword [0x140187ef0], 0x50
xorps xmm1, xmm1
movdqa xmmword [0x140187f00], xmm0
lea rax, [0x1400367b0]
movdqa xmmword [0x140187f10], xmm1
xor ecx, ecx
movdqa xmmword [0x140187f20], xmm0
movdqa xmmword [0x140187f30], xmm1
mov qword [0x140187ef8], rax
mov dword [0x140187ef4], 3
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x140187f08], rax
lea rcx, [0x140187ef0]
lea rax, str.Window
mov qword [0x140187f30], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov word [0x140187f50], ax
test ax, ax
je 0x14003674e
cvttss2si ecx, dword [0x1400923c4]
mov rax, qword [0x140187f08]
mov r9d, 0x80080000
mov qword [rsp + 0x58], r14
lea r8, str.Dear_ImGui_DirectX9_Example
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
cvttss2si edx, dword [0x1400923c0]
mov dword [rsp + 0x38], ecx
xor ecx, ecx
mov dword [rsp + 0x30], edx
mov rdx, qword [0x140187f30]
mov dword [rsp + 0x28], 0x21c
mov dword [rsp + 0x20], 0x3c0
call qword [sym.imp.USER32.dll_CreateWindowExW]
movdqa xmm0, xmmword [0x14007d0f0]
lea rdx, [rbp - 0x38]
mov rcx, rax
mov qword [0x140187fa0], rax
movdqu xmmword [rbp - 0x38], xmm0
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rbx, qword [0x140187fa0]
test rbx, rbx
je 0x140036763
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [0x140187f40], rax
mov rcx, rax
test rax, rax
je 0x14003670b
lea rdx, [0x140187f48]
mov qword [0x140187f60], r14
mov qword [rsp + 0x30], rdx
mov r9, rbx
lea rdx, [0x140187f60]
mov qword [0x140187f6c], r14
mov qword [rsp + 0x28], rdx
xor edx, edx
mov dword [0x140187f74], r14d
mov qword [0x140187f7c], r14
mov dword [0x140187f84], r14d
mov qword [0x140187f94], r14
lea r8d, [rdx + 1]
mov dword [0x140187f88], 1
mov dword [0x140187f78], 1
mov dword [0x140187f68], 0x15
mov dword [0x140187f8c], 1
mov dword [0x140187f90], 0x50
mov dword [0x140187f9c], 0x80000000
mov rax, qword [rax]
mov dword [rsp + 0x20], 0x40
call qword [rax + 0x80]
test eax, eax
js 0x140036704
call fcn.140036bd0
test al, al
jne 0x1400365eb
call fcn.140036e30
mov rcx, qword [0x140187f48]
test rcx, rcx
je 0x1400365bd
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140187f48], r14
mov rcx, qword [0x140187f40]
test rcx, rcx
je 0x1400365d6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140187f40], r14
mov rcx, qword [0x140187fa0]
test rcx, rcx
je 0x140036763
jmp 0x14003675d
mov edx, 0xa
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
xor edx, edx
mov dword [rsp + 0x28], 0x14
xor ecx, ecx
mov dword [rsp + 0x20], 0x14
mov r9d, 0x384
mov r8d, 0x578
call qword [sym.imp.GDI32.dll_CreateRoundRectRgn]
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.USER32.dll_SetWindowRgn]
xorps xmm0, xmm0
mov byte [0x140187f52], 1
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 0x10]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140036682
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [rbp - 8], 0x12
jne 0x140036650
mov byte [0x140187f52], r14b
call fcn.140036e30
mov rcx, qword [0x140187f48]
test rcx, rcx
je 0x1400366ad
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140187f48], r14
mov rcx, qword [0x140187f40]
test rcx, rcx
je 0x1400366c6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140187f40], r14
mov rcx, qword [0x140187fa0]
test rcx, rcx
je 0x1400366d8
call qword [sym.imp.USER32.dll_DestroyWindow]
cmp word [0x140187f50], r14w
mov qword [0x140187fa0], r14
je 0x1400366fd
mov rdx, qword [0x140187f08]
mov rcx, qword [0x140187f30]
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
jmp 0x14003678d
mov rcx, qword [0x140187f40]
mov rdx, qword [0x140187f48]
test rdx, rdx
je 0x14003672e
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x140187f40]
mov qword [0x140187f48], r14
test rcx, rcx
je 0x140036740
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140187f40], r14
mov rcx, qword [0x140187fa0]
test rcx, rcx
je 0x140036763
jmp 0x14003675d
mov rbx, qword [0x140187fa0]
test rbx, rbx
je 0x140036763
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyWindow]
cmp word [0x140187f50], r14w
mov qword [0x140187fa0], r14
je 0x140036788
mov rdx, qword [0x140187f08]
mov rcx, qword [0x140187f30]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, 1
mov word [0x140187f50], r14w
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.14003a550
add rsp, 0x240
pop r14
pop rbx
pop rbp
ret