Function at 0x40acc0
Capabilities:
Unmount volume via ioctl

Disassembly:
push 0xffffffffffffffff
push 0x44bb58
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4638dc]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
call fcn.0041591e
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40ad05
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x2c]
push edi
lea ecx, [esp + 0x18]
push str.._s
push ecx
mov dword [esp + 0x30], ebx
call fcn.00402cf0
mov edx, dword [esp + 0x20]
add esp, 0xc
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ade1
push edi
push 0x44fb68
lea esi, [ebp + 0x17c]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
call fcn.00402e90
add esp, 0x10
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00401a10
mov eax, dword [eax]
push ebx
push ebx
push eax
mov byte [esp + 0x30], 1
call fcn.0041d02a
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40adb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40add9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x40b0a1
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push ebx
push ebx
push 0x90018
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x40ae93
push edi
push str.Failed_to_lock__s.
add ebp, 0x17c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push ebp
call fcn.00402e90
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edx, [esp + 0x2c]
push edx
mov ecx, ebp
call fcn.00401a10
mov eax, dword [eax]
push ebx
push ebx
push eax
mov byte [esp + 0x30], 2
call fcn.0041d02a
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffe
jmp 0x40b0a1
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push ebx
push ebx
push 0x8000e004
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x40af45
push edi
push str.Failed_to_uninstall_device_information_for__s.
add ebp, 0x17c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push ebp
call fcn.00402e90
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edx, [esp + 0x2c]
push edx
mov ecx, ebp
call fcn.00401a10
mov eax, dword [eax]
push ebx
push ebx
push eax
mov byte [esp + 0x30], 3
call fcn.0041d02a
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffd
jmp 0x40b0a1
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push ebx
push ebx
push 0x90020
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x40afb9
push edi
push str.Failed_to_dismount__s.
add ebp, 0x17c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push ebp
call fcn.00402e90
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edx, [esp + 0x2c]
push edx
mov ecx, ebp
call fcn.00401a10
mov eax, dword [eax]
push ebx
push ebx
push eax
mov byte [esp + 0x30], 4
call fcn.0041d02a
lea ecx, [esp + 0x2c]
call fcn.00401410
lea ecx, [esp + 0x14]
call fcn.00401410
mov eax, 0xfffffffc
jmp 0x40b0a1
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push ebx
push ebx
push 0x9001c
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x40b02a
push edi
push str.Failed_to_unlock__s.
add ebp, 0x17c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push ebp
call fcn.00402e90
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edx, [esp + 0x2c]
push edx
mov ecx, ebp
call fcn.00401a10
mov eax, dword [eax]
push ebx
push ebx
push eax
mov byte [esp + 0x30], 5
call fcn.0041d02a
lea ecx, [esp + 0x2c]
call fcn.00401410
lea ecx, [esp + 0x14]
call fcn.00401410
mov eax, 0xfffffffb
jmp 0x40b0a1
push ebx
push edi
push 2
call dword [sym.imp.KERNEL32.DLL_DefineDosDeviceA]
test eax, eax
jne 0x40b08f
push edi
push str.Failed_to_remove__s.
add ebp, 0x17c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push ebp
call fcn.00402e90
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.00401a10
mov edx, dword [eax]
push ebx
push ebx
push edx
mov byte [esp + 0x30], 6
call fcn.0041d02a
lea ecx, [esp + 0x2c]
call fcn.00401410
lea ecx, [esp + 0x14]
call fcn.00401410
mov eax, 0xfffffffa
jmp 0x40b0a1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00401410
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4