Function at 0x10ad019
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1458
call fcn.01077950
mov eax, dword [0x10de03c]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_BackupRead]
push edi
mov dword [ebp - 0x1454], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1448], eax
mov eax, dword [ebp + 0x18]
xor edi, edi
mov dword [ebp - 0x1458], eax
mov dword [eax], edi
lea eax, [ebp - 0x144c]
push eax
push edi
push edi
lea eax, [ebp - 0x1444]
push eax
push 0x14
lea eax, [ebp - 0x1438]
push eax
mov dword [ebp - 0x1450], ecx
mov dword [ebp - 0x144c], edi
push ecx
jmp 0x10ad140
cmp dword [ebp - 0x1444], 0x14
jb 0x10ad35e
jmp 0x10ad0df
mov eax, 0x1002
cmp dword [ebp - 0x1428], eax
jae 0x10ad0ab
mov eax, dword [ebp - 0x1428]
lea ecx, [ebp - 0x144c]
push ecx
push edi
push edi
lea ecx, [ebp - 0x1444]
push ecx
push eax
lea eax, [ebp - 0x1218]
push eax
push dword [ebp - 0x1450]
call esi
mov ecx, dword [ebp - 0x1444]
sub dword [ebp - 0x1428], ecx
cmp eax, edi
je 0x10ad0e9
cmp ecx, edi
je 0x10ad0e9
cmp dword [ebp - 0x1428], edi
jne 0x10ad098
jmp 0x10ad0eb
xor eax, eax
cmp eax, edi
je 0x10ad35e
cmp dword [ebp - 0x1438], 8
je 0x10ad14f
lea eax, [ebp - 0x144c]
push eax
lea eax, [ebp - 0x143c]
push eax
lea eax, [ebp - 0x1440]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x1450]
call dword [sym.imp.KERNEL32.dll_BackupSeek]
lea eax, [ebp - 0x144c]
push eax
push edi
push edi
lea eax, [ebp - 0x1444]
push eax
push 0x14
lea eax, [ebp - 0x1438]
push eax
push dword [ebp - 0x1450]
call esi
cmp eax, edi
jne 0x10ad089
jmp 0x10ad35e
cmp dword [ebp - 0x1430], 0x1002
lea esi, [ebp - 0x1218]
mov dword [ebp - 0x143c], esi
jbe 0x10ad17c
push dword [ebp - 0x1430]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x143c], eax
mov esi, eax
lea eax, [ebp - 0x144c]
push eax
push edi
push edi
lea eax, [ebp - 0x1444]
push eax
push dword [ebp - 0x1430]
push esi
push dword [ebp - 0x1450]
call dword [sym.imp.KERNEL32.dll_BackupRead]
test eax, eax
je 0x10ad35e
cmp dword [ebp - 0x1444], edi
je 0x10ad35e
cmp esi, edi
mov eax, dword [ebp - 0x1454]
mov eax, dword [eax + 0x34]
je 0x10ad34a
mov edx, dword [esi]
cmp edx, 0x80000007
jne 0x10ad395
mov ecx, dword [eax + 0x3c]
cmp ecx, edi
je 0x10ad395
cmp byte [ebx], 9
jne 0x10ad395
cmp word [eax + 0x40], di
mov eax, dword [0x10eb288]
je 0x10ad21a
cmp eax, edi
je 0x10ad38f
lea edx, [ebp - 0x143c]
push edx
lea edi, [ebx + 0xa8]
push edi
lea edx, [ebp - 8]
push edx
push 0
push dword [ebp - 0x1430]
push esi
push ecx
call dword [eax + 8]
jmp 0x10ad241
cmp eax, edi
je 0x10ad38f
lea edx, [ebp - 0x143c]
push edx
lea edi, [ebx + 0xa8]
push edi
push dword [ebp - 0x1430]
push esi
push dword [ebp - 0x1448]
push ecx
call dword [eax + 0x14]
test eax, eax
je 0x10ad38f
and dword [ebp - 0x1440], 0
cmp dword [edi], 0
mov word [ebx + 0xa4], 2
jbe 0x10ad32c
mov eax, dword [ebp - 0x143c]
mov ecx, dword [ebp - 0x1440]
push dword [eax + ecx*4]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x1454]
call fcn.010a4460
test eax, eax
mov dword [ebp - 0x1448], eax
je 0x10ad31e
mov eax, dword [ebp - 0x143c]
mov ecx, dword [ebp - 0x1440]
push 0x5c
push dword [eax + ecx*4]
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x10ad2b7
inc eax
inc eax
jmp 0x10ad2c6
mov eax, dword [ebp - 0x143c]
mov ecx, dword [ebp - 0x1440]
mov eax, dword [eax + ecx*4]
push eax
mov eax, dword [ebp - 0x1448]
push dword [eax + 0x18]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1440]
test ecx, ecx
jne 0x10ad2ee
mov eax, dword [ebp - 0x1448]
mov dword [ebx + 0xac], eax
mov eax, dword [0x10eb288]
test eax, eax
je 0x10ad308
mov edx, dword [ebp - 0x143c]
push dword [edx + ecx*4]
call dword [eax + 0x20]
mov eax, dword [0x10eb288]
inc dword [ebp - 0x1440]
mov ecx, dword [ebp - 0x1440]
cmp ecx, dword [edi]
jb 0x10ad262
jmp 0x10ad331
mov eax, dword [ebp - 0x1440]
mov dword [edi], eax
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10ad380
mov eax, dword [0x10eb288]
test eax, eax
je 0x10ad33e
push dword [ebp - 0x143c]
call dword [eax + 0x20]
xor edi, edi
mov eax, dword [esi]
mov ecx, dword [ebp - 0x1458]
mov dword [ecx], eax
cmp dword [ebp - 0x1430], 0x1002
jbe 0x10ad35e
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea eax, [ebp - 0x144c]
push eax
push edi
push 1
lea eax, [ebp - 0x1444]
push eax
push edi
push edi
push dword [ebp - 0x1450]
call dword [sym.imp.KERNEL32.dll_BackupRead]
xor ax, ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 0x14
mov ax, 0xfe16
jmp 0x10ad380
cmp edx, 0xa0000003
jne 0x10ad340
cmp byte [ebx], 8
jne 0x10ad340
or byte [ebx + 0x84], 4
xor eax, eax
mov ax, word [esi + 0xe]
cmp ax, di
je 0x10ad41c
add eax, 2
push eax
push dword [ebp - 0x1454]
call fcn.010a4460
mov edx, eax
cmp edx, edi
mov dword [ebx + 0x88], edx
je 0x10ad340
movzx ecx, word [esi + 0xe]
mov edi, dword [edx + 0x18]
inc ecx
inc ecx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
movzx eax, word [esi + 0xc]
movzx ecx, word [esi + 0xe]
shr eax, 1
lea esi, [esi + eax*2 + 0x10]
mov eax, dword [ebx + 0x88]
mov edi, dword [eax + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x143c]
jmp 0x10ad33e
movzx eax, word [esi + 8]
shr eax, 1
push 4
lea eax, [esi + eax*2 + 0x10]
push 0x1011e0c
push eax
mov dword [ebp - 0x1448], eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x5c
mov word [ebp - 6], di
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10ad45d
mov eax, dword [ebp - 0x1448]
mov word [eax + 2], 0x5c
mov word [ebp - 0xc], 0x41
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x10ad496
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x1448]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x10ad4a6
inc word [ebp - 0xc]
cmp word [ebp - 0xc], 0x5a
jbe 0x10ad463
jmp 0x10ad340
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x1454]
call fcn.010a4460
cmp eax, edi
mov dword [ebx + 0x88], eax
je 0x10ad340
lea ecx, [ebp - 0xc]
push ecx
push dword [eax + 0x18]
call dword [sym.imp.msvcrt.dll_wcscpy]
or byte [ebx + 0x84], 4
pop ecx
pop ecx
jmp 0x10ad340