Function at 0x46aca0
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 [0x521104]
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 [0x52890c], esi
jne 0x46acd6
mov ecx, edi
call fcn.0046aaf0
mov esi, eax
test esi, esi
jne 0x46b62b
mov eax, dword [0x52890c]
test eax, eax
je 0x46ace6
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x528910]
mov ecx, eax
inc eax
mov dword [0x528910], eax
test ecx, ecx
jne 0x46b610
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x46ae77
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 0x46adbf
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x4ed33c]
call edi
test eax, eax
je 0x46adbf
cmp word [ebp - 0x1c], 0
movzx edx, word [0x528ba8]
movzx eax, word [ebp - 8]
cmovne edx, eax
movzx eax, word [ebp - 8]
mov word [0x528ba8], dx
cmp eax, 0x8664
ja 0x46adab
je 0x46ad9e
cmp eax, 0x200
je 0x46ad91
cmp eax, 0x284
jne 0x46ae01
mov eax, 7
mov word [0x528b98], ax
jmp 0x46ae01
mov eax, 6
mov word [0x528b98], ax
jmp 0x46ae01
mov eax, 9
mov word [0x528b98], ax
jmp 0x46ae01
cmp eax, 0xaa64
jne 0x46ae01
mov eax, 0xc
mov word [0x528b98], ax
jmp 0x46ae01
push 0x508560
push esi
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x46ade7
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
push ebx
call dword [0x4ed33c]
call edi
cmp dword [ebp - 0xc], 0
je 0x46adfa
mov eax, 0x8664
mov word [0x528ba8], ax
jmp 0x46ae06
mov dx, word [0x528ba8]
test dx, dx
je 0x46ae17
push str.Wow64EnableWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528bec], eax
push str.GetLogicalProcessorInformationEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528bb0], eax
test eax, eax
jne 0x46ae3d
push str.GetLogicalProcessorInformation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528bb4], eax
push 0x5085bc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x528c48], 0xf
jl 0x46ae6f
push str.PrefetchVirtualMemory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetCurrentThreadStackLimits
push esi
mov dword [0x528bb8], 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 [0x528b94], eax
test eax, eax
je 0x46b026
push 0x508628
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlInitUnicodeString
push dword [0x528b94]
mov dword [0x528be8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtOpenFile
push dword [0x528b94]
mov dword [0x528bd8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCreateFile
push dword [0x528b94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtReadFile
push dword [0x528b94]
mov dword [0x528be0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtWriteFile
push dword [0x528b94]
mov dword [0x528bdc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationFile
push dword [0x528b94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationFile
push dword [0x528b94]
mov dword [0x528bd0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryVirtualMemory
push dword [0x528b94]
mov dword [0x528bd4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryObject
push dword [0x528b94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryVolumeInformationFile
push dword [0x528b94]
mov dword [0x528bcc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push dword [0x528b94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationThread
push dword [0x528b94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQuerySystemInformation
push dword [0x528b94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryDirectoryFile
push dword [0x528b94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryEaFile
push dword [0x528b94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x508730
push dword [0x528b94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtFsControlFile
push dword [0x528b94]
mov dword [0x528bc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtDeviceIoControlFile
push dword [0x528b94]
mov dword [0x528bc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtWaitForSingleObject
push dword [0x528b94]
mov dword [0x528bbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x508784
push dword [0x528b94]
mov dword [0x528bc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f321c
push 8
call fcn.004a4420
mov esi, eax
add esp, 8
test esi, esi
je 0x46b5ff
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a38e1
add esp, 4
mov dword [0x527e58], esi
mov dword [eax], eax
push 0x4f321c
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push 8
mov dword [esi], eax
call fcn.004a4420
mov esi, eax
add esp, 8
test esi, esi
je 0x46b5ee
push 0x120
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a38e1
add esp, 4
mov dword [0x526e14], 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 [0x528b94]
test eax, eax
je 0x46b307
push str.RtlSetThreadErrorMode
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528b78], eax
test eax, eax
jne 0x46b0dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x528b74], 0
jne 0x46b114
mov eax, dword [0x528b94]
test eax, eax
jne 0x46b0f9
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46b10e
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528b74], eax
test eax, eax
jne 0x46b114
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x528b80], 0
jne 0x46b14b
mov eax, dword [0x528b94]
test eax, eax
jne 0x46b130
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46b145
push str.RtlPcToFileHeader
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528b80], eax
test eax, eax
jne 0x46b14b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x528b94]
test eax, eax
jne 0x46b15e
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46b173
push str.LdrLockLoaderLock
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528b7c], eax
test eax, eax
jne 0x46b179
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x528b94]
test eax, eax
jne 0x46b18c
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46b1a1
push str.LdrUnlockLoaderLock
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528b40], eax
test eax, eax
jne 0x46b1a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x528b94]
test eax, eax
jne 0x46b1ba
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46b1cf
push str.NtQueryDirectoryFileEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528b8c], eax
test eax, eax
jne 0x46b1d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x528b94]
test eax, eax
jne 0x46b1e8
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46b1fd
push str.NtWow64QueryInformationProcess64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528b9c], eax
test eax, eax
jne 0x46b203
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x528b94]
test eax, eax
jne 0x46b216
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46b22b
push str.NtWow64GetNativeSystemInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528b88], eax
test eax, eax
jne 0x46b231
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x528b94]
test eax, eax
jne 0x46b244
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46b259
push str.NtWow64QueryVirtualMemory64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528b84], eax
test eax, eax
jne 0x46b25f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x528b94]
test eax, eax
jne 0x46b272
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46b287
push str.NtWow64ReadVirtualMemory64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x528b90], eax
test eax, eax
jne 0x46b28d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x528b88]
test esi, esi
je 0x46b307
cmp word [0x528b98], 0
jne 0x46b2d2
push 0
push 0xc
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 1
call dword [0x4ed33c]
call esi
movzx edx, word [0x528b98]
test eax, eax
movzx ecx, word [ebp - 0x14]
mov esi, dword [0x528b88]
cmove edx, ecx
mov word [0x528b98], dx
push 0
push 0x2c
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
push 0
call dword [0x4ed33c]
call esi
test eax, eax
jne 0x46b307
mov eax, dword [ebp - 0x2c]
mov dword [0x521c00], eax
movzx eax, byte [ebp - 0x24]
mov dword [0x521c04], 0
mov dword [0x521c10], eax
jmp 0x46b30c
mov eax, dword [0x521c10]
and ebx, 1
mov dword [ebp - 0x64], ebx
jne 0x46b354
cmp word [0x528b44], 0
mov ecx, 0x528b44
mov eax, 0x505924
cmovne eax, ecx
sub esp, 0xc
lea ecx, [ebp - 0x40]
push str.aswSP
push 0x10
push ecx
push eax
call fcn.0046e4e0
add esp, 0x14
mov edx, eax
mov ecx, 0x528ba0
call fcn.0046c5b0
mov eax, dword [0x521c10]
add esp, 8
test eax, eax
cmove eax, edi
sub esp, 8
mov dword [0x521c10], eax
call fcn.0046c660
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.0046c260
add esp, 0x18
test eax, eax
jne 0x46b3e6
mov ebx, dword [ebp - 0xc]
xor esi, esi
mov eax, dword [esi + 0x508a5c]
test ebx, ebx
je 0x46b3d3
test eax, eax
je 0x46b3d3
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 0x46b3c7
cmp eax, 0xea
jne 0x46b3ca
mov edi, dword [ebp - 0xc]
test eax, eax
jne 0x46b3d3
cmp edi, 4
jae 0x46b3db
add esi, 4
cmp esi, 0xc
jb 0x46b393
test ebx, ebx
je 0x46b3e6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004a6890
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 0x46b411
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 0x527624
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x46b453
push 0
push 0
push 1
push 0x527624
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [0x527618], 0xc
mov dword [0x527620], 0
mov dword [0x52761c], 0x527624
jmp 0x46b459
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 0x527e44
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x46b595
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 0x527638
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
lea esi, [ebx + 8]
push esi
call fcn.004a391f
add esp, 4
mov edi, eax
mov dword [ebp - 8], edi
push esi
push 0
push edi
call fcn.004a6890
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.004a6310
mov ecx, dword [ebp - 8]
add esp, 0xc
movzx eax, word [ecx + 2]
push eax
push ecx
push 0xffffffffffffffff
push 2
push 0x527638
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.004a6310
mov ebx, dword [ebp - 8]
add esp, 0xc
movzx eax, word [ebx + 2]
push eax
push ebx
push 0xffffffffffffffff
push 2
push 0x527638
call dword [sym.imp.ADVAPI32.dll_AddAce]
push ebx
call fcn.004a3911
add esp, 4
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push 0
push 0x527638
push 1
push 0x527e44
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [0x527e38], 0xc
mov dword [0x527e40], 0
mov dword [0x527e3c], 0x527e44
jmp 0x46b59b
call dword [sym.imp.KERNEL32.dll_GetLastError]
or dword [0x528938], 2
push 0x18
push 0
mov dword [0x528be4], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x46b609
push 0x2000000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
mov dword [0x528be4], esi
xor esi, esi
cmp dword [ebp - 0x64], esi
jne 0x46b619
push 0x501311
push esi
call fcn.004bd19a
add esp, 8
jmp 0x46b619
mov dword [0x526e14], 0
mov esi, 8
jmp 0x46b614
mov dword [0x527e58], 0
mov esi, 8
jmp 0x46b614
test esi, esi
je 0x46b619
call fcn.0046b640
mov eax, dword [0x52890c]
test eax, eax
je 0x46b629
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.004a389b
mov esp, ebp
pop ebp
ret