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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x44e008]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
lea eax, [esp + 0x14]
mov ebx, ecx
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x410ae5
mov esi, dword [esp + 0x10]
test esi, esi
je 0x410ae5
xor ecx, ecx
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x10], ecx
xor eax, eax
mov edx, 2
mov dword [esp + 0xc], eax
lea ecx, [edx - 2]
mov eax, esi
shr eax, cl
lea ecx, [edx - 1]
and eax, 1
add edi, eax
mov eax, esi
shr eax, cl
mov ecx, edx
and eax, 1
add dword [esp + 0xc], eax
mov eax, esi
shr eax, cl
lea ecx, [edx + 1]
and eax, 1
add edx, 4
add dword [esp + 0x10], eax
mov eax, esi
shr eax, cl
and eax, 1
add ebx, eax
lea eax, [edx - 2]
cmp eax, 0x20
jb 0x410a95
mov eax, dword [esp + 0xc]
add eax, ebx
mov ebx, dword [esp + 0x18]
add eax, dword [esp + 0x10]
add eax, edi
jmp 0x410af4
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x30]
push str.GlobalMemoryStatusEx
push str.kernel32.dll
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov byte [ebx + 8], 0
mov dword [ebx + 0x20], 0x40000000
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x10], 0x40000000
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0x40000000
mov dword [ebx + 0x1c], 0
mov dword [esp + 0x48], 0x40
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410b79
lea ecx, [esp + 0x40]
push ecx
call eax
test eax, eax
je 0x410b79
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc], esi
cmp esi, ecx
ja 0x410b73
mov edi, dword [esp + 0x68]
jb 0x410b9f
cmp edi, eax
jb 0x410b9f
mov edi, eax
mov esi, ecx
jmp 0x410b9b
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x34], edi
cmovb edi, dword [esp + 0x34]
xor esi, esi
mov dword [esp + 0xc], esi
mov byte [ebx + 9], 1
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], esi
test esi, esi
jne 0x410bf6
cmp edi, 0x70000000
ja 0x410bf6
cmp esi, 0x3333333
ja 0x410bc7
jb 0x410c03
cmp edi, 0x33333333
jbe 0x410c03
push 0
push 0x64
push esi
push edi
call fcn.00440820
mov ecx, edx
mov dword [esp + 0x10], eax
mov edx, eax
mov dword [esp + 0x18], ecx
shld ecx, eax, 2
shl eax, 2
add edx, eax
mov eax, dword [esp + 0x18]
adc eax, ecx
shld eax, edx, 4
shl edx, 4
jmp 0x410c38
xor ecx, ecx
mov edi, 0x70000000
mov dword [esp + 0xc], ecx
jmp 0x410c07
mov ecx, dword [esp + 0xc]
mov edx, ecx
mov eax, edi
shld ecx, eax, 2
mov esi, edi
shl eax, 2
add esi, eax
push 0
adc edx, ecx
shld edx, esi, 4
push 0x64
shl esi, 4
push edx
push esi
call fcn.00440820
mov esi, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov eax, edx
mov edx, dword [esp + 0x10]
shrd edi, esi, 5
mov dword [ebx + 0x14], eax
shr esi, 5
mov eax, edi
mov ecx, esi
mov dword [ebx + 0x10], edx
shld ecx, eax, 4
shl eax, 4
add eax, edi
pop edi
adc ecx, esi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esp + 0x80]
pop esi
pop ebx
xor ecx, esp
call fcn.004340eb
mov esp, ebp
pop ebp
ret