Function at 0x10004040
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x320
push 0x254
lea eax, [esp + 0x2c]
push 0
push eax
call dword [0x1000e03c]
lea ecx, [esp + 0x35]
push 0x20
push ecx
push 0x1000d694
push str.Group
push str.Setting
mov byte [esp + 0x48], 0xc8
call fcn.100081d0
push 0x10
lea edx, [esp + 0x3c]
push 0
push edx
call dword [0x1000e03c]
mov edx, dword [esp + 0x350]
add esp, 0x2c
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [edx + 0x48]
push ecx
push eax
mov dword [esp + 0x14], 0x10
call dword [0x1000e078]
lea ecx, [esp + 0x1c]
push 4
lea edx, [esp + 0x50]
push ecx
push edx
call dword [0x1000e038]
lea eax, [esp + 0x5c]
push 0x32
push eax
call fcn.10005690
add esp, 0x14
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], 0x9c
push ecx
call dword [0x1000df88]
lea edx, [esp + 0xc]
lea eax, [esp + 4]
push edx
lea ecx, [esp + 4]
push eax
push ecx
call fcn.10005780
add esp, 0xc
test eax, eax
je 0x10004123
mov edx, dword [esp]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x120], edx
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], ecx
push ebp
push esi
lea edx, [esp + 0x134]
push edi
push edx
call fcn.10005620
add esp, 4
lea eax, [esp + 0x288]
mov dword [esp + 0x288], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x290]
mov edx, dword [esp + 0x294]
mov ecx, 0x14
call fcn.10008d00
mov ecx, dword [esp + 0x338]
mov dword [esp + 0x158], eax
mov dword [esp + 0x14c], ecx
call fcn.100054f0
mov dword [esp + 0x150], eax
call fcn.10003e80
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1000cb88
test eax, eax
lea eax, [esp + 0x160]
setne dl
push eax
mov byte [esp + 0x15c], dl
call esi
lea ecx, [esp + 0x170]
push 0x1000caf4
push ecx
call esi
lea edx, [esp + 0x1f4]
push str.x_b_ap
push edx
call esi
mov dword [esp + 0x248], 0
call fcn.10003fb0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x214]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [0x1000d7b4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x1000d7b8]
mov esi, 1
xor ecx, ecx
cmp ebp, esi
sete cl
mov ebp, dword [0x1000d7c0]
xor edx, edx
cmp edi, esi
mov dword [esp + 0x24c], ecx
mov ecx, dword [0x1000d7bc]
mov edi, dword [0x1000d7c4]
sete dl
xor eax, eax
cmp ecx, esi
sete al
xor ecx, ecx
cmp ebp, esi
mov dword [esp + 0x250], edx
mov dword [esp + 0x254], eax
sete cl
xor edx, edx
cmp edi, esi
sete dl
mov dword [esp + 0x258], ecx
mov dword [esp + 0x25c], edx
xor eax, eax
mov ecx, dword [0x1000d7c8]
mov ebp, dword [0x1000d7cc]
mov edi, dword [0x1000d7d0]
cmp ecx, esi
sete al
xor ecx, ecx
cmp ebp, esi
sete cl
xor edx, edx
cmp edi, esi
mov dword [esp + 0x264], ecx
mov ecx, dword [0x1000d7d4]
mov dword [esp + 0x260], eax
mov ebp, dword [0x1000d7dc]
sete dl
xor eax, eax
cmp ecx, esi
sete al
mov dword [esp + 0x26c], eax
mov eax, dword [0x1000d7d8]
mov edi, dword [0x1000d7e0]
xor ecx, ecx
cmp eax, esi
mov dword [esp + 0x268], edx
sete cl
xor edx, edx
cmp ebp, esi
sete dl
xor eax, eax
cmp edi, esi
mov dword [esp + 0x274], edx
mov edx, dword [0x1000d7e4]
mov dword [esp + 0x270], ecx
mov ebp, dword [0x1000d7ec]
sete al
xor ecx, ecx
cmp edx, esi
mov dword [esp + 0x278], eax
mov eax, dword [0x1000d7e8]
sete cl
xor edx, edx
cmp eax, esi
sete dl
xor eax, eax
mov dword [esp + 0x27c], ecx
cmp ebp, esi
lea ecx, [esp + 0x1c]
sete al
push ecx
mov dword [esp + 0x284], edx
mov dword [esp + 0x288], eax
mov dword [esp + 0x20], 8
call dword [sym.imp.USER32.dll_GetLastInputInfo]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x20]
cmp eax, 0x2bf20
jbe 0x1000435c
mov dword [esp + 0x248], esi
mov ebp, dword [esp + 0x334]
mov ecx, ebp
call fcn.10008030
test al, al
je 0x100043d0
mov eax, dword [ebp + 0x7c]
lea edi, [ebp + 8]
mov dword [esp + 0x18c], eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x188], edx
lea edx, [esp + 0x190]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x1c2]
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0x3a]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10003ee0
mov edx, eax
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x2c9]
mov byte [esp + 0x2c8], 0
cmp edx, 0x3e8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop edi
pop esi
pop ebp
jl 0x1000442c
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push edx
lea edx, [esp + 0x2c0]
push str._u_Gbps
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x2c8]
push eax
jmp 0x10004448
push edx
lea ecx, [esp + 0x2c0]
push str._u_Mbps
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x2c8]
push edx
call dword [sym.imp.MSVCRT.dll_printf]
mov ecx, dword [esp + 0x334]
add esp, 0x10
lea eax, [esp + 0x28]
push 0x254
push eax
call fcn.10001af0
add esp, 0x320
ret