Function at 0x1402a37a0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x98
mov rdi, rcx
lea rax, vtable.ICpuTopology.0
mov qword [rcx], rax
lea rax, vtable.CpuidImpl.0
mov qword [rcx], rax
mov word [rcx + 0x48], 0x100
mov byte [rcx + 0x4a], 1
mov cl, 8
mov al, 0x80
add cl, 0xff
shr al, 1
jne 0x1402a37e2
mov byte [rdi + 0x4b], cl
mov bl, 8
mov al, 0x80
add bl, 0xff
shr al, 1
jne 0x1402a37f0
mov byte [rdi + 0x4d], bl
mov eax, 8
sub al, cl
sub al, bl
mov byte [rdi + 0x4f], al
movzx edx, cl
movzx ecx, bl
add ecx, edx
mov r8d, 0xff
mov ebx, r8d
shl bl, cl
mov byte [rdi + 0x50], bl
mov ecx, edx
shl r8b, cl
movzx eax, r8b
xor al, bl
mov byte [rdi + 0x4e], al
not r8b
mov byte [rdi + 0x4c], r8b
lea rcx, str.GenuineIntel
call fcn.1402a4af0
test eax, eax
jne 0x1402a3855
lea rcx, str.AuthenticAMD
call fcn.1402a4af0
test eax, eax
je 0x1402a38e8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
lea r8, [rbp + 0x6f]
lea rdx, [rbp + 0x77]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
setne dl
test eax, eax
je 0x1402a38e4
mov rcx, qword [rbp + 0x6f]
cmp qword [rbp + 0x77], rcx
je 0x1402a38ad
mov rdx, rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
test eax, eax
setne dl
test eax, eax
je 0x1402a38a9
mov rdx, qword [rbp + 0x77]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
test eax, eax
setne dl
mov rcx, qword [rbp + 0x6f]
test dl, dl
je 0x1402a38e8
cmp rcx, 1
jbe 0x1402a3905
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
mov rdx, qword [rbp + 0x77]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
test rax, rax
je 0x1402a38e8
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
test rax, rax
setne dl
test dl, dl
jne 0x1402a3905
lea r8, str.IsSupported__
mov edx, 0x510
lea rcx, str.c:_buildslave_steam_rel_client_hotfix_win64_build_src_tier0CPUTopology.cpp
call fcn.14029bf90
test al, al
jne 0x1402a3905
int3
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 7]
mov dword [rdi + 0x54], eax
mov esi, 1
mov r12d, esi
xor r13d, r13d
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x41], r13
mov r15d, r13d
mov rcx, qword gs:[0x58]
mov edx, 0x480
mov eax, dword [0x140756750]
mov r14, qword [rcx + rax*8]
add r14, rdx
mov eax, dword [r14]
cmp dword [0x140713600], eax
jle 0x1402a3987
lea rcx, [0x140713600]
call fcn.14031e094
cmp dword [0x140713600], 0xffffffff
jne 0x1402a3987
xor eax, eax
xor ecx, ecx
cpuid
mov dword [rbp - 0x35], ebx
mov dword [rbp - 0x31], ecx
mov dword [rbp - 0x2d], edx
mov dword [0x1407135fc], eax
lea rcx, [0x140713600]
call fcn.14031e034
mov eax, dword [r14]
cmp dword [0x140713608], eax
jle 0x1402a39cb
lea rcx, [0x140713608]
call fcn.14031e094
cmp dword [0x140713608], 0xffffffff
jne 0x1402a39cb
mov eax, 0x80000000
xor ecx, ecx
cpuid
mov dword [rbp - 0x35], ebx
mov dword [rbp - 0x31], ecx
mov dword [rbp - 0x2d], edx
mov dword [0x140713604], eax
lea rcx, [0x140713608]
call fcn.14031e034
cmp dword [0x1407135fc], 1
jb 0x1402a39f6
mov eax, 1
xor ecx, ecx
cpuid
mov dword [rbp - 0x49], eax
mov dword [rbp - 0x45], ebx
mov dword [rbp - 0x41], ecx
mov dword [rbp - 0x3d], edx
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
mov r15d, dword [rbp - 0x3d]
bt r15d, 0x1c
jae 0x1402a3b5e
mov eax, dword [rbp - 0x45]
shr eax, 0x10
movzx r12d, al
mov eax, dword [0x1407135f8]
cmp eax, dword [r14]
jle 0x1402a3a5c
lea rcx, [0x1407135f8]
call fcn.14031e094
mov eax, dword [0x1407135f8]
cmp eax, 0xffffffff
jne 0x1402a3a5c
xor eax, eax
xor ecx, ecx
cpuid
mov dword [rbp - 0x39], eax
mov dword [rbp - 0x35], ebx
mov dword [rbp - 0x31], ecx
mov dword [rbp - 0x2d], edx
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [0x1407135e8], xmm0
lea rcx, [0x1407135f8]
call fcn.14031e034
mov eax, dword [0x1407135f8]
cmp dword [0x1407135ec], 0x756e6547
jne 0x1402a3aa2
cmp dword [0x1407135f0], 0x6c65746e
jne 0x1402a3aa2
cmp dword [0x1407135f4], 0x49656e69
jne 0x1402a3aa2
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [rbp - 0x49]
call fcn.1402a4190
test eax, eax
je 0x1402a3b5e
mov esi, dword [rbp - 0x49]
shr esi, 0x1a
jmp 0x1402a3b5c
cmp eax, dword [r14]
jle 0x1402a3ae5
lea rcx, [0x1407135f8]
call fcn.14031e094
cmp dword [0x1407135f8], 0xffffffff
jne 0x1402a3ae5
xor eax, eax
xor ecx, ecx
cpuid
mov dword [rbp - 0x39], eax
mov dword [rbp - 0x35], ebx
mov dword [rbp - 0x31], ecx
mov dword [rbp - 0x2d], edx
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [0x1407135e8], xmm0
lea rcx, [0x1407135f8]
call fcn.14031e034
cmp dword [0x1407135ec], 0x68747541
jne 0x1402a3b09
cmp dword [0x1407135f0], 0x444d4163
jne 0x1402a3b09
cmp dword [0x1407135f4], 0x69746e65
je 0x1402a3b26
lea r8, str.Cpuid::IsVendor__AuthenticAMD__
mov edx, 0x52d
lea rcx, str.c:_buildslave_steam_rel_client_hotfix_win64_build_src_tier0CPUTopology.cpp
call fcn.14029bf90
test al, al
jne 0x1402a3b26
int3
mov edx, 0x80000000
mov r8d, 8
lea rcx, [rbp - 0x49]
call fcn.1402a4190
test eax, eax
je 0x1402a3b5e
mov ecx, dword [rbp - 0x41]
mov eax, ecx
and eax, 0xf000
je 0x1402a3b59
shr eax, 0xc
mov esi, 1
movzx ecx, al
shl esi, cl
jmp 0x1402a3b5e
movzx esi, cl
inc esi
lea rcx, [rdi + 0x49]
mov r8d, esi
mov edx, r12d
call fcn.1402a5570
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
mov qword [rbp + 0x6f], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r15, rax
lea r8, [rbp + 0x7f]
lea rdx, [rbp - 0x59]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov rdx, qword [rbp + 0x7f]
cmp rdx, 1
jne 0x1402a3bd1
cmp r12d, edx
je 0x1402a3bc0
lea r8, str.1__nLogProcsPerPkg
mov edx, 0x556
lea rcx, str.c:_buildslave_steam_rel_client_hotfix_win64_build_src_tier0CPUTopology.cpp
call fcn.14029bf90
test al, al
jne 0x1402a3bc0
int3
movzx eax, byte [rdi + 0x48]
mov byte [rax + rdi + 8], 0
inc byte [rdi + 0x48]
jmp 0x1402a3d61
cmp qword [rbp - 0x59], rdx
je 0x1402a3be4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov rdx, qword [rbp + 0x7f]
mov esi, 1
mov r12, qword gs:[0x58]
cmp rsi, rdx
ja 0x1402a3d3e
test rdx, rsi
je 0x1402a3d35
test r13, r13
jne 0x1402a3c3d
cmp byte [rdi + 0x48], r13b
je 0x1402a3c2c
lea r8, str.0__m_nItems
mov edx, 0x56e
lea rcx, str.c:_buildslave_steam_rel_client_hotfix_win64_build_src_tier0CPUTopology.cpp
call fcn.14029bf90
test al, al
jne 0x1402a3c2c
int3
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov r13, rax
jmp 0x1402a3c6c
cmp byte [rdi + 0x48], 0
ja 0x1402a3c60
lea r8, str.m_nItems___0
mov edx, 0x574
lea rcx, str.c:_buildslave_steam_rel_client_hotfix_win64_build_src_tier0CPUTopology.cpp
call fcn.14029bf90
test al, al
jne 0x1402a3c60
int3
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x140756750]
mov r14, qword [r12 + rax*8]
mov eax, 0x480
add r14, rax
mov eax, dword [r14]
cmp dword [0x140713600], eax
jle 0x1402a3cbe
lea rcx, [0x140713600]
call fcn.14031e094
cmp dword [0x140713600], 0xffffffff
jne 0x1402a3cbe
xor eax, eax
xor ecx, ecx
cpuid
mov dword [0x1407135fc], eax
lea rcx, [0x140713600]
call fcn.14031e034
mov eax, dword [r14]
cmp dword [0x140713608], eax
jle 0x1402a3cf9
lea rcx, [0x140713608]
call fcn.14031e094
cmp dword [0x140713608], 0xffffffff
jne 0x1402a3cf9
mov eax, 0x80000000
xor ecx, ecx
cpuid
mov dword [0x140713604], eax
lea rcx, [0x140713608]
call fcn.14031e034
cmp dword [0x1407135fc], 1
jb 0x1402a3d20
mov eax, 1
xor ecx, ecx
cpuid
mov dword [rbp - 0x39], eax
mov dword [rbp - 0x35], ebx
mov dword [rbp - 0x31], ecx
mov dword [rbp - 0x2d], edx
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x49], xmm0
mov ecx, dword [rbp - 0x45]
shr ecx, 0x18
movzx eax, byte [rdi + 0x48]
mov byte [rax + rdi + 8], cl
inc byte [rdi + 0x48]
mov rdx, qword [rbp + 0x7f]
add rsi, rsi
jne 0x1402a3bf2
mov rdx, qword [rbp - 0x59]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov rdx, r13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rax, rdi
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret