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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
push ebx
push esi
push edi
mov edx, str.UpdateInfo_Report_UpdateReport
mov ecx, 0x4ab3c0
call fcn.0043a873
mov dword [esp + 0x30], eax
test eax, eax
jne 0x40a192
mov dword [esp + 0x44], 0x80004005
jmp 0x40a5c9
lea ecx, [esp + 0x48]
call fcn.00430db9
push 0x34
lea ecx, [esp + 0x80]
call fcn.00437ffa
push dword [esp + 0x5c]
mov ecx, eax
push 1
call fcn.00438057
mov ebx, eax
lea ecx, [esp + 0x48]
push ebx
mov dword [ebx], 0x48f890
mov dword [ebx + 8], 3
call fcn.004382c8
call fcn.0043c5cd
push eax
lea ecx, [esp + 0x18]
call fcn.0043ac50
call fcn.0043c5cd
push eax
lea ecx, [esp + 0x14]
call fcn.0043ac50
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [esp + 0x90]
mov esi, str.0x_X
push eax
lea eax, [esp + 0x18]
push esi
push eax
call fcn.0043b543
add esp, 0xc
lea eax, [esp + 0x10]
push dword [esp + 0xa4]
push esi
push eax
call fcn.0043b543
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x88]
add esp, 0xc
push dword [esi - 0xc]
push 9
push esi
push str.architect
push 1
call fcn.00439b7f
push eax
mov ecx, ebx
call fcn.004382c8
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x7c]
push dword [edi - 0xc]
push 0x14
push edi
push str.dwnumberofprocessors
push 1
call fcn.00439b7f
push eax
mov ecx, ebx
call fcn.004382c8
call fcn.0043c5cd
push eax
lea ecx, [esp + 0x18]
call fcn.0043ac50
lea ecx, [esp + 0x34]
call fcn.00470c1e
movzx eax, byte [esp + 0x43]
push eax
movzx eax, byte [esp + 0x46]
push eax
movzx eax, byte [esp + 0x49]
push eax
movzx eax, byte [esp + 0x4c]
push eax
movzx eax, byte [esp + 0x4f]
push eax
movzx eax, byte [esp + 0x52]
push eax
movzx eax, byte [esp + 0x55]
push eax
movzx eax, byte [esp + 0x58]
push eax
movzx eax, word [esp + 0x5a]
push eax
movzx eax, word [esp + 0x5c]
push eax
push dword [esp + 0x5c]
lea eax, [esp + 0x40]
push 0x48f8e8
push eax
call fcn.0043b543
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0xb0]
add esp, 0x34
push dword [eax - 0xc]
push 0xa
push eax
push str.clientguid
push 1
call fcn.00439b7f
push eax
mov ecx, ebx
call fcn.004382c8
call fcn.0043c5cd
push eax
lea ecx, [esp + 0x14]
call fcn.0043ac50
xor eax, eax
lea edx, [esp + 0x20]
push eax
mov ecx, 0x48f964
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.0044c96a
pop ecx
push dword [esp + 0x24]
lea eax, [esp + 0x14]
push dword [esp + 0x24]
push str.0x_I64X
push eax
call fcn.0043b543
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x8c]
add esp, 0x10
push dword [eax - 0xc]
push 9
push eax
push 0x48f998
push 1
call fcn.00439b7f
push eax
mov ecx, ebx
call fcn.004382c8
call fcn.0043c5cd
push eax
lea ecx, [esp + 0x24]
call fcn.0043ac50
mov ecx, dword [0x4ab21c]
lea edx, [esp + 0x18]
xor eax, eax
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call fcn.0044c908
pop ecx
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
push dword [esp + 0x1c]
push str.0x_I64X
push eax
call fcn.0043b543
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x8c]
add esp, 0x10
push dword [eax - 0xc]
push 0xb
push eax
push 0x48f9bc
push 1
call fcn.00439b7f
push eax
mov ecx, ebx
call fcn.004382c8
call fcn.0043c5cd
push eax
lea ecx, [esp + 0x1c]
call fcn.0043ac50
push 0x3c
lea eax, [esp + 0x98]
mov dword [esp + 0x94], 0x40
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push dword [esp + 0x9c]
lea eax, [esp + 0x1c]
push dword [esp + 0x9c]
push str.0x_I64X
push eax
call fcn.0043b543
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x8c]
add esp, 0x10
push dword [eax - 0xc]
push 0xc
push eax
push str.ulltotalphys
push 1
call fcn.00439b7f
push eax
mov ecx, ebx
call fcn.004382c8
call fcn.0043c5cd
push eax
lea ecx, [esp + 0x30]
call fcn.0043ac50
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
movzx eax, ax
push eax
lea eax, [esp + 0x30]
push 0x48fa00
push eax
call fcn.0043b543
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x88]
add esp, 0xc
push dword [eax - 0xc]
push 0xa
push eax
push str.languageid
push 1
call fcn.00439b7f
push eax
mov ecx, ebx
call fcn.004382c8
call fcn.0043c5cd
push eax
lea ecx, [esp + 0x2c]
call fcn.0043ac50
lea eax, [esp + 0x28]
mov edx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push eax
push str.EditionID
mov ecx, 0x80000002
call fcn.0044cebc
mov eax, dword [esp + 0x30]
pop ecx
pop ecx
lea ecx, [esp + 0x7c]
push dword [eax - 0xc]
push 9
push eax
push 0x48faa4
push 1
call fcn.00439b7f
push eax
mov ecx, ebx
call fcn.004382c8
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x40a504
mov ecx, 0x491414
lea edx, [esp + 0x48]
call fcn.0042cb4a
test eax, eax
jne 0x40a559
push eax
call dword [sym.imp.msvcrt.dll__time64]
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x38]
lea eax, [esp + 0x34]
mov dword [esp], str._Y__m__d
push eax
mov dword [esp + 0x40], edx
call fcn.00439b13
push dword [0x4ab4f0]
push dword [eax]
push 0x48fadc
push 0x486104
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [esp + 0x30]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [esp + 0x28]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea ecx, [edi - 0x10]
call fcn.0043c924
lea ecx, [esi - 0x10]
call fcn.0043c924
mov ecx, dword [esp + 0x88]
add ecx, 0xfffffff0
call fcn.0043c924
lea ecx, [esp + 0x7c]
call fcn.00431d5a
call fcn.0043ac97
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret