Function at 0x140009910
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x338
mov rsi, rcx
test rdx, rdx
je 0x1400099a0
mov ebp, r9d
mov rdi, r8
mov rbx, rdx
mov ecx, 0x410
xor edx, edx
mov r8d, ebx
call sub.KERNEL32.dll_OpenProcess
mov r14, rax
test rax, rax
jne 0x140009962
mov ecx, 0x1000
xor edx, edx
mov r8d, ebx
call sub.KERNEL32.dll_OpenProcess
mov r14, rax
test rax, rax
je 0x1400099a0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x308]
mov rcx, r14
xor edx, edx
mov r9d, 0x30
call sub.ntdll.dll_NtQueryInformationProcess
test eax, eax
je 0x1400099ac
mov qword [rsi], 2
mov rcx, r14
call fcn.1400d0f0c
jmp 0x14000a047
mov qword [rsi], 2
jmp 0x14000a047
movabs r13, 0x8000000000000000
mov rax, qword [rsp + 0x330]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], 0x800000
mov edx, pe_nt_image_headers64
mov ecx, 0x40
call sub.KERNEL32.dll_LocalAlloc
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140009c45
lea rdx, [rsp + 0x38]
mov ecx, 0x58
mov r8d, 0x18
xor r9d, r9d
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
je 0x140009aca
test eax, eax
jne 0x140009bc5
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140009c45
movzx r8d, word [rsp + 0x40]
shr r8d, 1
lea rcx, [rsp + 0xf8]
call sym.__std::ffi::os_str::OsString_as_std::os::windows::ffi::OsStringExt_::from_wide::h4f0d847f13879248
lea rcx, [rsp + 0xf8]
call sym.std::sys::os_str::wtf8::Buf::as_mut_slice::h30fe6b7321b7e128
mov rcx, rax
call sym.std::path::Path::file_name::he17fe361531ba8b2
test rax, rax
je 0x140009bd6
mov r8, rdx
lea rcx, [rsp + 0x88]
mov rdx, rax
call sym.std::sys::os_str::wtf8::Slice::to_string_lossy::h4fb026203452ada6
mov r15, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
test r12, r12
je 0x140009bdb
mov r13, r12
js 0x14000a085
mov rax, qword [0x1400ff528]
movzx eax, byte [rax]
mov r12d, 1
mov edx, 1
mov rcx, r13
call sym.__rust_alloc
test rax, rax
je 0x14000a088
mov r12, r13
movabs r13, 0x8000000000000000
jmp 0x140009be0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140009ad9
call sub.KERNEL32.dll_LocalFree
movzx edx, word [rsp + 0x42]
mov ecx, 0x40
call sub.KERNEL32.dll_LocalAlloc
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140009c45
lea rdx, [rsp + 0x38]
mov ecx, 0x58
mov r8d, 0x18
xor r9d, r9d
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
je 0x140009a1b
cmp eax, 0xc0000004
jne 0x140009bc5
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140009b30
call sub.KERNEL32.dll_LocalFree
movzx edx, word [rsp + 0x42]
mov ecx, 0x40
call sub.KERNEL32.dll_LocalAlloc
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140009c45
lea rdx, [rsp + 0x38]
mov ecx, 0x58
mov r8d, 0x18
xor r9d, r9d
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
je 0x140009a1b
cmp eax, 0xc0000004
jne 0x140009bc5
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140009b83
call sub.KERNEL32.dll_LocalFree
movzx edx, word [rsp + 0x42]
mov ecx, 0x40
call sub.KERNEL32.dll_LocalAlloc
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140009c45
lea rdx, [rsp + 0x38]
mov ecx, 0x58
mov r8d, 0x18
xor r9d, r9d
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
je 0x140009a1b
cmp eax, 0xc0000004
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140009c45
call sub.KERNEL32.dll_LocalFree
jmp 0x140009c45
mov r12, r13
jmp 0x140009c16
mov eax, 1
mov qword [rsp + 0x58], rax
mov rcx, rax
mov rdx, r15
mov r8, r12
call sym.memcpy
mov rdx, qword [rsp + 0x88]
lea rax, [rdx*2]
test rax, rax
je 0x140009c16
mov r8d, 1
mov rcx, r15
call sym.__rust_dealloc
mov rcx, qword [rsp + 0x48]
call sub.KERNEL32.dll_LocalFree
mov rdx, qword [rsp + 0xf8]
test rdx, rdx
je 0x140009c40
mov rcx, qword [rsp + 0x100]
mov r8d, 1
call sym.__rust_dealloc
cmp r12, r13
jne 0x140009c52
mov eax, 1
mov qword [rsp + 0x58], rax
xor r12d, r12d
lea r15, [rsp + 0xf8]
mov r8d, 0x20a
mov rcx, r15
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, r14
xor edx, edx
mov r8, r15
mov r9d, 0x105
call sub.PSAPI.DLL_GetModuleFileNameExW
lea rcx, [rsp + 0x38]
mov r8d, 0x105
mov rdx, r15
mov qword [rsp + 0x78], r12
call sym.sysinfo::windows::process::null_terminated_wchar_to_string::hb452be45676c3e10
mov byte [rsp + 0x50], 1
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xb0], rax
mov r15, qword [rsp + 0x48]
test r15, r15
je 0x140009ce6
js 0x14000a06f
mov rax, qword [0x1400ff528]
movzx eax, byte [rax]
mov eax, 1
mov qword [rsp + 0x30], rax
mov edx, 1
mov rcx, r15
call sym.__rust_alloc
test rax, rax
je 0x14000a076
mov r12, rax
jmp 0x140009cec
mov r12d, 1
mov rcx, r12
mov rdx, qword [rsp + 0xb0]
mov r8, r15
call sym.memcpy
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x98], r15
mov byte [rsp + 0xa0], 1
lea rcx, [rsp + 0x88]
call sym.std::path::PathBuf::pop::hfddc44ae342c74a0
lea r15, [rsp + 0xf8]
lea rdx, [rsp + 0x60]
mov rcx, r15
call sym.sysinfo::windows::process::get_process_params::h53f26148ce9c11f3
mov rax, qword [rsp + 0xf8]
cmp rax, r13
mov dword [rsp + 0x84], ebp
jne 0x140009d8e
mov byte [rsp + 0x2f], 1
mov eax, 1
mov qword [rsp + 0x70], rax
mov ecx, 8
xor eax, eax
xor edx, edx
xor r8d, r8d
mov r9d, 8
xor r10d, r10d
xor r11d, r11d
mov qword [rsp + 0x30], r11
xor r11d, r11d
mov qword [rsp + 0xa8], r11
jmp 0x140009e08
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x108]
mov r8, qword [rsp + 0x110]
mov r9, qword [rsp + 0x118]
mov r10, qword [rsp + 0x120]
mov r11, qword [rsp + 0x128]
mov qword [rsp + 0x30], r11
mov r11, qword [rsp + 0x130]
mov qword [rsp + 0x70], r11
mov r11, qword [rsp + 0x138]
mov qword [rsp + 0xa8], r11
movzx r11d, byte [rsp + 0x140]
mov byte [rsp + 0x2f], r11b
mov r11d, dword [rsp + 0x141]
mov dword [rsp + 0x68], r11d
mov r11d, dword [rsp + 0x144]
mov dword [rsp + 0x6b], r11d
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rcx
mov qword [rsp + 0xd8], rdx
mov qword [rsp + 0xe0], r8
mov qword [rsp + 0xe8], r9
mov qword [rsp + 0xf0], r10
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0xc0]
mov rcx, r14
mov r8, r15
mov r9, r15
call sub.KERNEL32.dll_GetProcessTimes
movabs rax, 0xd6bf94d5e57a42bd
mul qword [rsp + 0xc0]
shr rdx, 0x17
movabs r15, 0xfffffffd49ef6f00
add r15, rdx
xor r12d, r12d
mov r13, rdi
cmp r15, rdi
cmovbe r12, r15
xor ebp, ebp
cmp qword [rsp + 0xb8], 0
setne dil
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0xf8]
mov r8d, dword [rsp + 0x84]
call sym.sysinfo::windows::process::get_process_user_id::h386e9827f7a4bd4b
mov r14, qword [rsp + 0x60]
mov rax, qword [0x1400ff528]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14000a05e
sub r13, r12
mov bpl, dil
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], r14
mov rcx, qword [rsp + 0x78]
mov qword [rsi + 0x10], rcx
mov rdx, qword [rsp + 0x58]
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], rcx
mov rcx, qword [rsp + 0x108]
mov qword [rsi + 0xc8], rcx
movups xmm0, xmmword [rsp + 0xf8]
movups xmmword [rsi + 0xb8], xmm0
mov rcx, qword [rsp + 0xd8]
mov qword [rsi + 0x38], rcx
movups xmm0, xmmword [rsp + 0xc8]
movups xmmword [rsi + 0x28], xmm0
movups xmm0, xmmword [rsp + 0xe0]
movups xmmword [rsi + 0x60], xmm0
mov rcx, qword [rsp + 0xf0]
mov qword [rsi + 0x70], rcx
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rsi + 0x40], xmm0
movups xmmword [rsi + 0x50], xmm1
mov rcx, qword [rsp + 0x30]
mov qword [rsi + 0x78], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsi + 0x80], rcx
mov rcx, qword [rsp + 0xa8]
mov qword [rsi + 0x88], rcx
movzx ecx, byte [rsp + 0x2f]
mov byte [rsi + 0x90], cl
mov ecx, dword [rsp + 0x68]
mov edx, dword [rsp + 0x6b]
mov dword [rsi + 0x91], ecx
mov dword [rsi + 0x94], edx
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movups xmmword [rsi + 0x98], xmm0
movups xmmword [rsi + 0xa8], xmm1
mov qword [rsi], rbp
mov rcx, qword [rsp + 0xb8]
mov qword [rsi + 8], rcx
mov dword [rsi + 0xd0], 1
mov qword [rsi + 0xd8], rbx
xorps xmm0, xmm0
movups xmmword [rsi + 0xe0], xmm0
mov qword [rsi + 0xf0], rax
movups xmmword [rsi + 0x108], xmm0
movups xmmword [rsi + 0xf8], xmm0
mov qword [rsi + 0x118], r15
mov qword [rsi + 0x120], r13
movups xmmword [rsi + 0x138], xmm0
movups xmmword [rsi + 0x128], xmm0
mov dword [rsi + 0x148], 0
mov byte [rsi + 0x14c], 1
mov rax, rsi
add rsp, 0x338
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
jmp 0x14000a093
xor eax, eax
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
mov rdx, r15
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
jmp 0x14000a093
xor r12d, r12d
mov rcx, r12
mov rdx, r13
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
ud2