Function at 0x180131370
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 0x180131dc1
mov r12d, edx
mov rbx, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x140], xmm0
movaps xmmword [rsp + 0x130], xmm0
movaps xmmword [rsp + 0x120], xmm0
lea rcx, [rsp + 0x120]
call sub.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 + 0xe0], rbx
jb 0x1801315cb
mov esi, eax
movzx eax, byte [0x180247060]
mov rcx, qword [0x180246f98]
test rcx, rcx
jne 0x18013141d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x180131e53
mov rcx, rax
mov qword [0x180246f98], rax
xor edi, edi
mov r8d, 0x50
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x180131e53
mov r8, rax
mov word [rsp + 0x40], r15w
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 5
mov qword [rsp + 0x38], 0
mov ebp, 0x80000000
mov r13d, 0x80000000
nop word cs:[rax + rax]
cmp ebp, esi
adc r13d, 0
mov eax, ebp
xor ecx, ecx
mov rbx, rbx
cpuid
xchg rbx, rbx
mov r15d, ecx
mov r14d, edx
mov r12d, eax
cmp rdi, qword [rsp + 0x30]
jne 0x1801314a9
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.180135790
mov r8, qword [rsp + 0x28]
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 0x1801314d7
mov ebp, r13d
cmp r13d, esi
jbe 0x180131470
movzx eax, byte [0x180247060]
mov rcx, qword [0x180246f98]
test rcx, rcx
jne 0x180131503
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x180131e64
mov rcx, rax
mov qword [0x180246f98], rax
mov r8d, 0x30
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x180131e64
mov rsi, rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], 0
mov r15, qword [rsp + 0x28]
cmp rdi, 3
jb 0x180131605
shl rdi, 4
add rdi, r15
mov edx, dword [r15 + 0x20]
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.1801356d0
mov edx, dword [r15 + 0x24]
mov rcx, rsi
call fcn.1801356d0
mov edx, dword [r15 + 0x28]
mov rcx, rsi
call fcn.1801356d0
lea rbx, [r15 + 0x2c]
xor r14d, r14d
nop word [rax + rax]
mov edx, dword [rbx + r14]
mov rcx, rsi
call fcn.1801356d0
cmp r14, 0x20
je 0x1801315d8
lea r12, [rbx + r14]
add r12, 4
cmp r12, rdi
je 0x1801315d8
mov edx, dword [r12]
mov rcx, rsi
call fcn.1801356d0
mov edx, dword [r12 + 4]
mov rcx, rsi
call fcn.1801356d0
mov edx, dword [r12 + 8]
mov rcx, rsi
call fcn.1801356d0
add r14, 0x10
jmp 0x180131580
mov r13d, 1
xor edi, edi
jmp 0x180131671
mov rsi, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x180131605
xor r8d, r8d
movzx r12d, byte [rsp + 0x27]
cmp byte [rsi + r8], 0
je 0x180131de0
inc r8
cmp rdx, r8
jne 0x1801315f0
jmp 0x18013160d
xor edx, edx
movzx r12d, byte [rsp + 0x27]
mov r8, rdx
lea rcx, [rsp + 0x80]
mov rdx, rsi
call fcn.180029cd0
cmp qword [rsp + 0x80], 0
je 0x1801318db
mov r13d, 1
xor edi, edi
cmp qword [rsp + 0x50], 0
je 0x180131651
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x30], 0
je 0x18013166b
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
movzx r15d, word [rsp + 0x40]
xor eax, eax
xor ecx, ecx
mov rbp, rbx
cpuid
xchg rbx, rbp
mov esi, ecx
mov ebx, edx
movzx eax, byte [0x180247060]
mov rcx, qword [0x180246f98]
test rcx, rcx
jne 0x1801316ad
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x180131e33
mov rcx, rax
mov qword [0x180246f98], rax
mov r8d, 0xc
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x180131e33
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0xc
mov qword [rsp + 0x58], 0
lea r14, [rsp + 0x48]
mov rcx, r14
mov edx, ebp
call fcn.1801356d0
mov rcx, r14
mov edx, ebx
call fcn.1801356d0
mov rcx, r14
mov edx, esi
call fcn.1801356d0
mov rsi, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
test r8, r8
je 0x18013172c
xor ecx, ecx
nop
cmp byte [rsi + rcx], 0
je 0x180131720
inc rcx
cmp r8, rcx
jne 0x180131710
jmp 0x18013172c
cmp rcx, r8
ja 0x180131e75
mov r8, rcx
lea rcx, [rsp + 0x80]
mov rdx, rsi
call fcn.180029cd0
cmp qword [rsp + 0x80], 0
je 0x180131788
cmp r15w, 0xe
ja 0x1801317eb
movsx rax, r15w
lea rcx, [0x180238488]
mov r15, qword [rcx + rax*8]
lea rcx, str.Intel_x86MIPSRISC_AlphaPPCSHXARMIntel_Itanium_based_x64RISC_Alpha_x64MSIL_Intel_or_AMD__x64Intel_Itanium_based_x86ARM_x64C:UsersDadoodze.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindowscpu.rs
mov rbx, qword [rcx + rax*8]
movzx eax, byte [0x180247060]
mov rcx, qword [0x180246f98]
test rcx, rcx
jne 0x180131824
jmp 0x18013180b
mov rbx, qword [rsp + 0x88]
mov r15, qword [rsp + 0x90]
test r15, r15
je 0x180131dd5
js 0x180131e1d
movzx eax, byte [0x180247060]
mov rcx, qword [0x180246f98]
test rcx, rcx
jne 0x1801317d3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x180131e24
mov rcx, rax
mov qword [0x180246f98], rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x18013183b
jmp 0x180131e24
lea rbx, [0x180233742]
mov r15d, 7
movzx eax, byte [0x180247060]
mov rcx, qword [0x180246f98]
test rcx, rcx
jne 0x180131824
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x180131e24
mov rcx, rax
mov qword [0x180246f98], rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x180131e24
mov r14, rax
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.180199330
cmp qword [rsp + 0x50], 0
je 0x180131863
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [rsp + 0x140]
test r12b, r12b
je 0x180131884
lea rcx, [rsp + 0xc8]
mov rdx, rsi
call fcn.180135850
jmp 0x180131965
test esi, esi
je 0x180131948
lea rbx, [rsi*8]
mov rcx, qword [0x180246f98]
test rcx, rcx
jne 0x1801318b5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1801318cc
mov rcx, rax
mov qword [0x180246f98], rax
mov edx, 8
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
jne 0x18013194d
mov ecx, 8
mov rdx, rbx
call fcn.18019a870
ud2
mov rbx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
test rdi, rdi
je 0x180131df8
js 0x180131e1d
movzx eax, byte [0x180247060]
mov rcx, qword [0x180246f98]
test rcx, rcx
jne 0x180131922
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x180131939
mov rcx, rax
mov qword [0x180246f98], rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
jne 0x180131dfe
mov ecx, 1
mov rdx, rdi
call fcn.18019a870
ud2
mov eax, 8
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0x78], r13
lea rbx, [rsi + 1]
imul rsi, rbx, 0x70
movzx eax, byte [0x180247060]
mov rcx, qword [0x180246f98]
test rcx, rcx
jne 0x18013199e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x180131e44
mov rcx, rax
mov qword [0x180246f98], rax
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x180131e44
mov r13, rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], 0
mov r12, qword [rsp + 0xd8]
test r12, r12
je 0x180131c1a
mov rbx, qword [rsp + 0xc8]
shl r12, 3
mov esi, 1
xor ebp, ebp
jmp 0x180131a80
imul rax, rbp, 0x70
mov rcx, qword [rsp + 0xc0]
mov qword [r13 + rax + 0x40], rcx
movups xmm0, xmmword [rsp + 0x80]
movups xmm1, xmmword [rsp + 0x90]
movups xmm2, xmmword [rsp + 0xa0]
movups xmm3, xmmword [rsp + 0xb0]
movups xmmword [r13 + rax + 0x30], xmm3
movups xmmword [r13 + rax + 0x20], xmm2
movups xmmword [r13 + rax + 0x10], xmm1
movups xmmword [r13 + rax], xmm0
mov qword [r13 + rax + 0x48], 0
movups xmm0, xmmword [rsp + 0x48]
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 rsi
add r12, 0xfffffffffffffff8
je 0x180131c1a
mov qword [rsp + 0xe8], rsi
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x110], rax
lea rax, [fcn.1800245e0]
mov qword [rsp + 0x118], rax
lea rax, str.CPU
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x110]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 1
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x48]
call fcn.18001efd0
mov r14d, 1
test r15, r15
je 0x180131b41
js 0x180131e1d
movzx eax, byte [0x180247060]
mov rax, qword [0x180246f98]
test rax, rax
jne 0x180131b27
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x180131e24
mov qword [0x180246f98], rax
mov rcx, rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x180131e24
mov rcx, r14
mov rdx, qword [rsp + 0x40]
mov r8, r15
call fcn.180199330
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0xa8], r15
test rdi, rdi
je 0x180131bc0
js 0x180131e1d
movzx eax, byte [0x180247060]
mov rax, qword [0x180246f98]
test rax, rax
jne 0x180131b9d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x180131939
mov qword [0x180246f98], rax
mov rcx, rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x180131bc6
jmp 0x180131939
mov r14d, 1
mov rcx, r14
mov rdx, qword [rsp + 0x78]
mov r8, rdi
call fcn.180199330
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xc0], rdi
mov r14, qword [rbx + rsi*8 - 8]
cmp rbp, qword [rsp + 0x30]
jne 0x180131a00
lea rcx, [rsp + 0x28]
mov rdx, rbp
call fcn.180135a70
mov r13, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x38]
jmp 0x180131a00
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0xd0], 0
je 0x180131c63
mov r8, qword [rsp + 0xc8]
mov rcx, qword [0x180246f98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x100], rax
mov r13, qword [rsp + 0xe0]
mov rsi, qword [r13 + 0x70]
mov rbx, qword [r13 + 0x80]
test rbx, rbx
je 0x180131d2b
lea r14, [rsi + 0x50]
mov r12, qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180131cc9
add r14, 0x70
dec rbx
je 0x180131d2b
cmp qword [r14 - 0x48], 0
je 0x180131ce0
mov r8, qword [r14 - 0x50]
mov rcx, qword [0x180246f98]
xor edx, edx
call r12
mov r8, qword [r14 - 8]
test r8, r8
je 0x180131cfb
cmp qword [r14], 0
je 0x180131cfb
mov rcx, qword [0x180246f98]
xor edx, edx
call r12
cmp qword [r14 - 0x30], 0
je 0x180131d12
mov r8, qword [r14 - 0x38]
mov rcx, qword [0x180246f98]
xor edx, edx
call r12
cmp qword [r14 - 0x18], 0
je 0x180131cc0
mov r8, qword [r14 - 0x20]
mov rcx, qword [0x180246f98]
xor edx, edx
call r12
jmp 0x180131cc0
lea rbx, [r13 + 0x70]
cmp qword [r13 + 0x78], 0
je 0x180131d48
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x100]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [rsp + 0xf0]
movups xmmword [rbx], xmm0
cmp qword [r13 + 0x20], 0
movzx ebx, byte [rsp + 0x27]
mov rsi, qword [rsp + 0x40]
je 0x180131d83
mov r8, qword [r13 + 0x18]
mov rcx, qword [0x180246f98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [r13 + 0x18], rsi
mov qword [r13 + 0x20], r15
mov qword [r13 + 0x28], r15
cmp qword [r13 + 0x38], 0
je 0x180131da9
mov r8, qword [r13 + 0x30]
mov rcx, qword [0x180246f98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x78]
mov qword [r13 + 0x30], rax
mov qword [r13 + 0x38], rdi
mov qword [r13 + 0x40], rdi
mov byte [r13 + 0x88], bl
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14d, 1
jmp 0x18013183b
cmp r8, rdx
jbe 0x180131610
lea rax, [0x18020c248]
mov rcx, r8
jmp 0x180131e7f
mov r13d, 1
mov rcx, r13
mov rdx, rbx
mov r8, rdi
call fcn.180199330
cmp qword [rsp + 0x50], 0
jne 0x18013163f
jmp 0x180131651
call fcn.18001e850
ud2
mov ecx, 1
mov rdx, r15
call fcn.18019a870
ud2
mov ecx, 1
mov edx, 0xc
call fcn.18019a870
ud2
mov ecx, 8
mov rdx, rsi
call fcn.18019a870
ud2
mov ecx, 4
mov edx, 0x50
call fcn.18019a870
ud2
mov ecx, 1
mov edx, 0x30
call fcn.18019a870
ud2
lea rax, [0x18020c260]
mov rdx, r8
mov r8, rax
call fcn.18019ad00
ud2