Function at 0x140019320
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
push rdi
push r13
lea rbp, [rsp - 0x98]
sub rsp, 0x198
mov rax, qword [0x14005b0e8]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rax, qword [0x1417bba30]
cmp dword [rax + 0x3c], 0
mov r13, qword [rax + 0x1c8]
mov rdi, qword [rax + 0x1d0]
je 0x140019374
lea rdx, str.CPUID
lea rcx, str._DBG__ALLOC___s__n
call fcn.140001010
mov edx, 0x2e
lea ecx, [rdx - 0x2d]
call qword [sym.imp.msvcrt.dll_calloc]
mov rsi, rax
test rax, rax
je 0x140019a95
mov qword [rsp + 0x1c0], rbx
mov edx, 8
mov qword [rsp + 0x1c8], r12
mov qword [rsp + 0x1d0], r14
mov qword [rsp + 0x190], r15
lea ecx, [rdx - 7]
call qword [sym.imp.msvcrt.dll_calloc]
mov edx, 8
mov qword [rsi + 0x18], rax
lea ecx, [rdx - 7]
call qword [sym.imp.msvcrt.dll_calloc]
lea rcx, [rsi + 0x28]
mov edx, 6
lea r8, str.CPUID
mov qword [rsi + 8], rax
mov qword [rsi], rcx
call fcn.140031cc0
mov rcx, qword [0x1417bba30]
xor ebx, ebx
mov dword [rsi + 0x20], ebx
lea r12, [rbx - 1]
cmp dword [rcx + 8], ebx
je 0x1400194a2
mov r15, qword [rcx + 0x220]
mov r14d, ebx
mov rax, qword [r15 + 0x18]
cmp qword [rax], rbx
je 0x14001942c
nop word [rax + rax]
inc r14d
lea rax, [rax + 8]
cmp qword [rax], rbx
jne 0x140019420
cmp dword [rcx + 0x3c], ebx
je 0x140019443
mov r8, qword [rsi]
lea rcx, str._DBG__APPEND___s_______s__n
mov rdx, qword [r15]
call fcn.140001010
movsxd r14, r14d
mov edx, 8
lea rcx, [r14 + 1]
add rcx, 1
cmovb rcx, r12
call qword [sym.imp.msvcrt.dll_calloc]
mov r12, rax
test rax, rax
je 0x140019aa7
test r14, r14
jle 0x140019485
mov rdx, rbx
mov rax, qword [r15 + 0x18]
mov rcx, qword [rax + rdx*8]
mov qword [r12 + rdx*8], rcx
inc rdx
cmp rdx, r14
jl 0x140019471
mov qword [r12 + r14*8], rsi
mov rcx, qword [r15 + 0x18]
call qword [sym.imp.msvcrt.dll_free]
mov qword [r15 + 0x18], r12
mov r12, 0xffffffffffffffff
mov qword [rsi + 0x10], r15
cmp byte [rdi], bl
jbe 0x1400194b2
mov rcx, qword [rdi + 8]
call qword [sym.imp.msvcrt.dll_free]
mov byte [rdi], bl
cmp word [r13 + 2], bx
jbe 0x1400194c8
mov rcx, qword [r13 + 8]
call qword [sym.imp.msvcrt.dll_free]
mov word [r13 + 2], bx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [rsp + 0x50]
lea r9, [0x14003ef40]
mov r8d, 0x200
mov dword [rsp + 0x20], eax
lea rdx, str.Total_CPUs
mov rcx, rsi
call fcn.140011be0
mov rcx, r13
call fcn.140020660
test eax, eax
jns 0x1400195e8
mov r15, qword [0x1417bba30]
mov rbx, qword [r15 + 0x240]
test rbx, rbx
jne 0x140019562
mov ecx, 0x1a
lea edx, [rbx + 1]
add ecx, 2
call qword [sym.imp.msvcrt.dll_calloc]
mov qword [r15 + 0x240], rax
test rax, rax
je 0x140019ab9
movups xmm0, xmmword [str.Cannot_obtain_raw_CPU_data]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140040ec8]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x140040ed0]
mov word [rax + 0x18], cx
jmp 0x140019a56
mov edx, 1
lea eax, [rdx - 1]
cmp byte [rax + rbx], 0
jne 0x140019578
mov edi, edx
cmp byte [rdi + rbx], 0
je 0x14001957c
inc edx
jmp 0x140019567
lea ecx, [rdx + 0x1a]
mov edx, 1
add ecx, 2
cmovb rcx, r12
call qword [sym.imp.msvcrt.dll_calloc]
mov r14, rax
test rax, rax
je 0x140019ab9
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
movups xmm0, xmmword [str.Cannot_obtain_raw_CPU_data]
mov rcx, rbx
movups xmmword [rdi + r14], xmm0
movsd xmm0, qword [0x140040ec8]
movsd qword [rdi + r14 + 0x10], xmm0
movzx eax, word [0x140040ed0]
mov word [rdi + r14 + 0x18], ax
call qword [sym.imp.msvcrt.dll_free]
mov qword [r15 + 0x240], r14
jmp 0x140019a56
mov rdx, rdi
mov rcx, r13
call fcn.140020bb0
test eax, eax
jns 0x140019847
mov ecx, dword [0x1417fde28]
lea rax, str.No_error
mov qword [rsp + 0x68], rax
lea rax, str.CPUID_instruction_is_not_supported
mov qword [rsp + 0x78], rax
lea rax, str.RDTSC_instruction_is_not_supported
mov qword [rbp - 0x78], rax
lea rax, str.Memory_allocation_failed
mov qword [rbp - 0x68], rax
lea rax, str.File_open_operation_failed
mov qword [rbp - 0x58], rax
lea rax, str.Bad_file_format
mov qword [rbp - 0x48], rax
lea rax, str.Not_implemented
mov qword [rbp - 0x38], rax
lea rax, str.Unsupported_processor
mov qword [rbp - 0x28], rax
lea rax, str.RDMSR_instruction_is_not_supported
mov qword [rbp - 0x18], rax
lea rax, str.RDMSR_driver_error__generic_
mov qword [rbp - 8], rax
lea rax, str.No_permissions_to_install_RDMSR_driver
mov qword [rbp + 8], rax
lea rax, str.Cannot_extract_RDMSR_driver__read_only_media__
mov qword [rbp + 0x18], rax
lea rax, str.Bad_handle
mov qword [rbp + 0x28], rax
lea rax, str.Invalid_MSR
mov qword [rbp + 0x38], rax
lea rax, str.Invalid_core_number
mov qword [rbp + 0x48], rax
lea rax, str.Error_on_handle_read
mov qword [rbp + 0x58], rax
lea rax, str.Invalid_given_range
mov qword [rbp + 0x68], rax
lea rax, str.Requested_type_not_found
mov qword [rbp + 0x78], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x70], r12d
mov dword [rbp - 0x80], 0xfffffffe
mov dword [rbp - 0x70], 0xfffffffd
mov dword [rbp - 0x60], 0xfffffffc
mov dword [rbp - 0x50], 0xfffffffb
mov dword [rbp - 0x40], 0xfffffffa
mov dword [rbp - 0x30], 0xfffffff9
mov dword [rbp - 0x20], 0xfffffff8
mov dword [rbp - 0x10], 0xfffffff7
mov dword [rbp], 0xfffffff6
mov dword [rbp + 0x10], 0xfffffff5
mov dword [rbp + 0x20], 0xfffffff4
mov dword [rbp + 0x30], 0xfffffff3
mov dword [rbp + 0x40], 0xfffffff2
mov dword [rbp + 0x50], 0xfffffff1
mov dword [rbp + 0x60], 0xfffffff0
mov dword [rbp + 0x70], 0xffffffef
cmp ecx, dword [rax]
je 0x14001976d
inc ebx
add rax, 0x10
cmp ebx, 0x12
jb 0x140019747
mov r13, qword [0x1417bba30]
lea r15, str.Unknown_error
add r13, 0x240
jmp 0x14001978e
mov r13, qword [0x1417bba30]
mov eax, ebx
add r13, 0x240
add rax, rax
mov r15, qword [rsp + rax*8 + 0x68]
test r15, r15
je 0x140019a56
mov rbx, r12
inc rbx
cmp byte [r15 + rbx], 0
jne 0x140019791
mov rdi, qword [r13]
test rdi, rdi
jne 0x1400197d6
mov ecx, ebx
lea edx, [rdi + 1]
add ecx, 2
cmovb rcx, r12
call qword [sym.imp.msvcrt.dll_calloc]
mov qword [r13], rax
test rax, rax
je 0x140019ab9
mov r8d, ebx
mov rdx, r15
mov rcx, rax
call sub.msvcrt.dll_memcpy
jmp 0x140019a56
mov edx, 1
nop dword [rax + rax]
lea eax, [rdx - 1]
cmp byte [rax + rdi], 0
jne 0x1400197f3
mov r14d, edx
cmp byte [r14 + rdi], 0
je 0x1400197f7
inc edx
jmp 0x1400197e0
lea ecx, [rbx + rdx]
mov edx, 1
add ecx, 2
cmovb rcx, r12
call qword [sym.imp.msvcrt.dll_calloc]
mov r12, rax
test rax, rax
je 0x140019ab9
mov r8, r14
mov rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r8d, ebx
lea rcx, [r14 + r12]
mov rdx, r15
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov qword [r13], r12
jmp 0x140019a56
mov rbx, qword [rdi + 8]
movsxd rax, dword [rbx + 0x21ec]
cmp eax, 0xa
ja case.default.0x140019868
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x19acc]
add rcx, rdx
jmp rcx
lea r8, str.Project_ACRN
jmp 0x1400198cb
lea r8, str.FreeBSD_bhyve
jmp 0x1400198cb
lea r8, str.Microsoft_Hyper_V
jmp 0x1400198cb
lea r8, [0x140040ca4]
jmp 0x1400198cb
lea r8, str.Parallels
jmp 0x1400198cb
lea r8, str.QEMU
jmp 0x1400198cb
lea r8, str.QNX_Hypervisor
jmp 0x1400198cb
lea r8, str.VirtualBox
jmp 0x1400198cb
lea r8, str.VMware
jmp 0x1400198cb
lea r8, [0x140040ce4]
jmp 0x1400198cb
lea r8, str.Unknown
xor r9d, r9d
lea rdx, str.Hypervisor
mov rcx, rsi
call fcn.1400118b0
lea r8, [rbx + 0x21dc]
xor r9d, r9d
lea rdx, str.Hypervisor_Signature
mov rcx, rsi
call fcn.1400118b0
movzx eax, byte [rdi]
lea r9, [0x14003a664]
mov r8d, 0x200
mov dword [rsp + 0x20], eax
lea rdx, str.Processor_Count
mov rcx, rsi
call fcn.140011be0
mov eax, dword [rdi + 0x10]
test eax, eax
js 0x140019940
lea r9, [0x14003ef40]
mov dword [rsp + 0x20], eax
mov r8d, 0x200
lea rdx, str.L1_Data_Cache_Instances
mov rcx, rsi
call fcn.140011be0
mov eax, dword [rdi + 0x14]
test eax, eax
js 0x140019967
lea r9, [0x14003ef40]
mov dword [rsp + 0x20], eax
mov r8d, 0x200
lea rdx, str.L1_Instruction_Cache_Instances
mov rcx, rsi
call fcn.140011be0
mov eax, dword [rdi + 0x18]
test eax, eax
js 0x14001998e
lea r9, [0x14003ef40]
mov dword [rsp + 0x20], eax
mov r8d, 0x200
lea rdx, str.L2_Cache_Instances
mov rcx, rsi
call fcn.140011be0
mov eax, dword [rdi + 0x1c]
test eax, eax
js 0x1400199b5
lea r9, [0x14003ef40]
mov dword [rsp + 0x20], eax
mov r8d, 0x200
lea rdx, str.L3_Cache_Instances
mov rcx, rsi
call fcn.140011be0
mov eax, dword [rdi + 0x20]
test eax, eax
js 0x1400199dc
lea r9, [0x14003ef40]
mov dword [rsp + 0x20], eax
mov r8d, 0x200
lea rdx, str.L4_Cache_Instances
mov rcx, rsi
call fcn.140011be0
call fcn.140021e70
lea r9, [0x14003ef40]
mov dword [rsp + 0x20], eax
mov r8d, 0x200
lea rdx, str.CPU_Clock__MHz_
mov rcx, rsi
call fcn.140011be0
xor bl, bl
cmp byte [rdi], bl
jbe 0x140019a56
nop word [rax + rax]
movzx r9d, bl
lea r8, str.CPU_u
mov edx, 0x20
lea rcx, [rsp + 0x30]
call fcn.1400022d0
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400117b0
movzx ecx, bl
imul rdx, rcx, 0x21f0
mov rcx, rax
add rdx, qword [rdi + 8]
call fcn.140018e10
inc bl
cmp bl, byte [rdi]
jb 0x140019a10
mov r14, qword [rsp + 0x1d0]
mov rax, rsi
mov r12, qword [rsp + 0x1c8]
mov rbx, qword [rsp + 0x1c0]
mov r15, qword [rsp + 0x190]
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140029990
add rsp, 0x198
pop r13
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Failed_to_allocate_memory_in_NWL_NodeAlloc
mov ecx, 0xe
call fcn.140001650
int3
lea rdx, str.Failed_to_allocate_memory_in_NWL_NodeAppendChild
mov ecx, 0xe
call fcn.140001650
int3
lea rdx, str.Failed_to_allocate_memory_in_NWL_NodeAppendMultiSz
mov ecx, 0xe
call fcn.140001650
int3