Function at 0x40dec8
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, 0x482c40
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 0x40df12
push dword [ebp + 0x70]
push ebx
call dword [0x496e70]
test eax, eax
jne 0x40e2cd
mov eax, dword [ebp + 0x74]
cmp eax, ebx
jne 0x40df06
mov eax, str.Error
push eax
call fcn.0040d65b
pop ecx
jmp 0x40e2a5
push 0x448
lea ecx, [ebp + 0x64]
call fcn.0042c29e
mov esi, dword [ebp + 0x74]
cmp esi, ebx
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x58], eax
jne 0x40df90
push 0xc0000000
push dword [ebp + 0x70]
call dword [0x496e84]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e14f
push 0x80000000
push dword [ebp + 0x70]
call dword [0x496e84]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e14f
push 0x80
push dword [ebp + 0x70]
call dword [0x496e84]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e14f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop esi
cmp eax, esi
jne 0x40e142
xor esi, esi
inc esi
jmp 0x40e1a6
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x40dfaa
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x40dfcb
push esi
call edi
cmp eax, 3
jne 0x40dfc9
lea eax, [esi + 2]
push 0x482740
push eax
call fcn.0046d18c
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x40dfcb
xor eax, eax
cmp eax, ebx
je 0x40e0ca
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 0x40e067
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 [0x495298]
lea eax, [ebp + 0x2c]
push 3
push eax
push 0x8001
push 0x219
push edi
call esi
lea eax, [ebp + 0x60]
push eax
push dword [0x495298]
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 0x40e14f
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 0x40e14f
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80
lea eax, [ebp + 0x40]
push eax
call esi
jmp 0x40df6c
push 0xc0000000
push esi
call dword [0x496e88]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e14f
push 0x80000000
push esi
call dword [0x496e88]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e14f
push 0x80
push esi
call dword [0x496e88]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e14f
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x40e13e
sub eax, 0x56
je 0x40e13e
sub eax, 0x3a
je 0x40e12b
sub eax, 0x7a
je 0x40e12b
sub eax, 0x101b
je 0x40e12b
push esi
call fcn.0040d65b
pop ecx
jmp 0x40e13e
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x495830
call fcn.0040d5ff
add esp, 0xc
push 9
jmp 0x40e1a5
push str.Error_opening_device:
call fcn.0040d65b
pop ecx
jmp 0x40e1a6
push edi
call fcn.0040d6ac
test eax, eax
pop ecx
jne 0x40e165
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
jmp 0x40e1a5
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 0x40e1b5
push dword [ebp + 0x74]
call fcn.0040d65b
push dword [ebp + 0x74]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x495830
call fcn.0040d5ff
add esp, 0x10
push 2
pop esi
lea ecx, [ebp + 0x64]
call fcn.0042704a
mov eax, esi
jmp 0x40e3f7
cmp dword [ebp + 0x7c], 0x36
jae 0x40e1d5
push dword [ebp + 0x74]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x495830
call fcn.0040d5ff
add esp, 0xc
jmp 0x40e29d
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 0x40e201
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 0x40e246
cmp dword [ebp + 0x78], ebx
je 0x40e28a
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 0x40e25b
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 0x40e28a
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 0x40e2ad
cmp dword [ebp + 0x78], ebx
je 0x40e284
push ebx
push edi
call dword [0x496e70]
neg eax
sbb eax, eax
inc eax
jmp 0x40e286
xor eax, eax
cmp eax, ebx
je 0x40e2ad
mov eax, dword [ebp + 0x74]
cmp eax, ebx
jne 0x40e296
mov eax, str.Error
push eax
call fcn.0040d65b
pop ecx
lea ecx, [ebp + 0x64]
call fcn.0042704a
push 2
pop eax
jmp 0x40e3f7
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.0042704a
mov esi, dword [ebp + 0x74]
cmp esi, ebx
je 0x40e3f5
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x40e2f2
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x40e313
push esi
call edi
cmp eax, 3
jne 0x40e311
lea eax, [esi + 2]
push 0x482740
push eax
call fcn.0046d18c
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x40e313
xor eax, eax
cmp eax, ebx
je 0x40e3af
mov esi, 0x482c40
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 0x40e367
push esi
call fcn.0040d65b
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 [0x495298]
push 3
push ebx
push 7
push 0x219
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x40e3f5
push esi
call dword [0x496e8c]
test eax, eax
jne 0x40e3f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x40e3f5
sub eax, 0x56
je 0x40e3f5
sub eax, 0x3a
je 0x40e3e2
sub eax, 0x7a
je 0x40e3e2
sub eax, 0x101b
je 0x40e3e2
push esi
call fcn.0040d65b
pop ecx
jmp 0x40e3f5
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x495830
call fcn.0040d5ff
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret