Function at 0x1400ca823
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, 0x198
cmp qword [rcx + 0x80], 0
jne 0x1400caee9
mov r13d, edx
mov qword [rsp + 0xa0], rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x160]
movaps xmmword [rcx + 0x20], xmm0
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call sub.KERNEL32.dll_GetSystemInfo
mov ebp, 0x80000000
xor r15d, r15d
xor ecx, ecx
mov eax, 0x80000000
mov r8, rbx
cpuid
xchg rbx, r8
mov dword [rsp + 0x58], eax
cmp eax, 0x80000003
mov byte [rsp + 0x27], r13b
jbe 0x1400ca923
mov ecx, 5
mov edx, 4
mov r8d, 0x10
call fcn.1400c7a13
mov r8, rdx
lea rcx, [rsp + 0x40]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
mov r12d, 0xc
xor r13d, r13d
mov qword [rsp + 0x50], r15
test r13b, 1
jne 0x1400ca93d
cmp ebp, dword [rsp + 0x58]
ja 0x1400ca93d
setae r13b
mov ebx, ebp
adc ebx, 0
xor ecx, ecx
mov eax, ebp
mov rsi, rbx
cpuid
xchg rbx, rsi
mov edi, ecx
mov ebp, edx
mov r14d, eax
cmp r15, qword [rsp + 0x40]
jne 0x1400ca905
lea rcx, [rsp + 0x40]
call fcn.1400632db
mov r8, qword [rsp + 0x48]
mov dword [r8 + r12 - 0xc], r14d
mov dword [r8 + r12 - 8], esi
mov dword [r8 + r12 - 4], edi
mov dword [r8 + r12], ebp
inc r15
add r12, 0x10
mov ebp, ebx
jmp 0x1400ca8c2
and qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 1
and qword [rsp + 0x38], 0
jmp 0x1400caa7b
lea rcx, [rsp + 0x60]
mov edx, 0x30
call fcn.1400cb25f
mov rdi, qword [rsp + 0x48]
shl r15, 4
add r15, rdi
mov eax, 2
mov ebx, 5
xor r12d, r12d
lea rsi, [rsp + 0x60]
mov r14, rdi
mov r13b, byte [rsp + 0x27]
test r12b, 1
je 0x1400ca987
test rbx, rbx
je 0x1400ca9e5
cmp r14, r15
je 0x1400ca9e5
dec rbx
jmp 0x1400ca9ab
cmp rbx, rax
jbe 0x1400ca9e5
mov rcx, r15
sub rcx, r14
shr rcx, 4
cmp rcx, rax
jbe 0x1400ca9e5
mov rcx, rax
not rcx
add rbx, rcx
shl rax, 4
add r14, rax
mov edx, dword [r14]
mov rcx, rsi
call fcn.1400cb28f
mov edx, dword [r14 + 4]
mov rcx, rsi
call fcn.1400cb28f
mov edx, dword [r14 + 8]
mov rcx, rsi
call fcn.1400cb28f
mov edx, dword [r14 + 0xc]
add r14, 0x10
mov r12b, 1
mov rcx, rsi
call fcn.1400cb28f
xor eax, eax
jmp 0x1400ca972
mov rsi, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
xor r8d, r8d
cmp rdx, r8
je 0x1400caa03
cmp byte [rsi + r8], 0
je 0x1400caa06
inc r8
jmp 0x1400ca9f2
mov r8, rdx
lea r9, str._home_ghost_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.11_src_windows_cpu.rsTotal_CPUIntel_x86MIPSRISC_AlphaPPCSHXARMIntel_Itanium_based_x64RISC_Alpha_x64MSIL_Intel_or_AMD__x64Intel_Itanium_based_x86unknownARM_x64
mov rcx, rsi
call fcn.14004e7dc
mov r8, rdx
lea rbx, [rsp + 0xf0]
mov rcx, rbx
mov rdx, rax
call fcn.14002c350
test byte [rbx], 1
je 0x1400caa47
and qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 1
and qword [rsp + 0x38], 0
jmp 0x1400caa61
mov rdx, qword [rsp + 0xf8]
mov r8, qword [rsp + 0x100]
lea rcx, [rsp + 0x28]
call fcn.1400ca7d1
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
call fcn.1400969d8
mov rcx, qword [rsp + 0x40]
mov rdx, rdi
call fcn.1400cb24e
xor eax, eax
xor ecx, ecx
mov rbx, rbx
cpuid
xchg rbx, rbx
mov edi, edx
mov esi, ecx
lea rcx, [rsp + 0x40]
mov edx, 0xc
call fcn.1400cb25f
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.1400cb28f
lea rcx, [rsp + 0x40]
mov edx, edi
call fcn.1400cb28f
lea rcx, [rsp + 0x40]
mov edx, esi
call fcn.1400cb28f
mov rax, qword [rsp + 0xa0]
lea rbx, [rax + 0x70]
mov rsi, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
xor r8d, r8d
cmp rdx, r8
je 0x1400caae8
cmp byte [rsi + r8], 0
je 0x1400caaeb
inc r8
jmp 0x1400caad7
mov r8, rdx
lea r9, str._home_ghost_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.11_src_windows_cpu.rsTotal_CPUIntel_x86MIPSRISC_AlphaPPCSHXARMIntel_Itanium_based_x64RISC_Alpha_x64MSIL_Intel_or_AMD__x64Intel_Itanium_based_x86unknownARM_x64
mov rcx, rsi
call fcn.14004e7dc
mov r8, rdx
lea rdi, [rsp + 0xf0]
mov rcx, rdi
mov rdx, rax
call fcn.14002c350
test byte [rdi], 1
je 0x1400cab3d
movzx eax, word [rsp + 0x160]
cmp rax, 0xe
ja 0x1400cab4e
shl eax, 3
lea rcx, [0x14010c188]
mov rdx, qword [rax + rcx]
lea rcx, [0x14010c200]
add rcx, rax
jmp 0x1400cab49
lea rcx, [rsp + 0x100]
mov rdx, qword [rcx - 8]
mov r8, qword [rcx]
jmp 0x1400cab5b
mov r8d, 7
lea rdx, [0x14010aebe]
lea r14, [rsp + 0x60]
mov rcx, r14
call fcn.1400ca7d1
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call fcn.1400969d8
mov esi, dword [rsp + 0x180]
test r13b, r13b
mov qword [rsp + 0x98], rbx
je 0x1400cabe6
lea rcx, [rsp + 0xd8]
mov rdx, rsi
call fcn.1400cb0af
jmp 0x1400cabf6
lea rcx, [rsp + 0xd8]
mov rdx, rsi
call fcn.1400ca12e
inc rsi
mov edx, 0x70
mov rcx, rsi
call fcn.1400cf10f
mov r12, rdx
lea rcx, [rsp + 0x28]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
and qword [rcx + 0x10], 0
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x138], rax
mov r15, qword [rsp + 0xe8]
shl r15, 3
xor r13d, r13d
xor esi, esi
test r15, r15
je 0x1400cae0b
mov qword [rsp + 0x58], rsi
inc rsi
mov qword [rsp + 0x158], rsi
lea rax, str.CPU
mov qword [rsp + 0xf0], rax
mov ecx, 1
mov qword [rsp + 0xf8], rcx
and qword [rsp + 0x110], 0
lea rax, [rsp + 0x158]
mov qword [rsp + 0x60], rax
lea rax, [fcn.14002ab70]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x100], r14
mov qword [rsp + 0x108], rcx
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0xf0]
call fcn.1400296b0
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rcx, r14
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0xb0]
call fcn.14002a7b0
lea rcx, [rsp + 0xf0]
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0xa8]
call fcn.14002a7b0
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rax + rcx*8]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x140], rax
cmp rcx, qword [rsp + 0x28]
jne 0x1400cad7b
lea rcx, [rsp + 0x28]
call fcn.1400d1745
mov r12, qword [rsp + 0x30]
mov qword [r12 + r13], rdi
mov qword [r12 + r13 + 8], rbx
mov qword [r12 + r13 + 0x10], rbp
mov rax, qword [rsp + 0xb8]
mov qword [r12 + r13 + 0x18], rax
mov rax, qword [rsp + 0xc0]
mov qword [r12 + r13 + 0x20], rax
mov rax, qword [rsp + 0x148]
mov qword [r12 + r13 + 0x28], rax
mov rax, qword [rsp + 0xc8]
mov qword [r12 + r13 + 0x30], rax
mov rax, qword [rsp + 0xd0]
mov qword [r12 + r13 + 0x38], rax
mov rax, qword [rsp + 0x140]
mov qword [r12 + r13 + 0x40], rax
movabs rax, 0x8000000000000000
mov qword [r12 + r13 + 0x48], rax
mov rax, qword [rsp + 0x150]
mov qword [r12 + r13 + 0x60], rax
and dword [r12 + r13 + 0x68], 0
mov qword [rsp + 0x38], rsi
add r13, 0x70
add r15, 0xfffffffffffffff8
jmp 0x1400cac3b
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x130], rax
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rsp + 0x120], xmm0
mov rcx, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xe0]
call fcn.14008a681
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rdi + 0x78]
mov rdx, qword [rdi + 0x80]
mov rcx, rsi
call fcn.1400ca4a0
mov rcx, qword [rdi + 0x70]
mov rdx, rsi
call fcn.1400d1881
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x98]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [rsp + 0x120]
movups xmmword [rcx], xmm0
mov rcx, qword [rdi + 0x18]
mov rdx, qword [rdi + 0x20]
call fcn.1400969d8
mov rax, qword [rsp + 0x90]
mov qword [rdi + 0x18], rax
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0xb0]
mov qword [rdi + 0x28], rax
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x38]
call fcn.1400969d8
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x30], rax
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x38], rax
mov rax, qword [rsp + 0xa8]
mov qword [rdi + 0x40], rax
mov al, byte [rsp + 0x27]
mov byte [rdi + 0x88], al
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret