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

Disassembly:
mov eax, 0x10bd12d
call fcn.0106f6c0
sub esp, 0x4f8
push esi
mov esi, ecx
call fcn.0101e5ab
lea eax, [ebp - 0x250]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x101fb8d
or dword [ebp - 0x1c], 0xffffffff
or dword [ebp - 0x34], 0xffffffff
xor eax, eax
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp word [ebp - 0x250], ax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], eax
je 0x101f729
lea eax, [ebp - 0x250]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x101f709
inc dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_wcslen]
lea edi, [edi + eax + 1]
lea eax, [ebp + edi*2 - 0x250]
cmp word [eax], 0
pop ecx
mov dword [ebp - 0x10], eax
jne 0x101f6f8
xor eax, eax
mov edi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x4c]
inc edi
cmp ecx, edi
je 0x101fb41
mov ecx, dword [esi + 0x48]
cmp ecx, eax
je 0x101f74e
push 3
call fcn.0101e52f
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 - 0x18], eax
and dword [ebp - 4], 0
test eax, eax
je 0x101f78c
push fcn.0101e4c3
push 0x101e488
push edi
mov dword [eax], edi
add eax, 4
push 0x10
push eax
mov dword [ebp - 0x20], eax
call fcn.0106f7a4
mov eax, dword [ebp - 0x20]
jmp 0x101f78e
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x48], eax
xor eax, eax
cmp word [ebp - 0x250], ax
mov dword [ebp - 0x20], eax
je 0x101f8bf
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x30], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x101f897
push 0x600
xor eax, eax
mov ecx, 0xad
lea edi, [ebp - 0x504]
push 0x2b4
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x504]
push eax
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x101f897
lea eax, [ebp - 0x4f8]
push eax
push 0
push 0x143
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x101f862
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], ecx
ja 0x101f847
mov eax, dword [ebp - 0x50]
jb 0x101f83e
cmp dword [ebp - 0x3c], eax
jae 0x101f847
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ebx
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x28], ecx
ja 0x101f862
mov eax, dword [ebp - 0x48]
jb 0x101f859
cmp dword [ebp - 0x2c], eax
jae 0x101f862
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ebx
mov eax, dword [esi + 0x48]
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x10]
mov dword [edi + eax], ecx
mov eax, dword [esi + 0x48]
lea ecx, [edi + eax + 4]
call fcn.0106e90a
lea eax, [ebp - 0x4f8]
push eax
mov eax, dword [esi + 0x48]
lea ecx, [edi + eax + 8]
call fcn.0106e90a
inc ebx
add edi, 0x10
mov dword [ebp - 0x30], edi
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x20], eax
lea eax, [ebp + eax*2 - 0x250]
cmp word [eax], 0
mov dword [ebp - 0x10], eax
jne 0x101f7b3
lea eax, [ebp - 0x40]
push eax
push 0x20019
push 0
push 0x1004220
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101f994
push eax
push eax
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0x10041fc
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101f994
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
mov dword [ebp - 4], 1
call fcn.010207aa
add eax, 0xa2
push eax
lea ecx, [ebp - 0x10]
call fcn.0106e90a
push 0x5c
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReverseFind
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0106e8f8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp - 0x10]
shl ebx, 4
push eax
mov eax, dword [esi + 0x48]
mov edi, ebx
lea ecx, [eax + edi + 4]
call fcn.0106e8f8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x48]
lea ecx, [eax + edi + 8]
call fcn.0106e8f8
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.0106e8f8
jmp 0x101f9e3
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
lea eax, [ebp - 0x10]
push 0x8107
push eax
mov dword [ebp - 4], 3
call sub.MFC42u.DLL_CString::Format_1
pop ecx
pop ecx
lea eax, [ebp - 0x10]
shl ebx, 4
push eax
mov eax, dword [esi + 0x48]
mov edi, ebx
lea ecx, [eax + edi + 4]
call fcn.0106e8f8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x48]
lea ecx, [eax + edi + 8]
call fcn.0106e8f8
mov eax, dword [esi + 0x48]
mov dword [eax + edi + 0xc], 1
push dword [ebp - 0x10]
mov ecx, esi
call fcn.010172e8
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 - 0x10]
mov dword [esi + 0x50], eax
call sub.MFC42u.DLL_CString::CString
mov edi, dword [ebp - 0x34]
cmp edi, 0xffffffff
jne 0x101fa18
mov edi, dword [ebp - 0x1c]
cmp edi, 0xffffffff
je 0x101fa2f
push edi
mov ecx, esi
call fcn.010172d1
mov eax, dword [esi + 0x48]
mov dword [esi + 0x54], edi
shl edi, 4
lea eax, [edi + eax + 4]
jmp 0x101fa4a
xor edi, edi
push edi
push edi
push 0x14e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x48]
mov dword [esi + 0x54], edi
add eax, 4
lea ecx, [esi + 0x44]
push eax
call fcn.0106e8f8
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString_3
push 0x4eae
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::LoadStringW
call fcn.010207aa
add eax, 0xa2
push eax
lea ecx, [ebp - 0x14]
call fcn.0106e90a
mov eax, dword [ebp - 0x14]
mov edi, dword [eax - 8]
push 0x5c
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::ReverseFind
sub edi, eax
dec edi
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Right
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0106e8f8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString
push 0x2e
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::ReverseFind
mov edi, eax
push edi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Find
test eax, eax
je 0x101fb09
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.0106e8f8
lea ecx, [ebp - 0x1c]
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 - 0x14]
mov ecx, eax
push 0x1033
call sub.MFC42u.DLL_CWnd::SetDlgItemTextW
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CString::CString
jmp 0x101fb8b
cmp dword [esi + 0x48], eax
je 0x101fb8b
xor ebx, ebx
cmp ecx, eax
jbe 0x101fb6b
xor edi, edi
mov eax, dword [esi + 0x48]
push dword [edi + eax + 8]
mov ecx, esi
call fcn.010172e8
mov ecx, dword [esi + 0x48]
mov dword [edi + ecx], eax
inc ebx
add edi, 0x10
cmp ebx, dword [esi + 0x4c]
jb 0x101fb4e
push dword [esi + 0x54]
mov ecx, esi
call fcn.010172d1
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.0106e8f8
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
xor eax, eax
inc eax
pop esi
mov dword fs:[0], ecx
leave
ret