Function at 0x140004db0
Capabilities:
Get session user name

Disassembly:
push rbp
sub rsp, 0x1f0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x168], 0xfffffffffffffffe
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rcx
mov dword [rbp + 0x44], 0
mov qword [rbp + 0x148], 0
mov qword [rbp + 0x150], 0
mov qword [rbp + 0x160], 0
mov rax, qword [rbp + 0x160]
mov qword [rbp + 0x158], rax
mov rcx, qword [rbp + 0x158]
lea rdx, [rbp + 0x44]
call qword [sym.imp.advapi32.dll_GetUserNameW]
cmp eax, 0
sete cl
and cl, 1
mov byte [rbp + 0x11e], cl
cmp eax, 0
jne 0x140004e64
mov ecx, dword [rbp + 0x44]
call fcn.1400047c0
mov rcx, rax
mov r8, 0xffffffffffffffff
call fcn.140004710
mov rdx, rax
lea rcx, [rbp + 0x48]
mov qword [rbp + 0x20], rcx
call fcn.1400048d0
mov rcx, qword [rbp + 0x20]
call fcn.1400049e0
mov qword [rbp + 0x28], rax
jmp 0x140004e7e
lea rcx, str.assertion_failed:_success
lea r8, [0x140036978]
mov edx, 0x19
call fcn.140034e10
ud2
mov rcx, qword [rbp + 0x28]
call fcn.1400047a0
mov dword [rbp + 0x18], edx
mov dword [rbp + 0x1c], eax
jmp 0x140004e8f
mov edx, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x1c]
mov r8d, 0xffffffff
call fcn.1400046b0
mov dword [rbp + 0x14], eax
jmp 0x140004ea5
mov eax, dword [rbp + 0x14]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
mov dword [rbp + 0x64], eax
lea rcx, [rbp + 0x48]
call fcn.140004920
mov qword [rbp + 8], rax
jmp 0x140004ec0
mov rcx, qword [rbp + 8]
mov qword [rbp + 0x140], rcx
mov rax, qword [sym.imp.advapi32.dll_GetUserNameW]
lea rdx, [rbp + 0x44]
call rax
mov dword [rbp + 4], eax
jmp 0x140004edd
mov eax, dword [rbp + 4]
cmp eax, 0
sete cl
and cl, 1
mov byte [rbp + 0x11f], cl
cmp eax, 0
jne 0x140004f0c
lea rdx, str.unknownC:Usersgabriel.cargo_registry_srcindex.crates.io_6f17d22bba15001fwhoami_1.4.1_srcwindows.rs
lea rcx, [rbp + 0x68]
mov r8d, 7
call fcn.1400043e0
jmp 0x140004f4e
lea rax, [rbp + 0x64]
mov qword [rbp + 0x80], rax
lea rax, [rbp + 0x44]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp - 0x10], rax
mov qword [rbp + 0x120], rax
mov rcx, qword [rbp + 0x88]
mov qword [rbp - 8], rcx
mov qword [rbp + 0x128], rcx
mov eax, dword [rax]
cmp eax, dword [rcx]
je 0x140004f73
jmp 0x140004f85
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x68]
call fcn.140004780
jmp 0x140004f5d
lea rcx, [rbp + 0x48]
call fcn.1400052d0
mov rax, qword [rbp + 0x38]
add rsp, 0x1f0
pop rbp
ret
mov ecx, dword [rbp + 0x44]
call fcn.1400047c0
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rax
jmp 0x140004fc3
mov r8, qword [rbp - 8]
mov rdx, qword [rbp - 0x10]
mov byte [rbp + 0x97], 0
mov qword [rbp + 0x98], 0
mov cl, byte [rbp + 0x97]
lea r9, [0x140036920]
mov rax, rsp
mov qword [rax + 0x20], r9
lea r9, [rbp + 0x98]
call fcn.140005490
jmp 0x140004fc1
ud2
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
mov r8, 0xffffffffffffffff
call fcn.140004710
mov qword [rbp - 0x28], rax
jmp 0x140004fdd
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp + 0x48]
call fcn.1400049c0
jmp 0x140004fec
lea rcx, [rbp + 0x48]
call fcn.140004940
mov word [rbp - 0x2c], dx
mov word [rbp - 0x2a], ax
jmp 0x140004fff
mov ax, word [rbp - 0x2c]
mov cx, word [rbp - 0x2a]
mov word [rbp + 0xcc], cx
mov word [rbp + 0xce], ax
lea rax, [rbp + 0xcc]
mov qword [rbp + 0xd0], rax
lea rax, [0x140036938]
mov qword [rbp + 0xd8], rax
mov rcx, qword [rbp + 0xd0]
mov qword [rbp - 0x40], rcx
mov qword [rbp + 0x130], rcx
mov rdx, qword [rbp + 0xd8]
mov qword [rbp - 0x38], rdx
mov qword [rbp + 0x138], rdx
call fcn.140004b50
mov byte [rbp - 0x2d], al
jmp 0x140005072
lea rcx, [rbp + 0x48]
call fcn.140004b90
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x48], rax
jmp 0x1400050ba
mov al, byte [rbp - 0x2d]
test al, 1
jne 0x14000505f
jmp 0x14000507b
mov r8, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x40]
mov byte [rbp + 0xe7], 0
mov qword [rbp + 0xe8], 0
mov cl, byte [rbp + 0xe7]
lea r9, [0x140036940]
mov rax, rsp
mov qword [rax + 0x20], r9
lea r9, [rbp + 0xe8]
call fcn.1400054e0
jmp 0x140004fc1
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp + 0x30]
call fcn.14001e500
jmp 0x1400050cd
lea rcx, [rbp + 0x48]
call fcn.1400052d0
jmp 0x140004f66