Function at 0x14012c91c
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, 0x178
cmp qword [rcx + 0x80], 0
jne 0x14012cf7a
mov ebx, edx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x140]
movaps xmmword [rcx + 0x20], xmm0
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call sub.KERNEL32.dll_GetSystemInfo
xor esi, esi
mov eax, 0x80000000
xor ecx, ecx
mov r8, rbx
cpuid
xchg rbx, r8
cmp eax, 0x80000004
mov byte [rsp + 0x27], bl
mov qword [rsp + 0x68], rdi
jb 0x14012ca3c
mov dword [rsp + 0x28], eax
mov ecx, 4
mov edx, 0x50
call sym.__alloc::alloc::Global_as_core::alloc::Allocator_::allocate::h60848673c127e470
test rax, rax
je 0x14012cf9b
mov r8, rax
lea rax, [rsp + 0x30]
mov qword [rax], 5
mov qword [rax + 8], r8
mov eax, 0x80000000
xor edi, edi
xor r13d, r13d
mov r9d, dword [rsp + 0x28]
mov qword [rsp + 0x40], rdi
test r13b, 1
jne 0x14012ca59
cmp eax, r9d
ja 0x14012ca59
setae r13b
mov r14d, eax
adc r14d, 0
xor ecx, ecx
mov rbx, rbx
cpuid
xchg rbx, rbx
mov r15d, ecx
mov ebp, edx
mov r12d, eax
cmp rdi, qword [rsp + 0x30]
jne 0x14012ca18
lea rcx, [rsp + 0x30]
mov rdx, rdi
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::h823611604c9ceff6
mov r9d, dword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
shl rdi, 4
mov dword [r8 + rdi], r12d
mov dword [r8 + rdi + 4], ebx
mov dword [r8 + rdi + 8], r15d
mov dword [r8 + rdi + 0xc], ebp
mov rdi, qword [rsp + 0x40]
inc rdi
mov eax, r14d
jmp 0x14012c9c0
mov eax, 1
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rsp + 0x50], rax
jmp 0x14012cbe6
xor r12d, r12d
mov ecx, 0x30
xor edx, edx
call sym.alloc::raw_vec::RawVec_T_A_::allocate_in::h4a18201b925629c4
lea rbx, [rsp + 0x88]
mov qword [rbx], rax
mov qword [rbx + 8], rdx
and qword [rbx + 0x10], 0
mov r15, qword [rsp + 0x38]
shl rdi, 4
add rdi, r15
mov eax, 2
mov r14d, 5
test r12b, 1
je 0x14012caa8
test r14, r14
je 0x14012cb09
cmp r15, rdi
je 0x14012cb09
dec r14
jmp 0x14012cacc
cmp r14, rax
jbe 0x14012cb09
mov rcx, rdi
sub rcx, r15
shr rcx, 4
cmp rcx, rax
jbe 0x14012cb09
mov rcx, rax
not rcx
add r14, rcx
shl rax, 4
add r15, rax
lea r13, [r15 + 0x10]
mov edx, dword [r15]
mov rcx, rbx
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::heda1c5f11a414d8e
mov edx, dword [r15 + 4]
mov rcx, rbx
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::heda1c5f11a414d8e
mov edx, dword [r15 + 8]
mov rcx, rbx
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::heda1c5f11a414d8e
mov edx, dword [r15 + 0xc]
mov rcx, rbx
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::heda1c5f11a414d8e
mov r12b, 1
mov r15, r13
xor eax, eax
jmp 0x14012ca93
mov rdi, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x98]
xor r8d, r8d
cmp rdx, r8
je 0x14012cb2d
cmp byte [rdi + r8], 0
je 0x14012cb30
inc r8
jmp 0x14012cb1c
mov r8, rdx
lea r9, str._home_thor_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.11_src_windows_cpu.rsTotal_CPUIntel_x86MIPSRISC_AlphaPPCSHXARMIntel_Itanium_based_x64RISC_Alpha_x64MSIL_Intel_or_AMD__x64Intel_Itanium_based_x86unknownARM_x64
mov rcx, rdi
call sym.__alloc::vec::Vec_T_A__as_core::ops::index::Index_I__::index::h93fce70171bee69a
mov r8, rdx
lea rbx, [rsp + 0xf8]
mov rcx, rbx
mov rdx, rax
call dbg.from_utf8
cmp qword [rbx], 0
je 0x14012cb75
mov eax, 1
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rsp + 0x50], rax
jmp 0x14012cbb4
mov rdi, qword [rsp + 0x100]
mov rbx, qword [rsp + 0x108]
mov rcx, rbx
xor edx, edx
call sym.alloc::raw_vec::RawVec_T_A_::allocate_in::h4a18201b925629c4
mov qword [rsp + 0x50], rax
mov rcx, rdx
mov qword [rsp + 0x48], rdx
mov rdx, rdi
mov qword [rsp + 0x28], rbx
mov r8, rbx
call sym.memcpy
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
mov rdx, rdi
call sym.__alloc::raw_vec::RawVec_T_A__as_core::ops::drop::Drop_::drop::h2880afda0a507f50
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x14012cbe1
shl r8, 4
mov rcx, qword [rsp + 0x38]
mov edx, 4
call sym.__A_as_core::alloc::Allocator_::deallocate::h31dd003f5501e951
mov rdi, qword [rsp + 0x68]
lea rax, [rdi + 0x70]
mov qword [rsp + 0xb8], rax
xor ecx, ecx
xor eax, eax
mov rdi, rbx
cpuid
xchg rbx, rdi
mov ebx, edx
mov ebp, ecx
mov ecx, 0xc
xor edx, edx
call sym.alloc::raw_vec::RawVec_T_A_::allocate_in::h4a18201b925629c4
lea r14, [rsp + 0x88]
mov qword [r14], rax
mov qword [r14 + 8], rdx
and qword [r14 + 0x10], 0
mov rcx, r14
mov edx, edi
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::heda1c5f11a414d8e
mov rcx, r14
mov edx, ebx
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::heda1c5f11a414d8e
mov rcx, r14
mov edx, ebp
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::heda1c5f11a414d8e
mov rcx, qword [r14 + 8]
mov rdx, qword [r14 + 0x10]
mov bl, byte [rsp + 0x27]
cmp rdx, rsi
je 0x14012cc5c
cmp byte [rcx + rsi], 0
je 0x14012cc5f
inc rsi
jmp 0x14012cc4c
mov rsi, rdx
lea r9, str._home_thor_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.11_src_windows_cpu.rsTotal_CPUIntel_x86MIPSRISC_AlphaPPCSHXARMIntel_Itanium_based_x64RISC_Alpha_x64MSIL_Intel_or_AMD__x64Intel_Itanium_based_x86unknownARM_x64
mov r8, rsi
call sym.__alloc::vec::Vec_T_A__as_core::ops::index::Index_I__::index::h93fce70171bee69a
mov r8, rdx
lea rsi, [rsp + 0xf8]
mov rcx, rsi
mov rdx, rax
call dbg.from_utf8
cmp qword [rsi], 0
je 0x14012ccb1
movsx rax, word [rsp + 0x140]
cmp rax, 0xe
ja 0x14012ccc3
lea rcx, [0x1401bab98]
mov r15, qword [rcx + rax*8]
lea rcx, case.0x14001ea4c.133
mov rsi, qword [rcx + rax*8]
jmp 0x14012ccd0
mov rsi, qword [rsp + 0x100]
mov r15, qword [rsp + 0x108]
jmp 0x14012ccd0
lea rsi, case.0x14001ea4c.144
mov r15d, 7
mov rcx, r15
xor edx, edx
call sym.alloc::raw_vec::RawVec_T_A_::allocate_in::h4a18201b925629c4
mov qword [rsp + 0x60], rax
mov rcx, rdx
mov qword [rsp + 0x58], rdx
mov rdx, rsi
mov r8, r15
call sym.memcpy
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
call sym.__alloc::raw_vec::RawVec_T_A__as_core::ops::drop::Drop_::drop::h2880afda0a507f50
mov esi, dword [rsp + 0x160]
test bl, bl
je 0x14012cd21
lea rcx, [rsp + 0x70]
mov rdx, rsi
call sym.sysinfo::windows::cpu::get_frequencies::h3245359c7d71dd0b
jmp 0x14012cd3d
mov rcx, rsi
mov dl, 1
call sym.alloc::raw_vec::RawVec_T_A_::allocate_in::he75559a4097eefd8
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x80], rsi
inc rsi
imul rdi, rsi, 0x70
mov ecx, 8
mov rdx, rdi
call sym.__alloc::alloc::Global_as_core::alloc::Allocator_::allocate::h60848673c127e470
test rax, rax
je 0x14012cf8e
mov r14, rax
lea rax, [rsp + 0x30]
mov qword [rax], rsi
mov qword [rax + 8], r14
and qword [rax + 0x10], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
mov r12, qword [rsp + 0x80]
shl r12, 3
xor esi, esi
lea r13, [rsp + 0xf8]
mov ebp, 1
test r12, r12
je 0x14012ceb9
mov qword [rsp + 0xc8], rbp
lea rax, str.CPU
mov qword [rsp + 0x88], rax
mov eax, 1
mov qword [rsp + 0x90], rax
and qword [rsp + 0xa8], 0
lea rcx, [rsp + 0xc8]
mov qword [rsp + 0xd0], rcx
lea rcx, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_u64_::fmt::h1e3499352826a48f]
mov qword [rsp + 0xd8], rcx
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa0], rax
mov rcx, r13
lea rdx, [rsp + 0x88]
call dbg.format_inner
mov rdi, qword [rsp + 0x30]
lea rcx, [rsp + 0x110]
mov rdx, qword [rsp + 0x58]
mov rbx, r15
mov r8, r15
call dbg.clone
lea rcx, [rsp + 0x128]
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x28]
call dbg.clone
mov rax, qword [rsp + 0xc0]
mov r15, qword [rax + rbp*8 - 8]
cmp rsi, rdi
jne 0x14012ce70
lea rcx, [rsp + 0x30]
mov rdx, rsi
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::h027cf4d61746f6f2
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
imul rax, rsi, 0x70
lea rdi, [r14 + rax]
mov ecx, 9
mov rsi, r13
rep movsq qword [rdi], qword [rsi]
movabs rcx, 0x8000000000000000
mov qword [r14 + rax + 0x48], rcx
mov qword [r14 + rax + 0x60], r15
and dword [r14 + rax + 0x68], 0
mov rsi, qword [rsp + 0x40]
inc rsi
mov qword [rsp + 0x40], rsi
inc rbp
add r12, 0xfffffffffffffff8
mov r15, rbx
jmp 0x14012cd96
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xf0], rax
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0xe0], xmm0
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
call sym.core::ptr::drop_in_place_alloc::vec::Vec_u64__::h6c98cbce114896bd
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rdi + 0x78]
mov rdx, qword [rdi + 0x80]
mov rcx, rsi
call sym.__alloc::vec::Vec_T_A__as_core::ops::drop::Drop_::drop::h1df9f4ed32cd44a6
mov rcx, qword [rdi + 0x70]
mov rdx, rsi
call sym.__alloc::raw_vec::RawVec_T_A__as_core::ops::drop::Drop_::drop::h50589cbb1e6056c8
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [rsp + 0xe0]
movups xmmword [rcx], xmm0
mov rcx, qword [rdi + 0x18]
mov rdx, qword [rdi + 0x20]
call sym.__alloc::raw_vec::RawVec_T_A__as_core::ops::drop::Drop_::drop::h2880afda0a507f50
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], r15
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x38]
call sym.__alloc::raw_vec::RawVec_T_A__as_core::ops::drop::Drop_::drop::h2880afda0a507f50
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x30], rax
mov rax, qword [rsp + 0x48]
mov qword [rdi + 0x38], rax
mov rax, qword [rsp + 0x28]
mov qword [rdi + 0x40], rax
mov al, byte [rsp + 0x27]
mov byte [rdi + 0x88], al
add rsp, 0x178
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 8
mov rdx, rdi
call dbg.handle_alloc_error
mov ecx, 4
mov edx, 0x50
call dbg.handle_alloc_error
int3