Function at 0x1000ad30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002ef4b
mov eax, dword fs:[0]
push eax
mov eax, 0x18a0
call fcn.10021ad0
mov eax, dword [0x10038654]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x86
lea edi, [ebp - 0x188c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x188c]
push 0x206
mov dword [ebx + 0x884], eax
xor esi, esi
lea eax, [ebp - 0x62a]
lea ecx, [ebp - 0x187c]
xor edx, edx
push esi
push eax
mov dword [ebx + 0x888], ecx
mov byte [ebp - 0x188d], 0
mov byte [ebp - 0x188e], 0
mov word [ebp - 0x62c], dx
call fcn.1001caf0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x62c]
push ecx
push esi
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x188c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, esi
je 0x1000afd7
push str.NTFS
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000ae1e
mov byte [ebp - 0x188d], 0x3c
cmp dword [ebx + 8], esi
jne 0x1000b321
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 1
lea eax, [ebp - 0x188d]
push eax
call edx
jmp 0x1000b321
push str.._
lea ecx, [ebp - 0x424]
xor eax, eax
push 0x104
push ecx
mov word [ebp - 0x424], ax
call fcn.100189a4
mov eax, dword [ebx + 0x884]
add esp, 0xc
push eax
lea edx, [ebp - 0x424]
push 0x104
push edx
call fcn.100194fc
add esp, 0xc
xor eax, eax
mov word [ebp - 0x164c], ax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x1638], 7
mov dword [ebp - 0x163c], esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x1000ae80
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x424]
lea ecx, [ebp - 0x164c]
call fcn.1000c790
push 1
push 0x10033db4
lea edi, [ebp - 0x164c]
mov dword [ebp - 4], esi
call fcn.1000c4c0
lea ecx, [eax + 1]
or eax, 0xffffffff
mov esi, edi
call fcn.1000b8b0
mov eax, dword [ebp - 0x164c]
mov edi, 8
cmp dword [ebp - 0x1638], edi
jae 0x1000aed8
mov eax, esi
xor esi, esi
push esi
push 1
push 3
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x88c], eax
cmp eax, 0xffffffff
je 0x1000af6c
mov dword [ebp - 4], 0xffffffff
mov byte [ebp - 0x188d], 1
cmp dword [ebp - 0x1638], edi
jb 0x1000af1e
mov ecx, dword [ebp - 0x164c]
push ecx
call fcn.100180f0
add esp, 4
mov eax, dword [ebx + 0x88c]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
lea ecx, [ebp - 0x189c]
push ecx
push esi
push esi
push 0x10
lea edx, [ebp - 0x1644]
push edx
push 0x900e7
push eax
mov dword [ebp - 0x1644], esi
mov dword [ebp - 0x1640], esi
mov dword [ebp - 0x163c], esi
mov dword [ebp - 0x1638], esi
call edi
test eax, eax
je 0x1000afad
mov byte [ebp - 0x188e], 1
xor esi, esi
jmp 0x1000afdd
mov byte [ebp - 0x188d], 0x3d
cmp dword [ebx + 8], esi
jne 0x1000af8d
mov ebx, dword [ebx + 4]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
push 1
lea eax, [ebp - 0x188d]
push eax
mov ecx, ebx
call edx
cmp dword [ebp - 0x1638], edi
jb 0x1000b321
mov eax, dword [ebp - 0x164c]
push eax
call fcn.100180f0
add esp, 4
jmp 0x1000b321
mov byte [ebp - 0x188d], 0x3e
cmp dword [ebx + 8], esi
jne 0x1000b321
mov ebx, dword [ebx + 4]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
push 1
lea eax, [ebp - 0x188d]
push eax
mov ecx, ebx
call edx
jmp 0x1000b321
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x800
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp byte [ebp - 0x188e], 0
mov dword [ebp - 0x1894], eax
mov byte [eax], 0x3b
mov dword [ebp - 0x18a0], 1
je 0x1000b2d0
mov edx, dword [ebx + 0x88c]
push esi
lea ecx, [ebp - 0x18a8]
push ecx
push 0x38
lea eax, [ebx + 0x890]
push eax
push esi
push esi
push 0x900f4
push edx
call edi
test eax, eax
je 0x1000b33f
mov eax, dword [ebx + 0x8a0]
mov ecx, dword [ebx + 0x8a4]
push esi
lea edx, [ebp - 0x18a4]
push edx
mov edx, dword [ebx + 0x88c]
push 0x1000
mov dword [ebp - 0x1654], eax
lea eax, [ebp - 0x162c]
push eax
push 0x18
mov dword [ebp - 0x1650], ecx
lea ecx, [ebp - 0x1664]
push ecx
push 0x900b3
push edx
mov dword [ebp - 0x1664], esi
mov dword [ebp - 0x1660], esi
mov dword [ebp - 0x165c], esi
mov dword [ebp - 0x1658], esi
call edi
test eax, eax
je 0x1000b28d
jmp 0x1000b0a0
mov eax, dword [ebp - 0x18a4]
add eax, 0xfffffff8
lea esi, [ebp - 0x1624]
mov dword [ebp - 0x189c], eax
mov dword [ebp - 0x1898], esi
je 0x1000b23f
jmp 0x1000b0d6
mov esi, dword [ebp - 0x1898]
movzx edi, word [esi + 0x38]
push 0x207
lea eax, [ebp - 0x21b]
push 0
push eax
mov byte [ebp - 0x21c], 0
call fcn.1001caf0
mov eax, dword [ebx + 0x888]
add esp, 0xc
push eax
add esi, 0x3c
push esi
call fcn.10019327
add esp, 8
test eax, eax
je 0x1000b213
push 0
push 0
push edi
mov eax, edi
cdq
lea ecx, [ebp - 0x21c]
push ecx
sub eax, edx
sar eax, 1
push eax
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x1898]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [ebx + 0x88c]
push edx
push eax
push ecx
mov edi, ebx
call fcn.1000ac70
mov edx, dword [ebp - 0x1894]
mov esi, dword [ebp - 0x18a0]
push edx
lea edi, [esi + 0x2000]
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, edi
jae 0x1000b180
mov eax, dword [ebp - 0x1894]
push 0x42
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 0x1894], eax
lea eax, [ebp - 0x21c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000b190
sub eax, edx
mov edx, dword [ebp - 0x1894]
push eax
lea ecx, [ebp - 0x21c]
push ecx
add edx, esi
push edx
call fcn.1001add0
lea eax, [ebp - 0x21c]
add esp, 0xc
lea edi, [eax + 1]
jmp 0x1000b1c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000b1c0
sub eax, edi
mov edi, dword [ebx + 0x8d0]
lea esi, [esi + eax + 1]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000b1d8
sub eax, ecx
push eax
mov eax, dword [ebp - 0x1894]
add eax, esi
push edi
push eax
call fcn.1001add0
mov eax, dword [ebx + 0x8d0]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000b200
sub eax, edx
lea ecx, [esi + eax + 1]
mov dword [ebp - 0x18a0], ecx
mov edx, dword [ebp - 0x1898]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x189c]
sub ecx, eax
add edx, eax
mov dword [ebp - 0x189c], ecx
mov dword [ebp - 0x1898], edx
test ecx, ecx
jne 0x1000b0d0
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [ebp - 0x162c]
mov eax, dword [ebp - 0x1628]
push 0
lea ecx, [ebp - 0x18a4]
push ecx
mov ecx, dword [ebx + 0x88c]
push 0x1000
mov dword [ebp - 0x1664], edx
lea edx, [ebp - 0x162c]
push edx
push 0x18
mov dword [ebp - 0x1660], eax
lea eax, [ebp - 0x1664]
push eax
push 0x900b3
push ecx
call edi
test eax, eax
jne 0x1000b0a0
xor esi, esi
mov edx, dword [ebx + 0x890]
mov eax, dword [ebx + 0x894]
push esi
lea ecx, [ebp - 0x18a8]
push ecx
push esi
push esi
push 0x10
mov dword [ebp - 0x1674], edx
lea edx, [ebp - 0x1674]
push edx
mov dword [ebp - 0x1670], eax
mov eax, dword [ebx + 0x88c]
push 0x900f8
push eax
mov dword [ebp - 0x166c], 1
call edi
cmp byte [ebp - 0x188d], 0
je 0x1000b2e6
mov eax, dword [ebx + 0x88c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18a0]
mov edx, dword [ebp - 0x1894]
push 0x42
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edi, eax
cmp edi, esi
je 0x1000b321
push edi
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp dword [ebx + 8], esi
jne 0x1000b31a
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 8]
push edi
call eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100180fb
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x188d], 0x3f
cmp dword [ebx + 8], esi
jne 0x1000b321
mov ebx, dword [ebx + 4]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
push 1
lea eax, [ebp - 0x188d]
push eax
mov ecx, ebx
call edx
jmp 0x1000b321