Function at 0x40c9db
Capabilities:
Unmount volume via ioctl

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x144
push ebx
push esi
push edi
mov esi, 0x4777e8
lea edi, [ebp + 0x50]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
cmp dword [ebp + 0x7c], ebx
movsw word es:[edi], word [esi]
je 0x40ca25
push dword [ebp + 0x70]
push ebx
call dword [0x48ae74]
test eax, eax
jne 0x40cde0
mov eax, dword [ebp + 0x74]
cmp eax, ebx
jne 0x40ca19
mov eax, str.Error
push eax
call fcn.0040c346
pop ecx
jmp 0x40cdb8
push 0x448
lea ecx, [ebp + 0x64]
call fcn.00424576
mov esi, dword [ebp + 0x74]
cmp esi, ebx
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x58], eax
jne 0x40caa3
push 0xc0000000
push dword [ebp + 0x70]
call dword [0x48ae88]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40cc62
push 0x80000000
push dword [ebp + 0x70]
call dword [0x48ae88]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40cc62
push 0x80
push dword [ebp + 0x70]
call dword [0x48ae88]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40cc62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop esi
cmp eax, esi
jne 0x40cc55
xor esi, esi
inc esi
jmp 0x40ccb9
push esi
call fcn.0046176a
cmp eax, 2
pop ecx
jne 0x40cabb
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x40cae0
push esi
call fcn.0046176a
cmp eax, 3
pop ecx
jne 0x40cade
lea eax, [esi + 2]
push 0x4774a0
push eax
call fcn.0046247f
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x40cae0
xor eax, eax
cmp eax, ebx
je 0x40cbdd
mov eax, dword [ebp + 0x74]
mov cx, word [eax]
xor eax, eax
mov ax, 0x5a
mov esi, str.._:
lea edi, [ebp + 0x40]
movsd dword es:[edi], dword [esi]
cmp ax, cx
sbb eax, eax
movsd dword es:[edi], dword [esi]
inc eax
cmp cx, 0x41
movsd dword es:[edi], dword [esi]
sbb edx, edx
inc edx
test edx, eax
movsw word es:[edi], word [esi]
mov word [ebp + 0x48], cx
je 0x40cb7a
xor eax, eax
mov dword [ebp + 0x2c], 0x14
mov dword [ebp + 0x30], 2
lea edi, [ebp + 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
xor eax, eax
inc eax
add ecx, 0xffffffbf
shl eax, cl
mov edi, 0xffff
mov dword [ebp + 0x38], eax
lea eax, [ebp + 0x60]
push eax
push 0xfa0
push 3
lea eax, [ebp + 0x2c]
push eax
push 0x8001
push 0x219
push edi
call esi
lea eax, [ebp + 0x60]
push eax
push 0xfa0
push 3
lea eax, [ebp + 0x2c]
push eax
push 0x8003
push 0x219
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0xc0000000
lea eax, [ebp + 0x40]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40cc62
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp + 0x40]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40cc62
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80
lea eax, [ebp + 0x40]
push eax
call esi
jmp 0x40ca7f
push 0xc0000000
push esi
call dword [0x48ae8c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40cc62
push 0x80000000
push esi
call dword [0x48ae8c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40cc62
push 0x80
push esi
call dword [0x48ae8c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40cc62
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x40cc51
sub eax, 0x56
je 0x40cc51
sub eax, 0x3a
je 0x40cc3e
sub eax, 0x7a
je 0x40cc3e
sub eax, 0x101b
je 0x40cc3e
push esi
call fcn.0040c346
pop ecx
jmp 0x40cc51
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x489840
call fcn.0040c2ea
add esp, 0xc
push 9
jmp 0x40ccb8
push str.Error_opening_device:
call fcn.0040c346
pop ecx
jmp 0x40ccb9
push edi
call fcn.0040c397
test eax, eax
pop ecx
jne 0x40cc78
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
jmp 0x40ccb8
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
lea eax, [ebp + 0x7c]
push eax
push 0x448
push dword [ebp + 0x58]
push ebx
push ebx
push 0x83722008
push edi
call esi
test eax, eax
jne 0x40ccc8
push dword [ebp + 0x74]
call fcn.0040c346
push dword [ebp + 0x74]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x489840
call fcn.0040c2ea
add esp, 0x10
push 2
pop esi
lea ecx, [ebp + 0x64]
call fcn.00424686
mov eax, esi
jmp 0x40cf0b
cmp dword [ebp + 0x7c], 0x36
jae 0x40cce8
push dword [ebp + 0x74]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x489840
call fcn.0040c2ea
add esp, 0xc
jmp 0x40cdb0
mov eax, dword [ebp + 0x58]
movzx eax, word [eax + 0x2c]
xor ecx, ecx
cmp ax, bx
setne cl
mov dword [ebp + 0x60], eax
xor eax, eax
cmp dword [ebp + 0x74], ebx
sete al
test eax, ecx
je 0x40cd14
mov ax, word [ebp + 0x60]
mov word [ebp + 0x50], ax
lea eax, [ebp + 0x50]
mov dword [ebp + 0x74], eax
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
lea eax, [ebp + 0x7c]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90018
push edi
call esi
test eax, eax
jne 0x40cd59
cmp dword [ebp + 0x78], ebx
je 0x40cd9d
push ebx
lea eax, [ebp + 0x7c]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90020
push edi
call esi
push ebx
lea eax, [ebp + 0x7c]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90018
push edi
call esi
jmp 0x40cd6e
push ebx
lea eax, [ebp + 0x7c]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90020
push edi
call esi
test eax, eax
je 0x40cd9d
push ebx
lea eax, [ebp + 0x7c]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x2d4808
push edi
call esi
test eax, eax
jne 0x40cdc0
cmp dword [ebp + 0x78], ebx
je 0x40cd97
push ebx
push edi
call dword [0x48ae74]
neg eax
sbb eax, eax
inc eax
jmp 0x40cd99
xor eax, eax
cmp eax, ebx
je 0x40cdc0
mov eax, dword [ebp + 0x74]
cmp eax, ebx
jne 0x40cda9
mov eax, str.Error
push eax
call fcn.0040c346
pop ecx
lea ecx, [ebp + 0x64]
call fcn.00424686
push 2
pop eax
jmp 0x40cf0b
push ebx
lea eax, [ebp + 0x7c]
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 + 0x64]
call fcn.00424686
mov esi, dword [ebp + 0x74]
cmp esi, ebx
je 0x40cf09
push esi
call fcn.0046176a
cmp eax, 2
pop ecx
jne 0x40ce03
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x40ce28
push esi
call fcn.0046176a
cmp eax, 3
pop ecx
jne 0x40ce26
lea eax, [esi + 2]
push 0x4774a0
push eax
call fcn.0046247f
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x40ce28
xor eax, eax
cmp eax, ebx
je 0x40cec3
mov esi, 0x4777e8
lea edi, [ebp + 0x58]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x20
pop ecx
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints_
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
push 0x21
movsw word es:[edi], word [esi]
pop ecx
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints2_
lea edi, [ebp - 0xdc]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x74]
mov ax, word [esi]
mov word [ebp + 0x58], ax
push ebx
lea eax, [ebp + 0x58]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x40ce7c
push esi
call fcn.0040c346
pop ecx
mov ax, word [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov word [ebp + 0x26], ax
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x58]
push eax
mov edi, 0x80000001
push edi
call esi
lea eax, [ebp - 0xdc]
push eax
push edi
call esi
lea eax, [ebp + 0x60]
push eax
push 0xfa0
push 3
push ebx
push 7
push 0x219
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x40cf09
push esi
call dword [0x48ae90]
test eax, eax
jne 0x40cf09
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x40cf09
sub eax, 0x56
je 0x40cf09
sub eax, 0x3a
je 0x40cef6
sub eax, 0x7a
je 0x40cef6
sub eax, 0x101b
je 0x40cef6
push esi
call fcn.0040c346
pop ecx
jmp 0x40cf09
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x489840
call fcn.0040c2ea
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret