Function at 0x443a92
Capabilities:
Get disk information
Unmount volume via ioctl

Disassembly:
push ebp
push ebx
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x443a99
call fcn.005873a0
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.004fc000
mov dword [section..data], 0xa002c7
mov dword [section..data], 0xa002cf
mov dword [esp + 8], 1
mov dword [section..data], 0xa002da
mov dword [section..data], 0xa002dc
push edx
call fcn.00587290
pop edx
push eax
push 2
push edx
call fcn.00587290
pop edx
push eax
mov edx, str.Eject_drive__
push edx
call fcn.00587330
mov edx, dword [esp + 0xc]
push edx
call fcn.00587330
mov edx, 0x6bef86
push edx
call fcn.00587330
call fcn.00587380
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.004fc302
add dword [esp + 8], edx
call fcn.0049e102
call fcn.004fc320
mov dword [section..data], 0xa002de
push edx
call fcn.00587290
pop edx
push eax
push edx
call fcn.00587290
pop edx
push eax
push 1
push dword [esp + 0xc]
call fcn.005752e0
lea eax, [esp + 4]
push eax
call fcn.005872c0
mov dword [section..data], 0xa002e0
push edx
call fcn.00587290
pop edx
push eax
mov edx, str.._
push edx
call fcn.00587330
mov edx, dword [esp + 4]
push edx
call fcn.00587330
mov edx, 0x6bed64
push edx
call fcn.00587330
lea eax, [esp + 0x18]
push eax
call fcn.005872c0
mov dword [section..data], 0xa002e1
mov edx, dword [esp]
push edx
call fcn.00587290
pop edx
push eax
push edx
call fcn.00587330
mov edx, 0x6dae4c
push edx
call fcn.00587330
lea eax, [esp + 0x14]
push eax
call fcn.005872c0
mov dword [section..data], 0xa002e3
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetDriveTypeW
mov dword [esp + 0x18], eax
mov dword [section..data], 0xa002e5
push dword [esp + 0x18]
mov dword [section..data], 0xa002e6
mov ebx, 2
cmp ebx, dword [esp]
jne 0x443c38
mov dword [section..data], 0xa002e7
mov dword [esp + 0x20], 0xc0000000
mov dword [section..data], 0xa002e9
jmp 0x443d11
mov dword [section..data], 0xa002e9
mov ebx, 5
cmp ebx, dword [esp]
jne 0x443c6d
mov dword [section..data], 0xa002ea
mov dword [esp + 0x20], closesocket
mov dword [section..data], 0xa002ec
jmp 0x443d11
mov dword [section..data], 0xa002ec
mov dword [section..data], 0xa002ed
push edx
call fcn.00587290
pop edx
push eax
push 0
push edx
call fcn.00587290
pop edx
push eax
mov edx, str.ERROR__Cannot_eject._Drive_type_is_incorrect
push edx
call fcn.00587330
push edx
call fcn.00587290
pop edx
push eax
push edx
call fcn.00587290
pop edx
push eax
mov eax, dword [esp + 0x30]
cdq
push edx
push eax
call fcn.00574cc0
pop eax
mov edx, 0x6db912
push edx
call fcn.00587330
call fcn.00587380
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.004fc302
add dword [esp + 8], edx
call fcn.0049e102
call fcn.004fc320
mov dword [section..data], 0xa002ee
mov dword [esp + 0xc], 0xfffffa22
mov dword [section..data], 0xa002ef
add esp, 4
jmp 0x44436b
mov dword [section..data], 0xa002f0
pop eax
mov dword [section..data], 0xa002f2
push 0
push 0
push 3
push 0
push 3
push dword [esp + 0x30]
push dword [esp + 0x2c]
call sub.KERNEL32.dll_CreateFileW
mov dword [esp + 4], eax
mov dword [section..data], 0xa002f4
mov ebx, dword [esp + 4]
cmp ebx, 0xffffffff
jne 0x443deb
mov dword [section..data], 0xa002f6
push edx
call fcn.00587290
pop edx
push eax
push 0
push edx
call fcn.00587290
pop edx
push eax
mov edx, str.ERROR__Couldnt_get_a_handle_to_drive__
push edx
call fcn.00587330
mov edx, dword [esp + 0xc]
push edx
call fcn.00587330
mov edx, str.____Please_eject_manually_
push edx
call fcn.00587330
call fcn.00587380
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.004fc302
add dword [esp + 8], edx
call fcn.0049e102
call fcn.004fc320
mov dword [section..data], 0xa002f8
mov dword [esp + 8], 0xfffffa23
mov dword [section..data], 0xa002f9
jmp 0x44436b
mov dword [section..data], 0xa002fa
mov dword [section..data], 0xa002fc
push 3
mov eax, str.Drive_opened
push eax
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0049e102
mov dword [section..data], 0xa002fe
mov ebx, dword [esp + 0x18]
cmp ebx, 2
jne 0x444235
mov dword [section..data], 0xa002ff
push 3
mov eax, str.Drive_is_removeable___try_to_lock_it
push eax
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0049e102
mov dword [section..data], 0xa00301
mov dword [esp + 8], 0xfffffa1e
mov dword [section..data], 0xa00302
mov dword [esp + 0xc], 1
jmp 0x443e88
mov dword [section..data], 0xa00302
mov eax, 0x14
cmp eax, dword [esp + 0xc]
jl 0x443f6d
mov dword [section..data], 0xa00303
push 0
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 0
push 0x90018
push dword [esp + 0x20]
call sub.KERNEL32.dll_DeviceIoControl
and eax, eax
je 0x443f15
mov dword [section..data], 0xa00304
mov dword [esp + 8], 1
mov dword [section..data], 0xa00305
push 3
mov eax, str.lock_success
push eax
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0049e102
mov dword [section..data], 0xa00306
jmp 0x443f6d
mov dword [section..data], 0xa00307
mov dword [section..data], 0xa00308
push 2
mov eax, str.Retry_lock_device
push eax
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0049e102
mov dword [section..data], 0xa00309
push 0x118
call fcn.00578a9b
mov dword [section..data], 0xa0030a
inc dword [esp + 0xc]
jno 0x443e7e
mov dword [section..data], 0xa0030c
mov ebx, dword [esp + 8]
cmp ebx, 0xfffffa1e
jne 0x443ff5
mov dword [section..data], 0xa0030d
push edx
call fcn.00587290
pop edx
push eax
push 0
push edx
call fcn.00587290
pop edx
push eax
mov edx, str.ERROR__Couldnt_lock_the_volume_in_drive
push edx
call fcn.00587330
mov edx, dword [esp + 0xc]
push edx
call fcn.00587330
mov edx, 0x6bd700
push edx
call fcn.00587330
call fcn.00587380
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.004fc302
add dword [esp + 8], edx
call fcn.0049e102
call fcn.004fc320
mov dword [section..data], 0xa0030e
jmp 0x44436b
mov dword [section..data], 0xa0030f
mov dword [section..data], 0xa00311
push 3
mov eax, str.Drive_locked
push eax
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0049e102
mov dword [section..data], 0xa00314
push 3
mov eax, str.Dismount_volume
push eax
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0049e102
mov dword [section..data], 0xa00316
push 0
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 0
push 0x90020
push dword [esp + 0x20]
call sub.KERNEL32.dll_DeviceIoControl
and eax, eax
je 0x444089
xor eax, eax
jmp 0x44408e
mov eax, 1
and eax, eax
je 0x44411a
mov dword [section..data], 0xa00317
push edx
call fcn.00587290
pop edx
push eax
push 0
push edx
call fcn.00587290
pop edx
push eax
mov edx, str.ERROR__Couldnt_dismount_the_volume_in_drive
push edx
call fcn.00587330
mov edx, dword [esp + 0xc]
push edx
call fcn.00587330
mov edx, 0x6bd700
push edx
call fcn.00587330
call fcn.00587380
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.004fc302
add dword [esp + 8], edx
call fcn.0049e102
call fcn.004fc320
mov dword [section..data], 0xa00318
mov dword [esp + 8], 0xfffffa1d
mov dword [section..data], 0xa00319
jmp 0x44436b
mov dword [section..data], 0xa0031a
mov dword [section..data], 0xa0031d
push 3
mov eax, str.Remove_storage_media
push eax
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0049e102
mov dword [section..data], 0xa0031f
lea ebp, [esp + 0x24]
mov byte [ebp], 0
mov dword [section..data], 0xa00320
push 0
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 1
lea eax, [esp + 0x38]
push eax
push 0x2d4804
push dword [esp + 0x20]
call sub.KERNEL32.dll_DeviceIoControl
and eax, eax
je 0x44419a
xor eax, eax
jmp 0x44419f
mov eax, 1
and eax, eax
je 0x44422b
mov dword [section..data], 0xa00321
push edx
call fcn.00587290
pop edx
push eax
push 0
push edx
call fcn.00587290
pop edx
push eax
mov edx, str.ERROR__Couldnt_remove_the_media_in_drive
push edx
call fcn.00587330
mov edx, dword [esp + 0xc]
push edx
call fcn.00587330
mov edx, 0x6bd700
push edx
call fcn.00587330
call fcn.00587380
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.004fc302
add dword [esp + 8], edx
call fcn.0049e102
call fcn.004fc320
mov dword [section..data], 0xa00322
mov dword [esp + 8], 0xfffffa1c
mov dword [section..data], 0xa00323
jmp 0x44436b
mov dword [section..data], 0xa00324
mov dword [section..data], 0xa00326
mov dword [section..data], 0xa00328
push 3
mov eax, str.Eject_drive
push eax
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0049e102
mov dword [section..data], 0xa0032a
push 0
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 0
push 0x2d4808
push dword [esp + 0x20]
call sub.KERNEL32.dll_DeviceIoControl
and eax, eax
je 0x4442a3
xor eax, eax
jmp 0x4442a8
mov eax, 1
and eax, eax
je 0x444331
mov dword [section..data], 0xa0032b
push edx
call fcn.00587290
pop edx
push eax
push 0
push edx
call fcn.00587290
pop edx
push eax
mov edx, str.ERROR__Couldnt_eject_the_media_in_drive
push edx
call fcn.00587330
mov edx, dword [esp + 0xc]
push edx
call fcn.00587330
mov edx, 0x6bd700
push edx
call fcn.00587330
call fcn.00587380
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.004fc302
add dword [esp + 8], edx
call fcn.0049e102
call fcn.004fc320
mov dword [section..data], 0xa0032c
mov dword [esp + 8], 0xfffffa1b
mov dword [section..data], 0xa0032d
jmp 0x44436b
mov dword [section..data], 0xa0032e
mov dword [section..data], 0xa00330
push 3
mov eax, str.Drive_ejected
push eax
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0049e102
mov dword [section..data], 0xa00332
mov dword [section..data], 0xa00336
mov ebx, dword [esp + 4]
cmp ebx, 0xffffffff
je 0x4443b7
mov dword [section..data], 0xa00337
push 3
mov eax, str.Close_handle
push eax
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0049e102
mov dword [section..data], 0xa00339
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [section..data], 0xa0033a
mov dword [section..data], 0xa0033c
push edx
call fcn.00587290
pop edx
push eax
push 3
push edx
call fcn.00587290
pop edx
push eax
mov edx, str.Result__
push edx
call fcn.00587330
push edx
call fcn.00587290
pop edx
push eax
push edx
call fcn.00587290
pop edx
push eax
mov eax, dword [esp + 0x1c]
cdq
push edx
push eax
call fcn.00574cc0
pop eax
mov edx, 0x6bef86
push edx
call fcn.00587330
call fcn.00587380
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.004fc302
add dword [esp + 8], edx
call fcn.0049e102
call fcn.004fc320
mov dword [section..data], 0xa0033e
mov eax, dword [esp + 8]
jmp 0x444453
push dword [esp + 0x14]
call fcn.00587410
push dword [esp + 0x10]
call fcn.00587410
push dword [esp]
call fcn.00587410
add esp, 0x28
pop ebx
pop ebp
ret 4