Function at 0x42f37f
Capabilities:
Get memory capacity
Query environment variable

Disassembly:
push 0x31c
mov eax, 0x45fd0c
call fcn.00449f2b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2dc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2e0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2cc], 1
call fcn.004366fe
push eax
lea ecx, [ebp - 0x2d8]
call fcn.00411d53
and dword [ebp - 4], 0
mov esi, 0x11c
push esi
lea eax, [ebp - 0x2c0]
push 0
push eax
call fcn.00448000
add esp, 0xc
lea eax, [ebp - 0x2c0]
push eax
mov dword [ebp - 0x2c0], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx edi, word [ebp - 0x1ac]
mov esi, dword [ebp - 0x2bc]
imul edi, edi, 0xa
movzx eax, word [ebp - 0x1aa]
imul esi, esi, 0xa
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esi, dword [ebp - 0x2b8]
add edi, eax
push 0xc8
lea eax, [ebp - 0x1a0]
push eax
push str.ProgramW6432
call ebx
test eax, eax
seta byte [ebp - 0x2c1]
cmp byte [ebp - 0x2c1], 0
jne 0x42f47e
push 0xc8
lea eax, [ebp - 0x1a0]
push eax
push str.PROCESSOR_ARCHITECTURE
call ebx
test eax, eax
jbe 0x42f47e
lea eax, [ebp - 0x1a0]
push str.AMD64
push eax
call fcn.004480db
neg eax
sbb al, al
pop ecx
inc al
pop ecx
mov byte [ebp - 0x2c1], al
test dword [ebp - 0x1a8], 0x8000
je 0x42f48e
push 0x48
jmp 0x42f49c
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x42f49f
push 0x32
pop eax
jmp 0x42f4b5
xor eax, eax
cmp byte [ebp - 0x1a6], 1
sete al
lea eax, [eax*4 + 0x53]
movzx eax, ax
xor ecx, ecx
cmp byte [ebp - 0x2c1], cl
movzx eax, ax
sete cl
dec ecx
and ecx, 3
add ecx, 3
push ecx
push eax
push dword [ebp - 0x2b8]
lea eax, [ebp - 0x1a0]
push dword [ebp - 0x2bc]
push str._d_d_c_d
push eax
call fcn.00436161
add esp, 0x18
lea eax, [ebp - 0x328]
push eax
mov dword [ebp - 0x328], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x320]
mov ecx, dword [ebp - 0x31c]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2e4], eax
xor ecx, ecx
xor edx, edx
inc edx
mov eax, edx
shl eax, cl
inc ecx
shl edx, cl
cmp eax, dword [ebp - 0x2c8]
jae 0x42f53e
cmp dword [ebp - 0x2c8], edx
jb 0x42f545
cmp ecx, 0x1e
jl 0x42f524
jmp 0x42f54b
mov dword [ebp - 0x2c8], edx
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x1a0]
push dword [ebp - 0x2e4]
push eax
push edi
push esi
lea eax, [ebp - 0x2d8]
push str.CheckSystemRequirements_os_sp___d__d_osString___s__physicalMemory___d____d
push eax
call fcn.004012d7
add esp, 0x1c
xor ebx, ebx
push ebx
lea eax, [ebp - 0x2d8]
push eax
push 2
call fcn.0040fcf3
mov eax, dword [ebp - 0x2d4]
mov eax, dword [eax]
add esp, 0xc
cmp dword [eax - 0xc], ebx
jle 0x42f5cd
push eax
call fcn.00447fe7
pop ecx
xor ecx, ecx
cmp esi, eax
setge cl
mov dword [ebp - 0x2cc], ecx
cmp ecx, ebx
jne 0x42f5cd
push str.CheckSystemRequirements_failed._Required_MinOS:
lea ecx, [ebp - 0x2c8]
call fcn.0040130b
push ebx
mov byte [ebp - 4], 1
push dword [ebp - 0x2d4]
jmp 0x42f6c8
mov eax, dword [ebp - 0x2d0]
mov eax, dword [eax]
cmp eax, ebx
je 0x42f5f6
cmp dword [eax - 0xc], ebx
je 0x42f5f6
push eax
call fcn.00447fe7
cmp eax, ebx
pop ecx
jle 0x42f5f6
xor ecx, ecx
cmp esi, eax
setle cl
mov dword [ebp - 0x2cc], ecx
cmp dword [ebp - 0x2cc], ebx
jne 0x42f632
push str.CheckSystemRequirements_failed._Required_MaxOS:
lea ecx, [ebp - 0x2d4]
call fcn.0040130b
push ebx
mov byte [ebp - 4], 2
push dword [ebp - 0x2d0]
lea eax, [ebp - 0x2d4]
push eax
push 2
call fcn.0040f821
mov ecx, dword [ebp - 0x2d4]
jmp 0x42f6dc
mov esi, dword [ebp - 0x2e0]
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jle 0x42f653
push eax
call fcn.00447fe7
pop ecx
xor ecx, ecx
cmp edi, eax
setge cl
mov dword [ebp - 0x2cc], ecx
cmp dword [ebp - 0x2cc], ebx
jne 0x42f687
push str.CheckSystemRequirements_failed._Required_MinServicePack:
lea ecx, [ebp - 0x2d0]
call fcn.0040130b
push ebx
push esi
lea eax, [ebp - 0x2d0]
push eax
push 2
mov byte [ebp - 4], 3
call fcn.0040f821
mov ecx, dword [ebp - 0x2d0]
jmp 0x42f6dc
mov esi, dword [ebp - 0x2dc]
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jle 0x42f6aa
push eax
call fcn.00447fe7
cmp dword [ebp - 0x2c8], eax
pop ecx
sbb eax, eax
inc eax
mov dword [ebp - 0x2cc], eax
cmp dword [ebp - 0x2cc], ebx
jne 0x42f6e7
push str.CheckSystemRequirements_failed._Required_MinMemory:
lea ecx, [ebp - 0x2c8]
call fcn.0040130b
push ebx
mov byte [ebp - 4], 4
push esi
lea eax, [ebp - 0x2c8]
push eax
push 2
call fcn.0040f821
mov ecx, dword [ebp - 0x2c8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x2d8]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, dword [ebp - 0x2cc]
call fcn.00449fae
ret