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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x101ebb68]
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x1d4], eax
push esi
mov dword [ebp - 0x1d8], ecx
call fcn.1016cef5
test eax, eax
je 0x1016cffa
xor eax, eax
inc eax
jmp 0x1016d4ca
push ebx
mov ebx, 0xe00
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 0x1d0], eax
je 0x1016d4c9
cmp dword [ebp + 0xc], ebx
push edi
ja 0x1016d3e1
mov ecx, dword [ebp + 0xc]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add ecx, 8
and ecx, 0xfffffff8
cmp ecx, 0xe00
ja 0x1016d3e1
mov ebx, 0xe00
lea edi, [ecx + eax]
sub ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 8
pop esi
cmp ebx, esi
mov dword [edi], eax
jb 0x1016d3e1
add edi, esi
sub ebx, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, esi
mov dword [edi], eax
jb 0x1016d3e1
add edi, esi
sub ebx, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp ebx, esi
mov dword [edi], eax
jb 0x1016d3e1
sub ebx, esi
add edi, esi
cmp ebx, 0x10
jb 0x1016d3e1
push edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp ebx, 0x18
jb 0x1016d3e1
sub ebx, 0x18
add edi, 0x18
cmp ebx, esi
jb 0x1016d3e1
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0x10
pop esi
cmp ebx, esi
jb 0x1016d3e1
push 0x20
sub ebx, esi
pop eax
add edi, esi
cmp ebx, eax
jb 0x1016d3e1
push edi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
cmp ebx, 0x28
jb 0x1016d3e1
sub ebx, 0x28
add edi, 0x28
cmp ebx, esi
jb 0x1016d3e1
lea eax, [edi + 0xc]
push eax
lea eax, [edi + 8]
push eax
lea eax, [edi + 4]
push eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
cmp ebx, 0x18
jb 0x1016d3e1
add edi, 0x18
sub ebx, 0x18
cmp dword [0x101fe5a0], 0
mov dword [ebp - 0x1c8], edi
jne 0x1016d1fc
and dword [ebp - 0x1cc], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
mov dword [ebp - 0x1c4], eax
jne 0x1016d16c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test eax, eax
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1cc], 1
je 0x1016d1f2
lea eax, [ebp - 0xbc]
push eax
call fcn.10173e10
mov esi, dword [ebp - 0x1c4]
xor edi, edi
cmp dword [ebp - 0x1cc], 0
jne 0x1016d198
lea esi, [esi + edi + 2]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
jmp 0x1016d1a3
lea esi, [esi + edi + 1]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push edi
push esi
lea eax, [ebp - 0xbc]
push eax
call fcn.10173e40
test edi, edi
jne 0x1016d180
lea eax, [ebp - 0xbc]
push eax
call fcn.10173f80
cmp dword [ebp - 0x1cc], 0
push dword [ebp - 0x1c4]
lea esi, [ebp - 0x64]
mov edi, 0x101fe718
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x1016d1e6
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1016d1ec
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov edi, dword [ebp - 0x1c8]
mov dword [0x101fe5a0], 1
cmp ebx, 0x10
jb 0x1016d3e1
cmp ebx, 0x18
mov esi, 0x101fe718
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jb 0x1016d3e1
mov esi, dword [ebp - 0x1c8]
add esi, 0x18
sub ebx, 0x18
call fcn.1016cdf8
test eax, eax
jne 0x1016d26b
cmp ebx, 8
jb 0x1016d3e1
push esi
call dword [0x101fe72c]
cmp ebx, 0x10
jb 0x1016d3e1
sub ebx, 0x10
cmp ebx, 4
jb 0x1016d3e1
call dword [0x101fe730]
cmp ebx, 8
mov dword [esi + 0x10], eax
jb 0x1016d3e1
sub ebx, 8
jmp 0x1016d3e1
push 0x40
pop eax
cmp ebx, eax
mov dword [ebp - 0x1c8], eax
jb 0x1016d3e1
lea eax, [ebp - 0x1c8]
push eax
push esi
call fcn.10173e05
test eax, eax
push 0xfffffffffffffff8
pop edi
je 0x1016d2a7
mov eax, dword [ebp - 0x1c8]
add eax, 8
and eax, edi
cmp eax, ebx
ja 0x1016d3e1
add esi, eax
sub ebx, eax
mov eax, dword [0x101fe734]
test eax, eax
je 0x1016d3e1
cmp ebx, 0x30
jb 0x1016d3e1
lea ecx, [ebp - 0x1c4]
push ecx
push 0x30
push esi
push 8
call eax
test eax, eax
jl 0x1016d2e6
mov eax, dword [ebp - 0x1c4]
add eax, 8
and eax, edi
cmp eax, ebx
ja 0x1016d3e1
add esi, eax
sub ebx, eax
mov eax, 0x138
cmp ebx, eax
jb 0x1016d3e1
lea ecx, [ebp - 0x1c4]
push ecx
push eax
push esi
push 2
call dword [0x101fe734]
test eax, eax
jl 0x1016d31f
mov eax, dword [ebp - 0x1c4]
add eax, 8
and eax, edi
cmp eax, ebx
ja 0x1016d3e1
add esi, eax
sub ebx, eax
cmp ebx, 0x10
jb 0x1016d3e1
lea eax, [ebp - 0x1c4]
push eax
push 0x10
push esi
push 0x21
call dword [0x101fe734]
test eax, eax
jl 0x1016d355
mov eax, dword [ebp - 0x1c4]
add eax, 8
and eax, edi
cmp eax, ebx
ja 0x1016d3e1
add esi, eax
sub ebx, eax
cmp ebx, 0x20
jb 0x1016d3e1
lea eax, [ebp - 0x1c4]
push eax
push 0x20
push esi
push 0x2d
call dword [0x101fe734]
test eax, eax
jl 0x1016d387
mov eax, dword [ebp - 0x1c4]
add eax, 8
and eax, edi
cmp eax, ebx
ja 0x1016d3e1
add esi, eax
sub ebx, eax
lea eax, [ebp - 0x1c4]
push eax
push ebx
push esi
push 0x17
mov dword [ebp - 0x1c4], ebx
call dword [0x101fe734]
test eax, eax
jl 0x1016d3b5
mov eax, dword [ebp - 0x1c4]
add eax, 8
and eax, edi
cmp eax, ebx
ja 0x1016d3e1
add esi, eax
sub ebx, eax
lea eax, [ebp - 0x1c4]
push eax
push ebx
push esi
push 5
mov dword [ebp - 0x1c4], ebx
call dword [0x101fe734]
test eax, eax
jl 0x1016d3e1
mov eax, dword [ebp - 0x1c4]
add eax, 8
and eax, edi
cmp eax, ebx
ja 0x1016d3e1
sub ebx, eax
push 0x14
pop ecx
lea eax, [ebp - 0x54]
push eax
push 0x50
lea eax, [ebp - 0x1c0]
mov esi, 0x101fe5a8
lea edi, [ebp - 0x54]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.101739ed
mov ecx, 0xe00
mov eax, ecx
sub eax, ebx
cmp eax, ecx
jbe 0x1016d40f
mov eax, ecx
lea ecx, [ebp - 0x54]
push ecx
push eax
push dword [ebp - 0x1d0]
call fcn.10173adc
push 0x14
pop ecx
push 0x14
mov ebx, eax
lea esi, [ebp - 0x54]
lea edi, [ebp - 0xa4]
rep movsd dword es:[edi], dword [esi]
pop ecx
lea eax, [ebp - 0xa4]
push eax
push 0x50
lea eax, [ebp - 0x1c0]
lea esi, [ebp - 0x54]
mov edi, 0x101fe5a8
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.101738a0
push 0x50
lea eax, [ebp - 0xa4]
push eax
call fcn.1017365d
push 0x14
pop ecx
xor eax, eax
lea edi, [ebp - 0xa4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
push 0x50
lea eax, [ebp - 0x1c0]
push eax
call fcn.101739ed
push 0x14
pop ecx
push dword [ebp - 0x1d4]
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1d8]
push dword [eax]
lea eax, [ebp - 0x1c0]
push eax
call fcn.101738a0
push 0x40
pop ecx
push dword [ebp - 0x1d0]
xor eax, eax
lea edi, [ebp - 0x1c0]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.10178946
leave
ret 0x10