Function at 0x445760
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x20], 0x40
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4459c2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
sub eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
mov eax, ecx
sbb eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
test edi, edi
je 0x445a6d
mov ecx, edi
lea edx, [edi + 0x28]
mov edi, dword [edi + 0x28]
cmp dword [ecx + 0x2c], edi
je 0x445a76
lea ebx, [edi + 0x18]
mov dword [edx], ebx
test edi, edi
je 0x445ac7
mov dword [edi + 4], 0
mov dword [edi], 0x60d
mov dword [edi + 8], 0x4f46d3
mov ebx, dword [edx]
cmp dword [ecx + 0x2c], ebx
je 0x445aa2
lea eax, [ebx + 0x18]
mov dword [edx], eax
test ebx, ebx
je 0x445ac0
mov dword [ebx + 4], 0
mov dword [ebx], 7
test esi, esi
je 0x445a65
test edi, edi
je 0x445a65
mov ecx, dword [esi]
mov eax, ecx
and eax, 7
cmp eax, 7
jne 0x445a65
test ebx, ebx
je 0x445a65
mov eax, dword [edi]
and eax, 7
cmp eax, 5
jne 0x445a65
mov eax, dword [esi + 4]
shld eax, ecx, 0x18
mov ecx, edi
je 0x445872
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + 0x10]
mov dword [edx + 0x10], edi
mov dword [ebx + 0x10], ecx
mov dword [edi + 0x10], ebx
inc eax
movzx ecx, byte [esi]
mov edx, eax
shl eax, 8
or eax, ecx
mov dword [esi + 8], edi
shr edx, 0x18
mov dword [esi + 4], edx
mov dword [esi], eax
cmp dword [ebp + 0xc], 0
je 0x445a65
mov edx, dword [ebx]
mov eax, edx
not eax
test al, 7
jne 0x445939
mov eax, dword [ebp + 0xc]
lea esi, [eax + 0x28]
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
sub eax, ecx
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp eax, 1
jbe 0x445af1
mov eax, dword [ebx + 4]
lea edi, [ecx + 0x30]
mov dword [esi], edi
test ecx, ecx
je 0x445939
shld eax, edx, 0x18
lea edx, [ecx + 0x18]
mov dword [ecx + 4], 0
mov dword [ecx], 0x50d
mov dword [ecx + 8], 0x4f46da
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], 4
mov esi, dword [esp + 0x14]
mov dword [ecx + 0x20], esi
mov esi, dword [esp + 0x10]
mov dword [ecx + 0x24], esi
mov esi, ecx
test eax, eax
je 0x44591b
mov esi, dword [ebx + 8]
mov edi, dword [esi + 0x10]
mov esi, dword [edi + 0x10]
mov dword [edi + 0x10], ecx
mov dword [ecx + 0x28], esi
mov dword [ecx + 0x10], edx
mov dword [ebx + 8], ecx
inc eax
movzx ecx, byte [ebx]
mov edx, eax
shr edx, 0x18
shl eax, 8
or eax, ecx
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov edx, eax
not edx
test dl, 7
mov edx, dword [ebp + 0xc]
jne 0x445a65
lea esi, [edx + 0x28]
mov eax, dword [edx + 0x28]
mov ecx, dword [edx + 0x2c]
sub ecx, eax
sar ecx, 3
imul ecx, ecx, 0xaaaaaaab
cmp ecx, 1
jbe 0x445b10
lea ecx, [eax + 0x30]
mov dword [esi], ecx
test eax, eax
je 0x445a65
mov ecx, dword [ebx + 1]
mov dword [eax + 4], 0
mov dword [eax], 0x40d
mov dword [eax + 8], 0x4f46e0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x18], 4
mov edx, dword [esp + 0x18]
mov dword [eax + 0x24], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x20], edx
lea edx, [eax + 0x18]
test ecx, ecx
je 0x445b2e
mov esi, dword [ebx + 8]
mov esi, dword [esi + 0x10]
mov edi, dword [esi + 0x10]
mov dword [esi + 0x10], eax
mov esi, ebx
jmp 0x445a49
test edi, edi
je 0x445a65
test esi, esi
je 0x445a65
mov eax, dword [esi]
not eax
test al, 7
jne 0x445a65
mov edx, edi
add edi, 0x28
mov eax, dword [edx + 0x28]
mov ecx, dword [edx + 0x2c]
sub ecx, eax
sar ecx, 3
imul ecx, ecx, 0xaaaaaaab
cmp ecx, 1
jbe 0x445ace
lea ecx, [eax + 0x30]
mov dword [edi], ecx
test eax, eax
je 0x445a65
mov ecx, dword [esi + 1]
lea edx, [eax + 0x18]
mov dword [eax + 4], 0
mov dword [eax], 0x50d
mov dword [eax + 8], 0x4f46cd
mov dword [eax + 0x1c], 0
mov dword [eax + 0x18], 0x1d0d
mov dword [eax + 0x20], str.GlobalMemoryStatusEx___failed
test ecx, ecx
je 0x445ae8
mov edi, dword [esi + 8]
mov ebx, dword [edi + 0x10]
mov edi, dword [ebx + 0x10]
mov dword [ebx + 0x10], eax
mov dword [eax + 0x28], edi
mov dword [eax + 0x10], edx
mov dword [esi + 8], eax
inc ecx
movzx eax, byte [esi]
mov edx, ecx
shr edx, 0x18
shl ecx, 8
or ecx, eax
mov dword [esi + 4], edx
mov dword [esi], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
xor ebx, ebx
jmp 0x445825
lea eax, [ecx + 4]
push 1
push eax
mov dword [esp + 0x14], edx
push edx
call dbg.unsafe_yyjson_val_pool_grow
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov ebx, dword [ecx + 0x28]
test al, al
je 0x445b37
mov edi, ebx
mov edx, dword [esp + 0xc]
jmp 0x4457df
lea eax, [ecx + 4]
push 1
push eax
push edx
mov ebx, edx
call dbg.unsafe_yyjson_val_pool_grow
add esp, 0xc
test al, al
je 0x445ac0
mov edx, ebx
mov ebx, dword [ebx]
jmp 0x44580b
xor ebx, ebx
jmp 0x445825
xor edi, edi
jmp 0x445802
add edx, 4
push 2
push edx
push edi
call dbg.unsafe_yyjson_val_pool_grow
add esp, 0xc
test al, al
je 0x445a65
mov eax, dword [edi]
jmp 0x4459fd
xor ecx, ecx
mov edi, eax
jmp 0x445a49
mov eax, dword [ebp + 0xc]
add eax, 4
push 2
push eax
push esi
call dbg.unsafe_yyjson_val_pool_grow
add esp, 0xc
test al, al
je 0x445b42
mov ecx, dword [esi]
mov edx, dword [ebx]
jmp 0x4458c6
add edx, 4
push 2
push edx
push esi
call dbg.unsafe_yyjson_val_pool_grow
add esp, 0xc
test al, al
je 0x445a65
mov eax, dword [esi]
jmp 0x445964
xor ecx, ecx
mov edi, eax
jmp 0x4459bb
xor edi, edi
mov edx, dword [esp + 0xc]
jmp 0x445802
mov edx, dword [ebx]
jmp 0x445939