Function at 0x40edf4
Capabilities:
Delete registry key
Unmount volume via ioctl

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x144
push ebx
push esi
push edi
mov esi, 0x486d18
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 0x40ee3e
push dword [ebp + 0x70]
push ebx
call dword [0x49ae88]
test eax, eax
jne 0x40f1f9
mov eax, dword [ebp + 0x74]
cmp eax, ebx
jne 0x40ee32
mov eax, str.Error
push eax
call fcn.0040e587
pop ecx
jmp 0x40f1d1
push 0x448
lea ecx, [ebp + 0x64]
call fcn.0042e06b
mov esi, dword [ebp + 0x74]
cmp esi, ebx
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x58], eax
jne 0x40eebc
push 0xc0000000
push dword [ebp + 0x70]
call dword [0x49ae9c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f07b
push 0x80000000
push dword [ebp + 0x70]
call dword [0x49ae9c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f07b
push 0x80
push dword [ebp + 0x70]
call dword [0x49ae9c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f07b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop esi
cmp eax, esi
jne 0x40f06e
xor esi, esi
inc esi
jmp 0x40f0d2
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x40eed6
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x40eef7
push esi
call edi
cmp eax, 3
jne 0x40eef5
lea eax, [esi + 2]
push 0x486818
push eax
call fcn.00470fec
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x40eef7
xor eax, eax
cmp eax, ebx
je 0x40eff6
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 0x40ef93
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 dword [0x499298]
lea eax, [ebp + 0x2c]
push 3
push eax
push 0x8001
push 0x219
push edi
call esi
lea eax, [ebp + 0x60]
push eax
push dword [0x499298]
lea eax, [ebp + 0x2c]
push 3
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 0x40f07b
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 0x40f07b
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80
lea eax, [ebp + 0x40]
push eax
call esi
jmp 0x40ee98
push 0xc0000000
push esi
call dword [0x49aea0]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f07b
push 0x80000000
push esi
call dword [0x49aea0]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f07b
push 0x80
push esi
call dword [0x49aea0]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f07b
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x40f06a
sub eax, 0x56
je 0x40f06a
sub eax, 0x3a
je 0x40f057
sub eax, 0x7a
je 0x40f057
sub eax, 0x101b
je 0x40f057
push esi
call fcn.0040e587
pop ecx
jmp 0x40f06a
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x499830
call fcn.0040e52b
add esp, 0xc
push 9
jmp 0x40f0d1
push str.Error_opening_device:
call fcn.0040e587
pop ecx
jmp 0x40f0d2
push edi
call fcn.0040e5d8
test eax, eax
pop ecx
jne 0x40f091
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
jmp 0x40f0d1
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 0x40f0e1
push dword [ebp + 0x74]
call fcn.0040e587
push dword [ebp + 0x74]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x499830
call fcn.0040e52b
add esp, 0x10
push 2
pop esi
lea ecx, [ebp + 0x64]
call fcn.00428a48
mov eax, esi
jmp 0x40f323
cmp dword [ebp + 0x7c], 0x36
jae 0x40f101
push dword [ebp + 0x74]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x499830
call fcn.0040e52b
add esp, 0xc
jmp 0x40f1c9
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 0x40f12d
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 0x40f172
cmp dword [ebp + 0x78], ebx
je 0x40f1b6
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 0x40f187
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 0x40f1b6
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 0x40f1d9
cmp dword [ebp + 0x78], ebx
je 0x40f1b0
push ebx
push edi
call dword [0x49ae88]
neg eax
sbb eax, eax
inc eax
jmp 0x40f1b2
xor eax, eax
cmp eax, ebx
je 0x40f1d9
mov eax, dword [ebp + 0x74]
cmp eax, ebx
jne 0x40f1c2
mov eax, str.Error
push eax
call fcn.0040e587
pop ecx
lea ecx, [ebp + 0x64]
call fcn.00428a48
push 2
pop eax
jmp 0x40f323
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.00428a48
mov esi, dword [ebp + 0x74]
cmp esi, ebx
je 0x40f321
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x40f21e
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x40f23f
push esi
call edi
cmp eax, 3
jne 0x40f23d
lea eax, [esi + 2]
push 0x486818
push eax
call fcn.00470fec
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x40f23f
xor eax, eax
cmp eax, ebx
je 0x40f2db
mov esi, 0x486d18
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 0x40f293
push esi
call fcn.0040e587
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 dword [0x499298]
push 3
push ebx
push 7
push 0x219
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x40f321
push esi
call dword [0x49aea4]
test eax, eax
jne 0x40f321
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x40f321
sub eax, 0x56
je 0x40f321
sub eax, 0x3a
je 0x40f30e
sub eax, 0x7a
je 0x40f30e
sub eax, 0x101b
je 0x40f30e
push esi
call fcn.0040e587
pop ecx
jmp 0x40f321
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x499830
call fcn.0040e52b
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret