Function at 0x404c20
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49889e
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4c81a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x50]
push 0x40
push 0
push eax
call fcn.00463960
add esp, 0xc
mov dword [ebp - 0x50], 0x40
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x404c9e
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x3c]
sub ecx, eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x44]
sbb eax, edx
mov dword [esi + 0xc], edx
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00420c10
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x404e86
mov edx, dword [esi + 4]
mov ecx, dword [esi]
call fcn.00422520
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x4a2938]
movss dword [ebp - 0x5c], xmm0
call fcn.00422520
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x4a2938]
movss dword [ebp - 0x58], xmm0
call fcn.00422520
cvtsd2ss xmm0, xmm0
push 0x63
push str.d:jenkins.jenkinsworkspacegroup_cleanmemory_optimizer_promemory_optimizer_procommonutils.cc
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
mulss xmm0, dword [0x4a2938]
movss dword [ebp - 0x54], xmm0
call fcn.00406790
push 3
push 0x4a27e4
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
call fcn.00406790
mov byte [ebp - 4], 1
call fcn.00420c10
mov edi, eax
lea ecx, [ebp - 0x124]
push 0x11e
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00403510
mov esi, eax
push str.CollectionMemoryByCounter
push esi
mov byte [ebp - 4], 2
call fcn.00404630
push str._available_bytes:
push esi
call fcn.00404630
movss xmm0, dword [ebp - 0x54]
add esp, 0xc
mov ecx, esi
movss dword [esp], xmm0
call fcn.00404480
push str._GB._cache_bytes:
push esi
call fcn.00404630
movss xmm0, dword [ebp - 0x58]
add esp, 4
mov ecx, esi
movss dword [esp], xmm0
call fcn.00404480
push str._GB._in_used_bytes:
push esi
call fcn.00404630
movss xmm0, dword [ebp - 0x5c]
add esp, 4
mov ecx, esi
movss dword [esp], xmm0
call fcn.00404480
push str._GB.
push esi
call fcn.00404630
mov eax, dword [edi]
add esp, 8
push esi
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x124]
call fcn.004047d0
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
jb 0x404e41
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404e37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404ea6
push edx
push ecx
call fcn.00421f08
add esp, 8
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp edx, 0x10
jb 0x404e86
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404e7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404eab
push edx
push ecx
call fcn.00421f08
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004221b0
mov esp, ebp
pop ebp
ret
call fcn.00466d8a
call fcn.00466d8a
int3