Function at 0x140035000
Capabilities:
Get session user name

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x14004b040]
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 0x140035060
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x260], rsi
lea rcx, [rsp + 0x60]
call fcn.1400386a0
mov rcx, qword [rsp + 0x78]
mov esi, 9
mov r8, qword [rsp + 0x70]
mov rax, rcx
sub rax, r8
cmp rax, rsi
jb 0x140035140
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, [0x140042789]
lea r15, str.C:Users_
cmp rax, rbx
jbe 0x1400350f3
lea rax, [rbx + r8]
cmp r15, rax
ja 0x1400350f3
cmp rbx, r15
ja 0x1400350eb
mov rdi, r14
jmp 0x1400350f6
mov rdi, rbx
sub rdi, r15
jmp 0x1400350f6
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 0x140035152
mov rdx, rsi
mov qword [rsp + 0x28], rsi
lea rcx, [rsp + 0x60]
call fcn.140038e30
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.140037ef0
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.140034d70
mov rsi, qword [rsp + 0x260]
mov rbx, rax
lea rax, [0x14014cea8]
cmp rax, rbx
je 0x140035263
mov rcx, qword [0x14014cea8]
test rcx, rcx
je 0x140035238
mov rdx, qword [0x14014ceb8]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140035221
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140035371
mov rcx, r8
call fcn.1400396bc
xorps xmm0, xmm0
mov qword [0x14014ceb8], r14
movdqu xmmword [0x14014cea8], xmm0
mov rax, qword [rbx]
mov qword [0x14014cea8], rax
mov rax, qword [rbx + 8]
mov qword [0x14014ceb0], rax
mov rax, qword [rbx + 0x10]
mov qword [0x14014ceb8], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400352a9
mov rdx, qword [rbp - 0x28]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140035298
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035371
call fcn.1400396bc
xorps xmm0, xmm0
mov qword [rbp - 0x38], r14
movdqu xmmword [rbp - 0x30], xmm0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x1400352e4
mov rcx, qword [rbp - 0x80]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400352df
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035371
call fcn.1400396bc
mov rdx, qword [rbp - 0x48]
movdqa xmm0, xmmword [0x140042d70]
mov byte [rbp - 0x80], r14b
movdqu xmmword [rbp - 0x70], xmm0
cmp rdx, 0xf
jbe 0x14003532c
mov rcx, qword [rbp - 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035327
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035371
call fcn.1400396bc
mov rdx, qword [rsp + 0x78]
movdqa xmm0, xmmword [0x140042d70]
mov byte [rbp - 0x60], r14b
movdqu xmmword [rbp - 0x50], xmm0
cmp rdx, 0xf
jbe 0x14003537d
mov rcx, qword [rsp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035378
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140035378
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400396bc
xor edx, edx
mov ebx, 4
lea ecx, [rdx + 0xa]
call fcn.14002d7e0
test eax, eax
je 0x140035403
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rbx + rcx]
cmp dword [0x14014d024], eax
jle 0x1400353dc
lea rcx, [0x14014d024]
call fcn.140039730
cmp dword [0x14014d024], 0xffffffff
jne 0x1400353dc
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x14014d024]
mov qword [0x14014d000], rax
call fcn.1400396c4
mov rcx, qword [0x14014d000]
lea rdx, str.SetThreadDpiAwarenessContext
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140035403
mov rcx, 0xfffffffffffffffc
call rax
jmp 0x140035488
mov edx, 3
lea ecx, [rdx + 3]
call fcn.14002d7e0
test eax, eax
je 0x140035482
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rbx + rcx]
cmp dword [0x14014d010], eax
jle 0x140035460
lea rcx, [0x14014d010]
call fcn.140039730
cmp dword [0x14014d010], 0xffffffff
jne 0x140035460
lea rcx, str.shcore.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x14014d010]
mov qword [0x14014d008], rax
call fcn.1400396c4
mov rcx, qword [0x14014d008]
lea rdx, str.SetProcessDpiAwareness
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140035482
mov ecx, 2
call rax
jmp 0x140035488
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
mov rdx, qword [0x14014cea8]
lea rcx, [0x140058300]
mov r8, qword [0x14014ceb0]
sub r8, rdx
call sub.VCRUNTIME140.dll_memmove
cmp byte [rbp - 0x20], 2
jb 0x1400354c4
mov r8d, 7
lea rdx, str.Desktop
jmp 0x1400354d1
mov r8d, 6
lea rdx, str.Laptop
call fcn.140037f70
xorps xmm0, xmm0
mov dword [0x14014cee0], 0x50
xorps xmm1, xmm1
movdqa xmmword [0x14014cef0], xmm0
lea rax, [0x1400358c0]
movdqa xmmword [0x14014cf00], xmm1
xor ecx, ecx
movdqa xmmword [0x14014cf10], xmm0
movdqa xmmword [0x14014cf20], xmm1
mov qword [0x14014cee8], rax
mov dword [0x14014cee4], 3
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x14014cef8], rax
lea rcx, [0x14014cee0]
lea rax, str.Window
mov qword [0x14014cf20], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov word [0x14014cf40], ax
test ax, ax
je 0x14003585e
cvttss2si ecx, dword [0x1400573c4]
mov rax, qword [0x14014cef8]
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 [0x1400573c0]
mov dword [rsp + 0x38], ecx
xor ecx, ecx
mov dword [rsp + 0x30], edx
mov rdx, qword [0x14014cf20]
mov dword [rsp + 0x28], 0x21c
mov dword [rsp + 0x20], 0x3c0
call qword [sym.imp.USER32.dll_CreateWindowExW]
movdqa xmm0, xmmword [0x140042d30]
lea rdx, [rbp - 0x38]
mov rcx, rax
mov qword [0x14014cf90], rax
movdqu xmmword [rbp - 0x38], xmm0
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rbx, qword [0x14014cf90]
test rbx, rbx
je 0x140035873
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [0x14014cf30], rax
mov rcx, rax
test rax, rax
je 0x14003581b
lea rdx, [0x14014cf38]
mov qword [0x14014cf50], r14
mov qword [rsp + 0x30], rdx
mov r9, rbx
lea rdx, [0x14014cf50]
mov qword [0x14014cf5c], r14
mov qword [rsp + 0x28], rdx
xor edx, edx
mov dword [0x14014cf64], r14d
mov qword [0x14014cf6c], r14
mov dword [0x14014cf74], r14d
mov qword [0x14014cf84], r14
lea r8d, [rdx + 1]
mov dword [0x14014cf78], 1
mov dword [0x14014cf68], 1
mov dword [0x14014cf58], 0x15
mov dword [0x14014cf7c], 1
mov dword [0x14014cf80], 0x50
mov dword [0x14014cf8c], 0x80000000
mov rax, qword [rax]
mov dword [rsp + 0x20], 0x40
call qword [rax + 0x80]
test eax, eax
js 0x140035814
call fcn.140035cd0
test al, al
jne 0x1400356fb
call fcn.140035f30
mov rcx, qword [0x14014cf38]
test rcx, rcx
je 0x1400356cd
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14014cf38], r14
mov rcx, qword [0x14014cf30]
test rcx, rcx
je 0x1400356e6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14014cf30], r14
mov rcx, qword [0x14014cf90]
test rcx, rcx
je 0x140035873
jmp 0x14003586d
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 [0x14014cf42], 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 0x140035792
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 0x140035760
mov byte [0x14014cf42], r14b
call fcn.140035f30
mov rcx, qword [0x14014cf38]
test rcx, rcx
je 0x1400357bd
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14014cf38], r14
mov rcx, qword [0x14014cf30]
test rcx, rcx
je 0x1400357d6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14014cf30], r14
mov rcx, qword [0x14014cf90]
test rcx, rcx
je 0x1400357e8
call qword [sym.imp.USER32.dll_DestroyWindow]
cmp word [0x14014cf40], r14w
mov qword [0x14014cf90], r14
je 0x14003580d
mov rdx, qword [0x14014cef8]
mov rcx, qword [0x14014cf20]
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
jmp 0x14003589d
mov rcx, qword [0x14014cf30]
mov rdx, qword [0x14014cf38]
test rdx, rdx
je 0x14003583e
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x14014cf30]
mov qword [0x14014cf38], r14
test rcx, rcx
je 0x140035850
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14014cf30], r14
mov rcx, qword [0x14014cf90]
test rcx, rcx
je 0x140035873
jmp 0x14003586d
mov rbx, qword [0x14014cf90]
test rbx, rbx
je 0x140035873
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyWindow]
cmp word [0x14014cf40], r14w
mov qword [0x14014cf90], r14
je 0x140035898
mov rdx, qword [0x14014cef8]
mov rcx, qword [0x14014cf20]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, 1
mov word [0x14014cf40], r14w
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140039520
add rsp, 0x240
pop r14
pop rbx
pop rbp
ret