Function at 0x430324
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0xcc
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0xc8], eax
movzx ecx, byte [esp + 0xd8]
mov ebx, dword [esp + 0xd4]
mov edx, dword [ecx*4 + 0x46ceb0]
mov dword [ebx], edx
lea eax, [esp + 0xc8]
mov dword [esp + 0x8c], 0
call fcn.00430908
xor al, 1
je 0x43078c
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x6c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x6c]
push ecx
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0x84]
mov edx, 0xcccccccd
mul edx
shr edx, 4
cmp dword [esp + 0x88], edx
jb 0x4305b4
mov edx, dword [esp + 0xc8]
cmp dword [edx + 0xa4], 0
jne 0x4303e6
xor edi, edi
mov dword [esp + 0x20], edi
mov ebx, dword [edx + 0xe0]
mov dword [esp + 0x1c], ebx
fild qword [esp + 0x1c]
fcomp dword [edx + 0xd8]
fnstsw ax
sahf
jae 0x4305b4
jp 0x4305b4
mov eax, dword [esp + 0xc8]
mov dword [esp + 0xc0], eax
push 1
push 0
mov eax, dword [esp + 0xc8]
call fcn.00431028
test eax, eax
jne 0x430745
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0xbc], ebx
push 0
mov eax, dword [esp + 0xc0]
call fcn.00431e28
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x9c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x9c]
push ecx
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xb4]
mov edx, 0xcccccccd
mul edx
shr edx, 4
cmp dword [esp + 0xb8], edx
jae 0x430745
mov edx, dword [esp + 0xc8]
mov ebp, dword [esp + 0xc8]
lea eax, [edx + 0xa8]
call fcn.00434414
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
cmp dword [esp + 0x2c], ebx
je 0x430745
mov ecx, dword [esp + 0x30]
mov edi, dword [ecx + ebx*4]
mov edx, dword [edi + 0x40]
sub dword [ebp + 0xe8], edx
mov ecx, dword [edi]
test ecx, ecx
je 0x4304c7
cmp dword [edi + 0x40], 0
je 0x4304c0
push 0x8000
push 0
push ecx
call sub.KERNEL32.DLL_VirtualFree
mov dword [edi + 0x40], 0
xor edx, edx
mov dword [edi], edx
mov dword [edi + 4], edx
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x4304dd
mov dword [esp], ecx
call fcn.00459d94
mov dword [edi + 0x48], 0
mov edx, dword [edi + 0x54]
test edx, edx
je 0x4304ec
mov dword [esp], edx
call fcn.00459d94
lea esi, [edi + 8]
cmp dword [esi], 0
je 0x430504
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.00459d94
mov dword [esi], 0
cmp byte [edi + 0x4c], 0
je 0x430524
lea esi, [edi + 0x38]
cmp dword [esi], 0
je 0x43053c
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.00459d94
mov dword [esi], 0
jmp 0x43053c
lea esi, [edi + 0x10]
cmp dword [esi], 0
je 0x43053c
mov edx, dword [esi]
mov dword [esp], edx
call fcn.00459d94
mov dword [esi], 0
lea esi, [edi + 0x18]
cmp dword [esi], 0
je 0x430554
mov edx, dword [esi]
mov dword [esp], edx
call fcn.00459d94
mov dword [esi], 0
lea esi, [edi + 0x20]
cmp dword [esi], 0
je 0x43056c
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.00459d94
mov dword [esi], 0
lea esi, [edi + 0x28]
cmp dword [esi], 0
je 0x430584
mov edx, dword [esi]
mov dword [esp], edx
call fcn.00459d94
mov dword [esi], 0
lea esi, [edi + 0x30]
cmp dword [esi], 0
je 0x43059c
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.00459d94
mov dword [esi], 0
mov dword [esp], edi
call fcn.00459d94
inc ebx
cmp ebx, dword [esp + 0x2c]
jb 0x430490
jmp 0x430745
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x3c], ecx
push 0
mov eax, dword [esp + 0x40]
call fcn.00431e28
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x4c]
push edx
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0x64]
mov edx, 0xcccccccd
mul edx
shr edx, 4
cmp dword [esp + 0x68], edx
jae 0x430745
mov ecx, dword [esp + 0xc8]
mov ebp, dword [esp + 0xc8]
lea eax, [ecx + 0xa8]
call fcn.00434414
xor ebx, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
cmp dword [esp + 0x34], ebx
je 0x430745
mov edx, dword [esp + 0x38]
mov edi, dword [edx + ebx*4]
mov ecx, dword [edi + 0x40]
sub dword [ebp + 0xe8], ecx
mov edx, dword [edi]
test edx, edx
je 0x43065d
cmp dword [edi + 0x40], 0
je 0x430656
push 0x8000
push 0
push edx
call sub.KERNEL32.DLL_VirtualFree
mov dword [edi + 0x40], 0
xor ecx, ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov edx, dword [edi + 0x48]
test edx, edx
je 0x430673
mov dword [esp], edx
call fcn.00459d94
mov dword [edi + 0x48], 0
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x430682
mov dword [esp], ecx
call fcn.00459d94
lea esi, [edi + 8]
cmp dword [esi], 0
je 0x43069a
mov edx, dword [esi]
mov dword [esp], edx
call fcn.00459d94
mov dword [esi], 0
cmp byte [edi + 0x4c], 0
je 0x4306ba
lea esi, [edi + 0x38]
cmp dword [esi], 0
je 0x4306d2
mov edx, dword [esi]
mov dword [esp], edx
call fcn.00459d94
mov dword [esi], 0
jmp 0x4306d2
lea esi, [edi + 0x10]
cmp dword [esi], 0
je 0x4306d2
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.00459d94
mov dword [esi], 0
lea esi, [edi + 0x18]
cmp dword [esi], 0
je 0x4306ea
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.00459d94
mov dword [esi], 0
lea esi, [edi + 0x20]
cmp dword [esi], 0
je 0x430702
mov edx, dword [esi]
mov dword [esp], edx
call fcn.00459d94
mov dword [esi], 0
lea esi, [edi + 0x28]
cmp dword [esi], 0
je 0x43071a
mov ecx, dword [esi]
mov dword [esp], ecx
call fcn.00459d94
mov dword [esi], 0
lea esi, [edi + 0x30]
cmp dword [esi], 0
je 0x430732
mov edx, dword [esi]
mov dword [esp], edx
call fcn.00459d94
mov dword [esi], 0
mov dword [esp], edi
call fcn.00459d94
inc ebx
cmp ebx, dword [esp + 0x34]
jb 0x430626
lea eax, [esp + 0xc8]
call fcn.00430908
xor al, 1
je 0x43078c
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0xc4], ebx
push 1
push 0
mov eax, dword [esp + 0xcc]
call fcn.00431028
test eax, eax
je 0x430787
lea eax, [esp + 0xc8]
call fcn.00430908
xor al, 1
je 0x43078c
call fcn.00432b18
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx]
movzx esi, byte [esp + 0xd8]
cmp dword [esp + 0xd0], 0
mov edi, dword [esp + 0xc8]
lea eax, [edi + esi*4]
mov dword [eax + 0xb8], edx
mov ecx, dword [esp + 0x8c]
mov ebx, dword [ecx + 4]
je 0x4308e5
mov eax, ecx
mov ecx, dword [ebx + 0x50]
mov edi, 1
sub eax, dword [ebx]
sar eax, cl
mov esi, eax
mov ecx, eax
and ecx, 0x1f
shr esi, 5
shl edi, cl
test dword [esp + 0xd0], 0x20
je 0x430828
cmp dword [ebx + 0x24], 0
jne 0x430822
lea ebp, [ebx + 0x20]
mov edx, dword [ebx + 0xc]
mov dword [ebp + 4], edx
mov dword [esp + 4], 4
mov ecx, dword [ebp + 4]
add ecx, 0x1f
shr ecx, 5
mov dword [esp], ecx
call fcn.0045c13c
test eax, eax
mov dword [ebp], eax
je 0x4308d2
mov edx, dword [ebx + 0x20]
or dword [edx + esi*4], edi
test dword [esp + 0xd0], 1
je 0x43086a
cmp dword [ebx + 0x1c], 0
jne 0x430864
lea ebp, [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 4], ecx
mov dword [esp + 4], 4
mov edx, dword [ebp + 4]
add edx, 0x1f
shr edx, 5
mov dword [esp], edx
call fcn.0045c13c
test eax, eax
mov dword [ebp], eax
je 0x4308d2
mov ecx, dword [ebx + 0x18]
or dword [ecx + esi*4], edi
test dword [esp + 0xd0], 2
je 0x43087d
mov edx, dword [ebx + 0x28]
or dword [edx + esi*4], edi
test dword [esp + 0xd0], 8
je 0x430890
mov ecx, dword [ebx + 0x30]
or dword [ecx + esi*4], edi
cmp byte [ebx + 0x4c], 0
je 0x4308e5
test dword [esp + 0xd0], 0x10
je 0x4308e5
cmp dword [ebx + 0x3c], 0
jne 0x4308df
lea ebp, [ebx + 0x38]
mov edx, dword [ebx + 0xc]
mov dword [ebp + 4], edx
mov dword [esp + 4], 4
mov ecx, dword [ebp + 4]
add ecx, 0x1f
shr ecx, 5
mov dword [esp], ecx
call fcn.0045c13c
test eax, eax
mov dword [ebp], eax
jne 0x4308df
call fcn.00418510
mov dword [esp], eax
call fcn.00413d00
mov edx, dword [ebx + 0x38]
or dword [edx + esi*4], edi
mov eax, dword [esp + 0x8c]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add esp, 0xcc
ret 0xc