Function at 0x10a0809
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], ebx
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10a0868
test byte [eax + 0x1c], 4
je 0x10a0868
cmp byte [eax + 0x19], 4
jb 0x10a0868
push 0x100ab50
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov dword [esi], ebx
mov dword [ebp - 0x210], ebx
cmp edi, ebx
jne 0x10a0888
push 0x100ae08
push 0x1d6
push 0x100ac00
call fcn.0107b644
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10a08a2
sub eax, edx
sar eax, 1
jne 0x10a08c7
mov dword [esi], 0x57
mov dword [ebp - 0x210], 0x16
jmp 0x10a0aad
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10a08cc
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
push edi
lea eax, [ebp - 0x20c]
je 0x10a08f0
push 0x100adfc
jmp 0x10a08f5
push 0x100adf4
push 0x104
push eax
call fcn.010a07ab
add esp, 0x10
cmp eax, ebx
jl 0x10a08b2
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x214]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x10a0a7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x218]
call fcn.0109c09a
cmp eax, ebx
je 0x10a098c
mov ecx, dword [0x111024c]
cmp ecx, 0x111024c
je 0x10a097b
test byte [ecx + 0x1c], 4
je 0x10a097b
cmp byte [ecx + 0x19], 2
jb 0x10a097b
push eax
push dword [ebp - 0x218]
push 0x100ab50
push 0x1d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
mov dword [ebp - 0x210], 0x16
mov dword [esi], edi
jmp 0x10a0aad
mov eax, dword [ebp - 0x21c]
shr eax, 0xb
test al, 1
je 0x10a09d4
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10a09ca
test byte [eax + 0x1c], 4
je 0x10a09ca
cmp byte [eax + 0x19], 4
jb 0x10a09ca
lea ecx, [ebp - 0x20c]
push ecx
push 0x100ab50
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
push 0x1002b60
jmp 0x10a0a64
cmp edi, 0x3ed
je 0x10a0a2e
cmp edi, 1
je 0x10a0a2e
cmp edi, 0x57
je 0x10a0a2e
mov dword [esi], edi
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10a0a1f
test byte [eax + 0x1c], 4
je 0x10a0a1f
cmp byte [eax + 0x19], 2
jb 0x10a0a1f
push edi
lea ecx, [ebp - 0x20c]
push ecx
push 0x100ab50
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [0x111024c]
mov dword [ebp - 0x210], 0x16
jmp 0x10a0ab2
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10a0a5f
test byte [eax + 0x1c], 4
je 0x10a0a5f
cmp byte [eax + 0x19], 4
jb 0x10a0a5f
lea ecx, [ebp - 0x20c]
push ecx
push 0x100ab50
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
push 0x10027a8
push dword [ebp + 0xc]
push dword [ebp - 0x214]
call fcn.010a06c8
test eax, eax
jl 0x10a0aad
mov edi, dword [ebp - 0x218]
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10a0ad7
test byte [eax + 0x1c], 4
je 0x10a0ab2
cmp byte [eax + 0x19], 4
jb 0x10a0ab2
push dword [ebp - 0x214]
push edi
push 0x100ab50
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010197e6
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10a0ad7
test byte [eax + 0x1c], 4
je 0x10a0ad7
cmp byte [eax + 0x19], 4
jb 0x10a0ad7
push 0x100ab50
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 0x10