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

Disassembly:
mov eax, 0x10cc357
call fcn.01077868
sub esp, 0x4fc
mov eax, dword [0x10de03c]
push esi
mov dword [ebp - 0x10], eax
mov esi, ecx
call fcn.0101efcc
lea eax, [ebp - 0x210]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x102088a
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 - 0x210], 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 0x1020358
lea eax, [ebp - 0x210]
mov dword [ebp - 0x4c8], eax
push dword [ebp - 0x4c8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x1020332
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 0x102031b
xor eax, eax
mov edi, dword [ebp - 0x4cc]
mov ecx, dword [esi + 0x4c]
inc edi
cmp ecx, edi
je 0x102083e
mov ecx, dword [esi + 0x48]
cmp ecx, eax
je 0x1020380
push 3
call fcn.0101ef1e
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
and dword [ebp - 4], 0
test eax, eax
je 0x10203c7
push fcn.0101ee85
push 0x101ee45
push edi
mov dword [eax], edi
add eax, 4
push 0x10
push eax
mov dword [ebp - 0x4d8], eax
call fcn.0107795f
mov eax, dword [ebp - 0x4d8]
jmp 0x10203c9
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x48], eax
xor eax, eax
cmp word [ebp - 0x210], ax
mov dword [ebp - 0x4d8], eax
je 0x102054e
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 0x102051a
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 dword [ebp - 0x4c8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x102051a
lea eax, [ebp - 0x4b8]
push eax
mov ecx, esi
call fcn.010173d4
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 0x10204d9
mov ecx, dword [ebp - 0x4fc]
cmp dword [ebp - 0x4e0], ecx
ja 0x10204a9
mov eax, dword [ebp - 0x500]
jb 0x1020497
cmp dword [ebp - 0x4e4], eax
jae 0x10204a9
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 0x10204d9
mov eax, dword [ebp - 0x508]
jb 0x10204c7
cmp dword [ebp - 0x4ec], eax
jae 0x10204d9
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 sub.MFC42u.DLL_CString::operator_1
lea eax, [ebp - 0x4b8]
push eax
mov eax, dword [esi + 0x48]
lea ecx, [edi + eax + 8]
call sub.MFC42u.DLL_CString::operator_1
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 0x10203f7
lea eax, [ebp - 0x4f8]
push eax
push 0x20019
push 0
push 0x10041a0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1020647
push eax
push eax
lea ecx, [ebp - 0x4d0]
push ecx
push eax
push 0x100417c
push dword [ebp - 0x4f8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1020647
lea ecx, [ebp - 0x4c8]
call sub.MFC42u.DLL_CString::CString_4
mov dword [ebp - 4], 1
call fcn.0102150d
add eax, 0xa2
push eax
lea ecx, [ebp - 0x4c8]
call sub.MFC42u.DLL_CString::operator_1
push 0x5c
lea ecx, [ebp - 0x4c8]
call sub.MFC42u.DLL_CString::ReverseFind
inc eax
push eax
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x4c8]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x4d0]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp - 0x4c8]
shl ebx, 4
push eax
mov eax, dword [esi + 0x48]
mov edi, ebx
lea ecx, [eax + edi + 4]
call sub.MFC42u.DLL_CString::operator_2
lea eax, [ebp - 0x4c8]
push eax
mov eax, dword [esi + 0x48]
lea ecx, [eax + edi + 8]
call sub.MFC42u.DLL_CString::operator_2
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 sub.MFC42u.DLL_CString::operator_2
jmp 0x10206a2
lea ecx, [ebp - 0x4c8]
call sub.MFC42u.DLL_CString::CString_4
lea eax, [ebp - 0x4c8]
push 0x8107
push eax
mov dword [ebp - 4], 3
call sub.MFC42u.DLL_CString::Format
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 sub.MFC42u.DLL_CString::operator_2
lea eax, [ebp - 0x4c8]
push eax
mov eax, dword [esi + 0x48]
lea ecx, [eax + edi + 8]
call sub.MFC42u.DLL_CString::operator_2
mov eax, dword [esi + 0x48]
mov dword [eax + edi + 0xc], 1
push dword [ebp - 0x4c8]
mov ecx, esi
call fcn.010173d4
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 sub.MFC42u.DLL_CString::CString
mov edi, dword [ebp - 0x4f0]
cmp edi, 0xffffffff
mov ecx, esi
jne 0x10206e5
mov edi, dword [ebp - 0x4d4]
cmp edi, 0xffffffff
je 0x10206fa
push edi
call fcn.010173b3
mov eax, dword [esi + 0x48]
mov dword [esi + 0x54], edi
shl edi, 4
lea eax, [edi + eax + 4]
jmp 0x102070b
push 0
call fcn.010173b3
mov eax, dword [esi + 0x48]
and dword [esi + 0x54], 0
add eax, 4
lea ecx, [esi + 0x44]
push eax
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x4dc]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [ebp - 0x4cc]
mov dword [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString_4
push 0x4eae
lea ecx, [ebp - 0x4dc]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::LoadStringW
call fcn.0102150d
add eax, 0xa2
push eax
lea ecx, [ebp - 0x4cc]
call sub.MFC42u.DLL_CString::operator_1
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 sub.MFC42u.DLL_CString::operator_2
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 0x10207fd
push edi
lea eax, [ebp - 0x4d4]
push eax
lea ecx, [ebp - 0x4cc]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x4d4]
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
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4dc]
call sub.MFC42u.DLL_CString::CString
jmp 0x1020888
cmp dword [esi + 0x48], eax
je 0x1020888
xor ebx, ebx
cmp ecx, eax
jbe 0x1020868
xor edi, edi
mov eax, dword [esi + 0x48]
push dword [edi + eax + 8]
mov ecx, esi
call fcn.010173d4
mov ecx, dword [esi + 0x48]
mov dword [edi + ecx], eax
inc ebx
add edi, 0x10
cmp ebx, dword [esi + 0x4c]
jb 0x102084b
push dword [esi + 0x54]
mov ecx, esi
call fcn.010173b3
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 sub.MFC42u.DLL_CString::operator_2
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.01075bbb
leave
ret