Function at 0x497a92
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 + 0x5433f4], 3
je 0x497abd
jmp 0x497db6
push 0xa
push 0
lea ecx, [ebp - 0xc]
push ecx
call fcn.004be790
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x53cc68
lea eax, [ebp - 0xc]
push eax
call fcn.004bec9d
add esp, 0xc
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x4e68
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + ecx + 0x30dc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x497b19
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004a818a
add esp, 0xc
test eax, eax
jne 0x497b19
jmp 0x497db6
mov eax, 1
test eax, eax
je 0x497b2b
mov dword [ebp - 0x2c], 0
jmp 0x497b3f
mov ecx, dword [ebp + 8]
push ecx
push str._PowerOffAndOnToExitRDT_:_Device_handle_ok.__port__d__r_n
call fcn.00412500
add esp, 8
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x28]
add edx, 0x2ed4
push edx
push str.POWER_OFF_then_ON
lea eax, [ebp - 0xc]
push eax
push 0x53ccbc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004a7aac
add esp, 4
test eax, eax
jne 0x497b93
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 + 0x30dc], 0xffffffff
jmp 0x497db6
mov edx, 1
test edx, edx
je 0x497ba5
mov dword [ebp - 0x30], 0
jmp 0x497bb9
mov eax, dword [ebp + 8]
push eax
push str._PowerOffAndOnToExitRDT_:_Power_off_ok.__port__d__r_n
call fcn.00412500
add esp, 8
mov dword [ebp - 0x30], eax
push 1
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004a7b4a
add esp, 8
test eax, eax
jne 0x497bf1
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 + 0x30dc], 0xffffffff
jmp 0x497db6
mov edx, 1
test edx, edx
je 0x497c03
mov dword [ebp - 0x34], 0
jmp 0x497c17
mov eax, dword [ebp + 8]
push eax
push str._PowerOffAndOnToExitRDT_:_Power_on_ok.__port__d__r_n
call fcn.00412500
add esp, 8
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x2ed4
push ecx
push str.DETECT
lea edx, [ebp - 0xc]
push edx
push 0x53cd34
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.004b07a8
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 + 0x30dc], 0xffffffff
cmp dword [ebp - 0x10], 0
jne 0x497d0e
mov ecx, 1
test ecx, ecx
je 0x497cf5
mov dword [ebp - 0x38], 0
jmp 0x497d09
mov edx, dword [ebp + 8]
push edx
push str._PowerOffAndOnToExitRDT_:_5_shot_fail.__port__d__r_n
call fcn.00412500
add esp, 8
mov dword [ebp - 0x38], eax
jmp 0x497db6
mov eax, 1
test eax, eax
je 0x497d20
mov dword [ebp - 0x3c], 0
jmp 0x497d34
mov ecx, dword [ebp + 8]
push ecx
push str._PowerOffAndOnToExitRDT_:_5_shot_ok.__port__d__r_n
call fcn.00412500
add esp, 8
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp + 8]
imul edx, edx, 0x35
mov dword [edx + 0x5433f4], 4
push 0xb1
push 0x32
push 0x80ffff
push 0x53cda4
push 1
push str.RDT_Finish
push 7
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.004743ac
mov ecx, dword [ebp + 8]
add ecx, 2
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.00404960
mov edx, dword [ebp + 8]
cmp dword [edx*4 + 0x542f08], 0
jle 0x497db6
cmp dword [0x542ee8], 0
je 0x497da8
push 0
mov eax, dword [ebp + 8]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 0xd0]
call fcn.00408a24
mov edx, dword [ebp + 8]
mov dword [edx*4 + 0x542f08], 0
mov esp, ebp
pop ebp
ret 4