Function at 0x422bf7
Capabilities:
Unmount volume via ioctl

Disassembly:
mov eax, 0x4e8d5d
call fcn.004b48a0
sub esp, 0x28
push ebx
push esi
push edi
mov esi, 0x4f5574
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
movsw word es:[edi], word [esi]
je 0x422c43
push dword [ebp + 8]
push ebx
call dword [0x51d268]
test eax, eax
jne 0x422fb7
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x422c37
mov eax, str.Error
push eax
call fcn.00422a7a
pop ecx
jmp 0x422f8b
push 0x448
lea ecx, [ebp - 0x10]
call fcn.004492b0
mov esi, dword [ebp + 0xc]
cmp esi, ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
jne 0x422cc4
push 0xc0000000
push dword [ebp + 8]
call dword [0x51d27c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x422e2d
push SysReAllocStringLen
push dword [ebp + 8]
call dword [0x51d27c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x422e2d
push 0x80
push dword [ebp + 8]
call dword [0x51d27c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x422e2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop esi
cmp eax, esi
jne 0x422e20
xor esi, esi
inc esi
jmp 0x422e84
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x422cde
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x422cff
push esi
call edi
cmp eax, 3
jne 0x422cfd
lea eax, [esi + 2]
push 0x4f5560
push eax
call fcn.004b3ec2
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x422cff
xor eax, eax
cmp eax, ebx
je 0x422da8
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
xor ecx, ecx
mov cx, 0x5a
mov esi, str.._:
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
cmp cx, ax
sbb ecx, ecx
movsd dword es:[edi], dword [esi]
inc ecx
cmp ax, 0x41
movsd dword es:[edi], dword [esi]
sbb edx, edx
inc edx
test edx, ecx
movsw word es:[edi], word [esi]
mov word [ebp - 0x2c], ax
je 0x422d45
push dword [ebp + 0x18]
movzx eax, ax
push ebx
push eax
call fcn.00422967
add esp, 0xc
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 0x422e2d
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 0x422e2d
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80
lea eax, [ebp - 0x34]
push eax
call esi
jmp 0x422ca0
push 0xc0000000
push esi
call dword [0x51d280]
mov edi, eax
cmp edi, 0xffffffff
jne 0x422e2d
push SysReAllocStringLen
push esi
call dword [0x51d280]
mov edi, eax
cmp edi, 0xffffffff
jne 0x422e2d
push 0x80
push esi
call dword [0x51d280]
mov edi, eax
cmp edi, 0xffffffff
jne 0x422e2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x422e1c
sub eax, 0x56
je 0x422e1c
sub eax, 0x3a
je 0x422e09
sub eax, 0x7a
je 0x422e09
sub eax, 0x101b
je 0x422e09
push esi
call fcn.00422a7a
pop ecx
jmp 0x422e1c
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x51abb0
call fcn.00422a1e
add esp, 0xc
push 9
jmp 0x422e83
push str.Error_opening_device:
call fcn.00422a7a
pop ecx
jmp 0x422e84
push edi
call fcn.00422acb
test eax, eax
pop ecx
jne 0x422e43
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
jmp 0x422e83
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
lea eax, [ebp + 0x14]
push eax
push 0x448
push dword [ebp - 0x14]
push ebx
push ebx
push 0x83722008
push edi
call esi
test eax, eax
jne 0x422e97
push dword [ebp + 0xc]
call fcn.00422a7a
push dword [ebp + 0xc]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x51abb0
call fcn.00422a1e
add esp, 0x10
push 2
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00443880
mov eax, esi
jmp 0x4230a0
cmp dword [ebp + 0x14], 0x36
jae 0x422eb7
push dword [ebp + 0xc]
push str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
push 0x51abb0
call fcn.00422a1e
add esp, 0xc
jmp 0x422f7f
mov eax, dword [ebp - 0x14]
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 0x422ee3
mov ax, word [ebp - 0x14]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
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 0x422f28
cmp dword [ebp + 0x10], ebx
je 0x422f6c
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 0x422f3d
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 0x422f6c
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 0x422f93
cmp dword [ebp + 0x10], ebx
je 0x422f66
push ebx
push edi
call dword [0x51d268]
neg eax
sbb eax, eax
inc eax
jmp 0x422f68
xor eax, eax
cmp eax, ebx
je 0x422f93
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x422f78
mov eax, str.Error
push eax
call fcn.00422a7a
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00443880
push 2
pop eax
jmp 0x4230a0
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.00443880
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x42309e
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x422fdc
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x422ffd
push esi
call edi
cmp eax, 3
jne 0x422ffb
lea eax, [esi + 2]
push 0x4f5560
push eax
call fcn.004b3ec2
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x422ffd
xor eax, eax
cmp eax, ebx
je 0x423058
mov esi, 0x4f5574
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp + 0xc]
mov ax, word [esi]
mov word [ebp - 0x24], ax
push ebx
lea eax, [ebp - 0x24]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x42302e
push esi
call fcn.00422a7a
pop ecx
xor eax, eax
mov ax, word [esi]
push eax
call fcn.00446ca0
pop ecx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x18]
push 3
push ebx
push 7
push 0x219
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x42309e
push esi
call dword [0x51d284]
test eax, eax
jne 0x42309e
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x42309e
sub eax, 0x56
je 0x42309e
sub eax, 0x3a
je 0x42308b
sub eax, 0x7a
je 0x42308b
sub eax, 0x101b
je 0x42308b
push esi
call fcn.00422a7a
pop ecx
jmp 0x42309e
push esi
push str.Not_a_mount_point:__1_ws__n
push 0x51abb0
call fcn.00422a1e
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret