Function at 0x47a488
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov byte [ebp - 1], 0
lea eax, [ebp - 0x30]
push eax
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [ebp + 8]
mov dword [eax - 0xe0], 0x100000
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov byte [eax + 0x8a], 0
mov eax, dword [ebp + 8]
cmp byte [eax - 0xb9], 0
je 0x47a759
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp byte [eax + 0x3e], 0
jne 0x47a4e7
mov eax, dword [ebp + 8]
sub dword [eax - 0xf8], 0xc
sbb dword [eax - 0xf4], 0
jmp 0x47a541
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp byte [eax + 0x3e], 1
je 0x47a50b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp byte [eax + 0x3e], 2
je 0x47a50b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp byte [eax + 0x3e], 3
jne 0x47a541
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc0]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x28]
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc0]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x34]
add ebx, eax
mov eax, ebx
cdq
mov ecx, dword [ebp + 8]
sub dword [ecx - 0xf8], eax
sbb dword [ecx - 0xf4], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0041aa5c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0041aa7c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp byte [eax + 0x3e], 0
jne 0x47a5c0
mov eax, dword [ebp + 8]
mov ax, word [eax - 0x110]
push eax
mov eax, dword [ebp + 8]
mov ax, word [eax - 0x10c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x108]
push eax
mov eax, dword [ebp + 8]
add eax, 0xffffff98
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov ecx, dword [eax + 0x140]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00479cfc
xor al, 1
mov edx, dword [ebp + 8]
mov byte [edx - 0x117], al
jmp 0x47a62b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp byte [eax + 0x3e], 1
je 0x47a5e4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp byte [eax + 0x3e], 2
je 0x47a5e4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp byte [eax + 0x3e], 3
jne 0x47a62b
push 0
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc0]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [eax + 0x140]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc0]
mov eax, dword [eax]
mov ebx, dword [eax]
call dword [ebx + 4]
xor al, 1
mov edx, dword [ebp + 8]
mov byte [edx - 0x117], al
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp byte [eax + 0x130], 0
je 0x47a65b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
add eax, 0x140
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
mov edx, dword [edx + 0x140]
call fcn.0040456c
jmp 0x47a746
mov eax, dword [ebp + 8]
cmp byte [eax - 0x117], 0
je 0x47a70b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
add eax, 0x8a
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
lea ecx, [eax + 0x140]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov edx, dword [edx + 0x2e]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp byte [eax + 0x3e], 1
je 0x47a6bb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp byte [eax + 0x3e], 2
je 0x47a6bb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp byte [eax + 0x3e], 3
jne 0x47a727
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc0]
mov eax, dword [eax]
mov eax, dword [eax + 0x184]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
mov edx, dword [edx + 0x140]
call fcn.00404934
je 0x47a727
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp byte [eax + 0x8a], 0
jne 0x47a727
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [eax + 0x140]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc0]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x47a727
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
add eax, 0x140
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
mov edx, dword [edx + 0x140]
call fcn.0040456c
mov eax, dword [ebp + 8]
cmp byte [eax - 0x117], 0
je 0x47a746
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp byte [eax + 0x8a], 0
je 0x47a552
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp byte [eax + 0x8a], 0
jne 0x47a9e4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xe0]
add eax, 2
call fcn.00408ad4
mov edx, dword [ebp + 8]
mov dword [edx - 0x4c], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0xc4], edx
mov eax, dword [ebp + 8]
add eax, 0xffffff48
xor ecx, ecx
mov edx, 0x40
call fcn.0040305c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
mov edx, dword [ebp + 8]
mov dword [edx - 0xb8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xe0]
mov edx, dword [ebp + 8]
mov dword [edx - 0xb4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 0xf8]
mov dword [eax - 0xb0], ecx
mov ecx, dword [edx - 0xf4]
mov dword [eax - 0xac], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0xa8], edx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0xa4], edx
mov eax, dword [ebp + 8]
mov dword [eax - 0xa0], 0
mov dword [eax - 0x9c], 0
xor eax, eax
push ebp
push 0x47a9d9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x47a840
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x47a9f0
mov eax, dword [ebp + 8]
add eax, 0xffffff48
mov ecx, 0x40
call fcn.0045eec4
call fcn.0045cf60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47a962
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xf4]
mov eax, dword [eax - 0xf8]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx - 0xd8]
sbb edx, dword [ecx - 0xd4]
push edx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xe0]
cdq
cmp edx, dword [esp + 4]
jne 0x47a897
cmp eax, dword [esp]
pop edx
pop eax
jae 0x47a8b0
jmp 0x47a89b
pop edx
pop eax
jge 0x47a8b0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xe0]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx - 0x48], eax
mov dword [ecx - 0x44], edx
jmp 0x47a8d7
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xf4]
mov eax, dword [eax - 0xf8]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx - 0xd8]
sbb edx, dword [ecx - 0xd4]
mov ecx, dword [ebp + 8]
mov dword [ecx - 0x48], eax
mov dword [ecx - 0x44], edx
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
call fcn.00479d68
pop ecx
test al, al
jne 0x47a8fb
call fcn.00403ff8
jmp 0x47a9e4
mov eax, dword [ebp + 8]
push eax
call fcn.00479e24
pop ecx
test al, al
jne 0x47a913
call fcn.00403ff8
jmp 0x47a9e4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc4]
call fcn.00402770
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0xc4], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xcc]
mov eax, dword [eax - 0xd0]
mov ecx, dword [ebp + 8]
add dword [ecx - 0x120], eax
adc dword [ecx - 0x11c], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x44]
mov eax, dword [eax - 0x48]
mov ecx, dword [ebp + 8]
add dword [ecx - 0xd8], eax
adc dword [ecx - 0xd4], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xd4]
mov eax, dword [eax - 0xd8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx - 0xf4]
jne 0x47a98a
cmp eax, dword [ecx - 0xf8]
jb 0x47a85e
jmp 0x47a990
jl 0x47a85e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a9e0
mov eax, dword [ebp + 8]
add eax, 0xffffff48
call fcn.004604c4
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc4], 0
je 0x47a9c4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc4]
call fcn.00402770
mov eax, dword [ebp + 8]
cmp dword [eax - 0x4c], 0
je 0x47a9d8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
call fcn.00402770
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret