Function at 0x10a708b
Capabilities:
Get disk size
Unmount volume via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [0x111124c]
mov ebx, 0x111124c
mov esi, 0x100ab40
cmp eax, ebx
je 0x10a70d6
test byte [eax + 0x1c], 4
je 0x10a70d6
cmp byte [eax + 0x19], 4
jb 0x10a70d6
push esi
push 0x18a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x10], 0
cmp eax, ebx
je 0x10a7107
test byte [eax + 0x1c], 4
je 0x10a7107
cmp byte [eax + 0x19], 5
jb 0x10a7107
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push 0x18b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019979
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
and dword [eax], 0
and dword [edi], 0
push edi
lea ecx, [ebp - 0x14]
call fcn.0109bc58
mov dword [ebp + 0x14], eax
test eax, eax
je 0x10a7160
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10a714e
test byte [eax + 0x1c], 4
je 0x10a714e
cmp byte [eax + 0x19], 2
jb 0x10a714e
push dword [edi]
push dword [ebp + 0x14]
push esi
push 0x18c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109ba57
lea ecx, [ebp - 0x14]
call fcn.0109bc92
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x18
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call fcn.0109f382
mov dword [ebp + 0x14], eax
test eax, eax
je 0x10a71b1
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10a71a2
test byte [eax + 0x1c], 4
je 0x10a71a2
cmp byte [eax + 0x19], 2
jb 0x10a71a2
push dword [edi]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push esi
push 0x18d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109b90b
mov esi, dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
call fcn.0109bc92
mov eax, esi
jmp 0x10a7159
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10a71dd
test byte [eax + 0x1c], 4
je 0x10a71dd
cmp byte [eax + 0x19], 4
jb 0x10a71dd
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
push 0x18e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019531
lea ecx, [ebp - 0x14]
call fcn.0109bc92
push 0x190
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10a7205
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 3
pop esi
jmp 0x10a71a5
push 0x190
push 0
push ebx
call sub.msvcrt.dll_memset
mov al, byte [ebp + 0x10]
mov esi, 0x100ab30
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
push dword [ebp + 0x1c]
movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x170]
push esi
push dword [ebp + 8]
mov byte [ebx + 0x15], al
call fcn.010a0c05
mov edi, eax
test edi, edi
je 0x10a727b
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10a7274
test byte [eax + 0x1c], 4
je 0x10a7274
cmp byte [eax + 0x19], 2
jb 0x10a7274
mov ecx, dword [ebp + 0x1c]
push dword [ecx]
push edi
push dword [ebp + 8]
push 0x100ab40
push 0x18f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109b90b
mov esi, edi
jmp 0x10a71a5
mov eax, dword [0x111124c]
mov edi, 0x111124c
cmp eax, edi
je 0x10a72b2
test byte [eax + 0x1c], 4
je 0x10a72b2
cmp byte [eax + 0x19], 4
jb 0x10a72b2
push dword [esi]
mov esi, 0x100ab40
push dword [ebp + 8]
push esi
push 0x190
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x10a72b7
mov esi, 0x100ab40
push 0
push 0x40000080
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x10], eax
cmp eax, 0xffffffff
jne 0x10a7323
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
push ebx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10a731c
test byte [eax + 0x1c], 4
je 0x10a731c
cmp byte [eax + 0x19], 2
jb 0x10a731c
mov ecx, dword [ebp + 0x1c]
push dword [ecx]
push 0xd
push dword [ebp + 8]
push esi
push 0x191
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109b90b
push 0xd
jmp 0x10a7202
mov ecx, dword [0x111124c]
cmp ecx, edi
je 0x10a734e
test byte [ecx + 0x1c], 4
je 0x10a734e
cmp byte [ecx + 0x19], 4
jb 0x10a734e
push eax
push dword [ebp + 8]
push esi
push 0x192
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push 8
lea ecx, [ebp - 0x1c]
push ecx
push eax
push eax
push 0x7405c
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10a73b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10a731c
test byte [eax + 0x1c], 4
je 0x10a731c
cmp byte [eax + 0x19], 2
jb 0x10a731c
mov ecx, dword [ebp + 0x1c]
push dword [ecx]
push 0xd
push dword [ebp + 8]
push esi
push 0x193
jmp 0x10a7311
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 8]
jg 0x10a7415
mov edx, dword [ebp - 0xc]
jl 0x10a73ca
cmp dword [ebp - 0x1c], edx
jae 0x10a7415
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10a73fe
test byte [eax + 0x1c], 4
je 0x10a73fe
cmp byte [eax + 0x19], 2
jb 0x10a73fe
push dword [ebp - 8]
push edx
push dword [ebp + 0xc]
push ecx
push dword [ebp - 0x1c]
push dword [ebp + 8]
push esi
push 0x194
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109b984
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0xe
jmp 0x10a7202
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push eax
push eax
push 0x90018
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10a7467
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10a7467
test byte [eax + 0x1c], 4
je 0x10a7467
cmp byte [eax + 0x19], 3
jb 0x10a7467
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
mov eax, dword [0x111124c]
push esi
push 0x195
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push eax
push eax
push 0x90020
mov dword [ebp - 4], eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10a74d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10a731c
test byte [eax + 0x1c], 4
je 0x10a731c
cmp byte [eax + 0x19], 2
jb 0x10a731c
mov ecx, dword [ebp + 0x1c]
push dword [ecx]
push 0xd
push dword [ebp + 8]
push esi
push 0x196
jmp 0x10a7311
push dword [ebp + 0x1c]
push dword [ebx + 0x10]
call fcn.010a6f32
push dword [ebx + 0x10]
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
je 0x10a7539
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10a71a2
test byte [eax + 0x1c], 4
je 0x10a71a2
cmp byte [eax + 0x19], 2
jb 0x10a71a2
push dword [ebp + 0x14]
push dword [ebp + 8]
push esi
push 0x197
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x10a71a2
push 0
push 0x40000080
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x10], eax
cmp eax, 0xffffffff
jne 0x10a75a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
push ebx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10a731c
test byte [eax + 0x1c], 4
je 0x10a731c
cmp byte [eax + 0x19], 2
jb 0x10a731c
mov ecx, dword [ebp + 0x1c]
push dword [ecx]
push 0xd
push dword [ebp + 8]
push esi
push 0x198
jmp 0x10a7311
mov ecx, dword [0x111124c]
cmp ecx, edi
je 0x10a75cf
test byte [ecx + 0x1c], 4
je 0x10a75cf
cmp byte [ecx + 0x19], 4
jb 0x10a75cf
push eax
push dword [ebp + 8]
push esi
push 0x199
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push eax
push eax
push 0x90018
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10a7621
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10a7621
test byte [eax + 0x1c], 4
je 0x10a7621
cmp byte [eax + 0x19], 3
jb 0x10a7621
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
mov eax, dword [0x111124c]
push esi
push 0x19a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push eax
push eax
push 0x90020
mov dword [ebp - 4], eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10a7692
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10a731c
test byte [eax + 0x1c], 4
je 0x10a731c
cmp byte [eax + 0x19], 2
jb 0x10a731c
mov ecx, dword [ebp + 0x1c]
push dword [ecx]
push 0xd
push dword [ebp + 8]
push esi
push 0x19b
jmp 0x10a7311
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10a76bd
test byte [eax + 0x1c], 4
je 0x10a76bd
cmp byte [eax + 0x19], 4
jb 0x10a76bd
push esi
push 0x19c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
xor esi, esi
jmp 0x10a71a5