Function at 0x401140
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
movzx ebx, ax
sub esp, 0x5c
xor eax, eax
lea esi, [ebp - 0x38]
jmp 0x401160
movzx edx, word [eax + 0x4040ba]
mov word [esi + eax], dx
add eax, 2
test edx, edx
jne 0x401160
mov dword [esp], esi
mov word [ebp - 0x38], bx
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
mov edx, eax
sub esp, 4
xor eax, eax
cmp edx, 5
jne 0x4012b0
nop
movzx edx, word [eax + str.._a:]
mov word [esi + eax], dx
add eax, 2
test edx, edx
jne 0x401190
xor eax, eax
xor edx, edx
mov dword [esp + 0xc], eax
mov eax, 3
xor ecx, ecx
mov dword [esp + 8], eax
mov edi, 3
xor eax, eax
mov dword [esp], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 4], eax
mov word [ebp - 0x30], bx
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
mov esi, eax
je 0x401409
test byte [section..data], 8
jne 0x4012d0
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 8], eax
xor ebx, ebx
mov eax, 0x90020
mov dword [esp + 0xc], ebx
lea edi, [ebp - 0x3c]
mov ebx, dword [sym.imp.kernel32.dll_DeviceIoControl]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov dword [esp], esi
call ebx
sub esp, 0x20
test eax, eax
jne 0x401241
test byte [section..data], 4
jne 0x401390
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
xor eax, eax
mov ecx, 1
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x3d]
mov dword [esp + 8], eax
mov eax, 0x2d4804
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], esi
mov byte [ebp - 0x3d], 0
call ebx
sub esp, 0x20
test eax, eax
jne 0x40128d
test byte [section..data], 4
jne 0x4013d0
mov ecx, dword [0x406004]
test ecx, ecx
je 0x401308
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 1
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.Drive__c:_is_not_a_CD_or_is_not_mounted_n
movsx ebx, bl
mov dword [esp + 4], ebx
call sym._wine_dbg_printf
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 3
mov eax, str.ejecting__c:_n
movsx ebx, bl
mov dword [esp + 0xc], eax
mov eax, str.eject_cd
mov dword [esp + 8], eax
mov eax, section..data
mov dword [esp + 0x10], ebx
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x4011f4
mov dword [esp + 0x18], edi
xor eax, eax
mov edx, 0x2d4808
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], esi
call ebx
sub esp, 0x20
test eax, eax
jne 0x401297
test byte [section..data], 4
je 0x401297
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov edx, str.eject_cd
mov ecx, section..data
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 2
mov dword [esp + 0x10], eax
mov eax, str.IOCTL_STORAGE_EJECT_MEDIA_failed_with_err__ld_n
mov dword [esp + 0xc], eax
call sym._wine_dbg_log.constprop.0
jmp 0x401297
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], 2
mov dword [esp + 0x10], eax
mov eax, str.FSCTL_DISMOUNT_VOLUME_failed_with_err__ld_n
mov dword [esp + 0xc], eax
mov eax, str.eject_cd
mov dword [esp + 8], eax
mov eax, section..data
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x401241
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], 2
mov dword [esp + 0x10], eax
mov eax, str.IOCTL_STORAGE_MEDIA_REMOVAL_failed_with_err__ld_n
mov dword [esp + 0xc], eax
mov eax, str.eject_cd
mov dword [esp + 8], eax
mov eax, section..data
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x40128d
mov dword [esp], str.Cannot_open_device_for_drive__c:_n
movsx ebx, bl
mov dword [esp + 4], ebx
call sym._wine_dbg_printf
xor eax, eax
jmp 0x4012a8