Function at 0x1402a36da
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, 0x1e8
cmp qword [rcx + 0x80], 0
jne 0x1402a3e31
mov ebx, edx
mov rsi, rcx
vxorps xmm0, xmm0, xmm0
lea rcx, [rsp + 0x1b0]
vmovups ymmword [rcx + 0x10], ymm0
vmovups ymmword [rcx], ymm0
vzeroupper
call sub.KERNEL32.dll_GetSystemInfo
xor edi, edi
mov eax, 0x80000000
xor ecx, ecx
mov r8, rbx
cpuid
xchg rbx, r8
cmp eax, 0x80000004
mov byte [rsp + 0x2f], bl
mov qword [rsp + 0x50], rsi
jb 0x1402a37f2
mov dword [rsp + 0x30], eax
mov ecx, 4
mov edx, 0x50
call fcn.1400adeb4
test rax, rax
je 0x1402a3e4f
mov r8, rax
lea rax, [rsp + 0x38]
mov qword [rax], r8
mov qword [rax + 8], 5
mov eax, 0x80000000
xor r14d, r14d
xor r13d, r13d
mov r9d, dword [rsp + 0x30]
mov qword [rsp + 0x48], r14
test r13b, 1
jne 0x1402a3803
cmp eax, r9d
ja 0x1402a3803
setae r13b
mov ebx, eax
adc ebx, 0
xor ecx, ecx
mov rsi, rbx
cpuid
xchg rbx, rsi
mov r15d, ecx
mov ebp, edx
mov r12d, eax
cmp r14, qword [rsp + 0x40]
jne 0x1402a37cf
lea rcx, [rsp + 0x38]
mov rdx, r14
call fcn.1402a1287
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov r14, qword [rsp + 0x48]
shl r14, 4
mov dword [r8 + r14], r12d
mov dword [r8 + r14 + 4], esi
mov dword [r8 + r14 + 8], r15d
mov dword [r8 + r14 + 0xc], ebp
mov r14, qword [rsp + 0x48]
inc r14
mov eax, ebx
jmp 0x1402a3781
mov r15d, 1
xor r12d, r12d
xor r14d, r14d
jmp 0x1402a3970
xor r12d, r12d
mov ecx, 0x30
xor edx, edx
call fcn.14012debe
lea r15, [rsp + 0xb8]
mov qword [r15], rax
mov qword [r15 + 8], rdx
and qword [r15 + 0x10], 0
mov rbx, qword [rsp + 0x38]
shl r14, 4
add r14, rbx
mov eax, 2
mov esi, 5
test r12b, 1
je 0x1402a3851
test rsi, rsi
je 0x1402a38ae
cmp rbx, r14
je 0x1402a38ae
dec rsi
jmp 0x1402a3875
cmp rsi, rax
jbe 0x1402a38ae
mov rcx, r14
sub rcx, rbx
shr rcx, 4
cmp rcx, rax
jbe 0x1402a38ae
mov rcx, rax
not rcx
add rsi, rcx
shl rax, 4
add rbx, rax
lea r13, [rbx + 0x10]
mov edx, dword [rbx]
mov rcx, r15
call fcn.1402a3e60
mov edx, dword [rbx + 4]
mov rcx, r15
call fcn.1402a3e60
mov edx, dword [rbx + 8]
mov rcx, r15
call fcn.1402a3e60
mov edx, dword [rbx + 0xc]
mov rcx, r15
call fcn.1402a3e60
mov r12b, 1
mov rbx, r13
xor eax, eax
jmp 0x1402a383c
mov rsi, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xc8]
xor r8d, r8d
cmp rdx, r8
je 0x1402a38d2
cmp byte [rsi + r8], 0
je 0x1402a38d5
inc r8
jmp 0x1402a38c1
mov r8, rdx
lea r9, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.10_src_windows_cpu.rsTotal_CPUIntel_x86MIPSRISC_AlphaPPCSHXARMIntel_Itanium_based_x64RISC_Alpha_x64MSIL_Intel_or_AMD__x64Intel_Itanium_based_x86ARM_x64
mov rcx, rsi
call fcn.1402a3ea5
mov r8, rdx
lea rbx, [rsp + 0x70]
mov rcx, rbx
mov rdx, rax
call fcn.1400b8a10
cmp qword [rbx], 0
je 0x1402a390b
mov r15d, 1
xor r12d, r12d
xor r14d, r14d
jmp 0x1402a393e
mov rsi, qword [rsp + 0x78]
mov r14, qword [rsp + 0x80]
mov rcx, r14
xor edx, edx
call fcn.14012debe
mov r15, rax
mov r12, rdx
mov rcx, rax
mov rdx, rsi
mov r8, r14
call sub.msvcrt.dll_memcpy
mov rsi, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xc0]
mov rcx, rsi
call fcn.1400d33bf
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x1402a396b
shl r8, 4
mov rcx, qword [rsp + 0x38]
mov edx, 4
call fcn.140031eef
mov rsi, qword [rsp + 0x50]
lea rax, [rsi + 0x70]
mov qword [rsp + 0xe8], rax
xor ecx, ecx
xor eax, eax
mov rsi, rbx
cpuid
xchg rbx, rsi
mov ebx, edx
mov ebp, ecx
mov ecx, 0xc
xor edx, edx
call fcn.14012debe
lea r13, [rsp + 0xb8]
mov qword [r13], rax
mov qword [r13 + 8], rdx
and qword [r13 + 0x10], 0
mov rcx, r13
mov edx, esi
call fcn.1402a3e60
mov rcx, r13
mov edx, ebx
call fcn.1402a3e60
mov rcx, r13
mov edx, ebp
call fcn.1402a3e60
mov rcx, qword [r13]
mov rdx, qword [r13 + 0x10]
cmp rdx, rdi
je 0x1402a39e3
cmp byte [rcx + rdi], 0
je 0x1402a39e6
inc rdi
jmp 0x1402a39d3
mov rdi, rdx
lea r9, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.10_src_windows_cpu.rsTotal_CPUIntel_x86MIPSRISC_AlphaPPCSHXARMIntel_Itanium_based_x64RISC_Alpha_x64MSIL_Intel_or_AMD__x64Intel_Itanium_based_x86ARM_x64
mov r8, rdi
call fcn.1402a3ea5
mov r8, rdx
lea rsi, [rsp + 0x70]
mov rcx, rsi
mov rdx, rax
call fcn.1400b8a10
cmp qword [rsi], 0
je 0x1402a3a35
movsx rax, word [rsp + 0x1b0]
cmp rax, 0xe
ja 0x1402a3a44
lea rcx, [0x140605b28]
mov rsi, qword [rcx + rax*8]
lea rcx, str.8_v_
mov r13, qword [rcx + rax*8]
jmp 0x1402a3a50
mov r13, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
jmp 0x1402a3a50
lea r13, [0x140600eeb]
mov esi, 7
mov rcx, rsi
xor edx, edx
call fcn.14012debe
mov rdi, rax
mov rbx, rdx
mov rcx, rax
mov rdx, r13
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xc0]
call fcn.1400d33bf
mov qword [rsp + 0xf0], rdi
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0x108], r15
mov qword [rsp + 0x110], r12
mov qword [rsp + 0x118], r14
mov r14d, dword [rsp + 0x1d0]
cmp byte [rsp + 0x2f], 0
je 0x1402a3ae3
lea rbx, [rsp + 0x120]
mov rcx, rbx
mov rdx, r14
call fcn.1402a3ec6
mov rax, qword [rbx]
mov qword [rsp + 0x30], rax
mov rsi, qword [rbx + 0x10]
jmp 0x1402a3b0d
mov rcx, r14
mov dl, 1
call fcn.1402a0884
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x128], rdx
mov qword [rsp + 0x130], r14
mov rsi, r14
inc r14
imul rbx, r14, 0x70
mov ecx, 8
mov rdx, rbx
call fcn.1400adeb4
test rax, rax
je 0x1402a3e45
mov r15, rax
lea rax, [rsp + 0x58]
mov qword [rax], r15
mov qword [rax + 8], r14
and qword [rax + 0x10], 0
lea rbx, [rsp + 0x88]
shl rsi, 3
xor r14d, r14d
lea r12, [rsp + 0x38]
lea rbp, [rsp + 0xb8]
mov edi, 1
test rsi, rsi
je 0x1402a3cbc
mov qword [rsp + 0x138], rdi
lea rax, str.CPU
mov qword [rsp + 0xb8], rax
mov eax, 1
mov qword [rsp + 0xc0], rax
and qword [rsp + 0xd8], 0
lea rcx, [rsp + 0x138]
mov qword [rsp + 0x38], rcx
lea rcx, [fcn.1400b2fb0]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0x198]
mov rdx, rbp
vzeroupper
call fcn.14029ec67
mov rcx, r12
lea rdx, [rsp + 0xf0]
call fcn.1400aad50
mov rcx, rbp
lea rdx, [rsp + 0x108]
call fcn.1400aad50
mov rax, qword [rsp + 0x30]
mov r13, qword [rax + rdi*8 - 8]
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x80], rax
vmovups xmm0, xmmword [rsp + 0x198]
vmovaps xmmword [rsp + 0x70], xmm0
mov rax, qword [rsp + 0x48]
mov qword [rbx + 0x10], rax
vmovups xmm0, xmmword [rsp + 0x38]
vmovups xmmword [rbx], xmm0
mov rax, qword [rsp + 0xc8]
mov qword [rbx + 0x28], rax
vmovups xmm0, xmmword [rsp + 0xb8]
vmovups xmmword [rbx + 0x18], xmm0
cmp r14, qword [rsp + 0x60]
jne 0x1402a3c65
lea rcx, [rsp + 0x58]
mov rdx, r14
call fcn.14002b47e
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x68]
imul rax, r14, 0x70
mov rcx, qword [rsp + 0xb0]
mov qword [r15 + rax + 0x40], rcx
vmovups ymm0, ymmword [rsp + 0x70]
vmovups ymm1, ymmword [rsp + 0x90]
vmovups ymmword [r15 + rax + 0x20], ymm1
vmovups ymmword [r15 + rax], ymm0
and qword [r15 + rax + 0x48], 0
mov qword [r15 + rax + 0x60], r13
and dword [r15 + rax + 0x68], 0
mov r14, qword [rsp + 0x68]
inc r14
mov qword [rsp + 0x68], r14
inc rdi
add rsi, 0xfffffffffffffff8
jmp 0x1402a3b5f
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x80], rax
vmovups xmm0, xmmword [rsp + 0x58]
vmovaps xmmword [rsp + 0x70], xmm0
vmovups xmm0, xmmword [rsp + 0xf0]
vmovups xmmword [rsp + 0x88], xmm0
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x98], rax
vmovups xmm0, xmmword [rsp + 0x108]
vmovaps xmmword [rsp + 0xa0], xmm0
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0x120]
mov rdx, qword [rsp + 0x128]
vzeroupper
call fcn.1400c514e
vmovaps xmm0, xmmword [rsp + 0x70]
vmovaps xmmword [rsp + 0x140], xmm0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x150], rax
vmovups xmm0, xmmword [rsp + 0x88]
vmovaps xmmword [rsp + 0x160], xmm0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x170], rax
vmovaps xmm0, xmmword [rsp + 0xa0]
vmovaps xmmword [rsp + 0x180], xmm0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x190], rax
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rdi + 0x70]
mov rdx, qword [rdi + 0x80]
mov rcx, rsi
call fcn.1402a137c
mov rdx, qword [rdi + 0x78]
mov rcx, rsi
call fcn.140026084
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0xe8]
mov qword [rcx + 0x10], rax
vmovaps xmm0, xmmword [rsp + 0x140]
vmovups xmmword [rcx], xmm0
mov rcx, qword [rdi + 0x18]
mov rdx, qword [rdi + 0x20]
call fcn.1400d33bf
mov rax, qword [rsp + 0x170]
mov qword [rdi + 0x28], rax
vmovaps xmm0, xmmword [rsp + 0x160]
vmovups xmmword [rdi + 0x18], xmm0
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x38]
call fcn.1400d33bf
mov rax, qword [rsp + 0x190]
mov qword [rdi + 0x40], rax
vmovaps xmm0, xmmword [rsp + 0x180]
vmovups xmmword [rdi + 0x30], xmm0
mov al, byte [rsp + 0x2f]
mov byte [rdi + 0x88], al
add rsp, 0x1e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 8
mov rdx, rbx
jmp 0x1402a3e59
mov ecx, 4
mov edx, 0x50
call fcn.1400a9a20
ud2