Function at 0x140041040
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x120], 0xfffffffffffffffe
cmp qword [rcx + 0x80], 0
jne 0x14004185b
mov esi, edx
mov r12, rcx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm0
lea rcx, [rbp - 0x60]
call sub.KERNEL32.dll_GetSystemInfo
movzx r15d, word [rbp - 0x60]
mov eax, 0x80000000
xor ecx, ecx
mov r8, rbx
cpuid
xchg rbx, r8
mov dword [rbp + 0x110], eax
cmp eax, 0x80000004
mov byte [rbp + 0x11f], sil
mov qword [rbp + 0xc0], r12
jb 0x140041185
mov word [rbp + 0x108], r15w
movzx eax, byte [0x14006a320]
xor r13d, r13d
mov edx, 0x50
xor ecx, ecx
call fcn.140030bd0
test rax, rax
je 0x14004198a
mov r8, rax
mov qword [rbp + 0xd8], 5
mov qword [rbp + 0xe0], rax
mov eax, 0x80000000
xor esi, esi
jmp 0x14004113d
mov r8, qword [rbp + 0xe0]
mov r13, qword [rbp + 0xe8]
mov rax, r13
shl rax, 4
mov dword [r8 + rax], r12d
mov dword [r8 + rax + 4], edi
mov dword [r8 + rax + 8], r14d
mov dword [r8 + rax + 0xc], r15d
inc r13
mov eax, ebx
mov qword [rbp + 0xe8], r13
test sil, 1
jne 0x14004119f
cmp eax, dword [rbp + 0x110]
ja 0x14004119f
setae sil
mov ebx, eax
adc ebx, 0
xor ecx, ecx
mov rdi, rbx
cpuid
xchg rbx, rdi
mov r14d, ecx
mov r15d, edx
mov r12d, eax
cmp r13, qword [rbp + 0xd8]
jne 0x14004111e
lea rcx, [rbp + 0xd8]
call fcn.140047520
jmp 0x140041110
mov eax, 1
mov qword [rbp + 0xd0], rax
xor eax, eax
mov qword [rbp + 0x110], rax
jmp 0x140041330
movzx eax, byte [0x14006a320]
mov edx, 0x30
xor ecx, ecx
call fcn.140030bd0
test rax, rax
je 0x140041999
mov qword [rbp + 0xf0], 0x30
mov qword [rbp + 0xf8], rax
mov qword [rbp + 0x100], 0
mov rdi, qword [rbp + 0xe0]
shl r13, 4
add r13, rdi
mov esi, 5
mov eax, 2
xor r15d, r15d
lea rbx, [rbp + 0xf0]
mov r14, rdi
nop dword [rax]
test r15b, 1
je 0x140041220
test rsi, rsi
je 0x14004127e
cmp r14, r13
je 0x14004127e
dec rsi
jmp 0x140041244
cmp rsi, rax
jbe 0x14004127e
mov rcx, r13
sub rcx, r14
shr rcx, 4
cmp rcx, rax
jbe 0x14004127e
mov rcx, rax
not rcx
add rsi, rcx
shl rax, 4
add r14, rax
mov edx, dword [r14]
mov rcx, rbx
call fcn.1400475d0
mov edx, dword [r14 + 4]
mov rcx, rbx
call fcn.1400475d0
mov edx, dword [r14 + 8]
mov rcx, rbx
call fcn.1400475d0
mov edx, dword [r14 + 0xc]
add r14, 0x10
mov r15b, 1
mov rcx, rbx
call fcn.1400475d0
xor eax, eax
jmp 0x140041200
mov rbx, qword [rbp + 0xf8]
mov r8, qword [rbp + 0x100]
test r8, r8
movzx esi, byte [rbp + 0x11f]
mov r12, qword [rbp + 0xc0]
movzx r15d, word [rbp + 0x108]
je 0x1400412cc
xor ecx, ecx
nop dword [rax]
cmp byte [rbx + rcx], 0
je 0x1400412c0
inc rcx
cmp r8, rcx
jne 0x1400412b0
jmp 0x1400412cc
cmp rcx, r8
ja 0x1400419ce
mov r8, rcx
lea rcx, [rbp + 0x20]
mov rdx, rbx
call fcn.140013b40
cmp qword [rbp + 0x20], 0
je 0x14004186f
mov eax, 1
mov qword [rbp + 0xd0], rax
xor eax, eax
mov qword [rbp + 0x110], rax
cmp qword [rbp + 0xf0], 0
je 0x140041314
mov rcx, qword [0x14006a2b8]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rbp + 0xd8], 0
je 0x140041330
mov rcx, qword [0x14006a2b8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
xor ecx, ecx
mov r14, rbx
cpuid
xchg rbx, r14
mov edi, ecx
mov ebx, edx
movzx eax, byte [0x14006a320]
mov edx, 0xc
xor ecx, ecx
call fcn.140030bd0
test rax, rax
je 0x140041958
mov qword [rbp + 0xf0], 0xc
mov qword [rbp + 0xf8], rax
mov qword [rbp + 0x100], 0
lea rcx, [rbp + 0xf0]
mov edx, r14d
call fcn.1400475d0
lea rcx, [rbp + 0xf0]
mov edx, ebx
call fcn.1400475d0
lea rcx, [rbp + 0xf0]
mov edx, edi
call fcn.1400475d0
mov rdi, qword [rbp + 0xf8]
mov r8, qword [rbp + 0x100]
test r8, r8
je 0x1400413dc
xor ecx, ecx
nop dword [rax]
cmp byte [rdi + rcx], 0
je 0x1400413d0
inc rcx
cmp r8, rcx
jne 0x1400413c0
jmp 0x1400413dc
cmp rcx, r8
ja 0x1400419aa
mov r8, rcx
lea rcx, [rbp + 0x20]
mov rdx, rdi
call fcn.140013b40
cmp qword [rbp + 0x20], 0
je 0x140041412
cmp r15w, 0xe
ja 0x140041458
movzx eax, r15w
lea rcx, reloc.OLEAUT32.dll_VariantCopy
mov r14, qword [rcx + rax*8]
lea rcx, [0x14005abb0]
mov rbx, qword [rcx + rax*8]
jmp 0x140041465
mov rbx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x108], rax
test rax, rax
je 0x1400418af
js 0x1400419be
movzx eax, byte [0x14006a320]
xor ecx, ecx
mov rdx, qword [rbp + 0x108]
call fcn.140030bd0
test rax, rax
jne 0x1400418b4
mov ecx, 1
jmp 0x1400419c0
lea rbx, [0x14005a54b]
mov r14d, 7
movzx eax, byte [0x14006a320]
xor ecx, ecx
mov rdx, r14
call fcn.140030bd0
test rax, rax
je 0x14004197b
mov qword [rbp + 0xc8], rax
mov rcx, rax
mov rdx, rbx
mov qword [rbp + 0x108], r14
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
cmp qword [rbp + 0xf0], 0
je 0x1400414b7
mov rcx, qword [0x14006a2b8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [rbp - 0x40]
test sil, sil
je 0x1400414d0
lea rcx, [rbp + 0x98]
mov rdx, rdi
call fcn.140047680
jmp 0x14004151a
test edi, edi
je 0x140041500
lea rbx, [rdi*8]
mov ecx, 8
mov rdx, rbx
call fcn.140030bd0
test rax, rax
jne 0x140041505
mov ecx, 8
mov rdx, rbx
call fcn.1400494e0
jmp 0x1400419f7
mov eax, 8
mov qword [rbp + 0x98], rdi
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rdi
lea rsi, [rdi + 1]
imul rdi, rsi, 0x70
movzx eax, byte [0x14006a320]
xor ecx, ecx
mov rdx, rdi
call fcn.140030bd0
test rax, rax
je 0x14004196c
mov r15, rax
lea rax, [r12 + 0x70]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0xd8], rsi
mov qword [rbp + 0xe0], r15
mov qword [rbp + 0xe8], 0
mov rbx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xa8]
lea rax, [rbx + rax*8]
mov qword [rbp + 8], rax
xor r12d, r12d
mov qword [rbp + 0x18], rbx
xor r13d, r13d
jmp 0x1400415f8
mov r15, qword [rbp + 0xe0]
mov r12, qword [rbp + 0xe8]
add rbx, 8
imul rax, r12, 0x70
movups xmm0, xmmword [rbp + 0x80]
movups xmmword [r15 + rax + 0x60], xmm0
movups xmm0, xmmword [rbp + 0x70]
movups xmmword [r15 + rax + 0x50], xmm0
movups xmm0, xmmword [rbp + 0x60]
movups xmmword [r15 + rax + 0x40], xmm0
movups xmm0, xmmword [rbp + 0x20]
movups xmm1, xmmword [rbp + 0x30]
movups xmm2, xmmword [rbp + 0x40]
movups xmm3, xmmword [rbp + 0x50]
movups xmmword [r15 + rax + 0x30], xmm3
movups xmmword [r15 + rax + 0x20], xmm2
movups xmmword [r15 + rax + 0x10], xmm1
movups xmmword [r15 + rax], xmm0
inc r12
mov qword [rbp + 0xe8], r12
cmp rbx, qword [rbp + 8]
je 0x140041791
inc r13
mov qword [rbp - 8], r13
lea rax, [rbp - 8]
mov qword [rbp - 0x18], rax
lea rax, [fcn.140012860]
mov qword [rbp - 0x10], rax
lea rax, str.CPU
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 1
mov qword [rbp + 0x40], 0
lea rax, [rbp - 0x18]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 1
lea rcx, [rbp + 0xf0]
lea rdx, [rbp + 0x20]
call fcn.140012050
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0x100]
mov qword [rbp], rax
mov r14d, 1
mov edi, 1
mov rsi, qword [rbp + 0x108]
test rsi, rsi
je 0x1400416b8
js 0x14004193c
movzx eax, byte [0x14006a320]
xor ecx, ecx
mov rdx, rsi
call fcn.140030bd0
test rax, rax
je 0x140041946
mov rdi, rax
mov rcx, rdi
mov rdx, qword [rbp + 0xc8]
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
cmp qword [rbp + 0x110], 0
je 0x1400416fb
js 0x14004190e
movzx eax, byte [0x14006a320]
xor ecx, ecx
mov rdx, qword [rbp + 0x110]
call fcn.140030bd0
test rax, rax
je 0x14004191f
mov r14, rax
mov rcx, r14
mov rdx, qword [rbp + 0xd0]
mov rsi, qword [rbp + 0x110]
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx]
mov rcx, qword [rbp + 0xb0]
mov qword [rbp + 0x20], rcx
mov rcx, qword [rbp + 0xb8]
mov qword [rbp + 0x28], rcx
mov rcx, qword [rbp]
mov qword [rbp + 0x30], rcx
mov dword [rbp + 0x88], 0
movabs rcx, 0x8000000000000000
mov qword [rbp + 0x68], rcx
mov rcx, qword [rbp + 0x108]
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x40], rdi
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x58], r14
mov qword [rbp + 0x60], rsi
mov qword [rbp + 0x80], rax
cmp r12, qword [rbp + 0xd8]
jne 0x14004159e
lea rcx, [rbp + 0xd8]
call fcn.1400479e0
jmp 0x140041590
mov rax, qword [rbp + 0xe8]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rbp + 0xd8]
movaps xmmword [rbp - 0x30], xmm0
cmp qword [rbp + 0x98], 0
je 0x1400417c4
mov rcx, qword [0x14006a2b8]
xor edx, edx
mov r8, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rbp + 0x10]
mov rcx, rsi
call fcn.140047900
mov rax, qword [rbp - 0x20]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rsi], xmm0
mov rsi, qword [rbp + 0xc0]
cmp qword [rsi + 0x18], 0
movzx ebx, byte [rbp + 0x11f]
je 0x140041807
mov r8, qword [rsi + 0x20]
mov rcx, qword [0x14006a2b8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rbp + 0x108]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbp + 0xc8]
mov qword [rsi + 0x20], rcx
mov qword [rsi + 0x28], rax
cmp qword [rsi + 0x30], 0
je 0x14004183b
mov r8, qword [rsi + 0x38]
mov rcx, qword [0x14006a2b8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rbp + 0x110]
mov qword [rsi + 0x30], rax
mov rcx, qword [rbp + 0xd0]
mov qword [rsi + 0x38], rcx
mov qword [rsi + 0x40], rax
mov byte [rsi + 0x88], bl
add rsp, 0x1a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r14, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
mov qword [rbp + 0x110], rcx
test rcx, rcx
je 0x1400418e0
js 0x1400419e2
movzx eax, byte [0x14006a320]
xor ecx, ecx
mov rdx, qword [rbp + 0x110]
call fcn.140030bd0
test rax, rax
je 0x1400419e6
mov rcx, rax
jmp 0x1400418e5
mov eax, 1
mov qword [rbp + 0xc8], rax
mov rcx, rax
mov rdx, rbx
mov r8, qword [rbp + 0x108]
call sub.VCRUNTIME140.dll_memcpy
cmp qword [rbp + 0xf0], 0
jne 0x1400414a5
jmp 0x1400414b7
mov ecx, 1
mov qword [rbp + 0xd0], rcx
mov rdx, r14
mov r8, qword [rbp + 0x110]
call sub.VCRUNTIME140.dll_memcpy
cmp qword [rbp + 0xf0], 0
jne 0x140041302
jmp 0x140041314
mov qword [rbp + 0x90], rdi
call fcn.140011ed0
jmp 0x1400419f7
mov qword [rbp + 0x90], rdi
mov ecx, 1
mov rdx, qword [rbp + 0x110]
call fcn.1400494e0
jmp 0x1400419f7
call fcn.140011ed0
jmp 0x1400419f7
mov ecx, 1
mov rdx, rsi
call fcn.1400494e0
jmp 0x1400419f7
mov ecx, 1
mov edx, 0xc
call fcn.1400494e0
jmp 0x1400419f7
mov ecx, 8
mov rdx, rdi
call fcn.1400494e0
jmp 0x1400419f7
mov ecx, 1
mov rdx, r14
call fcn.1400494e0
jmp 0x1400419f7
mov ecx, 4
mov edx, 0x50
call fcn.1400494e0
mov ecx, 1
mov edx, 0x30
call fcn.1400494e0
jmp 0x1400419f7
lea rax, str.C:UsersChara.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.7_srcwindowscpu.rsIntel_x86MIPSRISC_AlphaPPCSHXARMIntel_Itanium_based_x64RISC_Alpha_x64MSIL_Intel_or_AMD__x64Intel_Itanium_based_x86unknownARM_x64
mov rdx, r8
mov r8, rax
call fcn.140049680
jmp 0x1400419f7
xor ecx, ecx
mov rdx, qword [rbp + 0x108]
call fcn.1400494e0
jmp 0x1400419f7
lea rax, str.C:UsersChara.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.7_srcwindowscpu.rsIntel_x86MIPSRISC_AlphaPPCSHXARMIntel_Itanium_based_x64RISC_Alpha_x64MSIL_Intel_or_AMD__x64Intel_Itanium_based_x86unknownARM_x64
mov rdx, r8
mov r8, rax
call fcn.140049680
jmp 0x1400419f7
xor ecx, ecx
jmp 0x1400419eb
mov ecx, 1
mov rdx, qword [rbp + 0x110]
call fcn.1400494e0
ud2