Function at 0x140015e00
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 rdi, rcx
test rdx, rdx
je 0x140015e93
mov ebp, r9d
mov rbx, r8
mov r14, rdx
mov ecx, 0x410
xor edx, edx
mov r8d, r14d
call sub.kernel32.dll_OpenProcess
mov rsi, rax
test rax, rax
jne 0x140015e52
mov ecx, 0x1000
xor edx, edx
mov r8d, r14d
call sub.kernel32.dll_OpenProcess
mov rsi, rax
test rax, rax
je 0x140015e93
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x308]
mov rcx, rsi
xor edx, edx
mov r9d, 0x30
call sub.ntdll.dll_NtQueryInformationProcess
test eax, eax
je 0x140015e9f
mov qword [rdi], 2
mov rcx, rsi
call fcn.1400da584
jmp 0x140016535
mov qword [rdi], 2
jmp 0x140016535
mov rax, qword [rsp + 0x330]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x40], 0x800000
mov edx, pe_nt_image_headers64
mov ecx, 0x40
call sub.kernel32.dll_LocalAlloc
movabs r13, 0x8000000000000000
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140016132
lea rdx, [rsp + 0x38]
mov ecx, 0x58
mov r8d, 0x18
xor r9d, r9d
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
je 0x140015fba
test eax, eax
jne 0x1400160b5
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140016132
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::hce5f74d7e8fb25f0
lea rcx, [rsp + 0xf8]
call sym.std::sys::os_str::wtf8::Buf::as_mut_slice::ha2382f098eae5bd3
mov rcx, rax
call sym.std::path::Path::file_name::h2aee4f392a94eebc
test rax, rax
je 0x1400160c6
mov r8, rdx
lea rcx, [rsp + 0x78]
mov rdx, rax
call sym.std::sys::os_str::wtf8::Slice::to_string_lossy::hc4133fa02886419f
mov r15, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
test r12, r12
je 0x1400160cb
mov r13, r12
js 0x140016573
mov rax, qword [0x140109d88]
movzx eax, byte [rax]
mov r12d, 1
mov edx, 1
mov rcx, r13
call sym.__rust_alloc
test rax, rax
je 0x140016576
mov r12, r13
movabs r13, 0x8000000000000000
jmp 0x1400160d0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140015fc9
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 0x140016132
lea rdx, [rsp + 0x38]
mov ecx, 0x58
mov r8d, 0x18
xor r9d, r9d
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
je 0x140015f0e
cmp eax, 0xc0000004
jne 0x1400160b5
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140016020
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 0x140016132
lea rdx, [rsp + 0x38]
mov ecx, 0x58
mov r8d, 0x18
xor r9d, r9d
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
je 0x140015f0e
cmp eax, 0xc0000004
jne 0x1400160b5
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140016073
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 0x140016132
lea rdx, [rsp + 0x38]
mov ecx, 0x58
mov r8d, 0x18
xor r9d, r9d
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
je 0x140015f0e
cmp eax, 0xc0000004
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140016132
call sub.kernel32.dll_LocalFree
jmp 0x140016132
mov r12, r13
jmp 0x140016103
mov eax, 1
mov qword [rsp + 0x58], rax
mov rcx, rax
mov rdx, r15
mov r8, r12
call sym.memcpy
mov rdx, qword [rsp + 0x78]
lea rax, [rdx*2]
test rax, rax
je 0x140016103
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 0x14001612d
mov rcx, qword [rsp + 0x100]
mov r8d, 1
call sym.__rust_dealloc
cmp r12, r13
jne 0x14001613f
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, rsi
xor edx, edx
mov r8, r15
mov r9d, 0x105
mov qword [rsp + 0x70], r12
call sub.psapi.dll_GetModuleFileNameExW
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0xf8]
mov r8d, 0x105
call sym.sysinfo::windows::process::null_terminated_wchar_to_string::h94929cc703059ae7
mov byte [rsp + 0x50], 1
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xa0], rax
mov r15, qword [rsp + 0x48]
test r15, r15
je 0x1400161d8
js 0x14001655d
mov rax, qword [0x140109d88]
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 0x140016564
mov r12, rax
jmp 0x1400161de
mov r12d, 1
mov rcx, r12
mov rdx, qword [rsp + 0xa0]
mov r8, r15
call sym.memcpy
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], r15
mov byte [rsp + 0x90], 1
lea rcx, [rsp + 0x78]
call sym.std::path::PathBuf::pop::he73f0ade67d10080
lea r15, [rsp + 0xf8]
lea rdx, [rsp + 0xb8]
mov rcx, r15
call sym.sysinfo::windows::process::get_process_params::heb0cbe624235a955
mov rax, qword [rsp + 0xf8]
cmp rax, r13
mov qword [rsp + 0xa8], rbx
jne 0x14001627e
mov byte [rsp + 0x2f], 1
mov eax, 1
mov qword [rsp + 0x68], 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 + 0x98], r11
jmp 0x1400162f8
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 + 0x68], r11
mov r11, qword [rsp + 0x138]
mov qword [rsp + 0x98], r11
movzx r11d, byte [rsp + 0x140]
mov byte [rsp + 0x2f], r11b
mov r11d, dword [rsp + 0x141]
mov dword [rsp + 0x60], r11d
mov r11d, dword [rsp + 0x144]
mov dword [rsp + 0x63], r11d
mov r12d, ebp
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, rsi
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 ebx, ebx
cmp r15, qword [rsp + 0xa8]
cmovbe rbx, r15
xor r13d, r13d
cmp qword [rsp + 0xb0], 0
setne bpl
lea rcx, [rsp + 0xf8]
mov rdx, rsi
mov r8d, r12d
call sym.sysinfo::windows::process::get_process_user_id::he0cf8056dc98f368
mov rax, qword [0x140109d88]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14001654c
mov r12, qword [rsp + 0xa8]
sub r12, rbx
mov r13b, bpl
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rsi
mov rcx, qword [rsp + 0x70]
mov qword [rdi + 0x10], rcx
mov rdx, qword [rsp + 0x58]
mov qword [rdi + 0x18], rdx
mov qword [rdi + 0x20], rcx
mov rcx, qword [rsp + 0x108]
mov qword [rdi + 0xc8], rcx
movups xmm0, xmmword [rsp + 0xf8]
movups xmmword [rdi + 0xb8], xmm0
mov rcx, qword [rsp + 0xd8]
mov qword [rdi + 0x38], rcx
movups xmm0, xmmword [rsp + 0xc8]
movups xmmword [rdi + 0x28], xmm0
movups xmm0, xmmword [rsp + 0xe0]
movups xmmword [rdi + 0x60], xmm0
mov rcx, qword [rsp + 0xf0]
mov qword [rdi + 0x70], rcx
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rdi + 0x40], xmm0
movups xmmword [rdi + 0x50], xmm1
mov rcx, qword [rsp + 0x30]
mov qword [rdi + 0x78], rcx
mov rcx, qword [rsp + 0x68]
mov qword [rdi + 0x80], rcx
mov rcx, qword [rsp + 0x98]
mov qword [rdi + 0x88], rcx
movzx ecx, byte [rsp + 0x2f]
mov byte [rdi + 0x90], cl
mov ecx, dword [rsp + 0x60]
mov edx, dword [rsp + 0x63]
mov dword [rdi + 0x91], ecx
mov dword [rdi + 0x94], edx
movups xmm0, xmmword [rsp + 0x78]
movups xmm1, xmmword [rsp + 0x88]
movups xmmword [rdi + 0x98], xmm0
movups xmmword [rdi + 0xa8], xmm1
mov qword [rdi], r13
mov rcx, qword [rsp + 0xb0]
mov qword [rdi + 8], rcx
mov dword [rdi + 0xd0], 1
mov qword [rdi + 0xd8], r14
xorps xmm0, xmm0
movups xmmword [rdi + 0xe0], xmm0
mov qword [rdi + 0xf0], rax
movups xmmword [rdi + 0x108], xmm0
movups xmmword [rdi + 0xf8], xmm0
mov qword [rdi + 0x118], r15
mov qword [rdi + 0x120], r12
movups xmmword [rdi + 0x138], xmm0
movups xmmword [rdi + 0x128], xmm0
mov dword [rdi + 0x148], 0
mov byte [rdi + 0x14c], 1
mov rax, rdi
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::h033f15fcf3b32b44
jmp 0x140016581
xor eax, eax
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
mov rdx, r15
call sym.alloc::raw_vec::handle_error::h5313441c9bd13595
jmp 0x140016581
xor r12d, r12d
mov rcx, r12
mov rdx, r13
call sym.alloc::raw_vec::handle_error::h5313441c9bd13595
ud2