Function at 0x447749
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 0x447750
call fcn.0057b2e0
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.0050d0f0
mov dword [section..data], 0xa002c5
mov dword [section..data], 0xa002cd
mov dword [esp + 8], 1
mov dword [section..data], 0xa002d8
mov dword [section..data], 0xa002da
push edx
call fcn.0057b460
pop edx
push eax
push 2
push edx
call fcn.0057b460
pop edx
push eax
mov edx, str.Eject_drive__
push edx
call fcn.0057b230
mov edx, dword [esp + 0xc]
push edx
call fcn.0057b230
mov edx, 0x67df2c
push edx
call fcn.0057b230
call fcn.0057b490
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0050d222
add dword [esp + 8], edx
call fcn.004ae98d
call fcn.0050d240
mov dword [section..data], 0xa002dc
push edx
call fcn.0057b460
pop edx
push eax
push edx
call fcn.0057b460
pop edx
push eax
push 1
push dword [esp + 0xc]
call fcn.005698f0
lea eax, [esp + 4]
push eax
call fcn.0057b350
mov dword [section..data], 0xa002de
push edx
call fcn.0057b460
pop edx
push eax
mov edx, str.._
push edx
call fcn.0057b230
mov edx, dword [esp + 4]
push edx
call fcn.0057b230
mov edx, 0x67dd0a
push edx
call fcn.0057b230
lea eax, [esp + 0x18]
push eax
call fcn.0057b350
mov dword [section..data], 0xa002df
mov edx, dword [esp]
push edx
call fcn.0057b460
pop edx
push eax
push edx
call fcn.0057b230
mov edx, 0x69a23e
push edx
call fcn.0057b230
lea eax, [esp + 0x14]
push eax
call fcn.0057b350
mov dword [section..data], 0xa002e1
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetDriveTypeW
mov dword [esp + 0x18], eax
mov dword [section..data], 0xa002e3
push dword [esp + 0x18]
mov dword [section..data], 0xa002e4
mov ebx, 2
cmp ebx, dword [esp]
jne 0x4478ef
mov dword [section..data], 0xa002e5
mov dword [esp + 0x20], 0xc0000000
mov dword [section..data], 0xa002e7
jmp 0x4479c8
mov dword [section..data], 0xa002e7
mov ebx, 5
cmp ebx, dword [esp]
jne 0x447924
mov dword [section..data], 0xa002e8
mov dword [esp + 0x20], closesocket
mov dword [section..data], 0xa002ea
jmp 0x4479c8
mov dword [section..data], 0xa002ea
mov dword [section..data], 0xa002eb
push edx
call fcn.0057b460
pop edx
push eax
push 0
push edx
call fcn.0057b460
pop edx
push eax
mov edx, str.ERROR__Cannot_eject._Drive_type_is_incorrect
push edx
call fcn.0057b230
push edx
call fcn.0057b460
pop edx
push eax
push edx
call fcn.0057b460
pop edx
push eax
mov eax, dword [esp + 0x30]
cdq
push edx
push eax
call fcn.0056a320
pop eax
mov edx, 0x69ad94
push edx
call fcn.0057b230
call fcn.0057b490
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0050d222
add dword [esp + 8], edx
call fcn.004ae98d
call fcn.0050d240
mov dword [section..data], 0xa002ec
mov dword [esp + 0xc], 0xfffffa22
mov dword [section..data], 0xa002ed
add esp, 4
jmp 0x448022
mov dword [section..data], 0xa002ee
pop eax
mov dword [section..data], 0xa002f0
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], 0xa002f2
mov ebx, dword [esp + 4]
cmp ebx, 0xffffffff
jne 0x447aa2
mov dword [section..data], 0xa002f4
push edx
call fcn.0057b460
pop edx
push eax
push 0
push edx
call fcn.0057b460
pop edx
push eax
mov edx, str.ERROR__Couldnt_get_a_handle_to_drive__
push edx
call fcn.0057b230
mov edx, dword [esp + 0xc]
push edx
call fcn.0057b230
mov edx, str.____Please_eject_manually_
push edx
call fcn.0057b230
call fcn.0057b490
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0050d222
add dword [esp + 8], edx
call fcn.004ae98d
call fcn.0050d240
mov dword [section..data], 0xa002f6
mov dword [esp + 8], 0xfffffa23
mov dword [section..data], 0xa002f7
jmp 0x448022
mov dword [section..data], 0xa002f8
mov dword [section..data], 0xa002fa
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.004ae98d
mov dword [section..data], 0xa002fc
mov ebx, dword [esp + 0x18]
cmp ebx, 2
jne 0x447eec
mov dword [section..data], 0xa002fd
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.004ae98d
mov dword [section..data], 0xa002ff
mov dword [esp + 8], 0xfffffa1e
mov dword [section..data], 0xa00300
mov dword [esp + 0xc], 1
jmp 0x447b3f
mov dword [section..data], 0xa00300
mov eax, 0x14
cmp eax, dword [esp + 0xc]
jl 0x447c24
mov dword [section..data], 0xa00301
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 0x447bcc
mov dword [section..data], 0xa00302
mov dword [esp + 8], 1
mov dword [section..data], 0xa00303
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.004ae98d
mov dword [section..data], 0xa00304
jmp 0x447c24
mov dword [section..data], 0xa00305
mov dword [section..data], 0xa00306
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.004ae98d
mov dword [section..data], 0xa00307
push pe_nt_image_headers32
call fcn.0056d07a
mov dword [section..data], 0xa00308
inc dword [esp + 0xc]
jno 0x447b35
mov dword [section..data], 0xa0030a
mov ebx, dword [esp + 8]
cmp ebx, 0xfffffa1e
jne 0x447cac
mov dword [section..data], 0xa0030b
push edx
call fcn.0057b460
pop edx
push eax
push 0
push edx
call fcn.0057b460
pop edx
push eax
mov edx, str.ERROR__Couldnt_lock_the_volume_in_drive
push edx
call fcn.0057b230
mov edx, dword [esp + 0xc]
push edx
call fcn.0057b230
mov edx, 0x67c6a6
push edx
call fcn.0057b230
call fcn.0057b490
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0050d222
add dword [esp + 8], edx
call fcn.004ae98d
call fcn.0050d240
mov dword [section..data], 0xa0030c
jmp 0x448022
mov dword [section..data], 0xa0030d
mov dword [section..data], 0xa0030f
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.004ae98d
mov dword [section..data], 0xa00312
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.004ae98d
mov dword [section..data], 0xa00314
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 0x447d40
xor eax, eax
jmp 0x447d45
mov eax, 1
and eax, eax
je 0x447dd1
mov dword [section..data], 0xa00315
push edx
call fcn.0057b460
pop edx
push eax
push 0
push edx
call fcn.0057b460
pop edx
push eax
mov edx, str.ERROR__Couldnt_dismount_the_volume_in_drive
push edx
call fcn.0057b230
mov edx, dword [esp + 0xc]
push edx
call fcn.0057b230
mov edx, 0x67c6a6
push edx
call fcn.0057b230
call fcn.0057b490
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0050d222
add dword [esp + 8], edx
call fcn.004ae98d
call fcn.0050d240
mov dword [section..data], 0xa00316
mov dword [esp + 8], 0xfffffa1d
mov dword [section..data], 0xa00317
jmp 0x448022
mov dword [section..data], 0xa00318
mov dword [section..data], 0xa0031b
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.004ae98d
mov dword [section..data], 0xa0031d
lea ebp, [esp + 0x24]
mov byte [ebp], 0
mov dword [section..data], 0xa0031e
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 0x447e51
xor eax, eax
jmp 0x447e56
mov eax, 1
and eax, eax
je 0x447ee2
mov dword [section..data], 0xa0031f
push edx
call fcn.0057b460
pop edx
push eax
push 0
push edx
call fcn.0057b460
pop edx
push eax
mov edx, str.ERROR__Couldnt_remove_the_media_in_drive
push edx
call fcn.0057b230
mov edx, dword [esp + 0xc]
push edx
call fcn.0057b230
mov edx, 0x67c6a6
push edx
call fcn.0057b230
call fcn.0057b490
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0050d222
add dword [esp + 8], edx
call fcn.004ae98d
call fcn.0050d240
mov dword [section..data], 0xa00320
mov dword [esp + 8], 0xfffffa1c
mov dword [section..data], 0xa00321
jmp 0x448022
mov dword [section..data], 0xa00322
mov dword [section..data], 0xa00324
mov dword [section..data], 0xa00326
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.004ae98d
mov dword [section..data], 0xa00328
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 0x447f5a
xor eax, eax
jmp 0x447f5f
mov eax, 1
and eax, eax
je 0x447fe8
mov dword [section..data], 0xa00329
push edx
call fcn.0057b460
pop edx
push eax
push 0
push edx
call fcn.0057b460
pop edx
push eax
mov edx, str.ERROR__Couldnt_eject_the_media_in_drive
push edx
call fcn.0057b230
mov edx, dword [esp + 0xc]
push edx
call fcn.0057b230
mov edx, 0x67c6a6
push edx
call fcn.0057b230
call fcn.0057b490
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0050d222
add dword [esp + 8], edx
call fcn.004ae98d
call fcn.0050d240
mov dword [section..data], 0xa0032a
mov dword [esp + 8], 0xfffffa1b
mov dword [section..data], 0xa0032b
jmp 0x448022
mov dword [section..data], 0xa0032c
mov dword [section..data], 0xa0032e
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.004ae98d
mov dword [section..data], 0xa00330
mov dword [section..data], 0xa00334
mov ebx, dword [esp + 4]
cmp ebx, 0xffffffff
je 0x44806e
mov dword [section..data], 0xa00335
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.004ae98d
mov dword [section..data], 0xa00337
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [section..data], 0xa00338
mov dword [section..data], 0xa0033a
push edx
call fcn.0057b460
pop edx
push eax
push 3
push edx
call fcn.0057b460
pop edx
push eax
mov edx, str.Result__
push edx
call fcn.0057b230
push edx
call fcn.0057b460
pop edx
push eax
push edx
call fcn.0057b460
pop edx
push eax
mov eax, dword [esp + 0x1c]
cdq
push edx
push eax
call fcn.0056a320
pop eax
mov edx, 0x67df2c
push edx
call fcn.0057b230
call fcn.0057b490
mov eax, str.DRVMS_EjectMedia
push eax
mov eax, str.drive_ms
push eax
call fcn.0050d222
add dword [esp + 8], edx
call fcn.004ae98d
call fcn.0050d240
mov dword [section..data], 0xa0033c
mov eax, dword [esp + 8]
jmp 0x44810a
push dword [esp + 0x14]
call fcn.0057b3c0
push dword [esp + 0x10]
call fcn.0057b3c0
push dword [esp]
call fcn.0057b3c0
add esp, 0x28
pop ebx
pop ebp
ret 4