Function at 0x14003b5e0
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1f8
mov rax, qword [0x14014ac48]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov dword [rsp + 0x38], 0x29a
mov dword [rsp + 0x78], 0x4f2
mov eax, 0x2f5
mov word [rsp + 0x28], ax
movsx eax, word [rsp + 0x28]
mov dword [rsp + 0xd8], eax
mov eax, 0x91c
cdq
mov ecx, dword [rsp + 0xd8]
idiv ecx
mov ecx, dword [rsp + 0x78]
lea eax, [rax + rcx - 0x811]
mov dword [rsp + 0x7c], eax
movsx ecx, word [rsp + 0x28]
mov eax, 0xb99
cdq
idiv ecx
cdq
mov ecx, 0x198f
idiv ecx
movsx ecx, word [rsp + 0x28]
cdq
idiv ecx
mov ecx, dword [rsp + 0x7c]
sub ecx, eax
mov eax, ecx
sub eax, 0x12fe
cdqe
mov qword [rsp + 0x148], rax
mov dword [rsp + 0x80], 0x26e
mov qword [rsp + 0xe0], 0x340
mov eax, 0x2153
sub eax, dword [rsp + 0x80]
add eax, 0x2052
cdqe
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0xe0]
cqo
mov ecx, 0x156
idiv rcx
cqo
idiv qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x120]
lea rax, [rcx + rax - 0x572]
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x3c], 0x2d6
mov dword [rsp + 0x84], 0x5ce
mov eax, dword [rsp + 0x3c]
add eax, 0xb53
sub eax, dword [rsp + 0x84]
sub eax, 0xb0c
sub eax, dword [rsp + 0x3c]
add eax, 0x2498
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x3c]
cdq
mov ecx, 0x319
idiv ecx
mov ecx, dword [rsp + 0x88]
sub ecx, eax
mov eax, ecx
cdqe
mov qword [rsp + 0x158], rax
mov dword [rsp + 0x54], 0x16d
mov dword [rsp + 0x58], 0x3e6
mov eax, 0x2462
sub eax, dword [rsp + 0x54]
mov dword [rsp + 0x8c], eax
mov eax, 0x1bd
cdq
idiv dword [rsp + 0x54]
mov ecx, dword [rsp + 0x8c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x90], eax
mov eax, 0xd8f
cdq
idiv dword [rsp + 0x58]
mov ecx, dword [rsp + 0x58]
mov edx, dword [rsp + 0x90]
add ecx, edx
lea eax, [rax + rcx - 0x3902]
cdqe
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x94], 0x180
mov dword [rsp + 0x40], 0x1a2
mov eax, dword [rsp + 0x94]
add eax, 0x2506
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0x40]
cdq
mov ecx, 0x21dd
idiv ecx
cdq
idiv dword [rsp + 0x40]
cdq
mov ecx, 0x7ea
idiv ecx
mov ecx, dword [rsp + 0x98]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x40]
lea eax, [rax + rcx + 0x2018]
mov dword [rsp + 0x114], eax
mov dword [rsp + 0x9c], 0x396
mov qword [rsp + 0xe8], 0x74
mov eax, 0x164f
cdq
idiv dword [rsp + 0x9c]
cdq
mov ecx, 0xeb5
idiv ecx
cdqe
sub rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe8]
lea rax, [rax + rcx + 0x3f4]
mov dword [rsp + 0x118], eax
mov dword [rsp + 0xf0], 0x28a
mov dword [rsp + 0x34], 0xa6
mov eax, 0x1339
cdq
idiv dword [rsp + 0x34]
cdq
mov ecx, 0x1515
idiv ecx
mov dword [rsp + 0xa0], eax
mov eax, dword [rsp + 0x34]
cdq
mov ecx, 0x3b2
idiv ecx
cdq
idiv dword [rsp + 0x34]
cdq
mov ecx, 0x37b
idiv ecx
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0xa0]
add ecx, edx
lea eax, [rax + rcx - 0x1358]
mov dword [rsp + 0xf4], eax
mov dword [rsp + 0x44], 0x549
mov dword [rsp + 0xa8], 0x2ec
mov eax, dword [rsp + 0x44]
add eax, 0x1ffc
mov dword [rsp + 0xa4], eax
mov eax, 0x7b9
cdq
idiv dword [rsp + 0x44]
cdq
mov ecx, 0xce4
idiv ecx
mov ecx, dword [rsp + 0xa4]
sub ecx, eax
mov eax, ecx
sub eax, dword [rsp + 0xa8]
mov ecx, dword [rsp + 0x44]
lea eax, [rax + rcx + 0x389]
cdqe
mov qword [rsp + 0x168], rax
mov dword [rsp + 0x48], 0x22d
mov dword [rsp + 0xf8], 0x2f2
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x48]
lea eax, [rax + rcx + 0xa78]
mov dword [rsp + 0xac], eax
mov eax, 0x23f5
cdq
idiv dword [rsp + 0x48]
cdq
mov ecx, 0x2261
idiv ecx
mov ecx, dword [rsp + 0xac]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xfc], eax
mov dword [rsp + 0x5c], 0x110
mov dword [rsp + 0xb0], 0x16b
mov eax, dword [rsp + 0x5c]
add eax, 0x4583
sub eax, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0xb0]
lea eax, [rax + rcx + 0x111b]
cdqe
mov qword [rsp + 0x170], rax
mov eax, 0x384
mov word [rsp + 0x24], ax
mov dword [rsp + 0x100], 0x2be
movsx eax, word [rsp + 0x24]
mov ecx, 0xd3c
sub ecx, eax
mov eax, ecx
sub eax, 0x2549
mov dword [rsp + 0xb4], eax
movsx ecx, word [rsp + 0x24]
mov eax, ecx
cdq
mov ecx, 0x3d9
idiv ecx
mov ecx, dword [rsp + 0xb4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0xb8], eax
movsx ecx, word [rsp + 0x24]
mov eax, ecx
cdq
mov ecx, 0x20ac
idiv ecx
mov ecx, dword [rsp + 0xb8]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0xbc], eax
movsx ecx, word [rsp + 0x24]
mov eax, ecx
cdq
mov ecx, 0x864
idiv ecx
mov ecx, dword [rsp + 0xbc]
sub ecx, eax
mov eax, ecx
cdqe
mov qword [rsp + 0x178], rax
mov dword [rsp + 0x2c], 0
jmp 0x14003ba2c
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x2c], eax
jge 0x14003ba5e
mov eax, dword [rsp + 0x38]
add eax, 0x1df5
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x2c], 0x17ca
jle 0x14003ba5a
mov eax, dword [rsp + 0x2c]
add eax, 0x1f8e
mov dword [rsp + 0x2c], eax
jmp 0x14003ba5e
lea rax, str.Frame_efnRrIaf
mov qword [rsp + 0x128], rax
mov dword [rsp + 0x104], 0xf4ea
mov dword [rsp + 0x1a0], 0x40
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp eax, 1
jne 0x14003bb0a
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0
mov rax, qword [rsp + 0x68]
movsx eax, byte [rax]
test eax, eax
je 0x14003bb05
mov rax, qword [rsp + 0x68]
movsx eax, byte [rax]
mov ecx, eax
call fcn.1400a3d90
test eax, eax
je 0x14003baeb
imul eax, dword [rsp + 0x60], 0xa
mov rcx, qword [rsp + 0x68]
movsx ecx, byte [rcx]
lea eax, [rax + rcx - 0x30]
mov dword [rsp + 0x60], eax
mov byte [rsp + 0x20], 1
jmp 0x14003baf6
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14003baf6
jmp 0x14003bb05
mov rax, qword [rsp + 0x68]
inc rax
mov qword [rsp + 0x68], rax
jmp 0x14003bab0
jmp 0x14003bc24
mov dword [rsp + 0x108], 0xc7
mov qword [rsp + 0x70], 1
mov eax, 0x20b7
sub rax, qword [rsp + 0x70]
sub rax, 0x14ac
sub rax, qword [rsp + 0x70]
sub rax, 0x20c8
sub rax, qword [rsp + 0x70]
mov qword [rsp + 0x130], rax
mov eax, 0x5bb
cqo
idiv qword [rsp + 0x70]
mov rcx, qword [rsp + 0x130]
lea rax, [rcx + rax - 0xbc6]
mov dword [rsp + 0x10c], eax
mov dword [rsp + 0xc0], 0x2fa
mov eax, 0x4bb
mov word [rsp + 0x30], ax
mov eax, dword [rsp + 0xc0]
add eax, 0x31ee
mov dword [rsp + 0xc4], eax
movsx ecx, word [rsp + 0x30]
mov eax, ecx
cdq
mov ecx, 0x13ef
idiv ecx
movsx ecx, word [rsp + 0x30]
cdq
idiv ecx
mov ecx, dword [rsp + 0xc4]
sub ecx, eax
mov eax, ecx
sub eax, 0x1009
cdqe
mov qword [rsp + 0x180], rax
mov dword [rsp + 0x64], 0x40d
mov qword [rsp + 0x138], 0x262
mov eax, 0x23ca
cdq
idiv dword [rsp + 0x64]
cdqe
mov rcx, qword [rsp + 0x138]
lea rax, [rcx + rax + 0x958]
mov qword [rsp + 0x140], rax
mov eax, 0x2595
cdq
idiv dword [rsp + 0x64]
cdq
mov ecx, 0x126f
idiv ecx
cdqe
mov rcx, qword [rsp + 0x140]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x188], rax
mov rcx, qword [rsp + 0x200]
call fcn.14003c960
mov qword [rsp + 0x190], 0x40c
mov dword [rsp + 0x4c], 0x4e7
mov eax, dword [rsp + 0x4c]
cdq
mov ecx, 0xcc6
idiv ecx
cdq
idiv dword [rsp + 0x4c]
mov ecx, 0x23e5
sub ecx, eax
mov eax, ecx
add eax, 0x20c9
mov dword [rsp + 0xc8], eax
mov eax, dword [rsp + 0x4c]
cdq
mov ecx, 0x1a85
idiv ecx
mov ecx, dword [rsp + 0xc8]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x110], eax
mov dword [rsp + 0xcc], 0x57b
mov dword [rsp + 0x50], 0x9e
mov eax, 0x204a
cdq
idiv dword [rsp + 0xcc]
sub eax, 0x1aa1
sub eax, dword [rsp + 0x50]
add eax, 0x1c34
mov dword [rsp + 0xd0], eax
mov eax, dword [rsp + 0x50]
cdq
mov ecx, 0xddc
idiv ecx
mov ecx, dword [rsp + 0xd0]
sub ecx, eax
mov eax, ecx
mov word [rsp + 0xd4], ax
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.14009cb40
add rsp, 0x1f8
ret