Function at 0x491bea
Capabilities:
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp + 8]
imul eax, eax, 0x35
cmp dword [eax + 0x53c264], 3
je 0x491c15
jmp 0x491f0e
push 0xa
push 0
lea ecx, [ebp - 0xc]
push ecx
call fcn.004b9030
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x535990
lea eax, [ebp - 0xc]
push eax
call fcn.004b953d
add esp, 0xc
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x4e68
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + ecx + 0x2fc0]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x491c71
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004a2acc
add esp, 0xc
test eax, eax
jne 0x491c71
jmp 0x491f0e
mov eax, 1
test eax, eax
je 0x491c83
mov dword [ebp - 0x2c], 0
jmp 0x491c97
mov ecx, dword [ebp + 8]
push ecx
push str._PowerOffAndOnToExitRDT_:_Device_handle_ok.__port__d__r_n
call fcn.00411ec0
add esp, 8
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x28]
add edx, 0x2db8
push edx
push str.POWER_OFF_then_ON
lea eax, [ebp - 0xc]
push eax
push 0x5359e4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004a23ee
add esp, 4
test eax, eax
jne 0x491ceb
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
imul eax, eax, 0x4e68
mov ecx, dword [ebp - 0x28]
mov dword [ecx + eax + 0x2fc0], 0xffffffff
jmp 0x491f0e
mov edx, 1
test edx, edx
je 0x491cfd
mov dword [ebp - 0x30], 0
jmp 0x491d11
mov eax, dword [ebp + 8]
push eax
push str._PowerOffAndOnToExitRDT_:_Power_off_ok.__port__d__r_n
call fcn.00411ec0
add esp, 8
mov dword [ebp - 0x30], eax
push 1
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004a248c
add esp, 8
test eax, eax
jne 0x491d49
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
imul eax, eax, 0x4e68
mov ecx, dword [ebp - 0x28]
mov dword [ecx + eax + 0x2fc0], 0xffffffff
jmp 0x491f0e
mov edx, 1
test edx, edx
je 0x491d5b
mov dword [ebp - 0x34], 0
jmp 0x491d6f
mov eax, dword [ebp + 8]
push eax
push str._PowerOffAndOnToExitRDT_:_Power_on_ok.__port__d__r_n
call fcn.00411ec0
add esp, 8
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x2db8
push ecx
push str.DETECT
lea edx, [ebp - 0xc]
push edx
push 0x535a5c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0x90018
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
push 0
push 0x90020
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.004ab048
add esp, 8
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0x9001c
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
push 0
push 0x90028
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
imul edx, edx, 0x4e68
mov eax, dword [ebp - 0x28]
mov dword [eax + edx + 0x2fc0], 0xffffffff
cmp dword [ebp - 0x10], 0
jne 0x491e66
mov ecx, 1
test ecx, ecx
je 0x491e4d
mov dword [ebp - 0x38], 0
jmp 0x491e61
mov edx, dword [ebp + 8]
push edx
push str._PowerOffAndOnToExitRDT_:_5_shot_fail.__port__d__r_n
call fcn.00411ec0
add esp, 8
mov dword [ebp - 0x38], eax
jmp 0x491f0e
mov eax, 1
test eax, eax
je 0x491e78
mov dword [ebp - 0x3c], 0
jmp 0x491e8c
mov ecx, dword [ebp + 8]
push ecx
push str._PowerOffAndOnToExitRDT_:_5_shot_ok.__port__d__r_n
call fcn.00411ec0
add esp, 8
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp + 8]
imul edx, edx, 0x35
mov dword [edx + 0x53c264], 4
push 0xb1
push 0x32
push 0x80ffff
push 0x535acc
push 1
push str.RDT_Finish
push 7
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.0047107d
mov ecx, dword [ebp + 8]
add ecx, 2
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.00404920
mov edx, dword [ebp + 8]
cmp dword [edx*4 + 0x53bd98], 0
jle 0x491f0e
cmp dword [0x53bd78], 0
je 0x491f00
push 0
mov eax, dword [ebp + 8]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 0xd0]
call fcn.00408762
mov edx, dword [ebp + 8]
mov dword [edx*4 + 0x53bd98], 0
mov esp, ebp
pop ebp
ret 4