Function at 0x4001ed97
Capabilities:
Get disk size
Get memory capacity
Query environment variable
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x40025d24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x470], eax
mov ecx, dword [ebp + 0xc]
mov esi, edx
push ecx
mov dword [ebp - 0x474], ecx
mov ecx, edi
push eax
call fcn.4001f56d
test eax, eax
je 0x4001edda
xor eax, eax
inc eax
jmp 0x4001f55c
mov ebx, 0xe00
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x468], eax
test eax, eax
je 0x4001f55c
cmp esi, ebx
ja 0x4001f42d
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
lea eax, [esi + 8]
mov ecx, ebx
and eax, 0xfffffff8
add esp, 0xc
cmp eax, ecx
jbe 0x4001ee23
xor ebx, ebx
jmp 0x4001f42d
mov edi, dword [ebp - 0x468]
sub ebx, eax
add edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 8
pop esi
mov dword [edi], eax
cmp ebx, esi
jb 0x4001ee1c
add edi, esi
sub ebx, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
cmp ebx, esi
jb 0x4001ee1c
add edi, esi
sub ebx, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi], eax
cmp ebx, esi
jb 0x4001ee1c
sub ebx, esi
add edi, esi
cmp ebx, 0x10
jb 0x4001f42d
push edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x18
pop esi
cmp ebx, esi
jb 0x4001ee1c
sub ebx, esi
add edi, esi
cmp ebx, 8
jb 0x4001f42d
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp ebx, 0x10
jb 0x4001ee1c
push 0x40
sub ebx, 0x10
add edi, 0x10
pop eax
cmp ebx, eax
jb 0x4001f42d
push edi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp ebx, 0x48
jb 0x4001ee1c
sub ebx, 0x48
add edi, 0x48
cmp ebx, 0x10
jb 0x4001f42d
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_GetDiskFreeSpaceW]
cmp ebx, esi
jb 0x4001ee1c
add edi, esi
sub ebx, esi
cmp dword [0x40026168], 0
mov dword [ebp - 0x464], edi
mov dword [ebp - 0x46c], ebx
jne 0x4001efc7
xor ecx, ecx
mov dword [ebp - 0x460], ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x45c], eax
test eax, eax
jne 0x4001ef31
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ecx, ecx
mov dword [ebp - 0x45c], eax
inc ecx
mov dword [ebp - 0x460], ecx
test eax, eax
je 0x4001efbd
lea ecx, [ebp - 0x110]
call fcn.40020340
mov ebx, dword [ebp - 0x460]
mov edi, eax
xor esi, esi
add edi, esi
push 0x7fff
test ebx, ebx
jne 0x4001ef61
add edi, 2
push edi
call dword [sym.imp.msvcrt.dll_wcsnlen]
mov esi, eax
add esi, esi
jmp 0x4001ef6b
inc edi
push edi
call dword [sym.imp.msvcrt.dll_strnlen]
mov esi, eax
pop ecx
pop ecx
push esi
mov edx, edi
lea ecx, [ebp - 0x110]
call fcn.40020370
test esi, esi
jne 0x4001ef46
lea ecx, [ebp - 0x110]
call fcn.40020490
push dword [ebp - 0x45c]
mov edi, 0x400262e0
lea esi, [ebp - 0xb8]
test ebx, ebx
mov ebx, dword [ebp - 0x46c]
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 0x4001efb1
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x4001efb7
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov edi, dword [ebp - 0x464]
mov dword [0x40026168], 1
cmp ebx, 0x10
jb 0x4001f42d
mov esi, 0x400262e0
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, 0x18
jb 0x4001ee1c
mov edi, dword [ebp - 0x464]
sub ebx, 0x18
add edi, 0x18
call fcn.4001f659
test eax, eax
je 0x4001f42d
cmp ebx, 0x40
jb 0x4001f42d
mov esi, dword [0x40026370]
test esi, esi
je 0x4001f42d
push 0
push ebx
push edi
push 5
mov ecx, esi
mov dword [ebp - 0x45c], ebx
call dword [0x400272ac]
call esi
lea ecx, [ebp - 0x170]
call fcn.40020080
push dword [ebp - 0x45c]
mov edx, edi
lea ecx, [ebp - 0x170]
call fcn.40020140
mov edx, edi
lea ecx, [ebp - 0x170]
call fcn.40020270
cmp ebx, 0x18
jb 0x4001ee1c
sub ebx, 0x18
add edi, 0x18
cmp ebx, 0x30
jb 0x4001f42d
mov esi, dword [0x40026370]
lea eax, [ebp - 0x45c]
push eax
push 0x30
push edi
push 3
mov ecx, esi
call dword [0x400272ac]
call esi
test eax, eax
js 0x4001f0a3
mov eax, dword [ebp - 0x45c]
add eax, 8
and eax, 0xfffffff8
cmp eax, ebx
ja 0x4001ee1c
add edi, eax
sub ebx, eax
cmp ebx, 0x18
jb 0x4001f42d
mov esi, dword [0x40026370]
lea eax, [ebp - 0x45c]
push eax
push 0x18
push edi
push 7
mov ecx, esi
call dword [0x400272ac]
call esi
test eax, eax
js 0x4001f0e4
mov eax, dword [ebp - 0x45c]
add eax, 8
and eax, 0xfffffff8
cmp eax, ebx
ja 0x4001ee1c
add edi, eax
sub ebx, eax
cmp ebx, 0x58
jb 0x4001f42d
mov esi, dword [0x40026370]
lea eax, [ebp - 0x45c]
push eax
push 0x58
push edi
push 0x50
mov ecx, esi
call dword [0x400272ac]
call esi
test eax, eax
js 0x4001f125
mov eax, dword [ebp - 0x45c]
add eax, 8
and eax, 0xfffffff8
cmp eax, ebx
ja 0x4001ee1c
add edi, eax
sub ebx, eax
cmp ebx, 0x24
jb 0x4001f42d
mov esi, dword [0x40026370]
lea eax, [ebp - 0x45c]
push eax
push 0x24
push edi
push 0x15
mov ecx, esi
call dword [0x400272ac]
call esi
test eax, eax
js 0x4001f166
mov eax, dword [ebp - 0x45c]
add eax, 8
and eax, 0xfffffff8
cmp eax, ebx
ja 0x4001ee1c
add edi, eax
sub ebx, eax
mov ecx, 0x158
cmp ebx, ecx
jb 0x4001f42d
mov esi, dword [0x40026370]
lea eax, [ebp - 0x45c]
push eax
push ecx
push edi
push 2
mov ecx, esi
call dword [0x400272ac]
call esi
test eax, eax
js 0x4001f1aa
mov eax, dword [ebp - 0x45c]
add eax, 8
and eax, 0xfffffff8
cmp eax, ebx
ja 0x4001ee1c
add edi, eax
sub ebx, eax
cmp ebx, 0x10
jb 0x4001f42d
mov esi, dword [0x40026370]
lea eax, [ebp - 0x45c]
push eax
push 0x10
push edi
push 0x21
mov ecx, esi
call dword [0x400272ac]
call esi
test eax, eax
js 0x4001f1eb
mov eax, dword [ebp - 0x45c]
add eax, 8
and eax, 0xfffffff8
cmp eax, ebx
ja 0x4001ee1c
add edi, eax
sub ebx, eax
cmp ebx, 0x20
jb 0x4001f42d
mov esi, dword [0x40026370]
lea eax, [ebp - 0x45c]
push eax
push 0x20
push edi
push 0x2d
mov ecx, esi
call dword [0x400272ac]
call esi
test eax, eax
js 0x4001f22c
mov eax, dword [ebp - 0x45c]
add eax, 8
and eax, 0xfffffff8
cmp eax, ebx
ja 0x4001ee1c
add edi, eax
sub ebx, eax
mov esi, dword [0x40026370]
lea eax, [ebp - 0x45c]
push eax
push ebx
push edi
push 8
mov ecx, esi
mov dword [ebp - 0x45c], ebx
call dword [0x400272ac]
call esi
test eax, eax
js 0x4001f294
cmp ebx, 0x14
jb 0x4001f42d
lea ecx, [ebp - 0x1d0]
call 0x40045c37
push dword [ebp - 0x45c]
mov edx, edi
lea ecx, [ebp - 0x1d0]
call fcn.40020140
mov edx, edi
lea ecx, [ebp - 0x1d0]
call fcn.40020270
cmp ebx, 0x18
jb 0x4001ee1c
add edi, 0x18
sub ebx, 0x18
mov esi, dword [0x40026370]
lea eax, [ebp - 0x45c]
push eax
push ebx
push edi
push 0x3d
mov ecx, esi
mov dword [ebp - 0x45c], ebx
call dword [0x400272ac]
call esi
test eax, eax
js 0x4001f2fc
cmp ebx, 0x14
jb 0x4001f42d
lea ecx, [ebp - 0x230]
call fcn.40020080
push dword [ebp - 0x45c]
mov edx, edi
lea ecx, [ebp - 0x230]
call fcn.40020140
mov edx, edi
lea ecx, [ebp - 0x230]
call fcn.40020270
cmp ebx, 0x18
jb 0x4001ee1c
add edi, 0x18
sub ebx, 0x18
mov esi, dword [0x40026370]
lea eax, [ebp - 0x45c]
push eax
push ebx
push edi
push 0x12
mov ecx, esi
mov dword [ebp - 0x45c], ebx
call dword [0x400272ac]
call esi
test eax, eax
js 0x4001f364
cmp ebx, 0x14
jb 0x4001f42d
lea ecx, [ebp - 0x290]
call fcn.40020080
push dword [ebp - 0x45c]
mov edx, edi
lea ecx, [ebp - 0x290]
call fcn.40020140
mov edx, edi
lea ecx, [ebp - 0x290]
call fcn.40020270
cmp ebx, 0x18
jb 0x4001ee1c
add edi, 0x18
sub ebx, 0x18
mov esi, dword [0x40026370]
lea eax, [ebp - 0x45c]
push eax
push ebx
push edi
push 0x17
mov ecx, esi
mov dword [ebp - 0x45c], ebx
call dword [0x400272ac]
call esi
test eax, eax
js 0x4001f3cc
cmp ebx, 0x14
jb 0x4001f42d
lea ecx, [ebp - 0x2f0]
call fcn.40020080
push dword [ebp - 0x45c]
mov edx, edi
lea ecx, [ebp - 0x2f0]
call fcn.40020140
mov edx, edi
lea ecx, [ebp - 0x2f0]
call fcn.40020270
cmp ebx, 0x18
jb 0x4001ee1c
add edi, 0x18
sub ebx, 0x18
mov esi, dword [0x40026370]
lea eax, [ebp - 0x45c]
push eax
push ebx
push edi
push 0x2a
mov ecx, esi
mov dword [ebp - 0x45c], ebx
call dword [0x400272ac]
call esi
test eax, eax
js 0x4001f42d
cmp ebx, 0x14
jb 0x4001f42d
lea ecx, [ebp - 0x350]
call fcn.40020080
push dword [ebp - 0x45c]
mov edx, edi
lea ecx, [ebp - 0x350]
call fcn.40020140
mov edx, edi
lea ecx, [ebp - 0x350]
call fcn.40020270
cmp ebx, 0x18
jb 0x4001ee1c
sub ebx, 0x18
push 0x14
pop ecx
lea eax, [ebp - 0x58]
mov esi, 0x40026170
push eax
push 0x50
lea eax, [ebp - 0x458]
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.400212bd
mov eax, 0xe00
mov edx, eax
sub edx, ebx
cmp edx, eax
jbe 0x4001f45b
mov edx, eax
mov ecx, dword [ebp - 0x468]
lea eax, [ebp - 0x58]
push eax
call fcn.4001fa02
push 0x14
pop ecx
push 0x14
lea esi, [ebp - 0x58]
mov ebx, eax
lea edi, [ebp - 0xa8]
rep movsd dword es:[edi], dword [esi]
pop ecx
lea eax, [ebp - 0xa8]
mov edi, 0x40026170
push eax
push 0x50
lea esi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea eax, [ebp - 0x458]
push eax
call fcn.40021170
push 2
lea edx, [ebp - 0x460]
pop ecx
call fcn.4001f783
test eax, eax
je 0x4001f4d9
push esi
lea eax, [ebp - 0xa8]
push eax
push 3
push 0
push 0x400052c8
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
push dword [ebp - 0x460]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
lea eax, [ebp - 0xa8]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4001f4e1
lea eax, [ebp - 0x58]
push eax
push esi
lea eax, [ebp - 0x458]
push eax
call fcn.400212bd
lea eax, [ebp - 0x58]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x4001f4fe
mov eax, dword [ebp - 0x474]
push dword [ebp - 0x470]
push dword [eax]
lea eax, [ebp - 0x458]
push eax
call fcn.40021170
mov ecx, 0x102
lea eax, [ebp - 0x458]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4001f52c
mov edx, dword [ebp - 0x468]
mov ecx, 0xe00
mov eax, edx
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4001f542
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40020a80
leave
ret 8