Function at 0x459080
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x80
mov ecx, dword [esp + 0x90]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x88]
mov edx, 0xffffffff
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0xc], ebp
cmp ecx, 0xffffefff
mov dword [esp + 0x14], edi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
ja 0x4590d5
lea edx, [ecx + 0xfff]
shr edx, 0xc
mov dword [esp + 0x68], edx
cmp dword [esp + 0x68], 0xffffffff
jne 0x4590e5
call fcn.00457e1c
lea eax, [esp + 0x7c]
call fcn.004593a0
xor al, 1
je 0x4591d2
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x48]
push ecx
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0x60]
mov edx, 0xcccccccd
mul edx
shr edx, 4
cmp dword [esp + 0x64], edx
jb 0x45917a
mov edx, dword [esp + 0x7c]
cmp dword [edx + 0xa0], 0
jne 0x45914f
mov ecx, dword [edx + 0xf8]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fcomp dword [edx + 0xf0]
fnstsw ax
sahf
jae 0x45917a
jp 0x45917a
lea eax, [esp + 0x7c]
call fcn.00459428
xor al, 1
je 0x459196
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x28], ecx
push 0
mov eax, dword [esp + 0x2c]
call fcn.0045a114
mov eax, dword [esp + 0x7c]
call fcn.00458a0c
jmp 0x459196
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x34], edx
push 0
mov eax, dword [esp + 0x38]
call fcn.0045a114
mov eax, dword [esp + 0x7c]
call fcn.00458a0c
cmp dword [esp + 0x30], 0
jne 0x4591d2
lea eax, [esp + 0x7c]
call fcn.004593a0
xor al, 1
je 0x4591d2
lea eax, [esp + 0x7c]
call fcn.00459428
xor al, 1
je 0x4591d2
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
add esp, 0x80
xor eax, eax
ret 0x10
mov dword [esp + 0x84], esi
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x68]
add dword [edx + 0xf8], ecx
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
shl esi, 0xc
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x8c]
add esi, dword [edi]
shl eax, 0xc
test ebx, ebx
mov dword [esp + 0x6c], esi
mov dword [ecx], eax
je 0x459339
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
mov ebp, 1
and ecx, 0x1f
shr esi, 5
shl ebp, cl
test ebx, 0x20
mov edi, dword [esp + 0x30]
je 0x45927a
mov edx, dword [esp + 0x30]
cmp dword [edx + 0x28], 0
jne 0x459272
mov ecx, dword [edx + 0x10]
lea edx, [edx + 0x24]
mov dword [edx + 4], ecx
mov dword [esp + 4], 4
mov ecx, dword [edx + 4]
add ecx, 0x1f
shr ecx, 5
mov dword [esp + 0x70], edx
mov dword [esp], ecx
call fcn.004688d4
mov edx, dword [esp + 0x70]
test eax, eax
mov dword [edx], eax
je 0x459324
mov edx, dword [edi + 0x24]
mov ecx, ebp
or dword [edx + esi*4], ecx
test ebx, 1
je 0x4592c0
cmp dword [edi + 0x20], 0
jne 0x4592b8
lea edx, [edi + 0x1c]
mov ecx, dword [edi + 0x10]
mov dword [edx + 4], ecx
mov dword [esp + 4], 4
mov ecx, dword [edx + 4]
add ecx, 0x1f
shr ecx, 5
mov dword [esp + 0x74], edx
mov dword [esp], ecx
call fcn.004688d4
mov edx, dword [esp + 0x74]
test eax, eax
mov dword [edx], eax
je 0x459324
mov edx, dword [edi + 0x1c]
mov ecx, ebp
or dword [edx + esi*4], ecx
test ebx, 2
je 0x4592d0
mov edx, dword [edi + 0x2c]
mov ecx, ebp
or dword [edx + esi*4], ecx
test ebx, 8
je 0x4592e0
mov edx, dword [edi + 0x34]
mov ecx, ebp
or dword [edx + esi*4], ecx
cmp byte [edi + 0x58], 0
je 0x459339
test ebx, 0x10
je 0x459339
cmp dword [edi + 0x40], 0
jne 0x459331
lea edx, [edi + 0x3c]
mov ecx, dword [edi + 0x10]
mov dword [edx + 4], ecx
mov dword [esp + 4], 4
mov ecx, dword [edx + 4]
add ecx, 0x1f
shr ecx, 5
mov dword [esp + 0x78], edx
mov dword [esp], ecx
call fcn.004688d4
mov edx, dword [esp + 0x78]
test eax, eax
mov dword [edx], eax
jne 0x459331
call fcn.004244f8
mov dword [esp], eax
call fcn.0041de30
mov edx, dword [edi + 0x3c]
mov ecx, ebp
or dword [edx + esi*4], ecx
cmp byte [0x49d398], 0
je 0x459380
mov esi, dword [esp + 0x84]
test esi, esi
je 0x45935f
test ebx, 8
je 0x459366
mov ecx, dword [esi]
cmp dword [ecx], 0x476330
jne 0x459366
mov ebx, 1
jmp 0x45936f
mov edx, dword [esi]
mov eax, esi
call dword [edx + 0x44]
mov ebx, eax
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x9c]
mov dword [ecx + esi*4], ebx
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
add esp, 0x80
ret 0x10