Function at 0x731c60
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x50]
push ebp
mov ebp, dword [esp + 0x58]
push esi
push edi
mov edi, dword [ebp + 0x24]
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x3c], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x40]
cmp eax, 0x2000000
jbe 0x731ca3
add eax, 0xfe000000
jmp 0x731ca5
xor eax, eax
mov ecx, dword [ebx + 0x100024]
fild dword [ebx + 0x100024]
test ecx, ecx
jge 0x731cbb
fadd dword [0x799d08]
test eax, eax
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
mov dword [esp + 0x30], eax
fld qword [0x7bd200]
fmul st(1)
fmul qword [0x7f8d98]
fild dword [esp + 0x30]
jge 0x731ce3
fadd dword [0x799d08]
fdivrp st(2)
fxch st(1)
fsub qword [0x79e630]
fnstcw word [esp + 0x10]
fdivp st(1)
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp qword [esp + 0x30]
mov edx, dword [esp + 0x30]
cmp edx, 1
fldcw word [esp + 0x10]
mov dword [esp + 0x10], edx
ja 0x731d23
mov edx, 1
mov dword [esp + 0x10], edx
mov ecx, dword [ebx + 0x100028]
mov eax, dword [ebp + 0x28]
add eax, ecx
cmp edx, eax
jb 0x731d38
mov edx, eax
mov dword [esp + 0x10], edx
cmp ecx, edx
jae 0x731f50
add ebx, 0x100038
jmp 0x731d50
mov eax, dword [ebx + 4]
mov ecx, dword [sym.imp.MSVCR80.dll__HUGE]
fld qword [ecx]
xor edx, edx
test eax, eax
fstp dword [esp + 0x18]
setle dl
sub edx, 1
and edx, eax
mov esi, edx
mov edx, eax
test edx, edx
jle 0x731e2c
fld dword [esp + 0x18]
fldz
mov ecx, dword [ebx + 4]
fst dword [esp + 0x18]
test ecx, ecx
jle 0x731df6
fld dword [esp + 0x18]
fcom st(2)
fnstsw ax
test ah, 1
je 0x731dfa
mov eax, dword [ecx + 0xc]
sub eax, dword [edx + 0xc]
fld dword [eax*4 + 0x8772f0]
mov eax, dword [ecx + 8]
sub eax, dword [edx + 8]
fadd dword [eax*4 + 0x8772f0]
mov eax, dword [ecx + 0x10]
sub eax, dword [edx + 0x10]
fadd dword [eax*4 + 0x8772f0]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fld dword [ecx + 0x18]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x731dd7
fstp st(0)
fadd dword [ecx + 0x1c]
jmp 0x731deb
mov eax, dword [ecx + 0x14]
fild dword [ecx + 0x14]
test eax, eax
jge 0x731de7
fadd dword [0x799d08]
fmulp st(1)
faddp st(1)
mov ecx, dword [ecx + 4]
fstp dword [esp + 0x18]
test ecx, ecx
jg 0x731d88
fld dword [esp + 0x18]
fcom st(2)
fnstsw ax
test ah, 5
jp 0x731e88
fstp st(2)
mov esi, edx
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fxch st(1)
test edx, edx
jne 0x731e1d
mov edx, ebx
mov edx, dword [edx + 4]
test edx, edx
jg 0x731d7d
fstp st(1)
fstp st(0)
mov ecx, dword [ebx + 4]
test ecx, ecx
jle 0x731e95
mov edx, dword [ecx + 0xc]
sub edx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
sub eax, dword [esi + 8]
fld dword [edx*4 + 0x8772f0]
mov edx, dword [ecx + 0x10]
fadd dword [eax*4 + 0x8772f0]
sub edx, dword [esi + 0x10]
fadd dword [edx*4 + 0x8772f0]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fld dword [ecx + 0x18]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x731e8c
mov eax, dword [ecx + 0x14]
fst dword [ecx + 0x18]
test eax, eax
fild dword [ecx + 0x14]
jge 0x731e81
fadd dword [0x799d08]
fmulp st(1)
fstp dword [ecx + 0x1c]
jmp 0x731e8e
fstp st(0)
jmp 0x731e17
fstp st(0)
mov ecx, dword [ecx + 4]
test ecx, ecx
jg 0x731e33
test esi, esi
je 0x731e9e
mov eax, dword [esi + 8]
jmp 0x731ea0
xor eax, eax
test esi, esi
mov byte [ebp + edi*4 + 0x30], al
je 0x731ead
mov eax, dword [esi + 0xc]
jmp 0x731eaf
xor eax, eax
test esi, esi
mov byte [ebp + edi*4 + 0x31], al
je 0x731ebc
mov eax, dword [esi + 0x10]
jmp 0x731ebe
xor eax, eax
test esi, esi
mov byte [ebp + edi*4 + 0x32], al
mov byte [ebp + edi*4 + 0x33], 1
je 0x731edb
mov ecx, dword [esp + 0x5c]
push esi
add ecx, 0x100034
call fcn.00731500
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
mov esi, dword [ecx + 0x100028]
add eax, 1
add edi, 1
add esi, eax
cmp dword [0x84dbc8], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], eax
je 0x731f38
cmp dword [0x876eec], 0
mov dword [0x84dbc8], esi
je 0x731f23
mov edx, dword [esp + 0x64]
push edx
call dword [0x876eec]
test eax, eax
jne 0x7320ba
cmp dword [0x876ee8], 0
je 0x731f38
mov eax, dword [esp + 0x64]
push eax
push esi
call dword [0x876ee8]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 0x100028]
add edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x10]
jb 0x731d50
mov eax, dword [ebp + 0x28]
mov ecx, eax
sub ecx, dword [esp + 0x10]
shr ecx, 3
cmp dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
jae 0x73212d
mov ebp, dword [esp + 0x5c]
mov eax, dword [ebp + 0x10003c]
add ebp, 0x100038
xor ecx, ecx
xor edx, edx
test eax, eax
setle dl
mov dword [esp + 0x18], ecx
sub edx, 1
and eax, edx
test eax, eax
jle 0x731fa4
add ecx, 1
test eax, eax
jne 0x731f99
mov eax, ebp
mov eax, dword [eax + 4]
test eax, eax
jg 0x731f90
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 4]
xor ecx, ecx
test eax, eax
setle cl
sub ecx, 1
and ecx, eax
mov esi, ecx
jle 0x73212d
xor ebx, ebx
lea ecx, [ecx]
mov ecx, dword [ebp + 4]
xor edx, edx
test ecx, ecx
jle 0x73211c
lea ecx, [ecx]
mov eax, dword [ecx + 0xc]
sub eax, dword [esi + 0xc]
fld dword [eax*4 + 0x8772f0]
mov eax, dword [ecx + 8]
sub eax, dword [esi + 8]
fadd dword [eax*4 + 0x8772f0]
mov eax, dword [ecx + 0x10]
sub eax, dword [esi + 0x10]
fadd dword [eax*4 + 0x8772f0]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fld dword [ecx + 0x18]
fcompp
fnstsw ax
test ah, 1
jne 0x73200e
add edx, 1
mov ecx, dword [ecx + 4]
test ecx, ecx
jg 0x731fd0
test edx, edx
je 0x73211c
push 0
lea ecx, [edx + edx*2]
push 0x181
add ecx, ecx
push 0x7f8d84
add ecx, ecx
push ecx
call sub.Storm.dll_Ordinal_401
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
mov ecx, dword [ebp + 4]
test ecx, ecx
jle 0x7320cf
jmp 0x732050
mov edx, dword [ecx + 0xc]
sub edx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
sub eax, dword [esi + 8]
fld dword [edx*4 + 0x8772f0]
mov edx, dword [ecx + 0x10]
fadd dword [eax*4 + 0x8772f0]
sub edx, dword [esi + 0x10]
fadd dword [edx*4 + 0x8772f0]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fld dword [ecx + 0x18]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x7320c6
mov eax, dword [esi + 0x24]
mov edi, dword [esi + 0x20]
lea edx, [eax + eax*2]
add eax, 1
mov dword [esi + 0x24], eax
fst dword [edi + edx*4 + 8]
lea edx, [edi + edx*4]
mov dword [edx + 4], ecx
fild dword [ecx + 0x14]
mov eax, dword [ecx + 0x14]
test eax, eax
jge 0x7320b4
fadd dword [0x799d08]
fmulp st(1)
fstp dword [edx]
jmp 0x7320c8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret 0xc
fstp st(0)
mov ecx, dword [ecx + 4]
test ecx, ecx
jg 0x732050
add ebx, dword [esp + 0x1c]
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
mov edi, eax
add edi, dword [esp + 0x10]
cmp dword [0x84dbc8], edi
je 0x73211c
cmp dword [0x876eec], 0
mov dword [0x84dbc8], edi
je 0x732107
mov ecx, dword [esp + 0x64]
push ecx
call dword [0x876eec]
test eax, eax
jne 0x7320ba
cmp dword [0x876ee8], 0
je 0x73211c
mov edx, dword [esp + 0x64]
push edx
push edi
call dword [0x876ee8]
test esi, esi
jne 0x732122
mov esi, ebp
mov esi, dword [esi + 4]
test esi, esi
jg 0x731fc0
fldz
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x60]
fstp dword [esp + 0x18]
cmp esi, dword [edi + 0x28]
mov ecx, dword [esp + 0x5c]
jae 0x732172
mov eax, dword [ecx + 0x10003c]
xor edx, edx
test eax, eax
setle dl
sub edx, 1
and eax, edx
test eax, eax
jle 0x732172
lea ebx, [ebx]
fld dword [eax + 0x1c]
mov eax, dword [eax + 4]
test eax, eax
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
jg 0x732160
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp esi, dword [edi + 0x28]
mov dword [esp + 0x30], edx
jae 0x732490
mov eax, 0x64
sub eax, edx
mov dword [esp + 0x2c], eax
imul eax, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
lea edx, [eax*4]
mov dword [esp + 0x24], edx
lea ebx, [ebx]
mov eax, dword [ecx + 0x10003c]
mov ebp, dword [ecx + 0x10003c]
xor ebx, ebx
test eax, eax
setle bl
sub ebx, 1
and ebx, eax
test ebp, ebp
mov eax, dword [sym.imp.MSVCR80.dll__HUGE]
fld qword [eax]
mov dword [esp + 0x1c], ebx
fstp dword [esp + 0x20]
jle 0x7322e3
nop
fld dword [esp + 0x18]
mov esi, dword [ebp + 0x24]
fsub dword [ebp + 0x1c]
xor edi, edi
cmp esi, 4
fstp dword [esp + 0x10]
jl 0x732285
mov ecx, dword [ebp + 0x20]
lea eax, [ecx + 0xc]
lea edx, [ecx + 0x1c]
lea ecx, [esi - 4]
shr ecx, 2
add ecx, 1
lea edi, [ecx*4]
fld dword [esp + 0x10]
mov ebx, dword [eax - 8]
fsub dword [ebx + 0x1c]
mov ebx, dword [edx - 0xc]
add eax, 0x30
add edx, 0x30
sub ecx, 1
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [eax - 0x3c]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [ebx + 0x1c]
mov ebx, dword [edx - 0x30]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [eax - 0x30]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [ebx + 0x1c]
mov ebx, dword [edx - 0x24]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [eax - 0x24]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [ebx + 0x1c]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [eax - 0x18]
fstp dword [esp + 0x10]
jne 0x732212
mov ebx, dword [esp + 0x1c]
cmp edi, esi
jae 0x7322b5
mov edx, dword [ebp + 0x20]
lea ecx, [edi + edi*2]
lea eax, [edx + ecx*4]
sub esi, edi
fld dword [esp + 0x10]
mov ecx, dword [eax + 4]
fsub dword [ecx + 0x1c]
add eax, 0xc
sub esi, 1
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [eax - 0xc]
fstp dword [esp + 0x10]
jne 0x732294
fld dword [esp + 0x10]
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x7322d2
mov ebx, ebp
fstp dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
jmp 0x7322d4
fstp st(0)
mov ebp, dword [ebp + 4]
test ebp, ebp
jg 0x7321e0
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx + 0x10003c]
test ecx, ecx
jle 0x73236a
mov edx, dword [ecx + 0xc]
sub edx, dword [ebx + 0xc]
mov eax, dword [ecx + 8]
sub eax, dword [ebx + 8]
fld dword [edx*4 + 0x8772f0]
mov edx, dword [ecx + 0x10]
fadd dword [eax*4 + 0x8772f0]
sub edx, dword [ebx + 0x10]
fadd dword [edx*4 + 0x8772f0]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fld dword [ecx + 0x18]
fcomp st(1)
fnstsw ax
test ah, 0x41
jnp 0x732361
fld dword [esp + 0x18]
mov eax, dword [ecx + 0x14]
test eax, eax
fsub dword [ecx + 0x1c]
fstp dword [esp + 0x18]
fst dword [ecx + 0x18]
fild dword [ecx + 0x14]
jge 0x73234a
fadd dword [0x799d08]
fmulp st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fst dword [ecx + 0x1c]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
jmp 0x732363
fstp st(0)
mov ecx, dword [ecx + 4]
test ecx, ecx
jg 0x7322f1
mov ecx, dword [esp + 0x5c]
mov esi, dword [ecx + 0x10003c]
test esi, esi
jle 0x7323d6
xor edi, edi
cmp dword [esi + 0x24], edi
jbe 0x7323cf
xor edx, edx
mov ecx, dword [esi + 0x20]
mov eax, dword [edx + ecx + 4]
fld dword [eax + 0x18]
fld dword [edx + ecx + 8]
fcompp
fnstsw ax
test ah, 0x41
jp 0x7323a0
add edi, 1
add edx, 0xc
jmp 0x7323ca
mov eax, dword [esi + 0x24]
lea ebp, [eax - 1]
cmp edi, ebp
jae 0x7323c6
lea eax, [eax + eax*2]
mov ebp, dword [ecx + eax*4 - 0xc]
lea eax, [ecx + eax*4 - 0xc]
mov dword [edx + ecx], ebp
mov ebp, dword [eax + 4]
mov dword [edx + ecx + 4], ebp
mov eax, dword [eax + 8]
mov dword [edx + ecx + 8], eax
add dword [esi + 0x24], 0xffffffff
cmp edi, dword [esi + 0x24]
jb 0x732381
mov esi, dword [esi + 4]
test esi, esi
jg 0x732378
test ebx, ebx
je 0x7323df
mov eax, dword [ebx + 8]
jmp 0x7323e1
xor eax, eax
test ebx, ebx
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x24]
mov byte [esi + edi + 0x30], al
je 0x7323f6
mov eax, dword [ebx + 0xc]
jmp 0x7323f8
xor eax, eax
test ebx, ebx
mov byte [esi + edi + 0x31], al
je 0x732405
mov eax, dword [ebx + 0x10]
jmp 0x732407
xor eax, eax
test ebx, ebx
mov byte [esi + edi + 0x32], al
mov byte [esi + edi + 0x33], 1
je 0x732424
mov ecx, dword [esp + 0x5c]
push ebx
add ecx, 0x100034
call fcn.00731500
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x28], eax
div dword [edi + 0x28]
add dword [esp + 0x14], 1
add esi, 4
mov dword [esp + 0x24], esi
mov esi, eax
add esi, dword [esp + 0x30]
cmp dword [0x84dbc8], esi
je 0x73247e
mov eax, dword [0x876eec]
test eax, eax
mov dword [0x84dbc8], esi
je 0x73246d
mov ecx, dword [esp + 0x64]
push ecx
call eax
test eax, eax
jne 0x7320ba
mov eax, dword [0x876ee8]
test eax, eax
je 0x73247e
mov edx, dword [esp + 0x64]
push edx
push esi
call eax
mov eax, dword [esp + 0x14]
cmp eax, dword [edi + 0x28]
jae 0x732490
mov ecx, dword [esp + 0x5c]
jmp 0x7321b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret 0xc