Function at 0x407620
Capabilities:
Get disk information
Get file attributes

Disassembly:
sub esp, 0x284
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
mov ebp, ecx
push edi
push 0
push 0
mov eax, dword [ebp + 0x188]
push 0x1009
push eax
call ebx
push 1
mov ecx, ebp
call sub.MFC42.DLL_CWnd::UpdateData
mov edx, dword [ebp + 0xc8]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x1001
push edx
call ebx
mov ecx, 0x1a
xor eax, eax
lea edi, [esp + 0x125]
mov byte [esp + 0x124], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x124]
push eax
push 0x6a
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x124]
mov al, byte [edi + 1]
test al, al
jne 0x4076aa
mov al, byte [edi + 2]
test al, al
je 0x40790d
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x407905
movsx ecx, byte [edi]
push ecx
lea edx, [esp + 0x24]
push str._c:JdvrFile_
push edx
mov byte [edi + 1], 0
call esi
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x407905
mov ecx, dword [ebp + 0x148]
push 0
push 0
push 0x147
push ecx
call ebx
test eax, eax
mov ecx, ebp
push 0x3f8
jne 0x4077ef
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push 0
push 0
push 0xf0
push edx
call ebx
test eax, eax
je 0x407791
mov ebx, 1
mov eax, dword [esp + 0x12]
mov ecx, dword [esp + 0x10]
movsx edx, byte [edi]
and eax, 0xffff
push ebx
and ecx, 0xffff
push eax
push ecx
push edx
lea eax, [esp + 0x30]
push str._c:JdvrFile_04d_02d_02d
push eax
call esi
lea ecx, [esp + 0x1a8]
push str..601
push ecx
call esi
add esp, 0x20
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x40777d
lea eax, [esp + 0x190]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, ebp
call fcn.00407920
inc ebx
cmp ebx, 0x20
jl 0x407722
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
add edi, 4
jmp 0x407698
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x12]
mov ecx, dword [esp + 0x10]
and edx, 0xffff
push edx
and eax, 0xffff
movsx edx, byte [edi]
and ecx, 0xffff
push eax
push ecx
push edx
lea eax, [esp + 0x30]
push str._c:JdvrFile_04d_02d_02d
push eax
call esi
lea ecx, [esp + 0x1a8]
push str..601
push ecx
call esi
add esp, 0x20
lea edx, [esp + 0x190]
lea eax, [esp + 0x20]
mov ecx, ebp
push edx
push eax
call fcn.00407920
add edi, 4
jmp 0x407698
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0xf0
push ecx
call ebx
test eax, eax
je 0x407899
mov ebx, 1
mov edx, dword [esp + 0x12]
mov eax, dword [esp + 0x10]
movsx ecx, byte [edi]
and edx, 0xffff
push ebx
and eax, 0xffff
push edx
push eax
push ecx
lea edx, [esp + 0x30]
push str._c:JdvrFile_04d_02d_02d
push edx
call esi
mov eax, dword [ebp + 0x148]
add esp, 0x18
push 0
push 0
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
lea ecx, [esp + 0x194]
push str._02d______.601
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x407885
lea eax, [esp + 0x190]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, ebp
call fcn.00407920
inc ebx
cmp ebx, 0x20
jl 0x407810
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
add edi, 4
jmp 0x407698
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x12]
mov ecx, dword [esp + 0x10]
and edx, 0xffff
push edx
and eax, 0xffff
movsx edx, byte [edi]
and ecx, 0xffff
push eax
push ecx
push edx
lea eax, [esp + 0x30]
push str._c:JdvrFile_04d_02d_02d
push eax
call esi
mov ecx, dword [ebp + 0x148]
add esp, 0x18
push 0
push 0
push 0x147
push ecx
call ebx
push eax
lea edx, [esp + 0x194]
push str._02d______.601
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x190]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, ebp
call fcn.00407920
add edi, 4
jmp 0x407698
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x284
ret