Function at 0x10005e40
Capabilities:
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001a230
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x10020040]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push eax
push ecx
mov edi, ebx
lea esi, [esp + 0x38]
call fcn.10003f70
xor edi, edi
mov dword [esp + 0x68], edi
cmp dword [ebp + 0xc], edi
jne 0x10005ee7
push 0x90018
xor edx, edx
mov eax, esi
call fcn.100040d0
mov esi, eax
lea eax, [esp + 0x30]
cmp esi, edi
jne 0x10005ecb
push 0x90020
xor edx, edx
call fcn.100040d0
mov esi, eax
cmp esi, edi
je 0x10005ee7
push 0x9001c
xor edx, edx
lea eax, [esp + 0x34]
call fcn.100040d0
lea eax, [esp + 0x30]
call fcn.10004000
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x50]
mov dword [edx], 0x20002
mov eax, dword [esp + 0x50]
push 0x40
push 0x40
lea esi, [esp + 0x38]
mov dword [eax + 0x18], edi
call fcn.10004220
cmp eax, edi
jne 0x10005f23
mov ecx, dword [esp + 0x58]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10005f27
call fcn.10003e30
cmp eax, edi
je 0x10005f27
mov ebx, eax
jmp 0x10005f35
mov edx, dword [esp + 0x50]
cmp dword [edx + 4], edi
je 0x10005f88
mov ebx, 0x80004005
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x10005f55
mov eax, dword [eax + 8]
cmp eax, edi
je 0x10005f55
push eax
call esi
mov eax, dword [esp + 0x58]
cmp eax, edi
je 0x10005f60
push eax
call esi
mov eax, dword [esp + 0x50]
cmp eax, edi
je 0x10005f6f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x54]
cmp eax, edi
je 0x1000613e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x1000613e
mov dword [esp + 0x14], edi
mov byte [esp + 0x68], 1
mov edi, dword [0x10021e00]
test edi, edi
je 0x10005fa3
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov dword [esp + 0x14], edi
test edi, edi
je 0x10006042
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x18], eax
cmp eax, dword [ebx + 0x40]
jbe 0x10005fc0
call fcn.1000eeb5
mov esi, dword [ebx + 0x30]
mov ebx, dword [esp + 0x18]
jmp 0x10005fd0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x18], ecx
cmp dword [eax + 0x3c], ecx
jbe 0x10005fe7
call fcn.1000eeb5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
test esi, esi
je 0x10005ff2
cmp esi, eax
je 0x10005ff7
call fcn.1000eeb5
cmp ebx, dword [esp + 0x18]
je 0x1000603f
test esi, esi
jne 0x10006037
call fcn.1000eeb5
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x10006012
call fcn.1000eeb5
mov eax, dword [ebx]
mov edx, dword [edi]
mov ecx, dword [edx + 0x20]
push eax
push edi
call ecx
test esi, esi
jne 0x1000603b
call fcn.1000eeb5
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x10006032
call fcn.1000eeb5
add ebx, 0x20
jmp 0x10005fd0
mov eax, dword [esi]
jmp 0x10006008
mov eax, dword [esi]
jmp 0x10006028
mov ebx, dword [ebp + 8]
cmp dword [ebx + 8], 3
jne 0x100060ba
mov byte [esp + 0x68], 0
test edi, edi
je 0x10006059
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10006079
mov eax, dword [eax + 8]
test eax, eax
je 0x10006079
push eax
call esi
mov eax, dword [esp + 0x58]
test eax, eax
je 0x10006084
push eax
call esi
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10006093
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x100060a3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov ax, word [ebx + 0x14]
lea esi, [esp + 0x1c]
call fcn.10003ec0
mov ebx, eax
mov byte [esp + 0x68], 0
test edi, edi
je 0x100060f0
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10006114
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10006114
push ecx
call esi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x10006123
push ecx
call esi
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1000612e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x1000613e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8