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

Disassembly:
mov eax, 0x10d2f19
call fcn.0107a498
sub esp, 0x508
mov eax, dword [0x10e607c]
push esi
mov dword [ebp - 0x10], eax
mov esi, ecx
call fcn.01020780
lea eax, [ebp - 0x210]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10220e8
or dword [ebp - 0x4f4], 0xffffffff
or dword [ebp - 0x4f0], 0xffffffff
xor eax, eax
push ebx
push edi
xor edi, edi
cmp word [ebp - 0x210], ax
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 0x4e4], eax
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4ec], eax
mov dword [ebp - 0x4e8], eax
mov dword [ebp - 0x4c8], eax
je 0x1021b54
lea ebx, [ebp - 0x210]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x1021b39
inc dword [ebp - 0x4c8]
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
lea edi, [edi + eax + 1]
lea ebx, [ebp + edi*2 - 0x210]
cmp word [ebx], 0
pop ecx
jne 0x1021b27
xor eax, eax
mov edi, dword [ebp - 0x4c8]
mov ecx, dword [esi + 0x4c]
inc edi
cmp ecx, edi
je 0x102209c
mov ecx, dword [esi + 0x48]
cmp ecx, eax
je 0x1021b7c
push 3
call fcn.010206c2
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 sub.MFC42u.dll_operatornew
pop ecx
mov dword [ebp - 0x4d0], eax
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x1021bbc
push fcn.0102059b
push 0x102055b
push edi
lea ebx, [eax + 4]
push 0x10
push ebx
mov dword [eax], edi
call fcn.0107a602
mov eax, ebx
xor ebx, ebx
jmp 0x1021bbe
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp word [ebp - 0x210], bx
mov dword [esi + 0x48], eax
mov dword [ebp - 0x4f8], ebx
je 0x1021d4f
and dword [ebp - 0x4c8], 0
lea ebx, [ebp - 0x210]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x1021d24
cmp dword [ebp + 8], 0
jne 0x1021c0f
xor eax, eax
mov ax, word [ebx]
push eax
call fcn.010205d6
test ax, ax
jne 0x1021d24
push 0x600
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 ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x1021d24
lea eax, [ebp - 0x4b8]
push eax
mov ecx, esi
call fcn.010189ea
mov dword [ebp - 0x4d0], eax
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x504]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1021ce3
mov ecx, dword [ebp - 0x500]
cmp dword [ebp - 0x4e0], ecx
ja 0x1021cad
mov eax, dword [ebp - 0x504]
jb 0x1021c95
cmp dword [ebp - 0x4e4], eax
jae 0x1021cad
mov dword [ebp - 0x4e4], eax
mov eax, dword [ebp - 0x4d8]
mov dword [ebp - 0x4e0], ecx
mov dword [ebp - 0x4f0], eax
mov ecx, dword [ebp - 0x508]
cmp dword [ebp - 0x4e8], ecx
ja 0x1021ce3
mov eax, dword [ebp - 0x50c]
jb 0x1021ccb
cmp dword [ebp - 0x4ec], eax
jae 0x1021ce3
mov dword [ebp - 0x4ec], eax
mov eax, dword [ebp - 0x4d8]
mov dword [ebp - 0x4e8], ecx
mov dword [ebp - 0x4f4], eax
mov eax, dword [esi + 0x48]
mov edi, dword [ebp - 0x4c8]
mov ecx, dword [ebp - 0x4d0]
mov dword [edi + eax], ecx
mov eax, dword [esi + 0x48]
push ebx
lea ecx, [edi + eax + 4]
call sub.MFC42u.dll_CString::operator
lea eax, [ebp - 0x4b8]
push eax
mov eax, dword [esi + 0x48]
lea ecx, [edi + eax + 8]
call sub.MFC42u.dll_CString::operator
inc dword [ebp - 0x4d8]
add edi, 0x10
mov dword [ebp - 0x4c8], edi
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, dword [ebp - 0x4f8]
lea eax, [ecx + eax + 1]
lea ebx, [ebp + eax*2 - 0x210]
cmp word [ebx], 0
mov dword [ebp - 0x4f8], eax
jne 0x1021be5
xor ebx, ebx
lea eax, [ebp - 0x4fc]
push eax
push 0x20019
push ebx
push 0x1004268
push 0x80000001
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1021d94
push ebx
push ebx
lea eax, [ebp - 0x4d0]
push eax
push ebx
push 0x1004244
push dword [ebp - 0x4fc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
neg edi
sbb edi, edi
inc edi
lea ecx, [ebp - 0x4d4]
call sub.MFC42u.dll_CString::CString_2
test edi, edi
mov dword [ebp - 4], 1
mov ebx, 0xa2
je 0x1021e9b
call fcn.01022d6e
add eax, ebx
push eax
lea ecx, [ebp - 0x4d4]
call sub.MFC42u.dll_CString::operator
push 0x5c
lea ecx, [ebp - 0x4d4]
call sub.MFC42u.dll_CString::ReverseFind
inc eax
push eax
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x4d4]
call sub.MFC42u.dll_CString::Left
push eax
lea ecx, [ebp - 0x4d4]
mov byte [ebp - 4], 2
call fcn.01078b5e
lea ecx, [ebp - 0x4d0]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
cmp dword [ebp + 8], 0
jne 0x1021e2c
mov eax, dword [ebp - 0x4d4]
cmp dword [eax - 8], 0
jle 0x1021e1d
mov ax, word [eax]
jmp 0x1021e1f
xor eax, eax
push eax
call fcn.010205d6
test ax, ax
je 0x1021e2c
xor edi, edi
test edi, edi
je 0x1021e9b
mov edi, dword [ebp - 0x4d8]
lea eax, [ebp - 0x4d4]
push eax
mov eax, dword [esi + 0x48]
shl edi, 4
lea ecx, [eax + edi + 4]
call fcn.01078b5e
lea eax, [ebp - 0x4d4]
push eax
mov eax, dword [esi + 0x48]
lea ecx, [eax + edi + 8]
call fcn.01078b5e
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.01078b5e
push dword [ebp - 0x4d4]
mov ecx, esi
call fcn.010189ea
mov ecx, dword [esi + 0x48]
mov dword [edi + ecx], eax
mov eax, dword [esi + 0x48]
mov eax, dword [edi + eax]
mov dword [esi + 0x50], eax
jmp 0x1021f22
lea ecx, [ebp - 0x4c8]
call sub.MFC42u.dll_CString::CString_2
lea eax, [ebp - 0x4c8]
push 0x8107
push eax
mov byte [ebp - 4], 3
call sub.MFC42u.dll_CString::Format_1
mov edi, dword [ebp - 0x4d8]
pop ecx
pop ecx
lea eax, [ebp - 0x4c8]
push eax
mov eax, dword [esi + 0x48]
shl edi, 4
lea ecx, [eax + edi + 4]
call fcn.01078b5e
lea eax, [ebp - 0x4c8]
push eax
mov eax, dword [esi + 0x48]
lea ecx, [eax + edi + 8]
call fcn.01078b5e
mov eax, dword [esi + 0x48]
mov dword [eax + edi + 0xc], 1
push dword [ebp - 0x4c8]
mov ecx, esi
call fcn.010189ea
mov ecx, dword [esi + 0x48]
mov dword [edi + ecx], eax
mov eax, dword [esi + 0x48]
mov eax, dword [edi + eax]
lea ecx, [ebp - 0x4c8]
mov dword [esi + 0x50], eax
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
mov edi, dword [ebp - 0x4f0]
cmp edi, 0xffffffff
mov ecx, esi
jne 0x1021f3a
mov edi, dword [ebp - 0x4f4]
cmp edi, 0xffffffff
je 0x1021f4f
push edi
call fcn.010189c9
mov eax, dword [esi + 0x48]
mov dword [esi + 0x54], edi
shl edi, 4
lea eax, [edi + eax + 4]
jmp 0x1021f60
push 0
call fcn.010189c9
mov eax, dword [esi + 0x48]
and dword [esi + 0x54], 0
add eax, 4
lea ecx, [esi + 0x44]
push eax
call fcn.01078b5e
lea ecx, [ebp - 0x4dc]
call sub.MFC42u.dll_CString::CString_2
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 4
call sub.MFC42u.dll_CString::CString_2
push 0x4eae
lea ecx, [ebp - 0x4dc]
mov byte [ebp - 4], 5
call sub.MFC42u.dll_CString::LoadStringW
call fcn.01022d6e
add eax, ebx
push eax
lea ecx, [ebp - 0x4cc]
call sub.MFC42u.dll_CString::operator
mov eax, dword [ebp - 0x4cc]
mov edi, dword [eax - 8]
push 0x5c
lea ecx, [ebp - 0x4cc]
call sub.MFC42u.dll_CString::ReverseFind
sub edi, eax
dec edi
push edi
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x4cc]
call sub.MFC42u.dll_CString::Right
push eax
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 6
call fcn.01078b5e
lea ecx, [ebp - 0x4d0]
mov byte [ebp - 4], 5
call sub.MFC42u.dll_CString::CString
push 0x2e
lea ecx, [ebp - 0x4cc]
call sub.MFC42u.dll_CString::ReverseFind
mov edi, eax
push edi
push dword [ebp - 0x4dc]
lea ecx, [ebp - 0x4cc]
call sub.MFC42u.dll_CString::Find
test eax, eax
je 0x102204c
push edi
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x4cc]
call sub.MFC42u.dll_CString::Left
push eax
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 7
call fcn.01078b5e
lea ecx, [ebp - 0x4d0]
mov byte [ebp - 4], 5
call sub.MFC42u.dll_CString::CString
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42u.dll_CWnd::FromHandle
push dword [ebp - 0x4cc]
mov ecx, eax
push 0x1033
call sub.MFC42u.dll_CWnd::SetDlgItemTextW
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 4
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x4dc]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4d4]
call sub.MFC42u.dll_CString::CString
jmp 0x10220e6
cmp dword [esi + 0x48], eax
je 0x10220e6
xor ebx, ebx
cmp ecx, eax
jbe 0x10220c6
xor edi, edi
mov eax, dword [esi + 0x48]
push dword [edi + eax + 8]
mov ecx, esi
call fcn.010189ea
mov ecx, dword [esi + 0x48]
mov dword [edi + ecx], eax
inc ebx
add edi, 0x10
cmp ebx, dword [esi + 0x4c]
jb 0x10220a9
push dword [esi + 0x54]
mov ecx, esi
call fcn.010189c9
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.01078b5e
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.01078836
leave
ret 4