Function at 0x416570
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub esp, 0x16c
mov al, byte [0x51ef98]
push ebx
push ebp
mov ebp, ecx
mov byte [esp + 0x74], al
push esi
push edi
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x7d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
stosb byte es:[edi], al
mov eax, str.Unknown
lea edx, [ebp + 4]
mov dword [ebp], ebx
mov dword [ebp + 0x33c], ebx
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4165b0
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x70]
sub eax, 0x1e6
je 0x4165d9
sub eax, 0x64
jne 0x416e95
lea edx, [esp + 0x7c]
push edx
lea esi, [ebp + 4]
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.00411d00
test eax, eax
jne 0x41661f
xor edi, edi
mov eax, str.Non_compatible_CPU
mov edx, esi
mov dword [ebp], ebx
mov dword [esp + 0x14], edi
mov dword [ebp + 0x104], ebx
sub edx, eax
nop
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x416610
jmp 0x416e99
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push 0x14
mov dword [esp + 0x18], eax
xor edi, edi
call fcn.00432f36
add esp, 4
mov dword [esp + 0x10], eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 1
mov ecx, ebp
call fcn.00412270
mov esi, eax
push 1
mov ecx, esi
call fcn.00411fb0
push 2
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00412010
mov ecx, esi
call fcn.004121d0
fcomp qword [0x4f3550]
fnstsw ax
test ah, 5
jnp 0x416680
push 2
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00412010
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push esi
mov ecx, ebp
call fcn.004122d0
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
sbb ebx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov ecx, dword [0x520020]
xor esi, esi
push esi
push 2
call fcn.0041bdd0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], esi
fild qword [esp + 0x30]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
fmul dword [0x4f3548]
fmul dword [0x4f22c0]
fild qword [esp + 0x28]
fmul dword [0x4f22c0]
faddp st(1)
fmul qword [0x4f3540]
call fcn.004337c4
mov ecx, dword [esp + 0x10]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, 5
jl 0x416647
mov edi, ecx
mov ebx, dword [edi]
mov dword [esp + 0x14], ebx
mov esi, 1
mov ecx, dword [edi + esi*4]
mov eax, ebx
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fild dword [esp + 0x14]
fmul qword [0x4f3538]
fcompp
fnstsw ax
test ah, 0x41
jne 0x41677b
lea eax, [ecx + ebx]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
mov ebx, eax
inc esi
cmp esi, 5
jl 0x416746
push edi
call fcn.00432366
mov ecx, dword [0x520020]
add esp, 4
push 0
push 1
call fcn.0041bdd0
push 0
lea esi, [ebp + 4]
push esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.00411d00
mov edi, eax
and edi, 0x3000
mov dword [esp + 0x10], eax
je 0x4167d2
cmp edi, 0x1000
je 0x416803
cmp edi, 0x2000
jne case.0x416c7b.1
push str.GenuineIntel
push esi
call fcn.004404f0
add esp, 8
test eax, eax
jne 0x416ad2
cmp edi, 0x2000
jne 0x416827
mov eax, str.Dual
sub esi, eax
mov cl, byte [eax]
mov byte [eax + esi], cl
inc eax
test cl, cl
jne 0x4167f7
jmp 0x41683a
mov eax, dword [esp + 0x10]
and eax, 0xf00
cmp eax, 0x500
je 0x416e84
cmp eax, 0x600
jne case.0x416c7b.1
jmp 0x416e84
mov eax, 0x51ef98
sub esi, eax
mov edi, edi
mov cl, byte [eax]
mov byte [eax + esi], cl
inc eax
test cl, cl
jne 0x416830
mov ecx, dword [esp + 0x10]
mov eax, ecx
and eax, 0xf00
cmp eax, 0x500
je 0x416a0d
cmp eax, 0x600
je 0x416891
cmp eax, 0xf00
jne case.0x416c7b.1
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
mov ecx, dword [str.Intel_Pentium_4]
dec edi
mov dword [edi], ecx
mov edx, dword [0x50f720]
mov dword [edi + 4], edx
mov eax, dword [0x50f724]
mov dword [edi + 8], eax
mov ecx, dword [0x50f728]
jmp 0x4169f7
and ecx, 0xf0
lea eax, [ecx - 0x10]
cmp eax, 0x80
ja case.0x416c7b.1
movzx edx, byte [eax + 0x417040]
jmp dword [edx*4 + 0x417028]
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
mov eax, dword [str.Intel_Pentium_Pro]
dec edi
mov dword [edi], eax
mov ecx, dword [0x50f70c]
mov dword [edi + 4], ecx
mov edx, dword [0x50f710]
mov dword [edi + 8], edx
mov eax, dword [0x50f714]
mov dword [edi + 0xc], eax
mov cx, word [0x50f718]
mov word [edi + 0x10], cx
jmp 0x416e84
mov edx, dword [str.Intel_Pentium_II]
xor eax, eax
or ecx, 0xffffffff
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
dec edi
mov dword [edi], edx
mov eax, dword [0x50f6f8]
mov dword [edi + 4], eax
mov ecx, dword [0x50f6fc]
mov dword [edi + 8], ecx
mov edx, dword [0x50f700]
mov dword [edi + 0xc], edx
mov al, byte [0x50f704]
mov byte [edi + 0x10], al
jmp 0x416955
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
mov ecx, dword [str.Intel_Celeron]
dec edi
mov dword [edi], ecx
mov edx, dword [0x50f6e8]
mov dword [edi + 4], edx
mov eax, dword [0x50f6ec]
mov dword [edi + 8], eax
mov cx, word [0x50f6f0]
mov word [edi + 0xc], cx
or dword [ebp + 0x33c], 1
mov dword [ebp], 1
jmp case.0x416c7b.1
mov edx, dword [str.Intel_Pentium_III]
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
dec edi
mov dword [edi], edx
mov eax, dword [0x50f6d4]
mov dword [edi + 4], eax
mov ecx, dword [0x50f6d8]
mov dword [edi + 8], ecx
mov edx, dword [0x50f6dc]
mov dword [edi + 0xc], edx
mov ax, word [0x50f6e0]
mov word [edi + 0x10], ax
mov ecx, dword [ebp + 0x33c]
or ecx, 3
cmp ebx, 0x190
mov dword [ebp + 0x33c], ecx
mov dword [ebp], 2
jg case.0x416c7b.1
mov dword [ebp], 1
jmp case.0x416c7b.1
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
mov ecx, dword [str.Intel_Pentium_M]
dec edi
mov dword [edi], ecx
mov edx, dword [0x50f6c4]
mov dword [edi + 4], edx
mov eax, dword [0x50f6c8]
mov dword [edi + 8], eax
mov ecx, dword [0x50f6cc]
mov dword [edi + 0xc], ecx
or dword [ebp + 0x33c], 3
mov dword [ebp], 3
jmp case.0x416c7b.1
mov eax, ecx
and eax, 0xf0
cmp eax, 0x10
je 0x416a9e
cmp eax, 0x20
je 0x416a6e
cmp eax, 0x40
jne case.0x416c7b.1
mov edx, dword [str.Intel_Pentium_MMX]
xor eax, eax
or ecx, 0xffffffff
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
dec edi
mov dword [edi], edx
mov eax, dword [0x50f6b0]
mov dword [edi + 4], eax
mov ecx, dword [0x50f6b4]
mov dword [edi + 8], ecx
mov edx, dword [0x50f6b8]
mov dword [edi + 0xc], edx
mov ax, word [0x50f6bc]
mov word [edi + 0x10], ax
or dword [ebp + 0x33c], 1
jmp 0x416e84
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
mov ecx, dword [str.Intel_Pentium]
dec edi
mov dword [edi], ecx
mov edx, dword [0x50f6a0]
mov dword [edi + 4], edx
mov eax, dword [0x50f6a4]
mov dword [edi + 8], eax
mov cx, word [0x50f6a8]
jmp 0x416e80
mov edx, dword [str.Intel_Pentium]
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
dec edi
mov dword [edi], edx
mov eax, dword [0x50f6a0]
mov dword [edi + 4], eax
mov ecx, dword [0x50f6a4]
mov dword [edi + 8], ecx
mov dx, word [0x50f6a8]
mov word [edi + 0xc], dx
jmp 0x416e84
push str.AuthenticAMD
push esi
call fcn.004404f0
add esp, 8
test eax, eax
jne 0x416d31
cmp edi, 0x2000
jne 0x416b03
mov eax, str.Dual
sub esi, eax
mov cl, byte [eax]
mov byte [eax + esi], cl
inc eax
test cl, cl
jne 0x416af7
jmp 0x416b1a
mov eax, 0x51ef98
sub esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + esi], cl
inc eax
test cl, cl
jne 0x416b10
mov ecx, dword [esp + 0x10]
mov eax, ecx
and eax, 0xf00
cmp eax, 0x500
je 0x416c62
cmp eax, 0x600
je 0x416b6c
cmp eax, 0xf00
jne case.0x416c7b.1
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
dec edi
mov ecx, 7
mov esi, str.AMD_Athlon64__tm__Processor
rep movsd dword es:[edi], dword [esi]
or dword [ebp + 0x33c], 3
mov dword [ebp], 5
jmp case.0x416c7b.1
and ecx, 0xf0
lea eax, [ecx - 0x10]
cmp eax, 0x90
ja case.0x416c7b.1
movzx eax, byte [eax + 0x4170d8]
jmp dword [eax*4 + 0x4170c4]
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
dec edi
mov ecx, 6
mov esi, str.AMD_Athlon__tm__Processor
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x416bc1
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
dec edi
mov ecx, 6
mov esi, str.AMD_Duron__tm__Processor
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
or dword [ebp + 0x33c], 3
mov dword [ebp], 2
jmp case.0x416c7b.1
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
dec edi
mov ecx, 6
mov esi, str.AMD_Athlon__tm__Processor
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebp + 0x33c]
or ecx, 3
cmp ebx, 0x4b0
mov dword [ebp + 0x33c], ecx
mov dword [ebp], 3
jg case.0x416c7b.1
mov dword [ebp], 2
jmp case.0x416c7b.1
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
dec edi
mov ecx, 6
mov esi, str.AMD_Athlon__tm__Processor
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebp + 0x33c]
or ecx, 3
cmp ebx, 0x708
mov dword [ebp + 0x33c], ecx
mov dword [ebp], 4
jg case.0x416c7b.1
mov dword [ebp], 3
jmp case.0x416c7b.1
mov eax, ecx
and eax, 0xf0
cmp eax, 0x90
ja case.0x416c7b.1
movzx ecx, byte [eax + 0x417180]
jmp dword [ecx*4 + 0x41716c]
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
dec edi
mov ecx, 5
mov esi, str.AMD_K5__tm__Processor
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x416e84
mov edx, dword [str.AMD_K6_MMX]
xor eax, eax
or ecx, 0xffffffff
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
dec edi
mov dword [edi], edx
mov eax, dword [0x50f618]
mov dword [edi + 4], eax
mov cx, word [0x50f61c]
mov word [edi + 8], cx
mov dl, byte [0x50f61e]
mov byte [edi + 0xa], dl
or dword [ebp + 0x33c], 1
jmp 0x416e84
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
dec edi
mov ecx, 5
mov esi, str.AMD_K6_3D_Processor
rep movsd dword es:[edi], dword [esi]
or dword [ebp + 0x33c], 1
jmp 0x416e84
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
dec edi
mov ecx, 5
mov esi, 0x50f5e8
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x33c]
or eax, 1
mov dword [ebp], 1
mov dword [ebp + 0x33c], eax
jmp case.0x416c7b.1
push str.CyrixInstead
push esi
call fcn.004404f0
add esp, 8
test eax, eax
jne case.0x416c7b.1
cmp edi, 0x2000
jne 0x416d62
mov eax, str.Dual
sub esi, eax
mov cl, byte [eax]
mov byte [eax + esi], cl
inc eax
test cl, cl
jne 0x416d56
jmp 0x416d7a
mov eax, 0x51ef98
sub esi, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + esi], cl
inc eax
test cl, cl
jne 0x416d70
mov ecx, dword [esp + 0x10]
mov eax, ecx
and eax, 0xf00
cmp eax, 0x400
je 0x416e4a
cmp eax, 0x500
je 0x416dd3
cmp eax, 0x600
jne case.0x416c7b.1
xor eax, eax
or ecx, 0xffffffff
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
mov eax, dword [str.Cyrix_6x86MX]
dec edi
mov dword [edi], eax
mov ecx, dword [0x50f5cc]
mov dword [edi + 4], ecx
mov edx, dword [0x50f5d0]
mov dword [edi + 8], edx
mov al, byte [0x50f5d4]
mov byte [edi + 0xc], al
jmp 0x416e84
and ecx, 0xf0
xor eax, eax
cmp cl, 0x20
lea edi, [ebp + 4]
je 0x416e1f
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, dword [str.Cyrix_MediaGX_MMX]
dec edi
mov dword [edi], ecx
mov edx, dword [0x50f5b8]
mov dword [edi + 4], edx
mov eax, dword [0x50f5bc]
mov dword [edi + 8], eax
mov ecx, dword [0x50f5c0]
mov dword [edi + 0xc], ecx
mov dx, word [0x50f5c4]
mov word [edi + 0x10], dx
or dword [ebp + 0x33c], 1
jmp 0x416e84
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [str.Cyrix_6x86]
dec edi
mov dword [edi], eax
mov ecx, dword [0x50f5ac]
mov dword [edi + 4], ecx
mov dx, word [0x50f5b0]
mov word [edi + 8], dx
mov al, byte [0x50f5b2]
mov byte [edi + 0xa], al
jmp 0x416e84
and ecx, 0xf0
cmp cl, 0x40
jne case.0x416c7b.1
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
mov ecx, dword [str.Cyrix_MediaGX]
dec edi
mov dword [edi], ecx
mov edx, dword [0x50f59c]
mov dword [edi + 4], edx
mov eax, dword [0x50f5a0]
mov dword [edi + 8], eax
mov cx, word [0x50f5a4]
mov word [edi + 0xc], cx
mov dword [ebp], 0
mov dword [ebp + 0x104], 1
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x38]
mov ebx, 0x20
push edx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
cmp dword [ebp], 5
jge 0x416ed3
cmp edi, 0xbb8
jl 0x416ec4
mov dword [ebp], 5
jmp 0x416ed3
cmp edi, 0x5dc
jl 0x416ed3
mov dword [ebp], 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x180]
mov dword [ebp + 0x104], eax
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x32c], eax
mov dword [ebp + 0x31c], eax
mov eax, dword [esp + 0x44]
mov dword [ebp + 0x324], ecx
mov ecx, esi
mov dword [ebp + 0x108], edi
mov dword [ebp + 0x330], eax
mov dword [ebp + 0x320], eax
mov dword [ebp + 0x328], edx
call fcn.00415b00
test eax, eax
jle 0x416f4e
push 0
mov ecx, esi
call fcn.00415b10
lea ecx, [ebp + 0x338]
push ecx
lea edx, [ebp + 0x334]
push edx
lea ecx, [ebp + 0x214]
push ecx
mov ecx, eax
call fcn.00415880
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
lea edi, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416f79
cmp byte [esp + esi + 0x7c], bl
jne 0x416f79
or ecx, 0xffffffff
xor eax, eax
inc esi
lea edi, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x416f60
mov al, byte [esp + 0x7c]
test al, al
jne 0x416f9a
lea eax, [ebp + 4]
lea edx, [esp + 0x7c]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x416f90
mov edx, dword [esp + 0x14]
xor eax, eax
lea ebx, [ebp + 4]
mov ecx, 0x40
mov edi, ebx
rep stosd dword es:[edi], eax
cmp dword [ebp + 0x108], 0x3e8
jl 0x417003
lea ecx, [edx + 0x32]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x10], edx
sub esp, 8
lea ecx, [esp + esi + 0x84]
fild dword [esp + 0x18]
fmul dword [0x4f3534]
fstp qword [esp]
push ecx
push str._s____.2f_GHz
push ebx
call fcn.004326d1
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 4
push edx
lea eax, [esp + esi + 0x80]
push eax
push str._s____d_MHz
push ebx
call fcn.004326d1
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 4