Function at 0x4de790
Capabilities:
Unmount volume via ioctl

Disassembly:
sub esp, 0x124
mov eax, dword [str.._:]
mov ecx, dword [0x6d23ec]
mov edx, dword [0x6d23f0]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x144]
mov dword [esp + 0x24], eax
mov ax, word [0x6d23f4]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x700320]
xor esi, esi
mov dword [esp + 0x2c], edx
test edi, edi
mov word [esp + 0x30], ax
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
je 0x4de7ea
mov dword [edi], esi
mov dword [edi + 4], esi
cmp dword [0x7f2fa8], 2
jl 0x4de97e
mov dword [esp + 0x18], 0xc0000000
mov eax, dword [esp + 0x148]
test eax, eax
je 0x4de815
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x140]
lea eax, [esp + 0x34]
push edx
push str..PHYSICALDRIVE_d
push eax
call fcn.00526ec2
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x34]
push 0
push 0
push 3
push 0
push 3
push ecx
push edx
call dword [0x703240]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4de857
xor esi, esi
jmp 0x4de986
push esi
call fcn.004deb20
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x13c]
add esp, 4
mov dword [esp + 0x20], edx
test eax, eax
je 0x4de96d
push 0x720fe4
push 0x720fe8
push esi
call fcn.004cb880
mov eax, dword [0x720fe4]
add esp, 0xc
test eax, eax
jg 0x4de89f
lea eax, [esp + 0x10]
push 0
push eax
jmp 0x4de959
push esi
call fcn.004df7b0
mov eax, dword [0x720fe4]
add esp, 4
xor ebp, ebp
test eax, eax
jle 0x4de93f
mov ebx, 0x720f64
mov edi, 0x720fe8
mov cx, word [edi]
lea edx, [esp + 0x24]
push edx
mov word [esp + 0x30], cx
mov dword [ebx], 0
call fcn.004df9f0
mov esi, eax
add esp, 4
test esi, esi
je 0x4de928
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0
push 0
push 0
push 0x90018
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x90020
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dx, word [edi]
push 0
push edx
call fcn.00479b30
add esp, 8
mov dword [ebx], esi
mov eax, dword [0x720fe4]
inc ebp
add edi, 2
add ebx, 4
cmp ebp, eax
jl 0x4de8c1
mov edi, dword [esp + 0x144]
lea eax, [esp + 0x34]
push eax
call fcn.004df9f0
mov esi, eax
add esp, 4
test esi, esi
je 0x4de986
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x90018
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test edi, edi
je 0x4de97e
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [edi], edx
mov dword [edi + 4], eax
test esi, esi
jne 0x4dea31
mov eax, dword [esp + 0x148]
test eax, eax
jle 0x4de9aa
mov edx, eax
push 0
dec edx
mov dword [esp + 0x14c], edx
call fcn.004dea50
add esp, 4
jmp 0x4de7ff
call fcn.004dce10
mov edi, eax
mov eax, dword [esp + 0x13c]
test eax, eax
push edi
jne 0x4de9c8
lea ecx, [esp + 0x18]
call fcn.005443e7
jmp 0x4de9db
push eax
lea ecx, [esp + 0x1c]
push str._s_r_n_r_n_s
push ecx
call fcn.005412cd
add esp, 0x10
mov eax, dword [0x7693d0]
test eax, eax
jne 0x4dea07
mov eax, dword [0x720ec8]
test eax, eax
jne 0x4dea07
cmp dword [0x68d534], 0xffffffff
jne 0x4dea07
mov edx, dword [esp + 0x14]
push 0x10
push edx
call fcn.004dd630
add esp, 8
jmp 0x4dea27
push edi
push str.Error_opening_USB_drive:__s.
push 0x1083
call fcn.00506990
add esp, 8
push eax
push 1
push 0
call fcn.00502860
add esp, 0x10
push 0
call fcn.004dcde0
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00544250
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret