Function at 0x18087d99
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xb8], edx
mov byte [ebp - 0xa5], cl
mov dword [ebp - 0xb4], eax
call fcn.1801c0e3
push 0x70
mov edi, eax
call fcn.18160e88
pop ecx
mov ebx, eax
mov ecx, ebx
call fcn.18087c25
mov al, byte [ebp - 0xa5]
push 0x1820c050
mov byte [ebx], al
call fcn.18179019
pop ecx
push eax
push 0x1820c050
lea ecx, [ebx + 8]
call fcn.18006f63
mov dl, byte [ebp - 0xa5]
lea ecx, [ebp - 0xb0]
call fcn.18027ab9
push eax
lea ecx, [ebx + 4]
call fcn.18009d41
mov ecx, dword [ebp - 0xb0]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov esi, dword [0x18233fec]
test esi, esi
jne 0x18087e45
xor eax, eax
jmp 0x18087e4c
push esi
call fcn.18179019
pop ecx
push eax
push esi
lea ecx, [ebx + 0xc]
call fcn.18006f63
mov esi, dword [0x18233fe8]
test esi, esi
jne 0x18087e64
xor eax, eax
jmp 0x18087e6b
push esi
call fcn.18179019
pop ecx
push eax
push esi
lea ecx, [ebx + 0x10]
call fcn.18006f63
push dword [ebp - 0xac]
lea ecx, [ebx + 0x14]
call fcn.18009d41
push dword [ebp - 0xc0]
lea ecx, [ebx + 0x18]
call fcn.18009d41
lea eax, [ebp - 0xc0]
push eax
call fcn.1801df91
push eax
lea ecx, [ebx + 0x1c]
call fcn.18009d41
mov ecx, dword [ebp - 0xc0]
lea ecx, [ecx - 0x10]
call fcn.1800694d
push dword [ebp - 0xb8]
lea ecx, [ebx + 0x24]
call fcn.18009d41
push dword [ebp - 0xb4]
lea ecx, [ebx + 0x20]
call fcn.18009d41
push 0
lea eax, [ebp - 0xa6]
mov byte [ebp - 0xa6], 0
push eax
mov ecx, edi
call fcn.1801d76e
cmp byte [ebp - 0xa6], 0
je 0x18087ef3
mov dword [ebx + 0x28], eax
push 0
lea eax, [ebp - 0xb4]
mov ecx, edi
push eax
call fcn.1801f09c
push eax
lea ecx, [ebx + 0x2c]
call fcn.18009d41
mov ecx, dword [ebp - 0xb4]
lea ecx, [ecx - 0x10]
call fcn.1800694d
call fcn.1800dc7f
mov byte [ebx + 0x30], al
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x18087fab
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0xbc], eax
mov eax, ecx
and ecx, 0x7fffffff
and eax, 0x80000000
mov dword [ebp - 0xb8], ecx
fild qword [ebp - 0xbc]
and dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], eax
push ecx
fild qword [ebp - 0xbc]
push ecx
fchs
faddp st(1)
fstp qword [ebp - 0xbc]
fld qword [ebp - 0xbc]
fmul qword [0x1821f970]
fadd qword [0x1821f988]
fstp qword [esp]
call fcn.1819df60
pop ecx
pop ecx
call fcn.18199fe0
mov dword [ebx + 0x38], eax
call fcn.180130fa
mov edx, eax
lea ecx, [ebp - 0xb0]
call fcn.18013127
mov ecx, dword [ebp - 0xb0]
call fcn.18016260
mov ecx, dword [ebp - 0xb0]
mov dword [ebx + 0x3c], eax
lea ecx, [ecx - 0x10]
call fcn.1800694d
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0xe4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0x3c]
mov dword [ebx + 0x34], eax
xor eax, eax
push 0xf
pop esi
push 7
push 0x181fd5c4
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov word [ebp - 0x40], ax
mov byte [ebp - 0x3e], al
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x3c], al
call fcn.1801b1e1
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x10], esi
mov byte [ebp - 0x24], 0
call fcn.18155b80
mov al, byte [ebp - 0x47]
mov edi, 0x181ffa3c
mov byte [ebx + 0x40], al
mov al, byte [ebp - 0x46]
mov byte [ebx + 0x41], al
mov al, byte [ebp - 0x45]
mov byte [ebx + 0x42], al
mov al, byte [ebp - 0x44]
mov byte [ebx + 0x43], al
mov al, byte [ebp - 0x43]
mov byte [ebx + 0x44], al
mov al, byte [ebp - 0x42]
mov byte [ebx + 0x45], al
mov al, byte [ebp - 0x41]
push edi
mov byte [ebx + 0x46], al
call fcn.18179019
pop ecx
push eax
push edi
lea ecx, [ebx + 0x48]
call fcn.18006f63
lea edx, [ebx + 0x50]
lea ecx, [ebx + 0x4c]
call fcn.1802656f
call fcn.18013feb
mov edx, eax
lea ecx, [ebp - 0xb4]
call fcn.1808a2d6
push eax
lea ecx, [ebx + 0x54]
call fcn.18009d41
mov ecx, dword [ebp - 0xb4]
lea ecx, [ecx - 0x10]
call fcn.1800694d
lea eax, [ebx + 0x58]
mov esi, str.HKLMSYSTEMCurrentControlSetControlSystemInformation
push eax
mov edx, 0x1820bfb8
mov ecx, esi
call fcn.180199ee
pop ecx
lea eax, [ebx + 0x5c]
mov edx, 0x1820bf94
push eax
mov ecx, esi
call fcn.180199ee
pop ecx
lea ecx, [ebp - 0xac]
call fcn.18009d8f
call fcn.1801c0e3
cmp byte [ebp - 0xa5], 0
mov ecx, str.HKLMSoftwareMicrosoftEdgeUpdate_
jne 0x1808810c
mov ecx, str.HKCUSoftwareMicrosoftEdgeUpdate_
lea eax, [ebp - 0xac]
mov edx, str.LastECSETag
push eax
call fcn.180199ee
pop ecx
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebx + 0x60]
call fcn.18009d41
mov ecx, dword [ebp - 0xac]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov eax, dword [ebp - 0x10]
mov esi, 0x1000
cmp eax, 0x10
jb 0x18088186
mov ecx, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], ecx
cmp eax, esi
jb 0x1808817d
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.18007456
mov eax, dword [ebp - 0xb0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xac]
push eax
push ecx
call fcn.18160b12
pop ecx
pop ecx
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
cmp eax, 0x10
jb 0x180881db
mov ecx, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], ecx
cmp eax, esi
jb 0x180881d2
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.18007456
mov eax, dword [ebp - 0xb0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xac]
push eax
push ecx
call fcn.18160b12
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret