Function at 0x40f59b
Capabilities:
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, 0x49171c
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
movsw word es:[edi], word [esi]
je 0x40f5e0
push dword [ebp + 8]
push ebx
call dword [0x4a6ec4]
test eax, eax
jne 0x40f945
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x40f5d4
mov eax, str.Error
push eax
call fcn.0040f433
pop ecx
jmp 0x40f91d
push 0x448
lea ecx, [ebp - 8]
call fcn.00433b18
mov esi, dword [ebp + 0xc]
cmp esi, ebx
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jne 0x40f65e
push 0xc0000000
push dword [ebp + 8]
call dword [0x4a6ed8]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f7c7
push 0x80000000
push dword [ebp + 8]
call dword [0x4a6ed8]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f7c7
push 0x80
push dword [ebp + 8]
call dword [0x4a6ed8]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f7c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop esi
cmp eax, esi
jne 0x40f7ba
xor esi, esi
inc esi
jmp 0x40f81e
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x40f678
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x40f699
push esi
call edi
cmp eax, 3
jne 0x40f697
lea eax, [esi + 2]
push 0x491708
push eax
call fcn.0047bf2c
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x40f699
xor eax, eax
cmp eax, ebx
je 0x40f742
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
xor ecx, ecx
mov cx, 0x5a
mov esi, str.._:
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
cmp cx, ax
sbb ecx, ecx
movsd dword es:[edi], dword [esi]
inc ecx
cmp ax, 0x41
movsd dword es:[edi], dword [esi]
sbb edx, edx
inc edx
test edx, ecx
movsw word es:[edi], word [esi]
mov word [ebp - 0x1c], ax
je 0x40f6df
push dword [ebp + 0x18]
movzx eax, ax
push ebx
push eax
call fcn.0040f320
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0xc0000000
lea eax, [ebp - 0x24]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f7c7
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x24]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f7c7
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80
lea eax, [ebp - 0x24]
push eax
call esi
jmp 0x40f63a
push 0xc0000000
push esi
call dword [0x4a6edc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f7c7
push 0x80000000
push esi
call dword [0x4a6edc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f7c7
push 0x80
push esi
call dword [0x4a6edc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f7c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x40f7b6
sub eax, 0x56
je 0x40f7b6
sub eax, 0x3a
je 0x40f7a3
sub eax, 0x7a
je 0x40f7a3
sub eax, 0x101b
je 0x40f7a3
push esi
call fcn.0040f433
pop ecx
jmp 0x40f7b6
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x4a5840
call fcn.0040f3d7
add esp, 0xc
push 9
jmp 0x40f81d
push str.Error_opening_device:
call fcn.0040f433
pop ecx
jmp 0x40f81e
push edi
call fcn.0040f484
test eax, eax
pop ecx
jne 0x40f7dd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
jmp 0x40f81d
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
lea eax, [ebp + 0x14]
push eax
push 0x448
push dword [ebp - 0xc]
push ebx
push ebx
push 0x83722008
push edi
call esi
test eax, eax
jne 0x40f82d
push dword [ebp + 0xc]
call fcn.0040f433
push dword [ebp + 0xc]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x4a5840
call fcn.0040f3d7
add esp, 0x10
push 2
pop esi
lea ecx, [ebp - 8]
call fcn.0042eb98
mov eax, esi
jmp 0x40fa2e
cmp dword [ebp + 0x14], 0x36
jae 0x40f84d
push dword [ebp + 0xc]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x4a5840
call fcn.0040f3d7
add esp, 0xc
jmp 0x40f915
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x2c]
xor ecx, ecx
cmp ax, bx
setne cl
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
test eax, ecx
je 0x40f879
mov ax, word [ebp - 0xc]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90018
push edi
call esi
test eax, eax
jne 0x40f8be
cmp dword [ebp + 0x10], ebx
je 0x40f902
push ebx
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90020
push edi
call esi
push ebx
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90018
push edi
call esi
jmp 0x40f8d3
push ebx
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90020
push edi
call esi
test eax, eax
je 0x40f902
push ebx
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x2d4808
push edi
call esi
test eax, eax
jne 0x40f925
cmp dword [ebp + 0x10], ebx
je 0x40f8fc
push ebx
push edi
call dword [0x4a6ec4]
neg eax
sbb eax, eax
inc eax
jmp 0x40f8fe
xor eax, eax
cmp eax, ebx
je 0x40f925
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x40f90e
mov eax, str.Error
push eax
call fcn.0040f433
pop ecx
lea ecx, [ebp - 8]
call fcn.0042eb98
push 2
pop eax
jmp 0x40fa2e
push ebx
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x9001c
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 8]
call fcn.0042eb98
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x40fa2c
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x40f96a
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x40f98b
push esi
call edi
cmp eax, 3
jne 0x40f989
lea eax, [esi + 2]
push 0x491708
push eax
call fcn.0047bf2c
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x40f98b
xor eax, eax
cmp eax, ebx
je 0x40f9e6
mov esi, 0x49171c
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp + 0xc]
mov ax, word [esi]
mov word [ebp - 8], ax
push ebx
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x40f9bc
push esi
call fcn.0040f433
pop ecx
xor eax, eax
mov ax, word [esi]
push eax
call fcn.00431825
pop ecx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x18]
push 3
push ebx
push 7
push 0x219
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x40fa2c
push esi
call dword [0x4a6ee0]
test eax, eax
jne 0x40fa2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x40fa2c
sub eax, 0x56
je 0x40fa2c
sub eax, 0x3a
je 0x40fa19
sub eax, 0x7a
je 0x40fa19
sub eax, 0x101b
je 0x40fa19
push esi
call fcn.0040f433
pop ecx
jmp 0x40fa2c
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x4a5840
call fcn.0040f3d7
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret