Function at 0x40f76b
Capabilities:
Check if file exists
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40f7c4
push 0xc0000000
push dword [ebp + 8]
call dword [0x49ae9c]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f8da
push 0x80000000
push dword [ebp + 8]
call dword [0x49ae9c]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f8da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40f8c8
xor eax, eax
inc eax
jmp 0x40f946
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call esi
cmp eax, 2
jne 0x40f7de
xor eax, eax
cmp word [edi + 2], 0x3a
sete al
jmp 0x40f7ff
push edi
call esi
cmp eax, 3
jne 0x40f7fd
lea eax, [edi + 2]
push 0x486818
push eax
call fcn.00470fec
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x40f7ff
xor eax, eax
test eax, eax
je 0x40f862
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
mov esi, str.._:
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, 0x20000000
push edi
push 3
push 0
push 3
mov word [ebp - 0x14], ax
push 0xc0000000
lea eax, [ebp - 0x1c]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f8d7
push 0
push edi
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x1c]
push eax
call esi
mov edi, dword [ebp + 0xc]
mov ebx, eax
jmp 0x40f7a4
push 0xc0000000
push edi
call dword [0x49aea0]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f8da
push 0x80000000
push edi
call dword [0x49aea0]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f8da
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x40f8c3
sub eax, 0x56
je 0x40f8c3
sub eax, 0x3a
je 0x40f8b0
sub eax, 0x7a
je 0x40f8b0
sub eax, 0x101b
je 0x40f8b0
push edi
call fcn.0040e587
pop ecx
jmp 0x40f8c3
push edi
push str.Not_a_mount_point:__1_ws__n
push 0x499830
call fcn.0040e52b
add esp, 0xc
push 9
pop eax
jmp 0x40f946
push str.Error_opening_device:
call fcn.0040e587
pop ecx
push 2
jmp 0x40f8c5
mov edi, dword [ebp + 0xc]
push ebx
call fcn.0040e5d8
test eax, eax
pop ecx
jne 0x40f8e9
push 5
jmp 0x40f93c
test byte [ebp + 0x10], 3
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
je 0x40f94b
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push eax
push eax
push 0x90018
push ebx
call esi
test eax, eax
je 0x40f92a
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push eax
push eax
push 0x90020
push ebx
call esi
test eax, eax
jne 0x40f94b
test edi, edi
jne 0x40f933
mov edi, str.Error
push edi
call fcn.0040e587
pop ecx
push 2
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push 8
push eax
push 0x83722014
push ebx
call esi
test eax, eax
jne 0x40f979
push edi
call fcn.0040e587
pop ecx
xor esi, esi
cmp dword [ebp - 0xc], esi
je 0x40f93d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push str._1_ws_:_Not_all_new_options_were_successfully_changed.
push 0x499830
call fcn.0040e52b
add esp, 0xc
push 3
jmp 0x40f8c5