Function at 0x140120376
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x160], 0xfffffffffffffffe
cmp qword [rcx + 0x80], 0
jne 0x1401209fe
mov r14d, edx
mov r15, rcx
xorps xmm0, xmm0
lea rcx, [rbp - 0x60]
movaps xmmword [rcx + 0x20], xmm0
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, 0x80000000
xor ecx, ecx
mov r8, rbx
cpuid
xchg rbx, r8
mov dword [rbp + 0x110], eax
cmp eax, 0x80000003
mov byte [rbp + 0x15f], r14b
mov qword [rbp + 0xc0], r15
jbe 0x14012049b
push 4
pop rcx
push 0x50
pop rdx
call fcn.140054824
test rax, rax
je 0x140120a1f
mov r8, rax
lea rax, [rbp + 0x140]
mov qword [rax], 5
mov qword [rax + 8], r8
mov eax, 0x80000000
xor r12d, r12d
xor r13d, r13d
mov qword [rbp + 0x150], r12
test r13b, 1
jne 0x1401204bb
cmp eax, dword [rbp + 0x110]
ja 0x1401204bb
setae r13b
mov edi, eax
adc edi, 0
xor ecx, ecx
mov rsi, rbx
cpuid
xchg rbx, rsi
mov ebx, ecx
mov r14d, edx
mov r15d, eax
cmp r12, qword [rbp + 0x140]
jne 0x14012047a
lea rcx, [rbp + 0x140]
call fcn.14011df78
mov r8, qword [rbp + 0x148]
mov rax, r12
shl rax, 4
mov dword [r8 + rax], r15d
mov dword [r8 + rax + 4], esi
mov dword [r8 + rax + 8], ebx
mov dword [r8 + rax + 0xc], r14d
inc r12
mov eax, edi
jmp 0x14012042a
and qword [rbp + 0x128], 0
mov qword [rbp + 0x130], 1
and qword [rbp + 0x138], 0
jmp 0x140120607
lea rcx, [rbp + 0xc8]
push 0x30
pop rdx
call fcn.140120333
mov rdi, qword [rbp + 0x148]
shl r12, 4
add r12, rdi
push 2
pop rax
push 5
pop rbx
xor r15d, r15d
lea rsi, [rbp + 0xc8]
mov r14, rdi
test r15b, 1
je 0x140120500
test rbx, rbx
je 0x14012055e
cmp r14, r12
je 0x14012055e
dec rbx
jmp 0x140120524
cmp rbx, rax
jbe 0x14012055e
mov rcx, r12
sub rcx, r14
shr rcx, 4
cmp rcx, rax
jbe 0x14012055e
mov rcx, rax
not rcx
add rbx, rcx
shl rax, 4
add r14, rax
mov edx, dword [r14]
mov rcx, rsi
call fcn.140120d24
mov edx, dword [r14 + 4]
mov rcx, rsi
call fcn.140120d24
mov edx, dword [r14 + 8]
mov rcx, rsi
call fcn.140120d24
mov edx, dword [r14 + 0xc]
add r14, 0x10
mov r15b, 1
mov rcx, rsi
call fcn.140120d24
xor eax, eax
jmp 0x1401204eb
mov rsi, qword [rbp + 0xd0]
mov rdx, qword [rbp + 0xd8]
xor r8d, r8d
cmp rdx, r8
je 0x140120580
cmp byte [rsi + r8], 0
je 0x140120583
inc r8
jmp 0x14012056f
mov r8, rdx
lea r9, str.C:UsersJOHN_PC.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.26.9_srcwindowscpu.rsTotal_CPUIntel_x86MIPSRISC_AlphaPPCSHXARMIntel_Itanium_based_x64RISC_Alpha_x64MSIL_Intel_or_AMD__x64Intel_Itanium_based_x86unknownARM_x64
mov rcx, rsi
call fcn.140120d69
mov r8, rdx
lea rbx, [rbp - 0x28]
mov rcx, rbx
mov rdx, rax
call fcn.140057d40
cmp qword [rbx], 0
je 0x1401205c7
and qword [rbp + 0x128], 0
mov qword [rbp + 0x130], 1
and qword [rbp + 0x138], 0
jmp 0x1401205db
mov rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
lea rcx, [rbp + 0x128]
call fcn.140116eca
mov rcx, qword [rbp + 0xc8]
mov rdx, rsi
call fcn.14008660c
mov rcx, qword [rbp + 0x140]
mov rdx, rdi
call fcn.14011e4f4
mov r14b, byte [rbp + 0x15f]
mov r15, qword [rbp + 0xc0]
xor eax, eax
xor ecx, ecx
mov rbx, rbx
cpuid
xchg rbx, rbx
mov edi, edx
mov esi, ecx
lea rcx, [rbp + 0x140]
push 0xc
pop rdx
call fcn.140120333
lea rcx, [rbp + 0x140]
mov edx, ebx
call fcn.140120d24
lea rcx, [rbp + 0x140]
mov edx, edi
call fcn.140120d24
lea rcx, [rbp + 0x140]
mov edx, esi
call fcn.140120d24
lea rbx, [r15 + 0x70]
mov rsi, qword [rbp + 0x148]
mov rdx, qword [rbp + 0x150]
xor r8d, r8d
cmp rdx, r8
je 0x140120676
cmp byte [rsi + r8], 0
je 0x140120679
inc r8
jmp 0x140120665
mov r8, rdx
lea r9, str.C:UsersJOHN_PC.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.26.9_srcwindowscpu.rsTotal_CPUIntel_x86MIPSRISC_AlphaPPCSHXARMIntel_Itanium_based_x64RISC_Alpha_x64MSIL_Intel_or_AMD__x64Intel_Itanium_based_x86unknownARM_x64
mov rcx, rsi
call fcn.140120d69
mov r8, rdx
lea rdi, [rbp - 0x28]
mov rcx, rdi
mov rdx, rax
call fcn.140057d40
cmp qword [rdi], 0
je 0x1401206c8
movzx eax, word [rbp - 0x60]
cmp rax, 0xe
ja 0x1401206de
lea rcx, [0x1402a56f0]
mov r8, qword [rcx + rax*8]
movzx eax, ax
lea rcx, [0x1402a5768]
movsxd rdx, dword [rcx + rax*4]
add rdx, rcx
jmp 0x1401206e9
mov rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
lea rcx, [rbp + 0xc8]
call fcn.140116eca
jmp 0x1401206f5
lea rdx, [0x1402a516e]
push 7
pop r8
lea rcx, [rbp + 0xc8]
call fcn.140116eca
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x100], rax
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0xd8]
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x120], rax
mov rax, qword [rbp + 0x138]
mov qword [rbp + 0xb8], rax
mov rcx, qword [rbp + 0x140]
mov rdx, rsi
call fcn.14008660c
mov esi, dword [rbp - 0x40]
test r14b, r14b
je 0x140120771
lea rcx, [rbp + 0x90]
mov rdx, rsi
call fcn.140120d89
jmp 0x140120780
lea rcx, [rbp + 0x90]
mov rdx, rsi
call fcn.14011de4e
mov qword [rbp + 0xf8], rbx
inc rsi
imul rbx, rsi, 0x70
push 8
pop rcx
mov rdx, rbx
call fcn.140054824
test rax, rax
je 0x140120a12
mov r12, rax
lea rax, [rbp + 0x128]
mov qword [rax], rsi
mov qword [rax + 8], r12
and qword [rax + 0x10], 0
mov r15, qword [rbp + 0x98]
mov rax, qword [rbp + 0xa0]
lea rax, [r15 + rax*8]
mov qword [rbp + 0x60], rax
xor edi, edi
lea rsi, [rbp + 0x140]
mov qword [rbp + 0x68], r15
xor r14d, r14d
cmp r15, qword [rbp + 0x60]
je 0x140120941
inc r14
mov qword [rbp + 0x58], r14
lea rax, str.CPU
mov qword [rbp + 0xc8], rax
push 1
pop rdx
mov qword [rbp + 0xd0], rdx
and qword [rbp + 0xe8], 0
lea rax, [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea rax, [fcn.140055b10]
mov qword [rbp + 0x50], rax
lea rax, [rbp + 0x48]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], rdx
mov rcx, rsi
lea rdx, [rbp + 0xc8]
call fcn.140116e85
mov rax, qword [rbp + 0x140]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x110], rax
mov rbx, qword [rbp + 0x150]
mov r13, rsi
mov rcx, rsi
mov rdx, qword [rbp + 0x118]
mov r8, qword [rbp + 0xb0]
call fcn.1400535e0
lea rcx, [rbp + 0xc8]
mov rdx, qword [rbp + 0x120]
mov r8, qword [rbp + 0xb8]
call fcn.1400535e0
mov rax, qword [r15]
mov rcx, qword [rbp + 0xa8]
mov qword [rbp - 0x28], rcx
mov rcx, qword [rbp + 0x110]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rbx
and dword [rbp + 0x40], 0
movabs rcx, 0x8000000000000000
mov qword [rbp + 0x20], rcx
mov rcx, qword [rbp + 0x150]
lea rdx, [rbp - 0x10]
mov qword [rdx + 0x10], rcx
movups xmm0, xmmword [rbp + 0x140]
movups xmmword [rdx], xmm0
mov rcx, qword [rbp + 0xd8]
mov qword [rdx + 0x28], rcx
movups xmm0, xmmword [rbp + 0xc8]
movups xmmword [rdx + 0x18], xmm0
mov qword [rbp + 0x38], rax
cmp rdi, qword [rbp + 0x128]
jne 0x140120917
lea rcx, [rbp + 0x128]
call fcn.14011e01d
mov r12, qword [rbp + 0x130]
add r15, 8
imul rcx, rdi, 0x70
add rcx, r12
lea rdx, [rbp - 0x28]
push 0x70
pop r8
call sub.VCRUNTIME140.dll_memmove
inc rdi
mov qword [rbp + 0x138], rdi
mov rsi, r13
jmp 0x1401207de
mov rax, qword [rbp + 0x138]
mov qword [rbp + 0x80], rax
movups xmm0, xmmword [rbp + 0x128]
movaps xmmword [rbp + 0x70], xmm0
mov rcx, qword [rbp + 0x90]
mov rdx, qword [rbp + 0x68]
call fcn.1400fdf96
mov rcx, qword [rbp + 0xf8]
call fcn.14000969e
mov rax, qword [rbp + 0x80]
mov rcx, qword [rbp + 0xf8]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [rbp + 0x70]
movups xmmword [rcx], xmm0
mov rsi, qword [rbp + 0xc0]
mov rcx, qword [rsi + 0x18]
mov rdx, qword [rsi + 0x20]
call fcn.14008660c
mov rax, qword [rbp + 0x100]
mov qword [rsi + 0x18], rax
mov rax, qword [rbp + 0x118]
mov qword [rsi + 0x20], rax
mov rax, qword [rbp + 0xb0]
mov qword [rsi + 0x28], rax
mov rcx, qword [rsi + 0x30]
mov rdx, qword [rsi + 0x38]
call fcn.14008660c
mov rax, qword [rbp + 0x108]
mov qword [rsi + 0x30], rax
mov rax, qword [rbp + 0x120]
mov qword [rsi + 0x38], rax
mov rax, qword [rbp + 0xb8]
mov qword [rsi + 0x40], rax
mov al, byte [rbp + 0x15f]
mov byte [rsi + 0x88], al
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
push 8
pop rcx
mov rdx, rbx
call fcn.1402567b0
ud2
push 4
pop rcx
push 0x50
pop rdx
call fcn.1402567b0
int3