Function at 0x40cbce
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, 0x427b3c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 3
pop edi
cmp eax, edi
je 0x40cbf5
push str.Drive_C:_must_be_a_hard_drive_for_Softwrap_to_correctly_register
call fcn.0040cbaa
pop ecx
xor ebx, ebx
lea eax, [ebp - 8]
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x40cc17
push str.Cannot_get_information_for_drive_C:
call fcn.0040cbaa
pop ecx
mov al, byte [0x42dbac]
cmp al, 2
je 0x40cd29
cmp al, 3
je 0x40cd29
push ebx
push ebx
push edi
push ebx
push 2
push ebx
push str..C:
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x40cd1f
lea ecx, [ebp - 0xc]
push ebx
push ecx
lea ecx, [ebp - 0x28]
push 0x18
push ecx
push ebx
push ebx
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40cd11
cmp dword [ebp - 0xc], ebx
jbe 0x40cd11
mov edi, dword [ebp + 8]
push 8
push ebx
push edi
call fcn.004174b0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movzx esi, byte [ebp + 0xc]
shl eax, 2
not ecx
xor eax, ecx
add esp, 0xc
xor eax, dword [ebp - 8]
mov ecx, esi
dec ecx
push 4
dec ecx
mov dword [ebp - 4], eax
pop ebx
je 0x40ccaf
dec ecx
jne 0x40ccbb
push ebx
push eax
call fcn.00417468
jmp 0x40ccb6
push ebx
push eax
call fcn.004175bc
pop ecx
mov dword [ebp - 4], eax
pop ecx
lea eax, [ebp - 4]
push ebx
push eax
push edi
call fcn.00417bc0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
shl eax, 2
not ecx
xor eax, ecx
mov ecx, dword [ebp - 8]
not ecx
add esp, 0xc
xor eax, ecx
dec esi
mov dword [ebp - 4], eax
dec esi
je 0x40ccf3
dec esi
jne 0x40cd00
not eax
push 8
push eax
call fcn.00417468
jmp 0x40ccfb
push 8
push eax
call fcn.004175bc
pop ecx
mov dword [ebp - 4], eax
pop ecx
lea eax, [ebp - 4]
push ebx
add edi, 4
push eax
push edi
call fcn.00417bc0
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ce4b
push str.Could_not_open_handle_to_Drive_C:
jmp 0x40ce45
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push str..VWIN32
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40ce40
lea eax, [ebp - 0x54]
push 1
mov dword [ebp - 0x28], eax
pop eax
lea ecx, [ebp - 0x10]
push ebx
push ecx
lea ecx, [ebp - 0x2c]
push 0x1c
push ecx
lea ecx, [ebp - 0x2c]
push 0x1c
push ecx
push eax
push dword [ebp - 0xc]
mov byte [ebp - 0x54], bl
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], 0x860
mov dword [ebp - 0x20], 0x440d
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40ce38
test byte [ebp - 0x14], 1
jne 0x40ce38
mov edi, dword [ebp + 8]
push 8
push ebx
push edi
call fcn.004174b0
movzx eax, word [ebp - 0x4d]
movzx ecx, word [ebp - 0x40]
movzx esi, byte [ebp + 0xc]
shl eax, 2
not ecx
xor eax, ecx
add esp, 0xc
xor eax, dword [ebp - 8]
mov ecx, esi
dec ecx
push 4
dec ecx
mov dword [ebp - 4], eax
pop ebx
je 0x40cdd4
dec ecx
jne 0x40cde0
push ebx
push eax
call fcn.00417468
jmp 0x40cddb
push ebx
push eax
call fcn.004175bc
pop ecx
mov dword [ebp - 4], eax
pop ecx
lea eax, [ebp - 4]
push ebx
push eax
push edi
call fcn.00417bc0
movzx eax, word [ebp - 0x40]
movzx ecx, word [ebp - 0x4d]
shl eax, 2
not ecx
xor eax, ecx
mov ecx, dword [ebp - 8]
not ecx
add esp, 0xc
xor eax, ecx
dec esi
mov dword [ebp - 4], eax
dec esi
je 0x40ce1a
dec esi
jne 0x40ce27
not eax
push 8
push eax
call fcn.00417468
jmp 0x40ce22
push 8
push eax
call fcn.004175bc
pop ecx
mov dword [ebp - 4], eax
pop ecx
lea eax, [ebp - 4]
push ebx
add edi, 4
push eax
push edi
call fcn.00417bc0
add esp, 0xc
push dword [ebp - 0xc]
jmp 0x40cd14
push str.Cannot_use_the_VWIN32_VxD_to_access_drive_C:
call fcn.0040cbaa
pop ecx
pop edi
pop esi
pop ebx
leave
ret