Function at 0x10201f8
Capabilities:
Get disk information
Get disk size
Get file system object information
Query or enumerate registry value

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0x4fc
mov eax, dword [0x10de03c]
push esi
mov dword [ebp - 0x10], eax
mov esi, ecx
call fcn.0101ef2c
lea eax, [ebp - 0x210]
push eax
push CompareStringW
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10207ea
or dword [ebp - 0x4d4], 0xffffffff
or dword [ebp - 0x4f0], 0xffffffff
xor eax, eax
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov dword [ebp - 0x4e4], eax
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4ec], eax
mov dword [ebp - 0x4e8], eax
mov dword [ebp - 0x4cc], eax
je 0x10202b8
lea eax, [ebp - 0x210]
mov dword [ebp - 0x4c8], eax
push dword [ebp - 0x4c8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x1020292
inc dword [ebp - 0x4cc]
push dword [ebp - 0x4c8]
call dword [sym.imp.msvcrt.dll_wcslen]
lea edi, [edi + eax + 1]
lea eax, [ebp + edi*2 - 0x210]
cmp word [eax], 0
pop ecx
mov dword [ebp - 0x4c8], eax
jne 0x102027b
xor eax, eax
mov edi, dword [ebp - 0x4cc]
mov ecx, dword [esi + 0x4c]
inc edi
cmp ecx, edi
je 0x102079e
mov ecx, dword [esi + 0x48]
cmp ecx, eax
je 0x10202e0
push 3
call fcn.0101ee7e
and dword [esi + 0x48], 0
and dword [esi + 0x4c], 0
mov dword [esi + 0x4c], edi
inc edi
mov eax, edi
shl eax, 4
add eax, 4
push eax
call fcn.01075fe0
pop ecx
mov dword [ebp - 0x4d0], eax
and dword [ebp - 4], 0
test eax, eax
je 0x1020327
push fcn.0101edda
push reloc.ADVAPI32.dll_AddAccessAllowedAce
push edi
mov dword [eax], edi
add eax, 4
push reloc.KERNEL32.dll_LoadLibraryW
push eax
mov dword [ebp - 0x4d8], eax
call fcn.0107788f
mov eax, dword [ebp - 0x4d8]
jmp 0x1020329
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x48], eax
xor eax, eax
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov dword [ebp - 0x4d8], eax
je 0x10204ae
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x4c8], ecx
mov dword [ebp - 0x4f4], eax
push dword [ebp - 0x4c8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x102047a
push reloc.KERNEL32.dll_LeaveCriticalSection
xor eax, eax
mov ecx, 0xad
lea edi, [ebp - 0x4c4]
push 0x2b4
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4c4]
push eax
push 0x80
push dword [ebp - 0x4c8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x102047a
lea eax, [ebp - 0x4b8]
push eax
mov ecx, esi
call fcn.010173ba
mov dword [ebp - 0x4d0], eax
push 0
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x500]
push eax
push dword [ebp - 0x4c8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1020439
mov ecx, dword [ebp - 0x4fc]
cmp dword [ebp - 0x4e0], ecx
ja 0x1020409
mov eax, dword [ebp - 0x500]
jb 0x10203f7
cmp dword [ebp - 0x4e4], eax
jae 0x1020409
mov dword [ebp - 0x4e4], eax
mov dword [ebp - 0x4e0], ecx
mov dword [ebp - 0x4f0], ebx
mov ecx, dword [ebp - 0x504]
cmp dword [ebp - 0x4e8], ecx
ja 0x1020439
mov eax, dword [ebp - 0x508]
jb 0x1020427
cmp dword [ebp - 0x4ec], eax
jae 0x1020439
mov dword [ebp - 0x4ec], eax
mov dword [ebp - 0x4e8], ecx
mov dword [ebp - 0x4d4], ebx
mov eax, dword [esi + 0x48]
mov edi, dword [ebp - 0x4f4]
mov ecx, dword [ebp - 0x4d0]
push dword [ebp - 0x4c8]
mov dword [edi + eax], ecx
mov eax, dword [esi + 0x48]
lea ecx, [edi + eax + 4]
call fcn.01075e54
lea eax, [ebp - 0x4b8]
push eax
mov eax, dword [esi + 0x48]
lea ecx, [edi + eax + 8]
call fcn.01075e54
inc ebx
add edi, 0x10
mov dword [ebp - 0x4f4], edi
push dword [ebp - 0x4c8]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, dword [ebp - 0x4d8]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x4d8], eax
lea eax, [ebp + eax*2 - 0x210]
cmp word [eax], 0
mov dword [ebp - 0x4c8], eax
jne 0x1020357
lea eax, [ebp - 0x4f8]
push eax
push 0x20019
push 0
push 0x10041a0
push WaitForSingleObject
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10205a7
push eax
push eax
lea ecx, [ebp - 0x4d0]
push ecx
push eax
push reloc.MFC42u.DLL_CView::OnEndPrintPreview
push dword [ebp - 0x4f8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10205a7
lea ecx, [ebp - 0x4c8]
call fcn.01075e60
mov dword [ebp - 4], 1
call fcn.01021462
add eax, 0xa2
push eax
lea ecx, [ebp - 0x4c8]
call fcn.01075e54
push 0x5c
lea ecx, [ebp - 0x4c8]
call fcn.01076238
inc eax
push eax
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x4c8]
call fcn.01076220
push eax
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 2
call fcn.01075e30
lea ecx, [ebp - 0x4d0]
mov byte [ebp - 4], 1
call fcn.01075e24
lea eax, [ebp - 0x4c8]
shl ebx, 4
push eax
mov eax, dword [esi + 0x48]
mov edi, ebx
lea ecx, [eax + edi + 4]
call fcn.01075e30
lea eax, [ebp - 0x4c8]
push eax
mov eax, dword [esi + 0x48]
lea ecx, [eax + edi + 8]
call fcn.01075e30
mov eax, dword [esi + 0x48]
mov dword [eax + edi + 0xc], 1
mov eax, dword [esi + 0x48]
lea eax, [eax + edi + 4]
push eax
lea ecx, [esi + 0x44]
call fcn.01075e30
jmp 0x1020602
lea ecx, [ebp - 0x4c8]
call fcn.01075e60
lea eax, [ebp - 0x4c8]
push 0x8107
push eax
mov dword [ebp - 4], 3
call fcn.01076214
pop ecx
pop ecx
lea eax, [ebp - 0x4c8]
shl ebx, 4
push eax
mov eax, dword [esi + 0x48]
mov edi, ebx
lea ecx, [eax + edi + 4]
call fcn.01075e30
lea eax, [ebp - 0x4c8]
push eax
mov eax, dword [esi + 0x48]
lea ecx, [eax + edi + 8]
call fcn.01075e30
mov eax, dword [esi + 0x48]
mov dword [eax + edi + 0xc], 1
push dword [ebp - 0x4c8]
mov ecx, esi
call fcn.010173ba
mov ecx, dword [esi + 0x48]
or dword [ebp - 4], 0xffffffff
mov dword [edi + ecx], eax
mov eax, dword [esi + 0x48]
mov eax, dword [edi + eax]
lea ecx, [ebp - 0x4c8]
mov dword [esi + 0x50], eax
call fcn.01075e24
mov edi, dword [ebp - 0x4f0]
cmp edi, 0xffffffff
mov ecx, esi
jne 0x1020645
mov edi, dword [ebp - 0x4d4]
cmp edi, 0xffffffff
je 0x102065a
push edi
call fcn.01017399
mov eax, dword [esi + 0x48]
mov dword [esi + 0x54], edi
shl edi, 4
lea eax, [edi + eax + 4]
jmp 0x102066b
push 0
call fcn.01017399
mov eax, dword [esi + 0x48]
and dword [esi + 0x54], 0
add eax, 4
lea ecx, [esi + 0x44]
push eax
call fcn.01075e30
lea ecx, [ebp - 0x4dc]
call fcn.01075e60
lea ecx, [ebp - 0x4cc]
mov dword [ebp - 4], 4
call fcn.01075e60
push 0x4eae
lea ecx, [ebp - 0x4dc]
mov byte [ebp - 4], 5
call fcn.01075e90
call fcn.01021462
add eax, 0xa2
push eax
lea ecx, [ebp - 0x4cc]
call fcn.01075e54
mov eax, dword [ebp - 0x4cc]
mov edi, dword [eax - 8]
push 0x5c
lea ecx, [ebp - 0x4cc]
call fcn.01076238
sub edi, eax
dec edi
push edi
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x4cc]
call fcn.0107622c
push eax
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 6
call fcn.01075e30
lea ecx, [ebp - 0x4d0]
mov byte [ebp - 4], 5
call fcn.01075e24
push 0x2e
lea ecx, [ebp - 0x4cc]
call fcn.01076238
mov edi, eax
push edi
push dword [ebp - 0x4dc]
lea ecx, [ebp - 0x4cc]
call fcn.01076598
test eax, eax
je 0x102075d
push edi
lea eax, [ebp - 0x4d4]
push eax
lea ecx, [ebp - 0x4cc]
call fcn.01076220
push eax
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 7
call fcn.01075e30
lea ecx, [ebp - 0x4d4]
mov byte [ebp - 4], 5
call fcn.01075e24
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.01076574
push dword [ebp - 0x4cc]
mov ecx, eax
push 0x1033
call fcn.01075fa4
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 4
call fcn.01075e24
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4dc]
call fcn.01075e24
jmp 0x10207e8
cmp dword [esi + 0x48], eax
je 0x10207e8
xor ebx, ebx
cmp ecx, eax
jbe 0x10207c8
xor edi, edi
mov eax, dword [esi + 0x48]
push dword [edi + eax + 8]
mov ecx, esi
call fcn.010173ba
mov ecx, dword [esi + 0x48]
mov dword [edi + ecx], eax
inc ebx
add edi, 0x10
cmp ebx, dword [esi + 0x4c]
jb 0x10207ab
push dword [esi + 0x54]
mov ecx, esi
call fcn.01017399
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x48]
shl eax, 4
lea eax, [eax + ecx + 4]
push eax
lea ecx, [esi + 0x44]
call fcn.01075e30
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
inc eax
pop esi
call fcn.01075aef
leave
ret