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

Disassembly:
mov eax, 0x4e4ac2
call fcn.004afe60
sub esp, 0x144
push ebx
push esi
push edi
mov esi, 0x4f1470
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
movsw word es:[edi], word [esi]
je 0x4217d0
push dword [ebp + 8]
push ebx
call dword [0x519118]
test eax, eax
jne 0x421b9a
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x4217c4
mov eax, str.Error
push eax
call fcn.00420ed4
pop ecx
jmp 0x421b6e
push 0x448
lea ecx, [ebp - 0x10]
call fcn.00446080
mov esi, dword [ebp + 0xc]
cmp esi, ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
jne 0x421851
push 0xc0000000
push dword [ebp + 8]
call dword [0x51912c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x421a10
push SysReAllocStringLen
push dword [ebp + 8]
call dword [0x51912c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x421a10
push 0x80
push dword [ebp + 8]
call dword [0x51912c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x421a10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop esi
cmp eax, esi
jne 0x421a03
xor esi, esi
inc esi
jmp 0x421a67
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x42186b
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x42188c
push esi
call edi
cmp eax, 3
jne 0x42188a
lea eax, [esi + 2]
push 0x4f0f70
push eax
call fcn.004af242
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x42188c
xor eax, eax
cmp eax, ebx
je 0x42198b
mov eax, dword [ebp + 0xc]
mov cx, word [eax]
xor eax, eax
mov ax, 0x5a
mov esi, str.._:
lea edi, [ebp - 0x34]
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 - 0x2c], cx
je 0x421928
xor eax, eax
mov dword [ebp - 0x48], 0x14
mov dword [ebp - 0x44], 2
lea edi, [ebp - 0x40]
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 - 0x3c], eax
lea eax, [ebp - 0x14]
push eax
push dword [0x515300]
lea eax, [ebp - 0x48]
push 3
push eax
push 0x8001
push 0x219
push edi
call esi
lea eax, [ebp - 0x14]
push eax
push dword [0x515300]
lea eax, [ebp - 0x48]
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 - 0x34]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x421a10
push ebx
push 0x20000000
push 3
push ebx
push 3
push SysReAllocStringLen
lea eax, [ebp - 0x34]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x421a10
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80
lea eax, [ebp - 0x34]
push eax
call esi
jmp 0x42182d
push 0xc0000000
push esi
call dword [0x519130]
mov edi, eax
cmp edi, 0xffffffff
jne 0x421a10
push SysReAllocStringLen
push esi
call dword [0x519130]
mov edi, eax
cmp edi, 0xffffffff
jne 0x421a10
push 0x80
push esi
call dword [0x519130]
mov edi, eax
cmp edi, 0xffffffff
jne 0x421a10
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x4219ff
sub eax, 0x56
je 0x4219ff
sub eax, 0x3a
je 0x4219ec
sub eax, 0x7a
je 0x4219ec
sub eax, 0x101b
je 0x4219ec
push esi
call fcn.00420ed4
pop ecx
jmp 0x4219ff
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x516ba0
call fcn.00420e78
add esp, 0xc
push 9
jmp 0x421a66
push str.Error_opening_device:
call fcn.00420ed4
pop ecx
jmp 0x421a67
push edi
call fcn.00420f25
test eax, eax
pop ecx
jne 0x421a26
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
jmp 0x421a66
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
lea eax, [ebp + 0x14]
push eax
push 0x448
push dword [ebp - 0x1c]
push ebx
push ebx
push 0x83722008
push edi
call esi
test eax, eax
jne 0x421a7a
push dword [ebp + 0xc]
call fcn.00420ed4
push dword [ebp + 0xc]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x516ba0
call fcn.00420e78
add esp, 0x10
push 2
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043f290
mov eax, esi
jmp 0x421ccd
cmp dword [ebp + 0x14], 0x36
jae 0x421a9a
push dword [ebp + 0xc]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x516ba0
call fcn.00420e78
add esp, 0xc
jmp 0x421b62
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0x2c]
xor ecx, ecx
cmp ax, bx
setne cl
mov dword [ebp - 0x14], eax
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
test eax, ecx
je 0x421ac6
mov ax, word [ebp - 0x14]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x24]
mov dword [ebp + 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90018
push edi
call esi
test eax, eax
jne 0x421b0b
cmp dword [ebp + 0x10], ebx
je 0x421b4f
push ebx
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90020
push edi
call esi
push ebx
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90018
push edi
call esi
jmp 0x421b20
push ebx
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90020
push edi
call esi
test eax, eax
je 0x421b4f
push ebx
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x2d4808
push edi
call esi
test eax, eax
jne 0x421b76
cmp dword [ebp + 0x10], ebx
je 0x421b49
push ebx
push edi
call dword [0x519118]
neg eax
sbb eax, eax
inc eax
jmp 0x421b4b
xor eax, eax
cmp eax, ebx
je 0x421b76
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x421b5b
mov eax, str.Error
push eax
call fcn.00420ed4
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043f290
push 2
pop eax
jmp 0x421ccd
push ebx
lea eax, [ebp + 0x14]
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]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043f290
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x421ccb
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x421bbf
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x421be0
push esi
call edi
cmp eax, 3
jne 0x421bde
lea eax, [esi + 2]
push 0x4f0f70
push eax
call fcn.004af242
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x421be0
xor eax, eax
cmp eax, ebx
je 0x421c85
mov esi, 0x4f1470
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x20
pop ecx
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints_
lea edi, [ebp - 0xcc]
rep movsd dword es:[edi], dword [esi]
push 0x21
movsw word es:[edi], word [esi]
pop ecx
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints2_
lea edi, [ebp - 0x150]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov ax, word [esi]
mov word [ebp - 0x1c], ax
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x421c37
push esi
call fcn.00420ed4
pop ecx
mov ax, word [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov word [ebp - 0x4e], ax
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xcc]
push eax
mov edi, SysReAllocStringLen
push edi
call esi
lea eax, [ebp - 0x150]
push eax
push edi
call esi
lea eax, [ebp - 0x14]
push eax
push dword [0x515300]
push 3
push ebx
push 7
push 0x219
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x421ccb
push esi
call dword [0x519134]
test eax, eax
jne 0x421ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x421ccb
sub eax, 0x56
je 0x421ccb
sub eax, 0x3a
je 0x421cb8
sub eax, 0x7a
je 0x421cb8
sub eax, 0x101b
je 0x421cb8
push esi
call fcn.00420ed4
pop ecx
jmp 0x421ccb
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x516ba0
call fcn.00420e78
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret