Function at 0x474200
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 [0x545100]
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
cmp dword [0x54c810], esi
jne 0x474234
lea ecx, [esi + 1]
call fcn.00473f80
mov esi, eax
test esi, esi
jne 0x474ba8
mov eax, dword [0x54c810]
test eax, eax
je 0x474244
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x54c814]
mov ecx, eax
inc eax
mov dword [0x54c814], eax
test ecx, ecx
jne 0x474b8d
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x474369
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x52ea60
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
xor eax, eax
mov word [ebp - 8], ax
mov word [ebp - 0x1c], ax
test edi, edi
je 0x47462c
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
lea eax, [ebp - 8]
push eax
push ebx
call dword [0x4f1320]
call edi
test eax, eax
je 0x47462c
cmp word [ebp - 8], 0
mov ax, word [ebp - 0x1c]
je 0x4742c2
mov word [0x54caac], ax
movzx eax, ax
cmp eax, 0x8664
ja 0x474617
je 0x47460d
cmp eax, 0x200
je 0x474603
cmp eax, 0x284
jne 0x4742f3
mov eax, 7
mov word [0x54caa8], ax
cmp word [0x54caac], 0
je 0x47430e
push str.Wow64EnableWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54cae4], eax
push str.GetLogicalProcessorInformationEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54cab0], eax
test eax, eax
jne 0x474334
push str.GetLogicalProcessorInformation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54cac0], eax
push 0x52eabc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x54cb50], 0xf
jl 0x474366
push str.PrefetchVirtualMemory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetCurrentThreadStackLimits
push esi
mov dword [0x54cab4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [ebp - 0x64]
push str.NTDLL.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x54ca94], eax
test eax, eax
je 0x474529
push 0x52eb24
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlInitUnicodeString
push dword [0x54ca94]
mov dword [0x54cae0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtOpenFile
push dword [0x54ca94]
mov dword [0x54cae8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCreateFile
push dword [0x54ca94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtReadFile
push dword [0x54ca94]
mov dword [0x54cad8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtWriteFile
push dword [0x54ca94]
mov dword [0x54cad4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationFile
push dword [0x54ca94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationFile
push dword [0x54ca94]
mov dword [0x54cadc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryVirtualMemory
push dword [0x54ca94]
mov dword [0x54cacc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryObject
push dword [0x54ca94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryVolumeInformationFile
push dword [0x54ca94]
mov dword [0x54cad0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push dword [0x54ca94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationThread
push dword [0x54ca94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationThread
push dword [0x54ca94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQuerySystemInformation
push dword [0x54ca94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryDirectoryFile
push dword [0x54ca94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryEaFile
push dword [0x54ca94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x52eca4
push dword [0x54ca94]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtFsControlFile
push dword [0x54ca94]
mov dword [0x54cac8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtDeviceIoControlFile
push dword [0x54ca94]
mov dword [0x54cac4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtWaitForSingleObject
push dword [0x54ca94]
mov dword [0x54cabc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x52ecec
push dword [0x54ca94]
mov dword [0x54cab8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5130d4
push 8
call fcn.004a6a60
mov esi, eax
add esp, 8
test esi, esi
je 0x474b7c
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a5e73
add esp, 4
mov dword [0x54bc98], esi
mov dword [eax], eax
push 0x5130d4
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push 8
mov dword [esi], eax
call fcn.004a6a60
mov esi, eax
add esp, 8
test esi, esi
je 0x474b6b
push 0x120
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a5e73
add esp, 4
mov dword [0x54bc9c], 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 [0x54ca94]
test eax, eax
je 0x47487e
push str.RtlSetThreadErrorMode
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54ca88], eax
test eax, eax
jne 0x4745e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x54ca74], 0
jne 0x474689
mov eax, dword [0x54ca94]
test eax, eax
jne 0x47466e
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x474683
mov eax, 6
jmp 0x4742ed
mov eax, 9
jmp 0x4742ed
cmp eax, 0xaa64
jne 0x4742f3
mov eax, 0xc
jmp 0x4742ed
push 0x52ea70
push esi
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x474654
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
push ebx
call dword [0x4f1320]
call edi
cmp dword [ebp - 0xc], 0
je 0x4742f3
mov eax, 0x8664
mov word [0x54caac], ax
jmp 0x4742fd
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54ca74], eax
test eax, eax
jne 0x474689
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x54ca70], 0
jne 0x4746c0
mov eax, dword [0x54ca94]
test eax, eax
jne 0x4746a5
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4746ba
push str.RtlPcToFileHeader
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54ca70], eax
test eax, eax
jne 0x4746c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x54ca94]
test eax, eax
jne 0x4746d3
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4746e8
push str.LdrLockLoaderLock
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54ca7c], eax
test eax, eax
jne 0x4746ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x54ca94]
test eax, eax
jne 0x474701
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x474716
push str.LdrUnlockLoaderLock
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54ca78], eax
test eax, eax
jne 0x47471c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x54ca94]
test eax, eax
jne 0x47472f
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x474744
push str.NtQueryDirectoryFileEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54ca8c], eax
test eax, eax
jne 0x47474a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x54ca94]
test eax, eax
jne 0x47475d
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x474772
push str.NtWow64QueryInformationProcess64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54ca9c], eax
test eax, eax
jne 0x474778
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x54ca94]
test eax, eax
jne 0x47478b
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4747a0
push str.NtWow64GetNativeSystemInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54ca98], eax
test eax, eax
jne 0x4747a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x54ca94]
test eax, eax
jne 0x4747b9
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4747ce
push str.NtWow64QueryVirtualMemory64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54ca84], eax
test eax, eax
jne 0x4747d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x54ca94]
test eax, eax
jne 0x4747e7
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4747fc
push str.NtWow64ReadVirtualMemory64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54ca80], eax
test eax, eax
jne 0x474802
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00475810
test al, al
jne 0x474841
cmp word [0x54caa8], 0
jne 0x474841
mov esi, dword [0x54ca98]
test esi, esi
je 0x47487e
push 0
push 0xc
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 1
call dword [0x4f1320]
call esi
test eax, eax
jne 0x474841
mov ax, word [ebp - 0x14]
mov word [0x54caa8], ax
mov esi, dword [0x54ca98]
test esi, esi
je 0x47487e
push 0
push 0x2c
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
push 0
call dword [0x4f1320]
call esi
test eax, eax
jne 0x47487e
mov eax, dword [ebp - 0x2c]
mov dword [0x545be8], eax
movzx eax, byte [ebp - 0x24]
mov dword [0x545bec], 0
mov dword [0x545bf4], eax
and ebx, 1
mov dword [ebp - 0x64], ebx
jne 0x4748c1
cmp word [0x54ca60], 0
mov ecx, 0x54ca60
mov eax, 0x529b5c
cmovne eax, ecx
sub esp, 0xc
lea ecx, [ebp - 0x40]
push str.aswSP
push 0x10
push ecx
push eax
call fcn.00477760
add esp, 0x14
mov edx, eax
mov ecx, 0x54ca90
call fcn.00475760
add esp, 8
cmp dword [0x545bf4], 0
jne 0x4748d4
mov dword [0x545bf4], 1
sub esp, 8
call fcn.004758d0
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.00475410
add esp, 0x18
test eax, eax
jne 0x474963
mov ebx, dword [ebp - 0xc]
xor esi, esi
nop dword [eax]
mov eax, dword [esi + 0x52ef50]
test ebx, ebx
je 0x474950
test eax, eax
je 0x474950
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 0x474944
cmp eax, 0xea
jne 0x474947
mov edi, dword [ebp - 0xc]
test eax, eax
jne 0x474950
cmp edi, 4
jae 0x474958
add esi, 4
cmp esi, 0xc
jb 0x474910
test ebx, ebx
je 0x474963
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004a8c90
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 0x47498e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 0x54b464
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4749d0
push 0
push 0
push 1
push 0x54b464
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [0x54b458], 0xc
mov dword [0x54b460], 0
mov dword [0x54b45c], 0x54b464
jmp 0x4749d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 0x54bc84
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x474b12
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 0x54b478
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
lea esi, [ebx + 8]
push esi
call fcn.004a63bb
add esp, 4
mov edi, eax
mov dword [ebp - 8], edi
push esi
push 0
push edi
call fcn.004a8c90
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.004a8710
mov ecx, dword [ebp - 8]
add esp, 0xc
movzx eax, word [ecx + 2]
push eax
push ecx
push 0xffffffffffffffff
push 2
push 0x54b478
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.004a8710
mov ebx, dword [ebp - 8]
add esp, 0xc
movzx eax, word [ebx + 2]
push eax
push ebx
push 0xffffffffffffffff
push 2
push 0x54b478
call dword [sym.imp.ADVAPI32.dll_AddAce]
push ebx
call fcn.004a6085
add esp, 4
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push 0
push 0x54b478
push 1
push 0x54bc84
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [0x54bc78], 0xc
mov dword [0x54bc80], 0
mov dword [0x54bc7c], 0x54bc84
jmp 0x474b18
call dword [sym.imp.KERNEL32.dll_GetLastError]
or dword [0x54c818], 2
push 0x18
push 0
mov dword [0x54caec], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x474b86
push 0x2000000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
mov dword [0x54caec], esi
xor esi, esi
cmp dword [ebp - 0x64], esi
jne 0x474b96
push 0x5245f0
push esi
call fcn.004c2e8f
add esp, 8
jmp 0x474b96
mov dword [0x54bc9c], 0
mov esi, 8
jmp 0x474b91
mov dword [0x54bc98], 0
mov esi, 8
jmp 0x474b91
test esi, esi
je 0x474b96
call fcn.00474bc0
mov eax, dword [0x54c810]
test eax, eax
je 0x474ba6
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.004a5e3b
mov esp, ebp
pop ebp
ret