Function at 0x40f654
Capabilities:
Get disk information

Disassembly:
mov eax, 0x428784
call fcn.0041b8d0
sub esp, 0x474
push ebx
push esi
push edi
mov esi, ecx
push 0x40
xor ebx, ebx
mov byte [ebp - 0x270], bl
pop ecx
push dword [esi + 4]
xor eax, eax
lea edi, [ebp - 0x26f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x28]
stosb byte es:[edi], al
call fcn.0040f3fd
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x40f6ab
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push ebx
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
call edi
test eax, eax
jne 0x40f697
mov edi, 0xd7
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
inc eax
push eax
lea eax, [ebp - 0x16c]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.0041c8a7
add esp, 0x14
lea eax, [ebp - 0x480]
push eax
call fcn.00413543
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, eax
xor eax, eax
mov cl, byte [ebp + eax - 0x16c]
mov byte [ebp + eax - 0x378], cl
inc eax
cmp cl, bl
jne 0x40f719
cmp dword [esi + 0x5c], ebx
je 0x40f74c
cmp dword [esi + 0x54], 0x10
jb 0x40f73c
mov eax, dword [esi + 0x40]
jmp 0x40f73f
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0x378]
push eax
call fcn.00413a76
cmp edi, 5
jne 0x40f7eb
push ebx
push dword [esi + 0x58]
lea eax, [ebp - 0x16c]
push eax
mov dword [ebp - 0x10], ebx
call fcn.00406639
cmp eax, ebx
jne 0x40f7eb
push ebx
push dword [esi + 0x58]
lea eax, [ebp - 0x378]
push eax
call fcn.00406639
cmp eax, ebx
jne 0x40f7eb
cmp dword [ebp - 0x10], 0x1f4
jge 0x40f7eb
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x40f7a5
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push ebx
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
call edi
test eax, eax
jne 0x40f791
push ebx
push dword [esi + 0x58]
lea eax, [ebp - 0x16c]
push eax
call fcn.00406639
mov edi, eax
cmp edi, ebx
jne 0x40f7dc
push ebx
push dword [esi + 0x58]
lea eax, [ebp - 0x378]
push eax
call fcn.00406639
mov edi, eax
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x10]
cmp edi, ebx
je 0x40f780
lea eax, [ebp - 0x270]
push eax
push dword [esi + 0x58]
lea eax, [ebp - 0x16c]
push eax
call fcn.00406639
test eax, eax
je 0x40f810
lea eax, [ebp - 0x16c]
jmp 0x40f953
mov eax, dword [esi + 0x58]
cmp eax, ebx
jne 0x40f928
push 0x105
lea eax, [ebp - 0x16c]
push eax
mov ecx, esi
call fcn.0040f02a
lea eax, [ebp - 0x270]
push eax
push dword [esi + 0x58]
lea eax, [ebp - 0x16c]
push eax
call fcn.00406639
test eax, eax
jne 0x40f805
push ebx
lea ecx, [ebp - 0x54]
call fcn.004133d0
mov byte [ebp - 4], 1
push ebx
lea ecx, [ebp - 0x64]
call fcn.004133d0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x270]
push 0x401650
push eax
call fcn.0041bbc4
test eax, eax
pop ecx
pop ecx
mov edi, 0x42e128
jne 0x40f8b3
cmp dword [esi + 0x58], ebx
push edi
setne al
add eax, 0x1058
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00413429
mov ecx, dword [ebp - 0x60]
add esp, 0xc
cmp ecx, ebx
jne 0x40f8a3
mov ecx, 0x401650
lea edx, [ebp - 0x270]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x40f8a9
push edi
lea eax, [ebp - 0x54]
push 0x1003
push eax
call fcn.00413429
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.0040f179
mov eax, dword [ebp - 0x50]
cmp eax, ebx
jne 0x40f8d9
mov eax, 0x401650
push ebx
push eax
lea eax, [ebp - 0x270]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.0041341e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x54]
call fcn.0041341e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0x401ebc
call fcn.0040f179
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
cmp dword [esi + 0x5c], ebx
je 0x40f848
lea ecx, [ebp - 0x270]
push ecx
push eax
lea eax, [ebp - 0x378]
push eax
call fcn.00406639
test eax, eax
je 0x40f848
lea eax, [ebp - 0x378]
push eax
lea ecx, [esi + 0x20]
call fcn.00405e80
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40f902