Function at 0x431190
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4805a8
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_4
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], ebx
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 1
call sub.MFC42u.DLL_CString::CString_4
mov byte [esp + 0x40], 2
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, dword [edi + 0x1a4]
mov dword [edi + 0x1a4], 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 0x43120f
mov esi, dword [esp + 0x28]
test dword [esp + 0x18], esi
je 0x43145f
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.0x431249.15
jmp dword [eax*4 + 0x4315e4]
mov edx, dword [0x50cb5c]
push ebx
mov eax, dword [edx*4 + 0x4b8630]
jmp 0x4312ce
mov edx, dword [0x50cb5c]
push ebx
lea ecx, [esp + 0x14]
mov eax, dword [edx*4 + 0x4b863c]
push eax
push str._s__c:_
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
mov ebp, 3
jmp 0x4312ea
mov edx, dword [0x50cb5c]
push ebx
lea ecx, [esp + 0x14]
mov eax, dword [edx*4 + 0x4b8648]
push eax
push str._s__c:_
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
mov ebp, 1
jmp 0x4312ea
mov edx, dword [0x50cb5c]
push ebx
mov eax, dword [edx*4 + 0x4b8654]
jmp 0x4312ce
mov edx, dword [0x50cb5c]
push ebx
mov eax, dword [edx*4 + 0x4b8660]
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 0x4312ea
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 0x43145f
mov eax, dword [edi + 0x194]
mov dword [esp + 0x24], 0xffff0002
push eax
mov eax, dword [edi + 0x16c]
push 4
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test esi, esi
je 0x4313d1
lea ecx, [esp + 0x2c]
push esi
push ecx
lea ecx, [edi + 0x14c]
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 0x4313d1
mov edx, dword [edi + 0x16c]
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 0x431332
mov ecx, dword [esp + 0x24]
mov eax, dword [edi + 0x194]
mov edx, dword [esp + 0x10]
push ecx
push eax
push 0
push 0
push 0
push ebp
lea esi, [edi + 0x14c]
push ebp
push edx
push 0x23
mov ecx, esi
call sub.MFC42u.DLL_CTreeCtrl::InsertItem
mov ebp, eax
mov eax, dword [edi + 0x16c]
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.00430df0
cmp eax, 1
jne 0x43145f
push 0xffff0002
push ebp
push 0
push 0
push 0
push 5
push 4
push 0x50ca78
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 0x43120b
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 0x431586
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 + 0x194]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
push eax
mov eax, dword [edi + 0x16c]
push 4
push 0x110a
push eax
call ebx
mov esi, eax
test esi, esi
je 0x431586
lea ebp, [edi + 0x14c]
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 0x431576
mov edx, dword [edi + 0x16c]
push 1
push 0x110a
push edx
call ebx
mov esi, eax
test esi, esi
jne 0x4314e1
jmp 0x431586
mov eax, dword [edi + 0x16c]
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 0x431489
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