Function at 0x40e082
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, 0x482c30
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 0x40e0cc
push dword [ebp + 0x70]
push ebx
call dword [0x496e70]
test eax, eax
jne 0x40e487
mov eax, dword [ebp + 0x74]
cmp eax, ebx
jne 0x40e0c0
mov eax, str.Error
push eax
call fcn.0040d815
pop ecx
jmp 0x40e45f
push 0x448
lea ecx, [ebp + 0x64]
call fcn.0042c6b0
mov esi, dword [ebp + 0x74]
cmp esi, ebx
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x58], eax
jne 0x40e14a
push 0xc0000000
push dword [ebp + 0x70]
call dword [0x496e84]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e309
push 0x80000000
push dword [ebp + 0x70]
call dword [0x496e84]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e309
push 0x80
push dword [ebp + 0x70]
call dword [0x496e84]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e309
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop esi
cmp eax, esi
jne 0x40e2fc
xor esi, esi
inc esi
jmp 0x40e360
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x40e164
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x40e185
push esi
call edi
cmp eax, 3
jne 0x40e183
lea eax, [esi + 2]
push 0x482730
push eax
call fcn.0046d65c
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x40e185
xor eax, eax
cmp eax, ebx
je 0x40e284
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 0x40e221
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 0x40e309
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 0x40e309
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80
lea eax, [ebp + 0x40]
push eax
call esi
jmp 0x40e126
push 0xc0000000
push esi
call dword [0x496e88]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e309
push 0x80000000
push esi
call dword [0x496e88]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e309
push 0x80
push esi
call dword [0x496e88]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e309
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x40e2f8
sub eax, 0x56
je 0x40e2f8
sub eax, 0x3a
je 0x40e2e5
sub eax, 0x7a
je 0x40e2e5
sub eax, 0x101b
je 0x40e2e5
push esi
call fcn.0040d815
pop ecx
jmp 0x40e2f8
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x495830
call fcn.0040d7b9
add esp, 0xc
push 9
jmp 0x40e35f
push str.Error_opening_device:
call fcn.0040d815
pop ecx
jmp 0x40e360
push edi
call fcn.0040d866
test eax, eax
pop ecx
jne 0x40e31f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
jmp 0x40e35f
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 0x40e36f
push dword [ebp + 0x74]
call fcn.0040d815
push dword [ebp + 0x74]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x495830
call fcn.0040d7b9
add esp, 0x10
push 2
pop esi
lea ecx, [ebp + 0x64]
call fcn.00427365
mov eax, esi
jmp 0x40e5b1
cmp dword [ebp + 0x7c], 0x36
jae 0x40e38f
push dword [ebp + 0x74]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x495830
call fcn.0040d7b9
add esp, 0xc
jmp 0x40e457
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 0x40e3bb
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 0x40e400
cmp dword [ebp + 0x78], ebx
je 0x40e444
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 0x40e415
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 0x40e444
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 0x40e467
cmp dword [ebp + 0x78], ebx
je 0x40e43e
push ebx
push edi
call dword [0x496e70]
neg eax
sbb eax, eax
inc eax
jmp 0x40e440
xor eax, eax
cmp eax, ebx
je 0x40e467
mov eax, dword [ebp + 0x74]
cmp eax, ebx
jne 0x40e450
mov eax, str.Error
push eax
call fcn.0040d815
pop ecx
lea ecx, [ebp + 0x64]
call fcn.00427365
push 2
pop eax
jmp 0x40e5b1
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.00427365
mov esi, dword [ebp + 0x74]
cmp esi, ebx
je 0x40e5af
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x40e4ac
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x40e4cd
push esi
call edi
cmp eax, 3
jne 0x40e4cb
lea eax, [esi + 2]
push 0x482730
push eax
call fcn.0046d65c
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x40e4cd
xor eax, eax
cmp eax, ebx
je 0x40e569
mov esi, 0x482c30
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 0x40e521
push esi
call fcn.0040d815
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 0x40e5af
push esi
call dword [0x496e8c]
test eax, eax
jne 0x40e5af
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x40e5af
sub eax, 0x56
je 0x40e5af
sub eax, 0x3a
je 0x40e59c
sub eax, 0x7a
je 0x40e59c
sub eax, 0x101b
je 0x40e59c
push esi
call fcn.0040d815
pop ecx
jmp 0x40e5af
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x495830
call fcn.0040d7b9
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret