Function at 0x140032d40
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, 0x158
cmp qword [rcx + 0x80], 0
jne 0x14003360f
mov r12d, edx
mov r13, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x140], xmm0
movaps xmmword [rsp + 0x130], xmm0
movaps xmmword [rsp + 0x120], xmm0
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx r15d, word [rsp + 0x120]
mov eax, 0x80000000
xor ecx, ecx
mov r8, rbx
cpuid
xchg rbx, r8
cmp eax, 0x80000004
mov byte [rsp + 0x27], r12b
mov qword [rsp + 0x100], r13
jb 0x140032f4b
mov esi, eax
mov word [rsp + 0x48], r15w
movzx eax, byte [0x14006dc58]
xor edi, edi
mov edx, 0x50
xor ecx, ecx
call fcn.14002fb40
test rax, rax
je 0x14003369d
mov r8, rax
mov qword [rsp + 0x28], 5
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov ebp, 0x80000000
mov r13d, 0x80000000
nop dword [rax + rax]
cmp ebp, esi
adc r13d, 0
xor ecx, ecx
mov eax, ebp
mov rbx, rbx
cpuid
xchg rbx, rbx
mov r15d, ecx
mov r14d, edx
mov r12d, eax
cmp rdi, qword [rsp + 0x28]
jne 0x140032e49
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.1400385f0
mov r8, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rax, rdi
shl rax, 4
inc rdi
mov dword [r8 + rax], r12d
mov dword [r8 + rax + 4], ebx
mov dword [r8 + rax + 8], r15d
mov dword [r8 + rax + 0xc], r14d
mov qword [rsp + 0x38], rdi
cmp ebp, esi
jae 0x140032e77
mov ebp, r13d
cmp r13d, esi
jbe 0x140032e10
movzx eax, byte [0x14006dc58]
mov edx, 0x30
xor ecx, ecx
call fcn.14002fb40
test rax, rax
je 0x1400336ac
mov rsi, rax
mov qword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 0
mov r15, qword [rsp + 0x30]
cmp rdi, 3
jb 0x140032f95
shl rdi, 4
add rdi, r15
mov edx, dword [r15 + 0x20]
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.140038530
mov edx, dword [r15 + 0x24]
mov rcx, rsi
call fcn.140038530
mov edx, dword [r15 + 0x28]
mov rcx, rsi
call fcn.140038530
lea rbx, [r15 + 0x2c]
xor r14d, r14d
nop word cs:[rax + rax]
mov edx, dword [rbx + r14]
mov rcx, rsi
call fcn.140038530
cmp r14, 0x20
je 0x140032f5c
lea r12, [rbx + r14]
add r12, 4
cmp r12, rdi
je 0x140032f5c
mov edx, dword [r12]
mov rcx, rsi
call fcn.140038530
mov edx, dword [r12 + 4]
mov rcx, rsi
call fcn.140038530
mov edx, dword [r12 + 8]
mov rcx, rsi
call fcn.140038530
add r14, 0x10
jmp 0x140032f00
mov eax, 1
mov qword [rsp + 0x40], rax
xor edi, edi
jmp 0x140033005
mov rsi, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140032f95
xor r8d, r8d
movzx r12d, byte [rsp + 0x27]
nop word cs:[rax + rax]
cmp byte [rsi + r8], 0
je 0x14003362e
inc r8
cmp rdx, r8
jne 0x140032f80
jmp 0x140032f9d
xor edx, edx
movzx r12d, byte [rsp + 0x27]
mov r8, rdx
lea rcx, [rsp + 0xa0]
mov rdx, rsi
call fcn.140009470
cmp qword [rsp + 0xa0], 0
je 0x1400331b5
mov eax, 1
mov qword [rsp + 0x40], rax
xor edi, edi
cmp qword [rsp + 0x50], 0
je 0x140032fe5
mov rcx, qword [0x14006dbc8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x28], 0
je 0x140032fff
mov rcx, qword [0x14006dbc8]
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
movzx r15d, word [rsp + 0x48]
xor eax, eax
xor ecx, ecx
mov rbp, rbx
cpuid
xchg rbx, rbp
mov esi, ecx
mov ebx, edx
movzx eax, byte [0x14006dc58]
mov edx, 0xc
xor ecx, ecx
call fcn.14002fb40
test rax, rax
je 0x140033681
mov qword [rsp + 0x50], 0xc
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 0
lea r14, [rsp + 0x50]
mov rcx, r14
mov edx, ebp
call fcn.140038530
mov rcx, r14
mov edx, ebx
call fcn.140038530
mov rcx, r14
mov edx, esi
call fcn.140038530
mov rsi, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x14003309c
xor ecx, ecx
nop dword [rax]
cmp byte [rsi + rcx], 0
je 0x140033090
inc rcx
cmp r8, rcx
jne 0x140033080
jmp 0x14003309c
cmp rcx, r8
ja 0x1400336bb
mov r8, rcx
lea rcx, [rsp + 0xa0]
mov rdx, rsi
call fcn.140009470
cmp qword [rsp + 0xa0], 0
je 0x1400330da
cmp r15w, 0xe
ja 0x140033117
movsx rax, r15w
lea rcx, [0x14005cf38]
mov r15, qword [rcx + rax*8]
lea rcx, str.Intel_x86MIPSRISC_AlphaPPCSHXARMIntel_Itanium_based_x64RISC_Alpha_x64MSIL_Intel_or_AMD__x64Intel_Itanium_based_x86unknownARM_x64C:Usersuser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.30.5_srcwindowscpu.rs
mov rbx, qword [rcx + rax*8]
jmp 0x140033124
mov rbx, qword [rsp + 0xa8]
mov r15, qword [rsp + 0xb0]
test r15, r15
je 0x140033623
js 0x14003366f
movzx eax, byte [0x14006dc58]
xor ecx, ecx
mov rdx, r15
call fcn.14002fb40
mov r14, rax
test rax, rax
jne 0x140033141
jmp 0x140033674
lea rbx, [0x14005c83a]
mov r15d, 7
movzx eax, byte [0x14006dc58]
xor ecx, ecx
mov rdx, r15
call fcn.14002fb40
test rax, rax
je 0x140033674
mov r14, rax
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.14003b0e0
cmp qword [rsp + 0x50], 0
je 0x140033169
mov rcx, qword [0x14006dbc8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [rsp + 0x140]
test r12b, r12b
je 0x14003318a
lea rcx, [rsp + 0xe8]
mov rdx, rsi
call fcn.1400386b0
jmp 0x14003321b
test esi, esi
je 0x1400331fe
lea rbx, [rsi*8]
mov ecx, 8
mov rdx, rbx
call fcn.14002fb40
test rax, rax
jne 0x140033203
mov ecx, 8
mov rdx, rbx
call fcn.140048e30
mov rbx, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
test rdi, rdi
je 0x140033649
js 0x14003366f
movzx eax, byte [0x14006dc58]
xor ecx, ecx
mov rdx, rdi
call fcn.14002fb40
mov rcx, rax
test rax, rax
jne 0x14003364e
mov ecx, 1
mov rdx, rdi
call fcn.140048e30
mov eax, 8
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rsi
mov qword [rsp + 0x48], r14
lea rbx, [rsi + 1]
imul rsi, rbx, 0x70
movzx eax, byte [0x14006dc58]
xor ecx, ecx
mov rdx, rsi
call fcn.14002fb40
test rax, rax
je 0x140033690
mov r13, rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov rbx, qword [rsp + 0xf8]
test rbx, rbx
je 0x1400334a9
mov rsi, qword [rsp + 0xf0]
shl rbx, 3
mov r12d, 1
xor ebp, ebp
jmp 0x140033310
imul rax, rbp, 0x70
mov rcx, qword [rsp + 0x90]
mov qword [r13 + rax + 0x40], rcx
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movaps xmm2, xmmword [rsp + 0x70]
movaps xmm3, xmmword [rsp + 0x80]
movups xmmword [r13 + rax + 0x30], xmm3
movups xmmword [r13 + rax + 0x20], xmm2
movups xmmword [r13 + rax + 0x10], xmm1
movups xmmword [r13 + rax], xmm0
movabs rcx, 0x8000000000000000
mov qword [r13 + rax + 0x48], rcx
movups xmm0, xmmword [rsp + 0xa0]
movups xmmword [r13 + rax + 0x50], xmm0
mov qword [r13 + rax + 0x60], r14
mov dword [r13 + rax + 0x68], 0
inc rbp
mov qword [rsp + 0x38], rbp
inc r12
add rbx, 0xfffffffffffffff8
je 0x1400334a9
mov qword [rsp + 0x108], r12
lea rax, [rsp + 0x108]
mov qword [rsp + 0x110], rax
lea rax, [fcn.140008330]
mov qword [rsp + 0x118], rax
lea rax, str.CPU
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x110]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x50]
call fcn.140007fc0
mov r14d, 1
test r15, r15
je 0x1400333ab
js 0x14003366f
movzx eax, byte [0x14006dc58]
xor ecx, ecx
mov rdx, r15
call fcn.14002fb40
mov r14, rax
test rax, rax
je 0x140033674
mov rcx, r14
mov rdx, qword [rsp + 0x48]
mov r8, r15
call fcn.14003b0e0
mov qword [rsp + 0xb8], r15
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], r15
test rdi, rdi
je 0x140033400
js 0x14003366f
movzx eax, byte [0x14006dc58]
xor ecx, ecx
mov rdx, rdi
call fcn.14002fb40
mov r14, rax
test rax, rax
jne 0x140033406
jmp 0x1400331f1
mov r14d, 1
mov rcx, r14
mov rdx, qword [rsp + 0x40]
mov r8, rdi
call fcn.14003b0e0
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0xd8], r14
mov qword [rsp + 0xe0], rdi
mov r14, qword [rsi + r12*8 - 8]
movups xmm0, xmmword [rsp + 0xa0]
movups xmm1, xmmword [rsp + 0xb0]
movups xmm2, xmmword [rsp + 0xc0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x70], xmm2
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rdi
cmp rbp, qword [rsp + 0x28]
jne 0x140033290
lea rcx, [rsp + 0x28]
mov rdx, rbp
call fcn.140038850
mov r13, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
jmp 0x140033290
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xe8], 0
je 0x1400334f2
mov r8, qword [rsp + 0xf0]
mov rcx, qword [0x14006dbc8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
movzx ebp, byte [rsp + 0x27]
mov r12, qword [rsp + 0x100]
je 0x140033518
mov rcx, qword [0x14006dbc8]
xor edx, edx
mov r8, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r15, r15
je 0x140033531
mov rcx, qword [0x14006dbc8]
xor edx, edx
mov r8, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdi, [r12 + 0x70]
mov rsi, qword [r12 + 0x78]
mov rbx, qword [r12 + 0x80]
test rbx, rbx
je 0x1400335d8
lea r14, [rsi + 0x50]
mov r15, qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140033569
add r14, 0x70
dec rbx
je 0x1400335d8
cmp qword [r14 - 0x50], 0
je 0x140033580
mov r8, qword [r14 - 0x48]
mov rcx, qword [0x14006dbc8]
xor edx, edx
call r15
mov rax, qword [r14 - 8]
shl rax, 1
test rax, rax
jne 0x1400335c0
cmp qword [r14 - 0x38], 0
je 0x1400335a3
mov r8, qword [r14 - 0x30]
mov rcx, qword [0x14006dbc8]
xor edx, edx
call r15
cmp qword [r14 - 0x20], 0
je 0x140033560
mov r8, qword [r14 - 0x18]
mov rcx, qword [0x14006dbc8]
xor edx, edx
call r15
jmp 0x140033560
mov r8, qword [r14]
mov rcx, qword [0x14006dbc8]
xor edx, edx
call r15
cmp qword [r14 - 0x38], 0
jne 0x140033593
jmp 0x1400335a3
cmp qword [rdi], 0
je 0x1400335f0
mov rcx, qword [0x14006dbc8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0xb0]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [rsp + 0xa0]
movups xmmword [rdi], xmm0
mov byte [r12 + 0x88], bpl
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14d, 1
jmp 0x140033141
cmp r8, rdx
jbe 0x140032fa0
lea rax, [0x14005c8b0]
mov rcx, r8
mov r8, rax
call fcn.140049040
mov ecx, 1
mov qword [rsp + 0x40], rcx
mov rdx, rbx
mov r8, rdi
call fcn.14003b0e0
cmp qword [rsp + 0x50], 0
jne 0x140032fd3
jmp 0x140032fe5
call fcn.140007c50
mov ecx, 1
mov rdx, r15
call fcn.140048e30
mov ecx, 1
mov edx, 0xc
call fcn.140048e30
mov ecx, 8
mov rdx, rsi
call fcn.140048e30
mov ecx, 4
mov edx, 0x50
call fcn.140048e30
mov ecx, 1
mov edx, 0x30
call fcn.140048e30
lea rax, [0x14005c8c8]
mov rdx, r8
mov r8, rax
call fcn.140049040
int3