Function at 0x40d9b0
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, 0x47cae8
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 0x40d9fa
push dword [ebp + 0x70]
push ebx
call dword [0x48fe80]
test eax, eax
jne 0x40ddb5
mov eax, dword [ebp + 0x74]
cmp eax, ebx
jne 0x40d9ee
mov eax, str.Error
push eax
call fcn.0040d24e
pop ecx
jmp 0x40dd8d
push 0x448
lea ecx, [ebp + 0x64]
call fcn.0042add7
mov esi, dword [ebp + 0x74]
cmp esi, ebx
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x58], eax
jne 0x40da78
push 0xc0000000
push dword [ebp + 0x70]
call dword [0x48fe94]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40dc37
push 0x80000000
push dword [ebp + 0x70]
call dword [0x48fe94]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40dc37
push 0x80
push dword [ebp + 0x70]
call dword [0x48fe94]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40dc37
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop esi
cmp eax, esi
jne 0x40dc2a
xor esi, esi
inc esi
jmp 0x40dc8e
push esi
call fcn.00467467
cmp eax, 2
pop ecx
jne 0x40da90
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x40dab5
push esi
call fcn.00467467
cmp eax, 3
pop ecx
jne 0x40dab3
lea eax, [esi + 2]
push 0x47c650
push eax
call fcn.004673ef
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x40dab5
xor eax, eax
cmp eax, ebx
je 0x40dbb2
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 0x40db4f
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 0x40dc37
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 0x40dc37
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80
lea eax, [ebp + 0x40]
push eax
call esi
jmp 0x40da54
push 0xc0000000
push esi
call dword [0x48fe98]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40dc37
push 0x80000000
push esi
call dword [0x48fe98]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40dc37
push 0x80
push esi
call dword [0x48fe98]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40dc37
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x40dc26
sub eax, 0x56
je 0x40dc26
sub eax, 0x3a
je 0x40dc13
sub eax, 0x7a
je 0x40dc13
sub eax, 0x101b
je 0x40dc13
push esi
call fcn.0040d24e
pop ecx
jmp 0x40dc26
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x48e840
call fcn.0040d1f2
add esp, 0xc
push 9
jmp 0x40dc8d
push str.Error_opening_device:
call fcn.0040d24e
pop ecx
jmp 0x40dc8e
push edi
call fcn.0040d29f
test eax, eax
pop ecx
jne 0x40dc4d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
jmp 0x40dc8d
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 0x40dc9d
push dword [ebp + 0x74]
call fcn.0040d24e
push dword [ebp + 0x74]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x48e840
call fcn.0040d1f2
add esp, 0x10
push 2
pop esi
lea ecx, [ebp + 0x64]
call fcn.0042602e
mov eax, esi
jmp 0x40dee0
cmp dword [ebp + 0x7c], 0x36
jae 0x40dcbd
push dword [ebp + 0x74]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x48e840
call fcn.0040d1f2
add esp, 0xc
jmp 0x40dd85
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 0x40dce9
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 0x40dd2e
cmp dword [ebp + 0x78], ebx
je 0x40dd72
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 0x40dd43
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 0x40dd72
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 0x40dd95
cmp dword [ebp + 0x78], ebx
je 0x40dd6c
push ebx
push edi
call dword [0x48fe80]
neg eax
sbb eax, eax
inc eax
jmp 0x40dd6e
xor eax, eax
cmp eax, ebx
je 0x40dd95
mov eax, dword [ebp + 0x74]
cmp eax, ebx
jne 0x40dd7e
mov eax, str.Error
push eax
call fcn.0040d24e
pop ecx
lea ecx, [ebp + 0x64]
call fcn.0042602e
push 2
pop eax
jmp 0x40dee0
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.0042602e
mov esi, dword [ebp + 0x74]
cmp esi, ebx
je 0x40dede
push esi
call fcn.00467467
cmp eax, 2
pop ecx
jne 0x40ddd8
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x40ddfd
push esi
call fcn.00467467
cmp eax, 3
pop ecx
jne 0x40ddfb
lea eax, [esi + 2]
push 0x47c650
push eax
call fcn.004673ef
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x40ddfd
xor eax, eax
cmp eax, ebx
je 0x40de98
mov esi, 0x47cae8
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 0x40de51
push esi
call fcn.0040d24e
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 0x40dede
push esi
call dword [0x48fe9c]
test eax, eax
jne 0x40dede
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x40dede
sub eax, 0x56
je 0x40dede
sub eax, 0x3a
je 0x40decb
sub eax, 0x7a
je 0x40decb
sub eax, 0x101b
je 0x40decb
push esi
call fcn.0040d24e
pop ecx
jmp 0x40dede
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x48e840
call fcn.0040d1f2
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret