Function at 0x40d040
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov dword [ebp - 0x70], 0x1634c
mov dword [ebp - 0x74], 0x14b4e
mov dword [ebp - 0x88], 0x107c1
mov dword [ebp - 4], 0x896
mov dword [ebp - 0x60], 0xf193
mov dword [ebp - 0x18], 0x14e15
mov dword [ebp - 0x8c], 0xaf6d
mov dword [ebp - 0x10], 0x17f5a
mov dword [ebp - 0x24], 0x6aab
mov dword [ebp - 0xc], 0x184ed
mov dword [ebp - 8], 0x4c5f
mov dword [ebp - 0x28], 0x15852
mov dword [ebp - 0x2c], 0xe7ac
mov dword [ebp - 0x30], 0xe443
mov dword [ebp - 0x14], 0x9fea
mov dword [ebp - 0x9c], 0xc6a2
mov dword [ebp - 0x20], 0x3dd7
mov dword [ebp - 0x54], 0x15249
mov dword [ebp - 0x64], 0x281a
mov dword [ebp - 0x34], 0x11c12
mov dword [ebp - 0x1c], 0x7d49
mov dword [ebp - 0xa0], 0x6752
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x70]
cmp ecx, dword [ebp - 0x60]
jge 0x40d109
mov dword [ebp - 0x38], 1
jmp 0x40d110
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 8]
xor edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x2c]
jge 0x40d124
mov dword [ebp - 0x3c], 1
jmp 0x40d12b
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x7c]
jge 0x40d151
mov dword [ebp - 0x40], 1
jmp 0x40d158
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x38]
and ecx, dword [ebp - 0x3c]
and ecx, dword [ebp - 0x40]
je 0x40d3a8
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x24]
jne 0x40d3a8
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x20]
jne 0x40d3a8
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x80]
cmp ecx, dword [ebp - 0x84]
jge 0x40d3a8
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x34]
jge 0x40d1b7
mov dword [ebp - 0x44], 1
jmp 0x40d1be
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x10]
or eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x88]
or eax, ecx
je 0x40d3a8
push 0x18230
push 0x1001d
push 0x66c8
push 0xed51
push 0x15abe
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
add esp, 0x14
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x14]
jge 0x40d214
mov dword [ebp - 0x48], 1
jmp 0x40d21b
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jge 0x40d22c
mov dword [ebp - 0x4c], 1
jmp 0x40d233
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x90]
cmp edx, dword [ebp - 0x94]
jge 0x40d265
mov dword [ebp - 0x50], 1
jmp 0x40d26c
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x48]
or eax, dword [ebp - 0x4c]
or eax, dword [ebp - 0x50]
je 0x40d3a8
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 4]
jge 0x40d28c
mov dword [ebp - 0x58], 1
jmp 0x40d293
mov dword [ebp - 0x58], 0
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 8]
jge 0x40d2a4
mov dword [ebp - 0x5c], 1
jmp 0x40d2ab
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x58]
and eax, dword [ebp - 0x5c]
je 0x40d3a8
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x20]
jne 0x40d3a8
mov edx, dword [ebp - 0x60]
cmp edx, dword [ebp - 0x34]
jne 0x40d3a8
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x64]
jge 0x40d2e0
mov dword [ebp - 0x68], 1
jmp 0x40d2e7
mov dword [ebp - 0x68], 0
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
jge 0x40d301
mov dword [ebp - 0x6c], 1
jmp 0x40d308
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x28]
or eax, dword [ebp - 0x24]
or eax, dword [ebp - 0x68]
or eax, dword [ebp - 0x6c]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x28]
sub ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x98], 0
je 0x40d377
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x14]
jne 0x40d377
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x18]
jne 0x40d377
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x34]
jne 0x40d377
mov edx, dword [ebp + 8]
cmp edx, dword [ebp + 0xc]
jne 0x40d377
push 0x1544d
push 0x9910
push 0x13229
push 0x13b45
push 0x17308
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
add esp, 0x14
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
push 0x5961
push 0x18532
push 0xe201
push 0xf04f
push 0xe4d2
push 0x3e98
push 0x3bd7
push 0x8cc9
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
add esp, 0x20
mov esp, ebp
pop ebp
ret