Function at 0x46bf00
Capabilities:
Get cpu information
Get memory capacity
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x522104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
mov dword [ebp - 0x64], ebx
lea edi, [esi + 1]
cmp dword [0x529940], esi
jne 0x46bf36
mov ecx, edi
call fcn.0046bd50
mov esi, eax
test esi, esi
jne 0x46c89c
mov eax, dword [0x529940]
test eax, eax
je 0x46bf46
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x529944]
mov ecx, eax
inc eax
mov dword [0x529944], eax
test ecx, ecx
jne 0x46c881
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x46c0d7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process2
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
xor eax, eax
mov word [ebp - 0x1c], ax
mov word [ebp - 8], ax
test edi, edi
je 0x46c01f
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x4ee33c]
call edi
test eax, eax
je 0x46c01f
cmp word [ebp - 0x1c], 0
movzx edx, word [0x529bdc]
movzx eax, word [ebp - 8]
cmovne edx, eax
movzx eax, word [ebp - 8]
mov word [0x529bdc], dx
cmp eax, 0x8664
ja 0x46c00b
je 0x46bffe
cmp eax, 0x200
je 0x46bff1
cmp eax, 0x284
jne 0x46c061
mov eax, 7
mov word [0x529bd8], ax
jmp 0x46c061
mov eax, 6
mov word [0x529bd8], ax
jmp 0x46c061
mov eax, 9
mov word [0x529bd8], ax
jmp 0x46c061
cmp eax, 0xaa64
jne 0x46c061
mov eax, 0xc
mov word [0x529bd8], ax
jmp 0x46c061
push 0x5099e0
push esi
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x46c047
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
push ebx
call dword [0x4ee33c]
call edi
cmp dword [ebp - 0xc], 0
je 0x46c05a
mov eax, 0x8664
mov word [0x529bdc], ax
jmp 0x46c066
mov dx, word [0x529bdc]
test dx, dx
je 0x46c077
push str.Wow64EnableWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x529c14], eax
push str.GetLogicalProcessorInformationEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x529be0], eax
test eax, eax
jne 0x46c09d
push str.GetLogicalProcessorInformation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x529bf0], eax
push 0x509a3c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x529c80], 0xf
jl 0x46c0cf
push str.PrefetchVirtualMemory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetCurrentThreadStackLimits
push esi
mov dword [0x529be4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [ebp - 0x64]
mov edi, 1
push str.NTDLL.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x529bc4], eax
test eax, eax
je 0x46c297
push 0x509aa8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlInitUnicodeString
push dword [0x529bc4]
mov dword [0x529c10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtOpenFile
push dword [0x529bc4]
mov dword [0x529c18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCreateFile
push dword [0x529bc4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtReadFile
push dword [0x529bc4]
mov dword [0x529c08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtWriteFile
push dword [0x529bc4]
mov dword [0x529c04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationFile
push dword [0x529bc4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationFile
push dword [0x529bc4]
mov dword [0x529c0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryVirtualMemory
push dword [0x529bc4]
mov dword [0x529bfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryObject
push dword [0x529bc4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryVolumeInformationFile
push dword [0x529bc4]
mov dword [0x529c00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push dword [0x529bc4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationThread
push dword [0x529bc4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationThread
push dword [0x529bc4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQuerySystemInformation
push dword [0x529bc4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryDirectoryFile
push dword [0x529bc4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryEaFile
push dword [0x529bc4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x509c2c
push dword [0x529bc4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtFsControlFile
push dword [0x529bc4]
mov dword [0x529bf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtDeviceIoControlFile
push dword [0x529bc4]
mov dword [0x529bf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtWaitForSingleObject
push dword [0x529bc4]
mov dword [0x529bec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x509c68
push dword [0x529bc4]
mov dword [0x529be8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f421c
push 8
call fcn.004a57e0
mov esi, eax
add esp, 8
test esi, esi
je 0x46c870
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a4ca1
add esp, 4
mov dword [0x528e58], esi
mov dword [eax], eax
push 0x4f421c
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push 8
mov dword [esi], eax
call fcn.004a57e0
mov esi, eax
add esp, 8
test esi, esi
je 0x46c85f
push 0x120
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a4ca1
add esp, 4
mov dword [0x527e14], esi
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, dword [0x529bc4]
test eax, eax
je 0x46c578
push str.RtlSetThreadErrorMode
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x529bb8], eax
test eax, eax
jne 0x46c34e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x529ba4], 0
jne 0x46c385
mov eax, dword [0x529bc4]
test eax, eax
jne 0x46c36a
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46c37f
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x529ba4], eax
test eax, eax
jne 0x46c385
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x529ba0], 0
jne 0x46c3bc
mov eax, dword [0x529bc4]
test eax, eax
jne 0x46c3a1
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46c3b6
push str.RtlPcToFileHeader
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x529ba0], eax
test eax, eax
jne 0x46c3bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x529bc4]
test eax, eax
jne 0x46c3cf
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46c3e4
push str.LdrLockLoaderLock
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x529bac], eax
test eax, eax
jne 0x46c3ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x529bc4]
test eax, eax
jne 0x46c3fd
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46c412
push str.LdrUnlockLoaderLock
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x529ba8], eax
test eax, eax
jne 0x46c418
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x529bc4]
test eax, eax
jne 0x46c42b
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46c440
push str.NtQueryDirectoryFileEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x529bbc], eax
test eax, eax
jne 0x46c446
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x529bc4]
test eax, eax
jne 0x46c459
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46c46e
push str.NtWow64QueryInformationProcess64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x529bcc], eax
test eax, eax
jne 0x46c474
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x529bc4]
test eax, eax
jne 0x46c487
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46c49c
push str.NtWow64GetNativeSystemInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x529bc8], eax
test eax, eax
jne 0x46c4a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x529bc4]
test eax, eax
jne 0x46c4b5
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46c4ca
push str.NtWow64QueryVirtualMemory64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x529bb4], eax
test eax, eax
jne 0x46c4d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x529bc4]
test eax, eax
jne 0x46c4e3
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46c4f8
push str.NtWow64ReadVirtualMemory64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x529bb0], eax
test eax, eax
jne 0x46c4fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x529bc8]
test esi, esi
je 0x46c578
cmp word [0x529bd8], 0
jne 0x46c543
push 0
push 0xc
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 1
call dword [0x4ee33c]
call esi
movzx edx, word [0x529bd8]
test eax, eax
movzx ecx, word [ebp - 0x14]
mov esi, dword [0x529bc8]
cmove edx, ecx
mov word [0x529bd8], dx
push 0
push 0x2c
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
push 0
call dword [0x4ee33c]
call esi
test eax, eax
jne 0x46c578
mov eax, dword [ebp - 0x2c]
mov dword [0x522c18], eax
movzx eax, byte [ebp - 0x24]
mov dword [0x522c1c], 0
mov dword [0x522c24], eax
jmp 0x46c57d
mov eax, dword [0x522c24]
and ebx, 1
mov dword [ebp - 0x64], ebx
jne 0x46c5c5
cmp word [0x529b90], 0
mov ecx, 0x529b90
mov eax, 0x506978
cmovne eax, ecx
sub esp, 0xc
lea ecx, [ebp - 0x40]
push str.aswSP
push 0x10
push ecx
push eax
call fcn.0046f750
add esp, 0x14
mov edx, eax
mov ecx, 0x529bc0
call fcn.0046d820
mov eax, dword [0x522c24]
add esp, 8
test eax, eax
cmove eax, edi
sub esp, 8
mov dword [0x522c24], eax
call fcn.0046d8d0
push 0
push 0x80000002
lea eax, [ebp - 0xc]
xorps xmm0, xmm0
push eax
push 1
mov edx, str.HardwareDescriptionSystemCentralProcessor0
movlpd qword [ebp - 0x20], xmm0
xor ecx, ecx
call fcn.0046d4d0
add esp, 0x18
test eax, eax
jne 0x46c657
mov ebx, dword [ebp - 0xc]
xor esi, esi
mov eax, dword [esi + 0x509ef8]
test ebx, ebx
je 0x46c644
test eax, eax
je 0x46c644
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 8
push ecx
lea ecx, [ebp - 0x20]
xor edi, edi
push ecx
push edi
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x46c638
cmp eax, 0xea
jne 0x46c63b
mov edi, dword [ebp - 0xc]
test eax, eax
jne 0x46c644
cmp edi, 4
jae 0x46c64c
add esi, 4
cmp esi, 0xc
jb 0x46c604
test ebx, ebx
je 0x46c657
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004a7c50
add esp, 0xc
mov dword [ebp - 0x60], 0x40
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x46c682
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 0x528e44
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x46c6c4
push 0
push 0
push 1
push 0x528e44
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [0x528e38], 0xc
mov dword [0x528e40], 0
mov dword [0x528e3c], 0x528e44
jmp 0x46c6ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 0x528624
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x46c806
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x10]
mov word [ebp - 0xc], 0x100
push eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push 2
push 0x800
push 0x527e18
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
lea esi, [ebx + 8]
push esi
call fcn.004a4cdf
add esp, 4
mov edi, eax
mov dword [ebp - 8], edi
push esi
push 0
push edi
call fcn.004a7c50
add esp, 0xc
mov dword [edi + 4], 0x10000000
mov word [edi], 0x900
lea esi, [ebx + 8]
mov word [edi + 2], si
add edi, 8
push ebx
push dword [ebp - 0x1c]
push edi
call fcn.004a76d0
mov ecx, dword [ebp - 8]
add esp, 0xc
movzx eax, word [ecx + 2]
push eax
push ecx
push 0xffffffffffffffff
push 2
push 0x527e18
call dword [sym.imp.ADVAPI32.dll_AddAce]
mov eax, dword [ebp - 8]
push ebx
mov dword [eax + 4], 0x1f01ff
mov word [eax], 0x200
mov word [eax + 2], si
push dword [ebp - 0x1c]
push edi
call fcn.004a76d0
mov ebx, dword [ebp - 8]
add esp, 0xc
movzx eax, word [ebx + 2]
push eax
push ebx
push 0xffffffffffffffff
push 2
push 0x527e18
call dword [sym.imp.ADVAPI32.dll_AddAce]
push ebx
call fcn.004a4cd1
add esp, 4
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push 0
push 0x527e18
push 1
push 0x528624
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [0x528618], 0xc
mov dword [0x528620], 0
mov dword [0x52861c], 0x528624
jmp 0x46c80c
call dword [sym.imp.KERNEL32.dll_GetLastError]
or dword [0x529948], 2
push 0x18
push 0
mov dword [0x529c1c], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x46c87a
push 0x2000000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
mov dword [0x529c1c], esi
xor esi, esi
cmp dword [ebp - 0x64], esi
jne 0x46c88a
push 0x502038
push esi
call fcn.004be55a
add esp, 8
jmp 0x46c88a
mov dword [0x527e14], 0
mov esi, 8
jmp 0x46c885
mov dword [0x528e58], 0
mov esi, 8
jmp 0x46c885
test esi, esi
je 0x46c88a
call fcn.0046c8b0
mov eax, dword [0x529940]
test eax, eax
je 0x46c89a
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret