Function at 0x1400734fc
Capabilities:
Get session user name

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
lea rdx, [rsp + 0x48]
and dword [rdx], 0
xor ecx, ecx
call sub.advapi32.dll_GetUserNameW
test eax, eax
jne 0x14007377c
movabs r14, 0x8000000000000000
call sym.std::io::error::Error::last_os_error::h6923a0605f513343
mov rsi, rax
and eax, 3
lea rcx, [0x1401391a0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov rax, rsi
dec rsi
mov rdi, qword [rax - 1]
mov rbx, qword [rax + 7]
mov rcx, rdi
call qword [rbx]
mov r8, qword [rbx + 8]
test r8, r8
je 0x14007356d
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call sym.__A_as_core::alloc::Allocator_::deallocate::h31dd003f5501e951
mov edx, 8
mov rcx, rsi
call sym.__rust_dealloc
jmp case.0x140073543.0
shr rsi, 0x20
cmp esi, 0x7a
je 0x14007367d
call sym.std::io::error::Error::last_os_error::h6923a0605f513343
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov rsi, qword [rsp + 0x30]
lea rdi, [rsp + 0x48]
mov qword [rdi], rsi
lea rdx, [0x1401797c3]
lea rcx, [rsp + 0x28]
mov r8d, 7
call dbg.to_lowercase
mov rcx, rdi
call sym.core::ptr::drop_in_place_std::io::error::Error_::h3a295ade6d1456ab
lea rdi, [rsp + 0x28]
lea rax, [rsp + 0x78]
mov qword [rax], rdi
lea rcx, str._home_thor_.cargo_registry_src_index.crates.io_6f17d22bba15001f_winreg_0.10.1_src_lib.rs_b
lea rdx, [rsp + 0x48]
mov qword [rdx], rcx
mov ecx, 1
mov qword [rdx + 8], rcx
and qword [rdx + 0x20], 0
lea r8, [sym.__alloc::string::String_as_core::fmt::Display_::fmt::hf227f51f5a377cca]
mov qword [rax + 8], r8
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rcx
lea rsi, [rsp + 0x88]
mov rcx, rsi
call sym.alloc::fmt::format::ha7016107dd9b0da8
mov rcx, qword [rdi]
mov rdx, qword [rdi + 8]
call sym.core::ptr::drop_in_place_alloc::vec::Vec_u8__::h93df36056228766e
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov rdx, rbx
call dbg.to_lowercase
mov r14, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
lea r8, str.systemmimiRust::__
mov r9d, 6
mov rcx, r14
call sym.___A__as_core::slice::cmp::SlicePartialEq_B__::equal::h316148d6f7ec3baf
mov ebp, eax
mov rcx, qword [rsi]
mov rdx, r14
call sym.core::ptr::drop_in_place_alloc::vec::Vec_u8__::h93df36056228766e
mov rcx, rdi
mov rdx, rbx
call sym.core::ptr::drop_in_place_alloc::vec::Vec_u8__::h93df36056228766e
mov eax, ebp
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov esi, dword [rsp + 0x48]
test rsi, rsi
je 0x1400736ac
lea rbx, [rsi + rsi]
mov ecx, 2
mov rdx, rbx
call sym._ZN5alloc5alloc6Global10alloc_impl17h0d757d4e73283ac3E.2979
mov rdi, rax
test rax, rax
jne 0x1400736b1
mov ecx, 2
mov rdx, rbx
call dbg.handle_alloc_error
mov edi, 2
lea rdx, [rsp + 0x48]
mov dword [rdx], esi
mov rcx, rdi
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x1400736d3
mov r8d, dword [rsp + 0x48]
test r8, r8
je 0x1400736f2
dec r8
jmp 0x1400736f5
call sym.std::io::error::Error::last_os_error::h6923a0605f513343
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov rcx, rsi
mov rdx, rdi
call sym.core::ptr::drop_in_place_alloc::vec::Vec_u16__::hbd768d24bd1530e1
jmp 0x140073598
xor r8d, r8d
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
call dbg.from_wide
mov rcx, rsi
mov rdx, rdi
call sym.core::ptr::drop_in_place_alloc::vec::Vec_u16__::hbd768d24bd1530e1
cmp qword [rbx], r14
je 0x140073598
lea rsi, [rsp + 0x48]
lea rdx, [rsp + 0x28]
mov rcx, rsi
call sym.std::sys::windows::os_str::Buf::into_string::h8102fbc5274fcca3
mov rdi, qword [rsi]
cmp rdi, r14
jne 0x14007375f
mov rax, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
cmp rax, r14
je 0x14007359d
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rcx
jmp 0x1400735c4
mov rbx, qword [rsp + 0x50]
call sym.std::io::error::Error::new::hc9e3af74ab16d732
mov rsi, rax
mov rcx, rdi
mov rdx, rbx
call sym.__alloc::raw_vec::RawVec_T_A__as_core::ops::drop::Drop_::drop::h2880afda0a507f50
jmp 0x14007359d
lea rcx, str.assertion_failed:_fail_home_thor_.cargo_registry_src_index.crates.io_6f17d22bba15001f_whoami_1.5.0_src_os_windows.rs
lea r8, [0x1401ba4a8]
mov edx, 0x16
call dbg.panic
int3