Function at 0x4087a0
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x4a676e
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x4e3e9c]
xor eax, esp
mov dword [esp + 0x16c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3e9c]
xor eax, esp
push eax
lea eax, [esp + 0x184]
mov dword fs:[0], eax
mov esi, ecx
or ebp, 0xffffffff
call fcn.00437ad0
mov ecx, dword [esi + 0xb8]
mov dword [esi + 0xb0], eax
mov dword [eax + 0x14], ecx
mov eax, dword [esi + 0xb0]
push 0x210
mov dword [eax + 4], 0x408640
call fcn.0047fb47
add esp, 4
mov dword [esp + 0x14], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18c], ebx
je 0x408828
mov ecx, eax
call fcn.00436810
jmp 0x40882a
xor eax, eax
push ebx
mov dword [esp + 0x190], ebp
mov dword [esi + 0x10c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea ecx, [esp + 0x80]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [esi + 0x10c]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.00437ad0
mov ecx, eax
call fcn.00437960
mov edi, dword [esi + 0x10c]
mov ecx, dword [edi]
push ecx
call fcn.00408510
add esp, 4
test eax, eax
je 0x4088cf
cmp dword [edi + 0xc], ebx
jne 0x4088aa
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push edx
push eax
push ecx
push str._d._d_d
lea edx, [esi + 0xf4]
push 0x10
push edx
call fcn.00436a40
add esp, 0x18
jmp 0x4088cf
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
push ecx
push edx
push eax
push str._d._d_d._d
lea ecx, [esi + 0xf4]
push 0x10
push ecx
call fcn.00436a40
add esp, 0x1c
push 0xfa0
call fcn.00437ad0
mov ecx, eax
call fcn.004368b0
test eax, eax
je 0x408cee
call fcn.004085c0
mov ecx, dword [esi + 0xb0]
call fcn.00437720
test eax, eax
je 0x40895a
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x4c]
mov dword [esi + 0xb4], eax
mov eax, dword [eax + 0x2c]
add eax, 0xffffffff
cmp eax, 1
ja 0x40895a
mov dword [esi + 0xec], 1
mov eax, dword [0x4e62d0]
mov dword [eax + 0x210], ebx
mov ecx, dword [0x4e62d0]
mov dword [ecx + 0x214], ebx
mov edx, dword [0x4e62d0]
mov dword [edx + 0x21c], ebx
mov eax, dword [0x4e62d0]
mov dword [eax + 0x220], ebx
mov ecx, dword [0x4e62d0]
mov dword [ecx + 0x224], ebx
mov ecx, dword [esi + 0xb8]
push 0x7d0
lea edx, [esp + 0x1c]
push edx
call fcn.00421b80
call fcn.004085c0
mov eax, dword [0x4e62d0]
cmp dword [eax + 0x210], ebx
je 0x4089b9
mov ecx, dword [esi + 0xb0]
call fcn.00437310
test eax, eax
je 0x4089b9
mov ecx, dword [esi + 0xb0]
mov eax, dword [ecx + 0x34]
mov dword [esi + 0xc0], eax
mov edx, dword [0x4e62d0]
mov ecx, dword [edx + 0x230]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0xc0]
call fcn.0043f4b0
call fcn.004085c0
mov edx, dword [0x4e62d0]
cmp dword [edx + 0x214], ebx
je 0x4089ea
mov ecx, dword [esi + 0xb0]
call fcn.004373c0
test eax, eax
je 0x4089ea
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax + 0x38]
mov dword [esi + 0xd4], ecx
call fcn.004085c0
mov edx, dword [0x4e62d0]
xor eax, eax
cmp dword [edx + 0x228], ebx
je 0x408a04
mov eax, 1
mov ecx, dword [esi + 0xb0]
push eax
call fcn.004375d0
test eax, eax
je 0x408a71
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax + 0x3c]
mov dword [esi + 0xbc], ecx
call fcn.00437ad0
cmp dword [eax + 0x38], ebx
je 0x408a3a
call fcn.00437ad0
mov edx, dword [eax + 0x38]
mov edi, dword [edx + 0x10]
jmp 0x408a3c
xor edi, edi
cmp edi, ebx
je 0x408a71
call fcn.00437ad0
mov ecx, eax
call fcn.004372d0
mov edx, dword [edi]
push ebx
push eax
mov eax, dword [edx + 4]
mov ecx, edi
call eax
fldz
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x408a6f
fsub qword [edi + 0x10]
fabs
fstp qword [0x4e5d98]
jmp 0x408a71
fstp st(0)
call fcn.004085c0
mov ecx, dword [0x4e62d0]
cmp dword [ecx + 0x218], ebx
je 0x408ae4
mov ecx, dword [esi + 0xb0]
call fcn.00437520
test eax, eax
je 0x408ae4
mov edx, dword [esi + 0xb0]
mov ecx, dword [edx + 0x48]
cmp ecx, ebx
mov dword [esi + 0xd0], ecx
je 0x408ae4
push 2
call fcn.0047d820
cmp eax, ebx
je 0x408ae4
push eax
call fcn.00403e50
mov edi, eax
mov eax, dword [edi + 0xc]
add esp, 4
cmp byte [eax], bl
je 0x408ae4
mov ecx, dword [esi + 0xb0]
push eax
call fcn.004367c0
mov ecx, dword [esi + 0xb0]
mov ebp, eax
mov eax, dword [edi + 0xc]
push eax
call fcn.00436790
mov edi, eax
jmp 0x408ae8
mov edi, dword [esp + 0x18]
call fcn.004085c0
mov ecx, dword [esi + 0xb0]
call fcn.00437470
test eax, eax
je 0x408b0b
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx + 0x44]
mov dword [esi + 0xc4], edx
call fcn.004085c0
mov eax, dword [0x4e62d0]
cmp dword [eax + 0x21c], ebx
je 0x408b69
mov ecx, dword [esi + 0xb0]
call fcn.00437670
test eax, eax
je 0x408b69
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx + 0x40]
mov ecx, dword [esi + 0xbc]
cmp ecx, ebx
mov dword [esi + 0xc8], edx
je 0x408b62
push ebx
call fcn.0043c070
cmp eax, ebx
je 0x408b62
mov ecx, eax
call fcn.004396d0
sub eax, 0x1000805
je 0x408b69
sub eax, 5
je 0x408b69
mov ecx, esi
call fcn.00408610
mov eax, dword [0x4e62d0]
cmp dword [eax + 0x224], ebx
je 0x408b81
mov ecx, dword [esi + 0xb0]
call fcn.004377d0
call fcn.004085c0
mov ecx, dword [0x4e62d0]
cmp dword [ecx + 0x220], ebx
je 0x408bc4
mov ecx, dword [esi + 0xb0]
push edi
push ebp
call fcn.00437880
test eax, eax
je 0x408bc4
mov ecx, dword [esi + 0xb0]
push 0x80
call fcn.00437920
push eax
call fcn.00403e50
add esp, 4
mov dword [esi + 0xd8], eax
mov ecx, dword [esi + 0xb8]
call fcn.00421c10
call fcn.004085c0
xor ebp, ebp
call fcn.004085c0
push str.GlobalMemoryStatusEx
push 0x4ae9c0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
lea edx, [esp + 0x20]
push ebx
push edx
mov edi, eax
call fcn.0048f440
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x1c], 0x40
je 0x408c49
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
je 0x408c49
mov ecx, dword [esp + 0x28]
fild dword [esp + 0x28]
test ecx, ecx
jge 0x408c2d
fadd qword [0x4ae9b8]
mov edx, dword [esp + 0x24]
fmul qword [0x4ae9b8]
test edx, edx
fild dword [esp + 0x24]
jge 0x408c45
fadd qword [0x4ae9b8]
faddp st(1)
jmp 0x408c66
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
fild dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
test ecx, ecx
jge 0x408c66
fadd qword [0x4ae9b8]
fmul qword [0x4ae9b0]
fadd qword [str.ffffff]
call fcn.0048f080
test al, 1
je 0x408c7e
add eax, 1
mov ecx, dword [esi + 0xcc]
mov edx, dword [ecx + 4]
cmp edx, ebx
jle 0x408cb3
mov ecx, dword [ecx + 8]
mov edx, dword [esi + 0xcc]
mov edi, dword [edx + 4]
add ecx, 0x180
lea ecx, [ecx]
mov edx, dword [ecx]
cmp edx, ebx
jle 0x408ca8
add ebp, edx
add ecx, 0x224
sub edi, 1
jne 0x408ca0
cmp ebp, eax
jle 0x408cbf
mov dword [esi + 0xdc], ebp
jmp 0x408cc5
mov dword [esi + 0xdc], eax
mov eax, dword [esi + 0xc4]
cmp eax, ebx
je 0x408cdb
mov eax, dword [eax + 0x14]
mov ecx, dword [esi + 0xdc]
mov dword [eax + 8], ecx
call fcn.00437ad0
mov ecx, eax
call fcn.00436440
mov eax, 1
jmp 0x408cf0
xor eax, eax
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.0048e5ae
add esp, 0x17c
ret