Function at 0x140040410
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, 0x198
cmp qword [rcx + 0x80], 0
jne 0x140040a8f
mov r15d, edx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x160]
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], r15b
mov qword [rsp + 0x68], rdi
jb 0x140040532
mov dword [rsp + 0x28], eax
mov ecx, 4
mov edx, 0x50
call sym._ZN63__LT_alloc..alloc..Global_u20_as_u20_core..alloc..Allocator_GT_8allocate17h85a9a53372bdd702E.1030
test rax, rax
je 0x140040aad
mov r8, rax
lea rax, [rsp + 0x30]
mov qword [rax], r8
mov qword [rax + 8], 5
mov eax, 0x80000000
xor edi, edi
xor r13d, r13d
mov r9d, dword [rsp + 0x28]
mov qword [rsp + 0x40], rdi
test r13b, 1
jne 0x14004054f
cmp eax, r9d
ja 0x14004054f
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 + 0x38]
jne 0x14004050e
lea rcx, [rsp + 0x30]
mov rdx, rdi
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::h79aaa903acd743b3
mov r9d, dword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
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 0x1400404b6
mov eax, 1
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x50], rax
jmp 0x1400406d3
mov ecx, 0x30
call sym.alloc::raw_vec::RawVec_T_A_::allocate_in::h618e731c4cfbf4c2
lea rbx, [rsp + 0xb8]
mov qword [rbx], rax
mov qword [rbx + 8], rdx
and qword [rbx + 0x10], 0
mov r15, qword [rsp + 0x30]
shl rdi, 4
add rdi, r15
mov eax, 2
mov r14d, 5
xor ecx, ecx
test cl, 1
je 0x14004059a
test r14, r14
je 0x1400405fa
cmp r15, rdi
je 0x1400405fa
dec r14
jmp 0x1400405be
cmp r14, rax
jbe 0x1400405fa
mov rcx, rdi
sub rcx, r15
shr rcx, 4
cmp rcx, rax
jbe 0x1400405fa
mov rcx, rax
not rcx
add r14, rcx
shl rax, 4
add r15, rax
lea r12, [r15 + 0x10]
mov edx, dword [r15]
mov rcx, rbx
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::hb229a3ae9a557599
mov edx, dword [r15 + 4]
mov rcx, rbx
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::hb229a3ae9a557599
mov edx, dword [r15 + 8]
mov rcx, rbx
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::hb229a3ae9a557599
mov edx, dword [r15 + 0xc]
mov rcx, rbx
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::hb229a3ae9a557599
mov cl, 1
mov r15, r12
xor eax, eax
jmp 0x140040586
mov rdi, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xc8]
xor r8d, r8d
mov r15b, byte [rsp + 0x27]
cmp rdx, r8
je 0x140040623
cmp byte [rdi + r8], 0
je 0x140040626
inc r8
jmp 0x140040612
mov r8, rdx
mov rcx, rdi
call sym.__alloc::vec::Vec_T_A__as_core::ops::index::Index_I__::index::hbcab8c845945958a
mov r8, rdx
lea rbx, [rsp + 0x100]
mov rcx, rbx
mov rdx, rax
call sym.core::str::converts::from_utf8::h45f66c5a12f91f7e
cmp qword [rbx], 0
je 0x140040664
mov eax, 1
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x50], rax
jmp 0x1400406a1
mov rdi, qword [rsp + 0x108]
mov rbx, qword [rsp + 0x110]
mov rcx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::allocate_in::h618e731c4cfbf4c2
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x28], rax
mov rcx, rax
mov rdx, rdi
mov qword [rsp + 0x50], rbx
mov r8, rbx
call sym.memcpy
mov rdi, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xc0]
mov rcx, rdi
call sym.__alloc::raw_vec::RawVec_T_A__as_core::ops::drop::Drop_::drop::h77b53a14f7d26e29
mov r8, qword [rsp + 0x38]
test r8, r8
je 0x1400406ce
shl r8, 4
mov rcx, qword [rsp + 0x30]
mov edx, 4
call sym.__alloc::alloc::Global_as_core::alloc::Allocator_::deallocate::h88a972f30c63aee8
mov rdi, qword [rsp + 0x68]
lea rax, [rdi + 0x70]
mov qword [rsp + 0x90], rax
xor ecx, ecx
xor eax, eax
mov rdi, rbx
cpuid
xchg rbx, rdi
mov ebx, edx
mov ebp, ecx
mov ecx, 0xc
call sym.alloc::raw_vec::RawVec_T_A_::allocate_in::h618e731c4cfbf4c2
lea r14, [rsp + 0xb8]
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::hb229a3ae9a557599
mov rcx, r14
mov edx, ebx
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::hb229a3ae9a557599
mov rcx, r14
mov edx, ebp
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::hb229a3ae9a557599
mov rcx, qword [r14]
mov rdx, qword [r14 + 0x10]
cmp rdx, rsi
je 0x140040742
cmp byte [rcx + rsi], 0
je 0x140040745
inc rsi
jmp 0x140040732
mov rsi, rdx
mov r8, rsi
call sym.__alloc::vec::Vec_T_A__as_core::ops::index::Index_I__::index::hbcab8c845945958a
mov r8, rdx
lea rsi, [rsp + 0x100]
mov rcx, rsi
mov rdx, rax
call sym.core::str::converts::from_utf8::h45f66c5a12f91f7e
cmp qword [rsi], 0
je 0x140040790
movsx rax, word [rsp + 0x160]
cmp rax, 0xe
ja 0x1400407a2
lea rcx, [0x140097818]
mov rbx, qword [rcx + rax*8]
lea rcx, [0x140097890]
mov rsi, qword [rcx + rax*8]
jmp 0x1400407ae
mov rsi, qword [rsp + 0x108]
mov rbx, qword [rsp + 0x110]
jmp 0x1400407ae
lea rsi, [0x140097521]
mov ebx, 7
mov rcx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::allocate_in::h618e731c4cfbf4c2
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x58], rax
mov rcx, rax
mov rdx, rsi
mov r8, rbx
call sym.memcpy
mov rcx, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xc0]
call sym.__alloc::raw_vec::RawVec_T_A__as_core::ops::drop::Drop_::drop::h77b53a14f7d26e29
mov esi, dword [rsp + 0x180]
test r15b, r15b
je 0x140040810
lea rdi, [rsp + 0x98]
mov rcx, rdi
mov rdx, rsi
call sym.sysinfo::windows::cpu::get_frequencies::h4a8d49da11f57ae0
mov rax, qword [rdi]
mov qword [rsp + 0x70], rax
mov r12, qword [rdi + 0x10]
jmp 0x14004083a
mov rcx, rsi
mov dl, 1
call sym.alloc::raw_vec::RawVec_T_A_::allocate_in::hec238c0cf86a5099
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rdx
mov qword [rsp + 0xa8], rsi
mov r12, rsi
inc rsi
imul rdi, rsi, 0x70
mov ecx, 8
mov rdx, rdi
call sym._ZN63__LT_alloc..alloc..Global_u20_as_u20_core..alloc..Allocator_GT_8allocate17h85a9a53372bdd702E.1030
test rax, rax
je 0x140040aa3
mov r14, rax
lea rax, [rsp + 0x78]
mov qword [rax], r14
mov qword [rax + 8], rsi
and qword [rax + 0x10], 0
shl r12, 3
xor ebp, ebp
mov r15d, 1
test r12, r12
je 0x1400409f2
mov qword [rsp + 0xb0], r15
lea rax, [0x140097538]
mov qword [rsp + 0xb8], rax
mov eax, 1
mov qword [rsp + 0xc0], rax
and qword [rsp + 0xd8], 0
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x30], rcx
lea rcx, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_u64_::fmt::hcc6d072634cb3c73]
mov qword [rsp + 0x38], rcx
lea rsi, [rsp + 0x30]
mov qword [rsp + 0xc8], rsi
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0x148]
lea rdi, [rsp + 0xb8]
mov rdx, rdi
call sym.alloc::fmt::format::h80469b25d54c2778
mov rcx, rsi
mov rdx, qword [rsp + 0x58]
mov r13, rbx
mov r8, rbx
call sym.__alloc::string::String_as_core::clone::Clone_::clone::hd25fbcdb3f7d6819
mov rcx, rdi
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x50]
call sym.__alloc::string::String_as_core::clone::Clone_::clone::hd25fbcdb3f7d6819
mov rax, qword [rsp + 0x70]
mov rbx, qword [rax + r15*8 - 8]
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x110], rax
movups xmm0, xmmword [rsp + 0x148]
movaps xmmword [rsp + 0x100], xmm0
mov rax, qword [rsp + 0x40]
lea rcx, [rsp + 0x118]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rcx], xmm0
mov rax, qword [rsp + 0xc8]
mov qword [rcx + 0x28], rax
movups xmm0, xmmword [rsp + 0xb8]
movups xmmword [rcx + 0x18], xmm0
mov ecx, 9
lea rsi, [rsp + 0x100]
rep movsq qword [rdi], qword [rsi]
cmp rbp, qword [rsp + 0x80]
jne 0x1400409a7
lea rcx, [rsp + 0x78]
mov rdx, rbp
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::he412fedf46b0d144
mov r14, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
imul rax, rbp, 0x70
lea rdi, [r14 + rax]
mov ecx, 9
lea rsi, [rsp + 0xb8]
rep movsq qword [rdi], qword [rsi]
and qword [r14 + rax + 0x48], 0
mov qword [r14 + rax + 0x60], rbx
and dword [r14 + rax + 0x68], 0
mov rbp, qword [rsp + 0x88]
inc rbp
mov qword [rsp + 0x88], rbp
inc r15
add r12, 0xfffffffffffffff8
mov rbx, r13
jmp 0x140040877
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x110], rax
movups xmm0, xmmword [rsp + 0x78]
movaps xmmword [rsp + 0x100], xmm0
mov rcx, qword [rsp + 0x98]
mov rdx, qword [rsp + 0xa0]
call sym.__alloc::raw_vec::RawVec_T_A__as_core::ops::drop::Drop_::drop::h9bb8407f273e3b34
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
call sym.__alloc::raw_vec::RawVec_T_A__as_core::ops::drop::Drop_::drop::h77b53a14f7d26e29
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
call sym.__alloc::raw_vec::RawVec_T_A__as_core::ops::drop::Drop_::drop::h77b53a14f7d26e29
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rdi + 0x70]
mov rdx, qword [rdi + 0x80]
mov rcx, rsi
call sym.__alloc::vec::Vec_T_A__as_core::ops::drop::Drop_::drop::h4e2400e89501b89e
mov rdx, qword [rdi + 0x78]
mov rcx, rsi
call sym.__alloc::raw_vec::RawVec_T_A__as_core::ops::drop::Drop_::drop::he7d5ccf21c84b083
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [rsp + 0x100]
movups xmmword [rcx], xmm0
mov al, byte [rsp + 0x27]
mov byte [rdi + 0x88], al
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 8
mov rdx, rdi
jmp 0x140040ab7
mov ecx, 4
mov edx, 0x50
call sym.alloc::alloc::handle_alloc_error::h5459b1f9ef419134
ud2