Function at 0x488962
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 + 0x52df74], 3
je 0x48898d
jmp 0x488c86
push 0xa
push 0
lea ecx, [ebp - 0xc]
push ecx
call fcn.004adbd0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x527b70
lea eax, [ebp - 0xc]
push eax
call fcn.004ae0dd
add esp, 0xc
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x4e68
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + ecx + 0x28e0]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4889e9
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00497eae
add esp, 0xc
test eax, eax
jne 0x4889e9
jmp 0x488c86
mov eax, 1
test eax, eax
je 0x4889fb
mov dword [ebp - 0x2c], 0
jmp 0x488a0f
mov ecx, dword [ebp + 8]
push ecx
push str._PowerOffAndOnToExitRDT_:_Device_handle_ok.__port__d__r_n
call fcn.004110a0
add esp, 8
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x28]
add edx, 0x26d8
push edx
push str.POWER_OFF_then_ON
lea eax, [ebp - 0xc]
push eax
push 0x527bc4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004977d0
add esp, 4
test eax, eax
jne 0x488a63
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 + 0x28e0], 0xffffffff
jmp 0x488c86
mov edx, 1
test edx, edx
je 0x488a75
mov dword [ebp - 0x30], 0
jmp 0x488a89
mov eax, dword [ebp + 8]
push eax
push str._PowerOffAndOnToExitRDT_:_Power_off_ok.__port__d__r_n
call fcn.004110a0
add esp, 8
mov dword [ebp - 0x30], eax
push 1
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0049786e
add esp, 8
test eax, eax
jne 0x488ac1
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 + 0x28e0], 0xffffffff
jmp 0x488c86
mov edx, 1
test edx, edx
je 0x488ad3
mov dword [ebp - 0x34], 0
jmp 0x488ae7
mov eax, dword [ebp + 8]
push eax
push str._PowerOffAndOnToExitRDT_:_Power_on_ok.__port__d__r_n
call fcn.004110a0
add esp, 8
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x26d8
push ecx
push str.DETECT
lea edx, [ebp - 0xc]
push edx
push 0x527c3c
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.0049fc8c
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 + 0x28e0], 0xffffffff
cmp dword [ebp - 0x10], 0
jne 0x488bde
mov ecx, 1
test ecx, ecx
je 0x488bc5
mov dword [ebp - 0x38], 0
jmp 0x488bd9
mov edx, dword [ebp + 8]
push edx
push str._PowerOffAndOnToExitRDT_:_5_shot_fail.__port__d__r_n
call fcn.004110a0
add esp, 8
mov dword [ebp - 0x38], eax
jmp 0x488c86
mov eax, 1
test eax, eax
je 0x488bf0
mov dword [ebp - 0x3c], 0
jmp 0x488c04
mov ecx, dword [ebp + 8]
push ecx
push str._PowerOffAndOnToExitRDT_:_5_shot_ok.__port__d__r_n
call fcn.004110a0
add esp, 8
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp + 8]
imul edx, edx, 0x35
mov dword [edx + 0x52df74], 4
push 0xb1
push 0x32
push 0x80ffff
push 0x527cac
push 1
push str.RDT_Finish
push 7
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.0046a84c
mov ecx, dword [ebp + 8]
add ecx, 2
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.00404910
mov edx, dword [ebp + 8]
cmp dword [edx*4 + 0x52db18], 0
jle 0x488c86
cmp dword [0x52daf8], 0
je 0x488c78
push 0
mov eax, dword [ebp + 8]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 0xd0]
call fcn.004072c2
mov edx, dword [ebp + 8]
mov dword [edx*4 + 0x52db18], 0
mov esp, ebp
pop ebp
ret 4