Function at 0x10070c0
Capabilities:
Check if file exists
Unmount volume via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0x14], 0
mov eax, dword [0x10053ac]
mov cx, word [0x10053b0]
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov word [ebp - 4], cx
je 0x1007128
mov edi, dword [sym.imp.msvcrt.dll_puts]
push 0x1005394
call edi
mov edx, dword [ebp + 8]
add esp, 4
push edx
push 0
call dword [sym.imp.imdisk.cpl__ImDiskForceRemoveDevice_8]
test eax, eax
jne 0x100762d
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1007114
mov eax, 0x1005388
push eax
call fcn.01006240
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x10071a6
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.imdisk.cpl__ImDiskOpenDeviceByNumber_8]
push 0xc0000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x10073f1
push 0x80000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x10073f1
push 0x80
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x10073f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10073d9
mov edx, dword [sym.imp.msvcrt.dll__iob]
add edx, 0x40
push edx
push 0x1005374
call dword [sym.imp.msvcrt.dll_fputs]
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
movzx edi, word [ebx]
test di, di
je 0x10072ee
lea esi, [ebx + 2]
mov ecx, 0x1005370
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10071e6
test dx, dx
je 0x10071e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10071e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10071c0
xor eax, eax
jmp 0x10071eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1007229
mov ecx, 0x1004da0
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100721c
test dx, dx
je 0x1007218
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100721c
add eax, 4
add ecx, 4
test dx, dx
jne 0x10071f6
xor eax, eax
jmp 0x1007221
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10072ee
mov ecx, dword [0x1005364]
mov eax, dword [0x1005360]
mov edx, dword [0x1005368]
mov dword [ebp - 0x14], ecx
mov cx, 0x5a
cmp cx, di
mov dword [ebp - 0x18], eax
movzx eax, word [0x100536c]
mov dword [ebp - 0x10], edx
sbb edx, edx
add edx, 1
cmp di, 0x41
mov word [ebp - 0xc], ax
sbb eax, eax
add eax, 1
test eax, edx
mov word [ebp - 0x10], di
je 0x1007285
push 0x1005344
call dword [sym.imp.msvcrt.dll_puts]
movzx ecx, word [ebx]
add esp, 4
push ecx
push 0
call dword [sym.imp.imdisk.cpl__ImDiskNotifyRemovePending_8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x20000000
push 3
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x18]
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10073f1
push 0
push 0x20000000
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x18]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10073f1
push 0
push 0x20000000
push 3
push 0
push 3
push 0x80
lea ecx, [ebp - 0x18]
push ecx
call edi
jmp 0x1007166
mov edi, dword [sym.imp.imdisk.cpl__ImDiskOpenDeviceByMountPoint_8]
push 0xc0000000
push ebx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10073f1
push 0x80000000
push ebx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10073f1
push 0x80
push ebx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10073f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
ja 0x1007391
je 0x10073b3
sub eax, 1
je 0x100736c
sub eax, 0x56
jne 0x100739f
mov edx, dword [sym.imp.msvcrt.dll__iob]
add edx, 0x40
push edx
push 0x1004c78
call dword [sym.imp.msvcrt.dll_fputs]
add esp, 8
pop edi
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x1004be4
call dword [sym.imp.msvcrt.dll_fputs]
add esp, 8
pop edi
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp eax, 0x10b
je 0x10073b3
cmp eax, 0x1126
je 0x10073b3
push ebx
call fcn.01006240
pop edi
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push ebx
add ecx, 0x40
push 0x1005324
push ecx
call fcn.010061c0
add esp, 0xc
pop edi
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x10046f4
call fcn.01006240
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push esi
call fcn.010062b0
test eax, eax
jne 0x1007410
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 5
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x448
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1007433
push eax
push eax
push 1
push 0xc0000017
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea eax, [ebp + 0x14]
push eax
push 0x448
push edi
push 0
push 0
push 0x83722008
push esi
call ebx
test eax, eax
jne 0x100748b
mov esi, dword [ebp + 0xc]
push esi
call fcn.01006240
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push esi
add ecx, 0x40
push 0x10052f4
push ecx
call fcn.010061c0
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 0x10
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebp + 0x14], 0x36
jae 0x10074c0
mov edx, dword [ebp + 0xc]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push edx
add eax, 0x40
push 0x10052f4
push eax
call fcn.010061c0
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 0x10
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0x14
movzx eax, word [edi + 0x2c]
xor ecx, ecx
test ax, ax
setne cl
xor edx, edx
cmp dword [ebp + 0xc], edx
sete dl
test edx, ecx
je 0x10074e6
movzx eax, word [edi + 0x2c]
mov word [ebp - 8], ax
lea eax, [ebp - 8]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x18], 0
je 0x1007514
mov ecx, dword [edi]
push ecx
push 0x10052c4
call dword [sym.imp.msvcrt.dll_printf]
mov edx, dword [edi]
add esp, 8
push edx
call dword [sym.imp.imdisk.cpl__ImDiskRemoveRegistrySettings_4]
test eax, eax
jne 0x1007514
push 0x1004afc
call fcn.01006240
push edi
call dword [sym.imp.msvcrt.dll_free]
mov edi, dword [sym.imp.msvcrt.dll_puts]
push 0x10052a8
call edi
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0x1005294
call edi
add esp, 4
push 0
lea eax, [ebp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0x90018
push esi
call ebx
test eax, eax
mov edi, dword [ebp + 0x10]
jne 0x100759d
test edi, edi
je 0x1007108
push 0x1005278
call dword [sym.imp.msvcrt.dll_puts]
add esp, 4
push 0
lea ecx, [ebp + 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0x90020
push esi
call ebx
push 0
lea edx, [ebp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0x90018
push esi
call ebx
jmp 0x10075c9
push 0x100525c
call dword [sym.imp.msvcrt.dll_puts]
add esp, 4
push 0
lea eax, [ebp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0x90020
push esi
call ebx
test eax, eax
je 0x1007108
push 0x1005248
call dword [sym.imp.msvcrt.dll_puts]
add esp, 4
push 0
lea ecx, [ebp + 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0x2d4808
push esi
call ebx
test eax, eax
jne 0x100760a
test edi, edi
je 0x100760a
push eax
push esi
call dword [sym.imp.imdisk.cpl__ImDiskForceRemoveDevice_8]
neg eax
sbb eax, eax
add eax, 1
jne 0x1007108
push 0
lea edx, [ebp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0x9001c
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.msvcrt.dll_puts]
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10076c7
push 0x1005230
call edi
add esp, 4
push esi
call dword [sym.imp.imdisk.cpl__ImDiskRemoveMountPoint_4]
test eax, eax
jne 0x10076c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
ja 0x1007699
je 0x10076af
sub eax, 1
je 0x100767f
sub eax, 0x56
jne 0x10076a7
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x1004c78
call dword [sym.imp.msvcrt.dll_fputs]
add esp, 8
jmp 0x10076c7
mov ecx, dword [sym.imp.msvcrt.dll__iob]
add ecx, 0x40
push ecx
push 0x10051e8
call dword [sym.imp.msvcrt.dll_fputs]
add esp, 8
jmp 0x10076c7
cmp eax, 0x10b
je 0x10076af
cmp eax, 0x1126
je 0x10076af
push esi
call fcn.01006240
jmp 0x10076c7
mov edx, dword [sym.imp.msvcrt.dll__iob]
push esi
add edx, 0x40
push 0x1005324
push edx
call fcn.010061c0
add esp, 0xc
push 0x10051dc
call edi
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14