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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x89c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x898], eax
push ebx
push esi
push edi
push 0x118
lea eax, [esp + 0x80]
push 0
push eax
call fcn.00403f80
add esp, 0xc
mov dword [esp + 0x78], 0x11c
lea eax, [esp + 0x78]
mov esi, 0x384
lea edi, [esp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push dword [esp + 0x84]
mov ebx, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov eax, edi
push dword [esp + 0x84]
push dword [esp + 0x84]
push 0x415e24
push esi
push eax
call ebx
add esp, 0x18
test eax, eax
jle 0x402d65
lea edi, [edi + eax*2]
sub esi, eax
mov cx, word [esp + 0x18c]
mov ax, word [esp + 0x18e]
test cx, cx
jne 0x402d7f
test ax, ax
je 0x402d9c
movzx eax, ax
push eax
movzx eax, cx
push eax
push str.sp_u._u
push esi
push edi
call ebx
add esp, 0x14
test eax, eax
jle 0x402d9c
lea edi, [edi + eax*2]
sub esi, eax
movzx eax, word [esp + 0x190]
push eax
push str.SuiteMask0x_X
push esi
push edi
call ebx
add esp, 0x10
test eax, eax
jle 0x402dba
lea edi, [edi + eax*2]
sub esi, eax
movzx eax, byte [esp + 0x192]
push eax
push str.ProductType0x_X
push esi
push edi
call ebx
add esp, 0x10
test eax, eax
jle 0x402dd8
lea edi, [edi + eax*2]
sub esi, eax
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x402df9
push str.SM_SERVERR2
push esi
push edi
call ebx
add esp, 0xc
test eax, eax
jle 0x402df9
lea edi, [edi + eax*2]
sub esi, eax
push 0x57
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x402e1a
push str.SM_MEDIACENTER
push esi
push edi
call ebx
add esp, 0xc
test eax, eax
jle 0x402e1a
lea edi, [edi + eax*2]
sub esi, eax
push 0x58
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x402e3b
push str.SM_STARTER
push esi
push edi
call ebx
add esp, 0xc
test eax, eax
jle 0x402e3b
lea edi, [edi + eax*2]
sub esi, eax
push 0x56
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x402e5c
push str.SM_TABLETPC
push esi
push edi
call ebx
add esp, 0xc
test eax, eax
jle 0x402e5c
lea edi, [edi + eax*2]
sub esi, eax
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x402e7d
push str.SM_CLEANBOOT
push esi
push edi
call ebx
add esp, 0xc
test eax, eax
jle 0x402e7d
lea edi, [edi + eax*2]
sub esi, eax
push 0x2003
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x402ea1
push str.SM_CONVERTIBLESLATEMODE
push esi
push edi
call ebx
add esp, 0xc
test eax, eax
jle 0x402ea1
lea edi, [edi + eax*2]
sub esi, eax
push 0x2004
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x402ec5
push str.SM_SYSTEMDOCKED
push esi
push edi
call ebx
add esp, 0xc
test eax, eax
jle 0x402ec5
lea edi, [edi + eax*2]
sub esi, eax
push 0x3f
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x402ee6
push str.SM_NETWORK
push esi
push edi
call ebx
add esp, 0xc
test eax, eax
jle 0x402ee6
lea edi, [edi + eax*2]
sub esi, eax
push 0x49
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x402f07
push str.SM_SLOWMACHINE
push esi
push edi
call ebx
add esp, 0xc
test eax, eax
jle 0x402f07
lea edi, [edi + eax*2]
sub esi, eax
push 0x2001
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x402f2b
push str.SM_REMOTECONTROL
push esi
push edi
call ebx
add esp, 0xc
test eax, eax
jle 0x402f2b
lea edi, [edi + eax*2]
sub esi, eax
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x402f4f
push str.SM_REMOTESESSION
push esi
push edi
call ebx
add esp, 0xc
test eax, eax
jle 0x402f4f
lea edi, [edi + eax*2]
sub esi, eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
and dword [esp + 0x10], 0
test eax, eax
je 0x402fb3
push str.GetProductInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402fb3
lea ecx, [esp + 0x10]
push ecx
movzx ecx, word [esp + 0x192]
push ecx
movzx ecx, word [esp + 0x194]
push ecx
push dword [esp + 0x8c]
push dword [esp + 0x8c]
call eax
push dword [esp + 0x10]
push str.GetProductInfo0x_X
push esi
push edi
call ebx
add esp, 0x10
test eax, eax
jle 0x402fb3
lea edi, [edi + eax*2]
sub esi, eax
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [esp + 0x14]
sub eax, 0
je 0x403006
sub eax, 5
je 0x402fff
sub eax, 1
je 0x402ff8
sub eax, 3
je 0x402ff1
sub eax, 3
je 0x402fea
mov eax, str.Unk
jmp 0x40300b
mov eax, str.ARM64
jmp 0x40300b
mov eax, str.AMD64
jmp 0x40300b
mov eax, str.IA64
jmp 0x40300b
mov eax, str.ARM
jmp 0x40300b
mov eax, str.INTEL
push eax
push esi
push edi
call ebx
add esp, 0xc
test eax, eax
jle 0x40301c
lea edi, [edi + eax*2]
sub esi, eax
push dword [esp + 0x28]
push str.CpuCores_u
push esi
push edi
call ebx
add esp, 0x10
test eax, eax
jle 0x403035
lea edi, [edi + eax*2]
sub esi, eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x403069
push str.wine_get_version
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403069
push str.WinE
push esi
push edi
call ebx
add esp, 0xc
test eax, eax
jle 0x403069
lea edi, [edi + eax*2]
sub esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
shrd ecx, eax, 0x14
shr eax, 0x14
test eax, eax
ja 0x40309d
jb 0x403096
cmp ecx, 0xffffffff
ja 0x40309d
mov edx, str.RAM_uMiB
jmp 0x4030c2
shrd ecx, eax, 0xa
shr eax, 0xa
test eax, eax
ja 0x4030b6
jb 0x4030af
cmp ecx, 0xffffffff
ja 0x4030b6
mov edx, str.RAM_uGiB
jmp 0x4030c2
shrd ecx, eax, 0xa
mov edx, str.RAM_uTiB
shr eax, 0xa
push eax
push ecx
push edx
push esi
push edi
call ebx
add esp, 0x14
lea ecx, [esp + 0x198]
xor edx, edx
call fcn.00402574
mov ecx, dword [esp + 0x8a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403410
mov esp, ebp
pop ebp
ret