Function at 0x410559
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1034
call fcn.0041b500
push ebx
push esi
push edi
push 0x40
xor esi, esi
lea eax, [esp + 0x64]
push esi
push eax
call fcn.0041c3f0
add esp, 0xc
lea eax, [esp + 0xa0]
push 0x38
push esi
push eax
call fcn.0041c3f0
add esp, 0xc
lea ecx, [esp + 0xc20]
call fcn.0040117c
lea ecx, [esp + 0x800]
call fcn.0040117c
lea ecx, [esp + 0xe30]
call fcn.0040117c
lea ecx, [esp + 0x5f0]
call fcn.0040117c
lea ecx, [esp + 0xa10]
call fcn.0040117c
lea ecx, [esp + 0xd8]
call fcn.00448ebd
xor eax, eax
lea edi, [esp + 0x50]
stosd dword es:[edi], eax
push 0xa
pop ecx
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x14c]
rep stosd dword es:[edi], eax
call fcn.00429e44
pop ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
cmp edx, dword [0x4b4ec4]
jl 0x41061c
mov ecx, dword [0x4b4ec0]
jg 0x410614
cmp eax, ecx
jbe 0x41061c
mov ebx, eax
sub ebx, ecx
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x50]
call fcn.00408794
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0x40
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
test eax, eax
jne 0x41064c
push 0x40
lea eax, [esp + 0x64]
push esi
push eax
call fcn.0041c3f0
add esp, 0xc
push 0x38
lea eax, [esp + 0xa4]
mov dword [esp + 0xa4], 0x38
push eax
call dword [sym.imp.KERNEL32.DLL_K32GetPerformanceInfo]
test eax, eax
jne 0x41067e
push 0x38
lea eax, [esp + 0xa4]
push esi
push eax
call fcn.0041c3f0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
push esi
xor edx, edx
lea ecx, [esp + 0x804]
call fcn.00406f55
pop ecx
lea ecx, [esp + 0xe30]
call fcn.00410102
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcessHandleCount]
neg eax
push 0x80
sbb eax, eax
and dword [esp + 0x14], eax
lea eax, [esp + 0x174]
push esi
push eax
call fcn.0041c3f0
add esp, 0xc
lea eax, [esp + 0x170]
mov ebx, 0x100
mov edx, str.SOFTWAREMetaQuotes_Software
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
push 0x7e
push eax
push 0x467fd0
call fcn.00403acb
add esp, 0x10
mov edi, 0x2710
test al, al
je 0x41071d
lea eax, [esp + 0x170]
push eax
call fcn.00429dc0
pop ecx
cmp edx, esi
jg 0x410765
jl 0x41071d
cmp eax, edi
jae 0x410765
push ebx
push 0x7e
lea eax, [esp + 0x178]
mov edx, str.SOFTWAREMetaQuotes_Software
push eax
push 0x467fd0
mov ecx, SysReAllocStringLen
call fcn.00403acb
add esp, 0x10
test al, al
je 0x41075b
lea eax, [esp + 0x170]
push eax
call fcn.00429dc0
pop ecx
cmp edx, esi
jg 0x410765
jl 0x41075b
cmp eax, edi
jae 0x410765
xor eax, eax
mov word [esp + 0x170], ax
mov edi, 0x200
lea eax, [esp + 0x3f0]
push edi
push esi
push eax
call fcn.0041c3f0
add esp, 0xc
lea eax, [esp + 0x1f0]
push edi
push esi
push eax
call fcn.0041c3f0
add esp, 0xc
lea eax, [esp + 0x1f0]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
mov edx, str.HARDWAREDESCRIPTIONSystem
mov ecx, edi
push ebx
push 0x1fe
push eax
push 0x46a8d0
call fcn.00403acb
add esp, 0x10
test al, al
jne 0x4107c5
xor eax, eax
mov word [esp + 0x1f0], ax
jmp 0x4107e2
lea eax, [esp + 0x1f0]
push 0x46d3e4
push eax
call fcn.0041b6ce
pop ecx
pop ecx
test eax, eax
je 0x4107e2
xor ecx, ecx
mov word [eax], cx
push ebx
push 0x1fe
lea eax, [esp + 0x3f8]
mov edx, str.HARDWAREDESCRIPTIONSystemBIOS
push eax
push 0x467f2c
mov ecx, edi
call fcn.00403acb
add esp, 0x10
test al, al
jne 0x410817
xor eax, eax
mov word [esp + 0x3f0], ax
jmp 0x4108d6
lea eax, [esp + 0x3f0]
push 0x46d3e4
push eax
call fcn.0041b6ce
pop ecx
pop ecx
test eax, eax
je 0x410834
xor ecx, ecx
mov word [eax], cx
cmp word [esp + 0x3f0], si
je 0x410877
cmp word [esp + 0x1f0], si
je 0x41085e
push 0x46c938
lea eax, [esp + 0x1f4]
push ebx
push eax
call fcn.00422b38
add esp, 0xc
lea eax, [esp + 0x3f0]
push eax
lea eax, [esp + 0x1f4]
push ebx
push eax
call fcn.00422b38
add esp, 0xc
push ebx
push 0x1fe
lea eax, [esp + 0x3f8]
mov edx, str.HARDWAREDESCRIPTIONSystemBIOS
push eax
push str.BaseBoardProduct
mov ecx, edi
call fcn.00403acb
add esp, 0x10
test al, al
je 0x4108d6
cmp word [esp + 0x3f0], si
je 0x4108d6
push 0x46c938
lea eax, [esp + 0x1f4]
push ebx
push eax
call fcn.00422b38
add esp, 0xc
lea eax, [esp + 0x3f0]
push eax
lea eax, [esp + 0x1f4]
push ebx
push eax
call fcn.00422b38
add esp, 0xc
mov ecx, dword [0x4c0668]
mov edi, str.write
mov edx, str.read
cmp ecx, 0xc0000005
jne 0x4108fb
cmp dword [0x4c067c], esi
mov eax, edi
cmove eax, edx
jmp 0x410900
mov eax, 0x46c978
push eax
movzx eax, word [0x4c0674]
push eax
push ecx
lea eax, [esp + 0x5fc]
push str._.8X_at__.8X__s
push eax
call fcn.004011fb
mov eax, dword [0x4b4184]
lea ecx, [esp + 0xec]
add esp, 0x14
add eax, eax
push eax
push dword [0x4b4180]
call fcn.00448f08
push 4
push 0x4b4e64
lea ecx, [esp + 0xe0]
call fcn.00448f08
mov eax, dword [esp + 0x808]
lea ecx, [esp + 0xd8]
add eax, eax
push eax
push dword [esp + 0x808]
call fcn.00448f08
mov eax, dword [esp + 0x5f8]
lea ecx, [esp + 0xd8]
add eax, eax
push eax
push dword [esp + 0x5f8]
call fcn.00448f08
lea ecx, [esp + 0xd8]
call fcn.00448fc3
push 0x27
push 0x4b4e0c
lea ecx, [esp + 0xe0]
call fcn.00449033
push ecx
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0xe0]
call fcn.00448cfc
push 0x28
lea eax, [esp + 0x14c]
push eax
push 0x10
pop edx
lea ecx, [esp + 0x58]
call fcn.00448d91
pop ecx
pop ecx
mov ebx, esi
movzx eax, byte [esp + ebx + 0x50]
push eax
lea eax, [esp + 0xa14]
push 0x462928
push eax
call fcn.004011fb
add esp, 0xc
lea eax, [esp + 0xa10]
lea ecx, [esp + 0xc20]
push eax
call fcn.00401262
inc ebx
cmp ebx, 0x10
jb 0x4109d4
mov eax, dword [0x4c0668]
cmp eax, 0xc0000005
jne 0x410a2c
cmp dword [0x4c067c], 0
mov ecx, str.read
mov esi, dword [0x4c0680]
cmove edi, ecx
jmp 0x410a31
mov edi, 0x46c978
push esi
push edi
push dword [0x4c0674]
push eax
lea eax, [esp + 0x600]
push str._.8X_at__p__s_to__.8X
push eax
call fcn.004011fb
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x60c]
mov edi, dword [0x4b4bf8]
mov ebx, dword [esp + 0xc3c]
mov dword [esp + 0x30], eax
mov eax, dword [0x4b47c8]
mov dword [esp + 0x34], eax
mov eax, dword [0x4b45b0]
mov dword [esp + 0x38], eax
mov eax, dword [0x4b49e0]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xe4c]
mov dword [esp + 0x40], eax
call fcn.00403930
mov dword [esp + 0x44], eax
call fcn.004102d8
push 0x64
cdq
pop ecx
idiv ecx
mov dword [esp + 0x48], edx
call fcn.004102d8
cdq
push 0x64
pop ecx
idiv ecx
push 0x3c
mov dword [esp + 0x50], eax
xor edx, edx
mov eax, dword [esp + 0x30]
pop ecx
div ecx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x54], eax
push esi
mov esi, dword [esp + 0xe4]
mov eax, esi
mov dword [esp + 0x54], edx
mul ecx
sub ecx, dword [esp + 0xc0]
shrd eax, edx, 0x14
push edi
push ebx
push dword [esp + 0x3c]
shr edx, 0x14
push edx
push eax
mov eax, ecx
mov ecx, dword [esp + 0xa8]
mul esi
shrd eax, edx, 0x14
shr edx, 0x14
push edx
push eax
mov eax, dword [esp + 0xe8]
mul esi
shrd eax, edx, 0x14
shr edx, 0x14
push edx
push eax
mov eax, dword [esp + 0xf4]
mul esi
shrd eax, edx, 0x14
shr edx, 0x14
push edx
push eax
mov eax, dword [esp + 0xc4]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
mov eax, dword [esp + 0xd0]
push ecx
mov ecx, dword [esp + 0xd0]
shrd ecx, eax, 0x14
xor edx, edx
shr eax, 0x14
push eax
push ecx
mov ecx, dword [esp + 0xe0]
mov eax, dword [esp + 0xe4]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
mov ecx, dword [esp + 0xf0]
mov eax, dword [esp + 0xf4]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
mov ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
mov ecx, dword [esp + 0xe0]
mov eax, dword [esp + 0xe4]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
push dword [esp + 0x94]
lea eax, [esp + 0x1ec]
push dword [esp + 0x9c]
push dword [esp + 0xa4]
push dword [esp + 0xac]
push dword [esp + 0xb4]
push eax
push dword [esp + 0xc0]
lea eax, [esp + 0x284]
push dword [esp + 0xc8]
push eax
push dword [esp + 0x8a0]
mov eax, dword [esp + 0xdc]
push dword [0x4b4e68]
push dword [0x4b4e70]
push dword [0x4b4e64]
push dword [0x4b4e60]
push dword [0x4b4180]
push dword [esp + 0xec]
push 0x3c
pop ecx
div ecx
mov eax, dword [esp + 0xcc]
mov ecx, 0xe10
push edx
xor edx, edx
div ecx
push eax
movzx eax, word [esp + 0x10a]
push eax
movzx eax, word [esp + 0x10c]
push eax
movzx eax, word [esp + 0x10e]
push eax
movzx eax, word [esp + 0x10e]
push eax
movzx eax, word [esp + 0x110]
push eax
push 0x4b4e0c
push dword [0x4b3f68]
push str.Filename____:__s._s_r_nTime________:__04d._02d._02d__02d:_02d___u:_02u:_02u__r_nProgram_____:__s_r_nVersion_____:__d._d___s__r_nRevision____:__d_r_nOS__________:__s_r_nBIOS________:__s_r_nExplorer____:__d._d_r_nID__________:__s_r_nProcessors__:__u_x__s_r_nVideo_______:__s_r_nCompany_____:__s_r_nComputer____:__s_r_nMemory______:__I64u_free_of__I64u_Mb_r_nVirtual_____:__I64u_free_of__I64u_Mb_r_nCommit______:__I64u_free_of__I64u_Mb_r_nOS_Memory___:__I64u_free_of__I64u_Mb_r_nOS_Commit___:__I64u_free_of__I64u_Mb_r_nHandles_____:__lu_r_nCrashMD5____:__s_r_nCustomInfo__:__s_r_nException___:__s_r_n_r_n
push 0xffffffffffffffff
push 0x40000
push dword [0x4b4ec8]
call fcn.00401e4a
add esp, 0xec
lea ecx, [esp + 0xd8]
call fcn.00448edc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret