Function at 0x401130
Capabilities:
Get disk information

Disassembly:
push edi
mov edx, 0x61
push esi
push ebx
mov ebx, eax
xor eax, eax
sub esp, 0x50
lea esi, [esp + 0x30]
jmp 0x40114f
movzx edx, word [eax + 0x4040ba]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x401148
mov word [esp + 0x30], bx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
mov edx, 0x5c
mov ecx, eax
sub esp, 4
xor eax, eax
cmp ecx, 5
je 0x401187
jmp 0x4012c0
movzx edx, word [eax + str.._a:]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x401180
mov dword [esp], esi
mov word [esp + 0x38], bx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
je 0x401416
test byte [section..data], 8
jne 0x4012e0
lea edi, [esp + 0x2c]
mov dword [esp + 0x1c], 0
mov ebx, dword [sym.imp.kernel32.dll_DeviceIoControl]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x90020
mov dword [esp], esi
call ebx
sub esp, 0x20
test eax, eax
jne 0x401243
test byte [section..data], 4
jne 0x4013a0
lea eax, [esp + 0x2b]
mov byte [esp + 0x2b], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x2d4804
mov dword [esp], esi
call ebx
sub esp, 0x20
test eax, eax
jne 0x401295
test byte [section..data], 4
jne 0x4013e0
mov eax, dword [0x405004]
test eax, eax
je 0x401310
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 1
sub esp, 4
add esp, 0x50
pop ebx
pop esi
pop edi
ret
movsx ebx, bl
mov dword [esp], str.Drive__c:_is_not_a_CD_or_is_not_mounted_n
mov dword [esp + 4], ebx
call dbg.wine_dbg_printf
add esp, 0x50
xor eax, eax
pop ebx
pop esi
pop edi
ret
movsx ebx, bl
mov dword [esp + 0xc], str.ejecting__c:_n
mov dword [esp + 0x10], ebx
mov dword [esp + 8], str.eject_cd
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4011ec
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2d4808
mov dword [esp], esi
call ebx
sub esp, 0x20
test eax, eax
jne 0x40129e
test byte [section..data], 4
je 0x40129e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.IOCTL_STORAGE_EJECT_MEDIA_failed_with_err__ld_n
mov dword [esp + 8], str.eject_cd
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x40129e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.FSCTL_DISMOUNT_VOLUME_failed_with_err__ld_n
mov dword [esp + 8], str.eject_cd
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x401243
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.IOCTL_STORAGE_MEDIA_REMOVAL_failed_with_err__ld_n
mov dword [esp + 8], str.eject_cd
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x403000
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x401295
movsx ebx, bl
mov dword [esp], str.Cannot_open_device_for_drive__c:_n
mov dword [esp + 4], ebx
call dbg.wine_dbg_printf
xor eax, eax
jmp 0x4012af