Function at 0x2182afa
Capabilities:
Get disk size
Get memory capacity
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.02182fed
test eax, eax
je 0x2182b25
mov eax, 1
jmp 0x2182fe4
push 0xe00
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x2182b47
xor eax, eax
jmp 0x2182fe4
mov ebx, 0xe00
cmp dword [ebp + 0xc], ebx
ja 0x2182f15
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
add ecx, 4
and cl, 0xfc
cmp ecx, ebx
ja 0x2182f15
mov eax, dword [ebp - 4]
sub ebx, ecx
add eax, ecx
mov esi, 8
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [ebp - 8]
cmp ebx, esi
mov dword [edx], eax
jb 0x2182f15
sub ebx, 8
add dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 8]
cmp ebx, esi
mov dword [edx], eax
jb 0x2182f15
sub ebx, 8
add dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 8]
cmp ebx, esi
mov dword [edx], eax
jb 0x2182f15
sub ebx, 8
add dword [ebp - 8], esi
cmp ebx, 0x10
jb 0x2182f15
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp ebx, 0x14
jb 0x2182f15
add dword [ebp - 8], 0x14
sub ebx, 0x14
cmp ebx, esi
jb 0x2182f15
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp ebx, 0xc
jb 0x2182f15
add dword [ebp - 8], 0xc
sub ebx, 0xc
cmp ebx, 0x20
jb 0x2182f15
mov edx, dword [ebp - 8]
push edx
mov dword [edx], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
cmp ebx, 0x24
jb 0x2182f15
add dword [ebp - 8], 0x24
sub ebx, 0x24
cmp ebx, 0x10
jb 0x2182f15
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov eax, dword [ebp - 8]
add eax, esi
xor esi, esi
push eax
mov eax, dword [ebp - 8]
add eax, 4
push eax
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
cmp ebx, 0x14
jb 0x2182f15
add dword [ebp - 8], 0x14
sub ebx, 0x14
cmp dword [0x218cec0], esi
jne 0x2182d44
mov dword [ebp - 0xaa], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x58], eax
cmp eax, esi
jne 0x2182cae
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 0xaa], 1
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x2182d3a
lea eax, [ebp - 0x210]
xor esi, esi
push eax
call fcn.02183940
mov edi, dword [ebp - 0x58]
cmp dword [ebp - 0xaa], 0
jne 0x2182ce6
lea edi, [esi + edi + 2]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax*2]
jmp 0x2182cf3
lea edi, [esi + edi + 1]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.02183970
test esi, esi
jne 0x2182cc9
lea eax, [ebp - 0x210]
lea esi, [ebp - 0x1b8]
push eax
mov edi, 0x218cd90
call fcn.02183aa0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x58]
cmp dword [ebp - 0xaa], 0
jne 0x2182d34
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x2182d3a
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov dword [0x218cec0], 1
cmp ebx, 0x10
jb 0x2182f15
mov esi, 0x218cd90
mov edi, dword [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp ebx, 0x14
jb 0x2182f15
add dword [ebp - 8], 0x14
sub ebx, 0x14
call fcn.021830c9
test eax, eax
jne 0x2182db9
cmp ebx, 8
jb 0x2182f15
push dword [ebp - 8]
call dword [0x218ca84]
cmp ebx, 0xc
jb 0x2182f15
add dword [ebp - 8], 0xc
sub ebx, 0xc
cmp ebx, 4
jb 0x2182f15
call dword [0x218ca88]
mov edx, dword [ebp - 8]
cmp ebx, 8
mov dword [edx], eax
jb 0x2182f15
sub ebx, 8
jmp 0x2182f15
mov eax, dword [ebp - 8]
cmp ebx, 0x40
mov dword [ebp - 0xaa], 0x40
jb 0x2182f15
lea ecx, [ebp - 0xaa]
push ecx
push eax
call fcn.021836cc
test eax, eax
je 0x2182df8
mov eax, dword [ebp - 0xaa]
add eax, 4
and al, 0xfc
cmp eax, ebx
ja 0x2182f15
sub ebx, eax
add dword [ebp - 8], eax
cmp dword [0x218ca78], 0
je 0x2182f15
cmp ebx, 0x30
jb 0x2182f15
lea eax, [ebp - 0x58]
push eax
push 0x30
push dword [ebp - 8]
push 8
call dword [0x218ca78]
test eax, eax
jl 0x2182e38
mov eax, dword [ebp - 0x58]
add eax, 4
and al, 0xfc
cmp ebx, eax
jb 0x2182f15
sub ebx, eax
add dword [ebp - 8], eax
mov eax, 0x138
cmp ebx, eax
jb 0x2182f15
lea ecx, [ebp - 0x58]
push ecx
push eax
push dword [ebp - 8]
push 2
call dword [0x218ca78]
test eax, eax
jl 0x2182e6e
mov eax, dword [ebp - 0x58]
add eax, 4
and al, 0xfc
cmp eax, ebx
ja 0x2182f15
sub ebx, eax
add dword [ebp - 8], eax
cmp ebx, 0x10
jb 0x2182f15
lea eax, [ebp - 0x58]
push eax
push 0x10
push dword [ebp - 8]
push 0x21
call dword [0x218ca78]
test eax, eax
jl 0x2182e9d
mov eax, dword [ebp - 0x58]
add eax, 4
and al, 0xfc
cmp ebx, eax
jb 0x2182f15
sub ebx, eax
add dword [ebp - 8], eax
cmp ebx, 0x20
jb 0x2182f15
lea eax, [ebp - 0x58]
push eax
push 0x20
push dword [ebp - 8]
push 0x2d
call dword [0x218ca78]
test eax, eax
jl 0x2182ec8
mov eax, dword [ebp - 0x58]
add eax, 4
and al, 0xfc
cmp ebx, eax
jb 0x2182f15
sub ebx, eax
add dword [ebp - 8], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
push eax
push ebx
push dword [ebp - 8]
push 0x17
call dword [0x218ca78]
test eax, eax
jl 0x2182ef0
mov eax, dword [ebp - 0x58]
add eax, 4
and al, 0xfc
cmp ebx, eax
jb 0x2182f15
sub ebx, eax
add dword [ebp - 8], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
push eax
push ebx
push dword [ebp - 8]
push 5
call dword [0x218ca78]
test eax, eax
jl 0x2182f15
mov eax, dword [ebp - 0x58]
add eax, 4
and al, 0xfc
cmp ebx, eax
jb 0x2182f15
sub ebx, eax
mov esi, 0x218cd38
lea edi, [ebp - 0x54]
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x1a8]
push eax
push 0x50
push ecx
call fcn.0218382d
mov eax, 0xe00
mov ecx, eax
sub ecx, ebx
cmp ecx, eax
jbe 0x2182f45
mov ecx, eax
lea eax, [ebp - 0x54]
lea esi, [ebp - 0x54]
push eax
lea edi, [ebp - 0xa4]
push ecx
push dword [ebp - 4]
call fcn.021833c3
mov ebx, eax
mov eax, 0x14
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x54]
mov edi, 0x218cd38
mov ecx, eax
lea edx, [ebp - 0x1a8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xa4]
push ecx
push 0x50
push edx
call fcn.021836e0
push 0x50
lea ecx, [ebp - 0xa4]
push ecx
call fcn.02183344
lea ecx, [ebp - 0x54]
lea edx, [ebp - 0x1a8]
push ecx
push 0x50
push edx
call fcn.0218382d
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x1a8]
push dword [ebp + 0x10]
push dword [edx]
push ecx
lea edi, [ebp - 0x1a8]
call fcn.021836e0
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [ebp - 4], eax
je 0x2182fe2
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10