Function at 0x537200
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, 0xc0
cmp dword [ecx + 0x48], 0
jne 0x537b48
xorps xmm0, xmm0
lea eax, [esp + 0x90]
mov edi, ecx
mov dword [esp + 0xb0], 0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, 0x80000000
xor ecx, ecx
mov esi, ebx
cpuid
xchg ebx, esi
mov esi, 1
cmp eax, 0x80000004
mov dword [esp + 8], 0
mov dword [esp + 0x30], edi
jb 0x5374bb
mov dword [esp + 0x2c], eax
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x537295
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x537bb0
mov dword [0x5da100], eax
push 0x50
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x537bb0
mov dword [esp + 0x10], eax
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov edi, 0x80000000
xor esi, esi
mov ecx, 0x80000000
mov dword [esp + 0x14], 5
mov dword [esp + 0x18], 0
nop dword [eax]
cmp edi, eax
mov dword [esp + 0x1c], ebx
mov eax, edi
adc ecx, 0
mov dword [esp + 8], ecx
xor ecx, ecx
mov ebx, ebx
cpuid
xchg ebx, ebx
mov dword [esp + 0xc], ebx
cmp esi, dword [esp + 0x14]
jne 0x537320
mov dword [esp + 0x1c], ecx
mov ebx, edx
mov edx, esi
lea ecx, [esp + 0x10]
mov esi, eax
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve_for_push::h3cac5eaa7bff534a
mov eax, esi
mov edx, ebx
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
jmp 0x537324
mov ebx, dword [esp + 0x1c]
shl esi, 4
mov dword [ebx + esi], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + esi + 4], eax
mov dword [ebx + esi + 8], ecx
mov dword [ebx + esi + 0xc], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x18]
inc esi
cmp edi, eax
mov dword [esp + 0x18], esi
jae 0x537359
cmp ecx, eax
mov edi, ecx
jbe 0x5372d0
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x53737b
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x537bc1
mov dword [0x5da100], eax
push 0x30
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x537bc1
mov dword [esp + 0x20], eax
mov edi, eax
xor eax, eax
cmp esi, 3
mov dword [esp + 0x24], 0x30
mov dword [esp + 0x28], 0
jb 0x537467
mov ebx, dword [esp + 0x10]
lea edi, [esp + 0x20]
shl esi, 4
mov ecx, edi
mov edx, dword [ebx + 0x20]
add esi, ebx
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h25a1419a2d8faaa9
mov edx, dword [ebx + 0x24]
mov ecx, edi
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h25a1419a2d8faaa9
mov edx, dword [ebx + 0x28]
mov ecx, edi
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h25a1419a2d8faaa9
add ebx, 0x2c
mov eax, 0xffffffe0
mov dword [esp + 0xc], ebx
nop word cs:[eax + eax]
nop
mov edx, dword [ebx + eax + 0x20]
mov ecx, edi
mov dword [esp + 8], eax
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h25a1419a2d8faaa9
mov eax, dword [esp + 8]
test eax, eax
je 0x53743b
mov ecx, ebx
lea ebx, [ebx + eax + 0x24]
cmp ebx, esi
je 0x53743b
mov edx, dword [ebx]
mov ecx, edi
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h25a1419a2d8faaa9
mov edx, dword [ebx + 4]
mov ecx, edi
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h25a1419a2d8faaa9
mov edx, dword [ebx + 8]
mov ecx, edi
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h25a1419a2d8faaa9
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
add eax, 0x10
jmp 0x5373f0
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
xor eax, eax
test edx, edx
je 0x537467
nop dword [eax]
cmp byte [edi + eax], 0
je 0x53745f
inc eax
cmp edx, eax
jne 0x537450
mov eax, edx
jmp 0x537467
cmp eax, edx
ja 0x537bdb
lea ecx, [esp + 0x38]
mov edx, edi
push eax
call dbg.from_utf8
add esp, 4
cmp dword [esp + 0x38], 0
je 0x5376dd
mov dword [esp + 8], 0
mov esi, 1
cmp dword [esp + 0x24], 0
je 0x5374a3
push edi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
cmp dword [esp + 0x14], 0
je 0x5374bb
push dword [esp + 0x10]
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
xor eax, eax
xor ecx, ecx
mov ebx, ebx
cpuid
xchg ebx, ebx
mov dword [esp + 0xc], ecx
mov edi, edx
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x5374ed
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x537b9f
mov dword [0x5da100], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x537b9f
mov dword [esp + 0x54], esi
lea esi, [esp + 0x20]
mov edx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], 0
mov ecx, esi
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h25a1419a2d8faaa9
mov ecx, esi
mov edx, edi
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h25a1419a2d8faaa9
mov edx, dword [esp + 0xc]
mov ecx, esi
call sym.sysinfo::windows::cpu::get_vendor_id_and_brand::add_u32::h25a1419a2d8faaa9
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
test eax, eax
je 0x537567
xor ecx, ecx
nop word cs:[eax + eax]
cmp byte [esi + ecx], 0
je 0x53755d
inc ecx
cmp eax, ecx
jne 0x537550
jmp 0x537567
cmp ecx, eax
ja 0x537bd2
mov eax, ecx
lea ecx, [esp + 0x38]
mov edx, esi
push eax
call dbg.from_utf8
add esp, 4
cmp dword [esp + 0x38], 0
je 0x5375aa
movsx eax, word [esp + 0x90]
cmp eax, 0xe
ja 0x5375d2
mov ebx, dword [eax*4 + 0x5c1eac]
mov edi, dword [eax*4 + 0x5c1ee8]
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x5375fe
jmp 0x5375ec
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
test ebx, ebx
je 0x537742
js 0x537b8a
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x5375fe
jmp 0x5375ec
mov edi, 0x5bd009
mov ebx, 7
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x5375fe
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x537b91
mov dword [0x5da100], eax
push ebx
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x537b91
push ebx
push edi
mov dword [esp + 0x3c], eax
push eax
call sym._memcpy
add esp, 0xc
cmp dword [esp + 0x24], 0
je 0x537633
push esi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
mov edx, dword [esp + 0xa4]
cmp byte [ebp + 8], 0
mov dword [esp + 0x58], ebx
je 0x53766c
lea ecx, [esp + 0x60]
mov esi, edx
call sym.sysinfo::windows::cpu::get_frequencies::h2b18c1d653dc33d9
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
inc esi
jne 0x5376d4
mov dword [esp + 0x50], eax
xor edi, edi
mov eax, 8
mov edx, ecx
jmp 0x5377cd
test edx, edx
je 0x53773b
xor ebx, ebx
cmp edx, 0x10000000
setb al
jae 0x537b8a
mov bl, al
lea esi, [edx*8]
shl ebx, 3
test esi, esi
js 0x537b8a
je 0x53774c
mov eax, dword [0x5da100]
mov edi, edx
test eax, eax
jne 0x5376bc
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x537b5a
mov dword [0x5da100], eax
push esi
push 8
push eax
call sub.kernel32.dll_HeapAlloc
mov edx, edi
test eax, eax
jne 0x537756
jmp 0x537b5a
mov edi, esi
mov edx, ecx
jmp 0x537765
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
test eax, eax
mov dword [esp + 8], eax
je 0x537b65
js 0x537b8a
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x537715
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x53772b
mov dword [0x5da100], eax
push dword [esp + 8]
push 0
push eax
call sub.kernel32.dll_HeapAlloc
mov ebx, eax
test eax, eax
jne 0x537b6a
mov edx, dword [esp + 8]
mov ecx, 1
call dbg.handle_alloc_error
ud2
mov eax, 8
jmp 0x537756
mov eax, 1
jmp 0x53760f
mov eax, ebx
test eax, eax
je 0x537b5a
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
lea edi, [edx + 1]
xor ebx, ebx
cmp edi, 0x2000000
setb cl
jae 0x537b8a
mov esi, edi
mov bl, cl
shl esi, 6
shl ebx, 3
test esi, esi
js 0x537b8a
mov dword [esp + 0x50], eax
je 0x537b50
mov dword [esp + 0xc], edx
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x5377b8
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x537b5a
mov dword [0x5da100], eax
push esi
push 0
push eax
call sub.kernel32.dll_HeapAlloc
mov edx, dword [esp + 0xc]
test eax, eax
je 0x537b5a
mov ebx, dword [esp + 0x58]
test edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x18], 0
je 0x5379ff
shl edx, 3
mov esi, 1
mov dword [esp + 0x1c], 0
jmp 0x5378b2
mov esi, ecx
lea ecx, [esp + 0x10]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve_for_push::h9c4d32a9e046989e
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
mov eax, edx
mov dword [esp + 0x5c], esi
inc edx
shl eax, 6
mov dword [esp + 0x1c], edx
mov dword [esi + eax + 4], ebx
mov dword [esi + eax], ecx
mov ebx, dword [esp + 0x58]
movsd xmm0, qword [esp + 0x38]
movsd qword [esi + eax + 8], xmm0
mov ecx, dword [esp + 0x40]
mov dword [esi + eax + 0x10], ecx
mov ecx, dword [esp + 0x70]
mov dword [esi + eax + 0x14], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esi + eax + 0x18], ebx
mov dword [esi + eax + 0x1c], ebx
mov dword [esi + eax + 0x20], ecx
mov ecx, dword [esp + 8]
mov dword [esi + eax + 0x24], ecx
mov dword [esi + eax + 0x28], ecx
mov dword [esi + eax + 0x2c], 0
mov dword [esi + eax + 0x30], 0
movsd xmm0, qword [esp + 0x20]
movsd qword [esi + eax + 0x34], xmm0
mov ecx, dword [esp + 0x28]
mov dword [esi + eax + 0x3c], ecx
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
inc esi
add edi, 0xfffffff8
mov edx, edi
je 0x5379ff
lea ecx, [esp + 0x78]
mov dword [esp + 0xc], edx
lea eax, [esp + 0x74]
mov dword [esp + 0x38], 0x5bcfd4
mov dword [esp + 0x3c], 1
mov dword [esp + 0x48], 0
lea edx, [esp + 0x38]
mov dword [esp + 0x74], esi
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], sym.core::fmt::num::imp::__LT_impl_u20_core..fmt..Display_u20_for_u20_u32_GT_::fmt::ha05222cc52361d66
mov dword [esp + 0x44], 1
call dbg.format_inner
test ebx, ebx
mov edi, 1
je 0x537943
js 0x537b8a
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x537930
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x537b91
mov dword [0x5da100], eax
push ebx
push 0
push eax
call sub.kernel32.dll_HeapAlloc
mov edi, eax
test eax, eax
je 0x537b91
push ebx
push dword [esp + 0x38]
push edi
call sym._memcpy
add esp, 0xc
cmp dword [esp + 8], 0
je 0x5379a0
js 0x537b8a
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
mov ebx, esi
test eax, eax
jne 0x537982
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x53772b
mov dword [0x5da100], eax
push dword [esp + 8]
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
jne 0x5379a7
jmp 0x53772b
mov ebx, esi
mov eax, 1
mov dword [esp + 0x70], edi
push dword [esp + 8]
push dword [esp + 0x58]
mov dword [esp + 0x74], eax
push eax
call sym._memcpy
add esp, 0xc
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], ebx
movsd xmm0, qword [esp + 0x20]
mov ecx, dword [eax + ebx*8 - 8]
mov ebx, dword [eax + ebx*8 - 4]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x1c]
movsd qword [esp + 0x38], xmm0
cmp edx, dword [esp + 0x14]
je 0x537810
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x5c]
jmp 0x537829
mov eax, dword [esp + 0x18]
movsd xmm0, qword [esp + 0x10]
cmp dword [esp + 0x64], 0
mov dword [esp + 0x40], eax
movsd qword [esp + 0x38], xmm0
je 0x537a2b
push dword [esp + 0x60]
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
mov ecx, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov esi, dword [ecx + 0x48]
movsd qword [esp + 0x80], xmm0
mov dword [esp + 0x88], eax
test esi, esi
je 0x537ac4
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 0x40]
add edi, 0x34
jmp 0x537a66
add edi, 0x40
dec esi
je 0x537ac4
cmp dword [edi - 0x28], 0
je 0x537a7c
push dword [edi - 0x2c]
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
mov eax, dword [edi - 4]
test eax, eax
je 0x537a96
cmp dword [edi], 0
je 0x537a96
push eax
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
cmp dword [edi - 0x1c], 0
je 0x537aac
push dword [edi - 0x20]
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
cmp dword [edi - 0x10], 0
je 0x537a60
push dword [edi - 0x14]
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
jmp 0x537a60
mov edi, dword [esp + 0x30]
cmp dword [edi + 0x44], 0
lea esi, [edi + 0x40]
je 0x537ae0
push dword [esi]
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
mov eax, dword [esp + 0x88]
movsd xmm0, qword [esp + 0x80]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
cmp dword [edi + 0x18], 0
je 0x537b0d
push dword [edi + 0x14]
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x54]
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
cmp dword [edi + 0x24], 0
je 0x537b34
push dword [edi + 0x20]
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
mov eax, dword [esp + 8]
movzx ecx, byte [ebp + 8]
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov byte [edi + 0x4c], cl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, ebx
test eax, eax
jne 0x5377cd
mov ecx, ebx
mov edx, esi
call dbg.handle_alloc_error
ud2
mov ebx, 1
push dword [esp + 8]
push esi
push ebx
call sym._memcpy
add esp, 0xc
mov esi, ebx
cmp dword [esp + 0x24], 0
jne 0x537495
jmp 0x5374a3
call sym.alloc::raw_vec::capacity_overflow::h894971bc65aab54c
ud2
mov ecx, 1
mov edx, ebx
call dbg.handle_alloc_error
ud2
mov ecx, 1
mov edx, 0xc
call dbg.handle_alloc_error
ud2
mov ecx, 4
mov edx, 0x50
call dbg.handle_alloc_error
ud2
mov ecx, 1
mov edx, 0x30
call dbg.handle_alloc_error
ud2
mov edx, eax
push 0x5bd100
jmp 0x537be2
mov ecx, eax
push 0x5bd0f0
call dbg.slice_end_index_len_fail
add esp, 4
ud2