Function at 0x100627c0
Capabilities:
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
cmp dword [ecx + 8], 0
jne 0x10063012
xorps xmm0, xmm0
lea eax, [esp + 0x80]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0xa0], 0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
push eax
call sub.kernel32.dll_GetSystemInfo
movzx eax, word [esp + 0x80]
xor ecx, ecx
mov ebx, 1
mov dword [esp + 0x20], eax
mov eax, 0x80000000
mov esi, ebx
cpuid
xchg ebx, esi
cmp eax, 0x80000004
mov ecx, 0
jb 0x10062a8f
mov dword [esp + 0x24], eax
mov eax, dword [0x100f2e44]
movzx eax, byte [eax]
sub esp, 0xc
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
add esp, 0xc
test eax, eax
je 0x10063073
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], eax
mov edx, eax
mov eax, 0x80000000
mov edi, 0x80000000
mov dword [esp + 0x30], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
nop dword [eax]
cmp eax, ecx
mov esi, eax
adc edi, 0
xor ecx, ecx
mov dword [esp + 0x40], edi
mov edi, edx
mov ebx, ebx
cpuid
xchg ebx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x34], edx
mov edx, edi
mov dword [esp + 0x38], ecx
mov ebx, dword [esp + 8]
lea eax, [ebx - 1]
cmp eax, dword [esp + 0x28]
jne 0x100628e1
lea ecx, [esp + 0x28]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h69e2d9a13a7338ff
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x40]
cmp esi, ecx
mov esi, dword [esp + 0xc]
mov dword [edx + eax], esi
mov esi, dword [esp + 0x3c]
mov dword [edx + eax + 4], esi
mov esi, dword [esp + 0x38]
mov dword [edx + eax + 8], esi
mov esi, dword [esp + 0x34]
mov dword [edx + eax + 0xc], esi
mov dword [esp + 0x30], ebx
lea ebx, [ebx + 1]
lea esi, [eax + 0x10]
jae 0x1006292c
cmp edi, ecx
mov eax, edi
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
jbe 0x100628a0
mov eax, dword [0x100f2e44]
mov dword [esp + 4], esi
movzx eax, byte [eax]
sub esp, 0xc
mov dword [esp + 8], 0x30
mov dword [esp + 4], 0
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
add esp, 0xc
test eax, eax
je 0x1006307c
mov esi, dword [esp + 0x2c]
mov edi, eax
lea eax, [ebx - 1]
xor edx, edx
mov dword [esp + 0x10], 0x30
cmp eax, 3
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0
mov dword [esp + 8], esi
jb 0x10062a37
mov edx, dword [esi + 0x20]
lea edi, [esp + 0x10]
mov ecx, edi
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h92a9be17318cea2f
mov edx, dword [esi + 0x24]
mov ecx, edi
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h92a9be17318cea2f
mov edx, dword [esi + 0x28]
mov ecx, edi
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h92a9be17318cea2f
mov edx, dword [esi + 0x2c]
mov ecx, edi
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h92a9be17318cea2f
cmp ebx, 4
je 0x10062a11
mov eax, dword [esp + 8]
mov edi, 0xfffffff0
add dword [esp + 4], eax
lea esi, [eax + 0x30]
nop dword [eax + eax]
mov edx, dword [esi + edi + 0x10]
lea ebx, [esp + 0x10]
mov ecx, ebx
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h92a9be17318cea2f
mov edx, dword [esi + edi + 0x14]
mov ecx, ebx
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h92a9be17318cea2f
mov edx, dword [esi + edi + 0x18]
mov ecx, ebx
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h92a9be17318cea2f
mov edx, dword [esi + edi + 0x1c]
mov ecx, ebx
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h92a9be17318cea2f
test edi, edi
je 0x10062a11
lea eax, [esi + edi + 0x20]
add edi, 0x10
cmp dword [esp + 4], eax
jne 0x100629d0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
xor edx, edx
test eax, eax
je 0x10062a37
nop
cmp byte [edi + edx], 0
je 0x10062a2f
inc edx
cmp eax, edx
jne 0x10062a20
mov edx, eax
jmp 0x10062a37
cmp edx, eax
ja 0x100630ad
lea eax, [esp + 0x5c]
push edx
push edi
push eax
call sym.core::str::converts::from_utf8::h614587554aa91dbb
add esp, 0xc
test byte [esp + 0x5c], 1
je 0x10062bb1
mov ebx, 1
xor ecx, ecx
cmp dword [esp + 0x10], 0
je 0x10062a72
mov eax, dword [0x100f2e2c]
push edi
push 0
push dword [eax]
mov esi, ecx
call sub.kernel32.dll_HeapFree
mov ecx, esi
cmp dword [esp + 0x28], 0
je 0x10062a8f
mov eax, dword [0x100f2e2c]
push dword [esp + 8]
push 0
push dword [eax]
mov esi, ecx
call sub.kernel32.dll_HeapFree
mov ecx, esi
mov dword [esp + 8], ecx
mov dword [esp + 0x24], ebx
xor eax, eax
xor ecx, ecx
mov ebx, ebx
cpuid
xchg ebx, ebx
mov eax, dword [0x100f2e44]
mov dword [esp + 4], ecx
mov edi, edx
movzx eax, byte [eax]
sub esp, 0xc
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
add esp, 0xc
test eax, eax
je 0x10063054
lea esi, [esp + 0x10]
mov edx, ebx
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
mov ecx, esi
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h92a9be17318cea2f
mov ecx, esi
mov edx, edi
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h92a9be17318cea2f
mov edx, dword [esp + 4]
mov ecx, esi
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h92a9be17318cea2f
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
test eax, eax
je 0x10062b37
xor ecx, ecx
nop word cs:[eax + eax]
nop
cmp byte [esi + ecx], 0
je 0x10062b2d
inc ecx
cmp eax, ecx
jne 0x10062b20
jmp 0x10062b37
cmp ecx, eax
ja 0x10063098
mov eax, ecx
lea ecx, [esp + 0x5c]
push eax
push esi
push ecx
call sym.core::str::converts::from_utf8::h614587554aa91dbb
add esp, 0xc
test byte [esp + 0x5c], 1
je 0x10062b6e
mov eax, dword [esp + 0x20]
cmp ax, 0xe
ja 0x10062c08
mov ecx, dword [eax*4 + 0x100f2648]
mov edi, dword [eax*4 + 0x100f2684]
jmp 0x10062c12
mov ecx, dword [esp + 0x64]
test ecx, ecx
js 0x10063085
mov edi, dword [esp + 0x60]
je 0x10062c42
mov eax, dword [0x100f2e44]
movzx eax, byte [eax]
sub esp, 0xc
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov ebx, ecx
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
mov ecx, ebx
add esp, 0xc
test eax, eax
jne 0x10062c47
jmp 0x10062bfc
mov ecx, dword [esp + 0x64]
test ecx, ecx
mov ebx, ecx
js 0x100630a4
mov eax, dword [esp + 0x60]
je 0x1006301a
mov dword [esp + 4], eax
mov eax, dword [0x100f2e44]
movzx eax, byte [eax]
sub esp, 0xc
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
mov ecx, ebx
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
test esi, esi
jne 0x1006301f
mov eax, 1
push ebx
push eax
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
mov edi, 0x100f232e
mov ecx, 7
mov eax, dword [0x100f2e44]
movzx eax, byte [eax]
sub esp, 0xc
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov ebx, ecx
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
add esp, 0xc
test eax, eax
je 0x10063090
mov dword [esp + 0xc], ebx
push ebx
jmp 0x10062c4c
mov eax, 1
mov dword [esp + 0xc], ecx
push ecx
push edi
mov dword [esp + 0x28], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x10062c70
mov eax, dword [0x100f2e2c]
push esi
push 0
push dword [eax]
call sub.kernel32.dll_HeapFree
mov edi, dword [esp + 0x94]
cmp byte [esp + 0x48], 0
je 0x10062c8b
lea ecx, [esp + 0x28]
mov edx, edi
call sym.sysinfo::windows::cpu::get_frequencies::h99f95fc76d02d422
jmp 0x10062ce6
xor eax, eax
lea esi, [edi*8]
cmp edi, 0x1fffffff
ja 0x1006306c
cmp esi, 0x7ffffff8
ja 0x1006306c
test esi, esi
je 0x10062cd3
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 8
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
add esp, 0xc
test eax, eax
je 0x10063067
mov ecx, edi
jmp 0x10062cda
mov eax, 8
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 8]
inc edi
je 0x1006305d
mov esi, edi
xor eax, eax
shl esi, 6
cmp edi, 0x3ffffff
ja 0x1006306c
cmp esi, 0x7ffffff8
ja 0x1006306c
test esi, esi
je 0x10062d43
mov eax, dword [0x100f2e44]
movzx eax, byte [eax]
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
add esp, 0xc
test eax, eax
je 0x10063067
mov ecx, dword [esp + 8]
mov ebx, eax
jmp 0x10062d4a
mov ebx, 8
xor edi, edi
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10062f0d
shl eax, 3
xor edx, edx
mov edi, 0x38
jmp 0x10062deb
mov dword [ebx + edi - 0x38], 0x80000000
mov dword [ebx + edi - 0x2c], 0
mov dword [ebx + edi - 0x28], esi
mov dword [ebx + edi - 0x24], eax
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
mov dword [ebx + edi - 0x18], eax
mov eax, dword [esp + 0x34]
movsd xmm0, qword [esp + 0x10]
movsd qword [ebx + edi - 0x20], xmm0
mov dword [ebx + edi - 0x14], esi
mov dword [ebx + edi - 0x10], eax
mov eax, dword [esp + 4]
mov dword [ebx + edi - 0xc], esi
mov dword [ebx + edi - 8], ecx
mov dword [ebx + edi - 4], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + edi], ecx
add edi, 0x40
mov dword [esp + 0x58], edx
add eax, 0xfffffff8
je 0x10062f0d
mov dword [esp + 0x40], eax
lea eax, [edx + 1]
mov dword [esp + 0x5c], 0x100f23ec
mov dword [esp + 0x60], 1
mov dword [esp + 0x6c], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x7c], sym.core::fmt::num::imp::__LT_impl_u20_core..fmt..Display_u20_for_u20_u32_GT_::fmt::h8917667e5366c09f
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x68], 1
push eax
lea eax, [esp + 0x14]
push eax
call sym.alloc::fmt::format::format_inner::h615817f0e0a04e8e
add esp, 8
test esi, esi
mov eax, 1
mov dword [esp + 4], 1
je 0x10062e84
mov eax, dword [0x100f2e44]
movzx eax, byte [eax]
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
add esp, 0xc
test eax, eax
je 0x10063049
mov esi, dword [esp + 0xc]
push esi
push dword [esp + 0x24]
mov dword [esp + 0x3c], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x10062ecd
mov eax, dword [0x100f2e44]
movzx eax, byte [eax]
sub esp, 0xc
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
add esp, 0xc
test eax, eax
mov dword [esp + 4], eax
je 0x1006303e
mov ecx, dword [esp + 8]
push ecx
push dword [esp + 0x28]
push dword [esp + 0xc]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
mov esi, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
cmp ecx, dword [esp + 0x50]
jne 0x10062d80
lea ecx, [esp + 0x50]
mov ebx, eax
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::hdbee5b1d9781577c
mov eax, ebx
mov ebx, dword [esp + 0x54]
jmp 0x10062d80
cmp dword [esp + 0x28], 0
je 0x10062f2a
mov eax, dword [0x100f2e2c]
push dword [esp + 0x4c]
push 0
push dword [eax]
call sub.kernel32.dll_HeapFree
mov ecx, dword [esp + 8]
test ecx, ecx
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
je 0x10062f45
mov eax, dword [0x100f2e2c]
push ecx
push 0
push dword [eax]
call sub.kernel32.dll_HeapFree
cmp dword [esp + 0xc], 0
je 0x10062f5e
mov eax, dword [0x100f2e2c]
push dword [esp + 0x20]
push 0
push dword [eax]
call sub.kernel32.dll_HeapFree
mov edi, dword [esi + 8]
mov eax, dword [esi + 4]
test edi, edi
mov dword [esp + 4], eax
je 0x10062fdf
mov eax, dword [esp + 4]
mov esi, dword [0x100f2e2c]
lea ebx, [eax + 0x34]
jmp 0x10062f86
add ebx, 0x40
dec edi
je 0x10062fdf
cmp dword [ebx - 0x1c], 0
je 0x10062f98
push dword [ebx - 0x18]
push 0
push dword [esi]
call sub.kernel32.dll_HeapFree
cmp dword [ebx - 0x10], 0
je 0x10062faa
push dword [ebx - 0xc]
push 0
push dword [esi]
call sub.kernel32.dll_HeapFree
test dword [ebx - 0x34], 0x7fffffff
jne 0x10062fc0
cmp dword [ebx - 4], 0
jne 0x10062fd2
jmp 0x10062f80
push dword [ebx - 0x30]
push 0
push dword [esi]
call sub.kernel32.dll_HeapFree
cmp dword [ebx - 4], 0
je 0x10062f80
push dword [ebx]
push 0
push dword [esi]
call sub.kernel32.dll_HeapFree
jmp 0x10062f80
mov esi, dword [esp + 0x44]
cmp dword [esi], 0
je 0x10062ffa
mov eax, dword [0x100f2e2c]
push dword [esp + 4]
push 0
push dword [eax]
call sub.kernel32.dll_HeapFree
mov eax, dword [esp + 0x58]
movsd xmm0, qword [esp + 0x50]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x48]
movsd qword [esi], xmm0
mov byte [esi + 0x1c], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, 1
push ecx
push eax
push esi
call sub.msvcrt.dll_memcpy
mov ecx, ebx
add esp, 0xc
mov ebx, esi
cmp dword [esp + 0x10], 0
jne 0x10062a5f
jmp 0x10062a72
push dword [esp + 8]
push 1
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
push dword [esp + 0xc]
push 1
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
push 0xc
push 1
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
push 0x100f23d8
call sym.core::panicking::panic_const::panic_const_add_overflow::hf3b41c4c75c49a6d
mov eax, 8
push esi
push eax
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
push 0x50
push 4
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
push 0x30
push 1
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
mov ebx, ecx
xor eax, eax
push ebx
push eax
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
push ebx
push 1
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
push 0x100f23b8
push eax
push ecx
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
xor eax, eax
push ebx
push eax
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
push 0x100f23a8
push eax
push edx
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
nop dword [eax]