Function at 0x442680
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4abed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_5
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], ebx
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 1
call sub.MFC42u.DLL_CString::CString_5
mov byte [esp + 0x40], 2
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, dword [edi + 0x1b8]
mov dword [edi + 0x1b8], eax
mov ecx, edx
mov dword [esp + 0x18], 1
xor ecx, eax
mov dword [esp + 0x1c], ebx
mov esi, ecx
and esi, eax
and ecx, edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], ecx
jmp 0x4426ff
mov esi, dword [esp + 0x28]
test dword [esp + 0x18], esi
je 0x44294f
add ebx, 0x41
lea eax, [esp + 0x10]
and ebx, 0xffff
push ebx
push str._c:_
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
ja case.0x442739.15
jmp dword [eax*4 + 0x442ad4]
mov edx, dword [0x545f7c]
push ebx
mov eax, dword [edx*4 + 0x4ec170]
jmp 0x4427be
mov edx, dword [0x545f7c]
push ebx
lea ecx, [esp + 0x14]
mov eax, dword [edx*4 + 0x4ec17c]
push eax
push str._s__c:_
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
mov ebp, 3
jmp 0x4427da
mov edx, dword [0x545f7c]
push ebx
lea ecx, [esp + 0x14]
mov eax, dword [edx*4 + 0x4ec188]
push eax
push str._s__c:_
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
mov ebp, 1
jmp 0x4427da
mov edx, dword [0x545f7c]
push ebx
mov eax, dword [edx*4 + 0x4ec194]
jmp 0x4427be
mov edx, dword [0x545f7c]
push ebx
mov eax, dword [edx*4 + 0x4ec1a0]
push eax
lea ecx, [esp + 0x18]
push str._s__c:_
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
mov ebp, 2
jmp 0x4427da
xor ebp, ebp
push ebx
lea edx, [esp + 0x24]
push str.__c:_
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
test ebp, ebp
je 0x44294f
mov eax, dword [edi + 0x1a8]
mov dword [esp + 0x24], 0xffff0002
push eax
mov eax, dword [edi + 0x180]
push 4
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test esi, esi
je 0x4428c1
lea ecx, [esp + 0x2c]
push esi
push ecx
lea ecx, [edi + 0x160]
call sub.MFC42u.DLL_CTreeCtrl::GetItemText
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 3
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 2
call sub.MFC42u.DLL_CString::CString
push 0x28
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Find
lea edx, [esp + 0x30]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 4
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 2
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jle 0x4428c1
mov edx, dword [edi + 0x180]
push esi
push 1
push 0x110a
push edx
mov dword [esp + 0x34], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test esi, esi
jne 0x442822
mov ecx, dword [esp + 0x24]
mov eax, dword [edi + 0x1a8]
mov edx, dword [esp + 0x10]
push ecx
push eax
push 0
push 0
push 0
push ebp
lea esi, [edi + 0x160]
push ebp
push edx
push 0x23
mov ecx, esi
call sub.MFC42u.DLL_CTreeCtrl::InsertItem
mov ebp, eax
mov eax, dword [edi + 0x180]
push ebp
push 0
push 0x1114
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
lea ecx, [esp + 0x14]
push str._c:_
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
mov ecx, edi
call fcn.004421e0
cmp eax, 1
jne 0x44294f
push 0xffff0002
push ebp
push 0
push 0
push 0
push 5
push 4
push 0x545dc4
push 0x23
mov ecx, esi
call sub.MFC42u.DLL_CTreeCtrl::InsertItem
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ebx
shl ecx, 1
cmp ebx, 0x20
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ecx
jb 0x4426fb
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
test ecx, edx
je 0x442a76
add eax, 0x41
lea edx, [esp + 0x20]
and eax, 0xffff
push eax
push str.__c:_
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [edi + 0x1a8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
push eax
mov eax, dword [edi + 0x180]
push 4
push 0x110a
push eax
call ebx
mov esi, eax
test esi, esi
je 0x442a76
lea ebp, [edi + 0x160]
lea ecx, [esp + 0x30]
push esi
push ecx
mov ecx, ebp
call sub.MFC42u.DLL_CTreeCtrl::GetItemText
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 5
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 2
call sub.MFC42u.DLL_CString::CString
push 0x28
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Find
lea edx, [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 6
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 2
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
push esi
je 0x442a66
mov edx, dword [edi + 0x180]
push 1
push 0x110a
push edx
call ebx
mov esi, eax
test esi, esi
jne 0x4429d1
jmp 0x442a76
mov eax, dword [edi + 0x180]
push 0
push 0x1101
push eax
call ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
inc eax
shl edx, 1
cmp eax, 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
jb 0x442979
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret