Function at 0x401690
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40cbd8
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
mov esi, ecx
xor bl, bl
push edi
cmp ebp, dword [esi + 0x48]
jne 0x401714
lea ebx, [esi + 0x4c]
mov ecx, 0x7d
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
push eax
push ebp
mov ecx, esi
call fcn.00401540
push ebx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [ebx], 0
je 0x401964
mov eax, dword [esi + 0x48]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push eax
push ebx
mov ecx, esi
call fcn.00401400
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ebx + ecx + 1]
lea ebx, [ebx + ecx + 1]
test al, al
jne 0x4016e5
jmp 0x401982
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString
push ebp
push ecx
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00401a00
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 2
call fcn.0040c370
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 1
call fcn.0040c2b6
push 0
push ebp
mov ecx, esi
call fcn.00401540
lea ecx, [esp + 0x4c]
push 0x414038
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 3
call fcn.0040c370
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 1
call fcn.0040c2b6
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x401881
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov edx, dword [esp + 0x20]
push 0x10
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
call dword [edx + 0x40]
test eax, eax
je 0x401875
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x401875
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
mov bl, 1
call sub.MFC42.DLL_CFileFind::GetFileName
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x50], 5
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ebp
push eax
mov ecx, esi
mov byte [esp + 0x58], 6
call fcn.00401400
lea ecx, [esp + 0x14]
mov edi, eax
mov byte [esp + 0x44], 5
call fcn.0040c2b6
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 4
call fcn.0040c2b6
push 0xffff0002
push edi
push 0
push 0
push 0
push 0
push 0
push 0x414b58
push 1
mov ecx, esi
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4017cf
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x401933
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov edx, dword [esp + 0x20]
push 0x10
lea ecx, [esp + 0x24]
mov edi, eax
call dword [edx + 0x40]
test eax, eax
jne 0x40192b
push ecx
lea ecx, [esp + 0x24]
mov eax, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc0]
test al, al
je 0x40192b
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
mov bl, 1
call sub.MFC42.DLL_CFileFind::GetFileName
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x50], 7
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ebp
push eax
mov ecx, esi
mov byte [esp + 0x58], 8
call fcn.00401400
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 7
call fcn.0040c2b6
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 4
call fcn.0040c2b6
test edi, edi
jne 0x401899
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call fcn.0040c340
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call fcn.0040c2b6
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0xffffffff
call fcn.0040c2b6
test bl, bl
jne 0x401982
push 0xffff0002
push ebp
push 0
push 0
push 0
push 0
push 0
push 0x414b58
push 1
mov ecx, esi
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 4