Function at 0x440270
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x617cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x6d8314]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov ecx, 0x701c94
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0x19c], 0
call fcn.00433f90
mov ecx, dword [ebx]
test ecx, ecx
jle 0x4403a6
cmp ecx, eax
jg 0x4402d2
cmp byte [esi + 0xe8], 0
je 0x4403a6
lea edx, [ebp - 0x1a4]
mov dword [ebp - 0x1ac], 0
lea ecx, [ebp - 0x1ac]
mov dword [ebp - 0x1a4], 0
call fcn.005af1e0
mov eax, dword [ebp - 0x1ac]
cmp eax, 4
mov ecx, dword [ebx]
cmovb eax, dword [ebp - 0x1a4]
cmp eax, ecx
jge 0x440382
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x80
push str.app_not_cpu_number
push 0x80
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.MSVCR120.dll_mbstowcs_s]
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
call fcn.005cadc0
add esp, 4
test eax, eax
jne 0x440373
lea eax, [ebp - 0x110]
push eax
push eax
call fcn.005c9ed0
lea eax, [ebp - 0x110]
push eax
call fcn.005cadc0
add esp, 0xc
push eax
mov ecx, edi
call fcn.00418f80
xor al, al
jmp 0x440945
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x1a4], ecx
mov ecx, dword [0x701c94]
push eax
push str.advancedSettings.cpuCount
call fcn.004324f0
mov byte [ebp - 0x19c], 1
mov ecx, 0x701c94
call fcn.00433f30
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
jle 0x44044c
cmp ecx, eax
jg 0x4403cc
cmp byte [esi + 0xe9], 0
je 0x44044c
lea eax, [ebp - 0x198]
mov dword [ebp - 0x198], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x190]
mov eax, dword [ebp - 0x18c]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebx + 0x1c]
cmp ecx, eax
jge 0x440428
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x80
push str.app_not_enough_memory
jmp 0x44032d
mov ecx, dword [0x701c94]
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x1a4]
push eax
push str.advancedSettings.memorySize
call fcn.004324f0
mov byte [ebp - 0x19c], 1
cmp dword [ebx + 0x38], 0
jle 0x4404f6
cmp dword [ebx + 0x3c], 0
jle 0x4404f6
cmp dword [ebx + 0x40], 0
jle 0x4404f6
lea eax, [ebp - 0x1a8]
mov ecx, 0x701c94
push eax
call fcn.00432940
mov eax, dword [eax]
cmp eax, dword [ebx + 0x38]
jne 0x4404aa
lea eax, [ebp - 0x1a8]
mov ecx, 0x701c94
push eax
call fcn.00432940
mov eax, dword [eax + 4]
cmp eax, dword [ebx + 0x3c]
jne 0x4404aa
mov ecx, 0x701c94
call fcn.00432810
cmp eax, dword [ebx + 0x40]
je 0x4404f6
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x1a8], eax
lea eax, [ebp - 0x1a8]
push eax
mov dword [ebp - 0x1a4], ecx
push ecx
mov ecx, dword [0x701c94]
call fcn.00432000
mov eax, dword [ebx + 0x40]
mov ecx, dword [0x701c94]
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x1a4]
push eax
push str.advancedSettings.resolutionDpi
call fcn.004324f0
mov byte [ebp - 0x19c], 1
mov eax, dword [ebx + 0x44]
cmp eax, 0xffffffff
je 0x440525
mov ecx, dword [0x701c94]
test eax, eax
lea eax, [ebp - 0x19c]
push eax
push str.basicSettings.rootMode
setne byte [ebp - 0x19c]
call fcn.00432190
mov byte [ebp - 0x19c], 1
mov eax, dword [ebx + 0x48]
cmp eax, 0xffffffff
je 0x440554
mov ecx, dword [0x701c94]
test eax, eax
lea eax, [ebp - 0x19c]
push eax
push str.basicSettings.astc
setne byte [ebp - 0x19c]
call fcn.00432190
mov byte [ebp - 0x19c], 1
mov ecx, dword [ebx + 0xc8]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx + 0xc4]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x440752
lea eax, [ebp - 0x140]
mov ecx, 0x701c94
push eax
call fcn.004333a0
mov dword [ebp - 4], 0
mov esi, dword [ebx + 0xc4]
mov edi, dword [ebx + 0xc8]
cmp esi, edi
je 0x44060c
nop
xor eax, eax
mov dword [ebp - 0x114], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x118], 0
mov word [ebp - 0x128], ax
call fcn.00414cd0
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00599840
add esp, 8
test al, al
jne 0x440641
mov byte [ebp - 4], al
cmp dword [ebp - 0x114], 8
jb 0x440605
push dword [ebp - 0x128]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
add esi, 0x18
cmp esi, edi
jne 0x4405a0
cmp dword [ebx + 0xbc], 0
jne 0x440664
mov ecx, dword [ebx + 0xc8]
mov eax, 0x2aaaaaab
mov esi, dword [ebx + 0xc4]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x44066a
push str.invalid_vector_T__subscript
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
cmp dword [ebp - 0x114], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x440737
push dword [ebp - 0x128]
call esi
add esp, 4
jmp 0x440737
lea esi, [ebx + 0xac]
xor eax, eax
mov dword [ebp - 0x114], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x118], 0
mov word [ebp - 0x128], ax
call fcn.00414cd0
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 2
mov ecx, dword [0x701c94]
push eax
push str.propertySettings.phoneModel
call fcn.004322e0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x114], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x4406cf
push dword [ebp - 0x128]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x114], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x128], ax
lea ecx, [ebp - 0x128]
lea eax, [ebx + 0x94]
mov dword [ebp - 0x118], 0
push eax
call fcn.00414cd0
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 3
mov ecx, dword [0x701c94]
push eax
push str.propertySettings.phoneManufacturer
call fcn.004322e0
cmp dword [ebp - 0x114], 8
jb 0x440730
push dword [ebp - 0x128]
call esi
add esp, 4
mov byte [ebp - 0x19c], 1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x12c], 8
jb 0x440752
push dword [ebp - 0x140]
call esi
add esp, 4
mov ecx, dword [ebx + 0xd4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx + 0xd0]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x44090a
lea eax, [ebp - 0x158]
mov ecx, 0x701c94
push eax
call fcn.004333a0
mov dword [ebp - 4], 4
mov esi, dword [ebx + 0xd0]
mov edi, dword [ebx + 0xd4]
cmp esi, edi
je 0x4408eb
xor eax, eax
mov dword [ebp - 0x12c], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x130], 0
mov word [ebp - 0x140], ax
call fcn.00414cd0
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.00599840
add esp, 8
test al, al
je 0x4408c4
xor eax, eax
mov dword [ebp - 0x114], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x128], ax
lea ecx, [ebp - 0x128]
lea eax, [ebx + 0xac]
mov dword [ebp - 0x118], 0
push eax
call fcn.00414cd0
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 6
mov ecx, dword [0x701c94]
push eax
push str.propertySettings.phoneModel
call fcn.004322e0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x114], 8
jb 0x440858
push dword [ebp - 0x128]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x114], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x128], ax
lea ecx, [ebp - 0x128]
lea eax, [ebx + 0x94]
mov dword [ebp - 0x118], 0
push eax
call fcn.00414cd0
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 7
mov ecx, dword [0x701c94]
push eax
push str.propertySettings.phoneManufacturer
call fcn.004322e0
cmp dword [ebp - 0x114], 8
jb 0x4408bd
push dword [ebp - 0x128]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [ebp - 0x19c], 1
mov byte [ebp - 4], 4
cmp dword [ebp - 0x12c], 8
jb 0x4408e0
push dword [ebp - 0x140]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
add esi, 0x18
cmp esi, edi
jne 0x4407a1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x144], 8
jb 0x44090a
push dword [ebp - 0x158]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [ebx + 0x184], 0
je 0x44092f
mov ecx, dword [0x700ce8]
lea edx, [ebp - 0x19d]
mov byte [ebp - 0x19d], 0
push edx
mov eax, dword [ecx]
call dword [eax + 0xb0]
cmp byte [ebp - 0x19c], 0
je 0x440943
mov ecx, dword [0x701c94]
call fcn.005b3410
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006116d0
mov esp, ebp
pop ebp
ret 8