Function at 0x10ad1d4
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1458
call fcn.01077a20
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 0x10ad2fb
cmp dword [ebp - 0x1444], 0x14
jb 0x10ad519
jmp 0x10ad29a
mov eax, 0x1002
cmp dword [ebp - 0x1428], eax
jae 0x10ad266
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 0x10ad2a4
cmp ecx, edi
je 0x10ad2a4
cmp dword [ebp - 0x1428], edi
jne 0x10ad253
jmp 0x10ad2a6
xor eax, eax
cmp eax, edi
je 0x10ad519
cmp dword [ebp - 0x1438], 8
je 0x10ad30a
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 0x10ad244
jmp 0x10ad519
cmp dword [ebp - 0x1430], 0x1002
lea esi, [ebp - 0x1218]
mov dword [ebp - 0x143c], esi
jbe 0x10ad337
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 0x10ad519
cmp dword [ebp - 0x1444], edi
je 0x10ad519
cmp esi, edi
mov eax, dword [ebp - 0x1454]
mov eax, dword [eax + 0x34]
je 0x10ad505
mov edx, dword [esi]
cmp edx, 0x80000007
jne 0x10ad550
mov ecx, dword [eax + 0x3c]
cmp ecx, edi
je 0x10ad550
cmp byte [ebx], 9
jne 0x10ad550
cmp word [eax + 0x40], di
mov eax, dword [0x10eb290]
je 0x10ad3d5
cmp eax, edi
je 0x10ad54a
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 0x10ad3fc
cmp eax, edi
je 0x10ad54a
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 0x10ad54a
and dword [ebp - 0x1440], 0
cmp dword [edi], 0
mov word [ebx + 0xa4], 2
jbe 0x10ad4e7
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.010a461b
test eax, eax
mov dword [ebp - 0x1448], eax
je 0x10ad4d9
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 0x10ad472
inc eax
inc eax
jmp 0x10ad481
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 0x10ad4a9
mov eax, dword [ebp - 0x1448]
mov dword [ebx + 0xac], eax
mov eax, dword [0x10eb290]
test eax, eax
je 0x10ad4c3
mov edx, dword [ebp - 0x143c]
push dword [edx + ecx*4]
call dword [eax + 0x20]
mov eax, dword [0x10eb290]
inc dword [ebp - 0x1440]
mov ecx, dword [ebp - 0x1440]
cmp ecx, dword [edi]
jb 0x10ad41d
jmp 0x10ad4ec
mov eax, dword [ebp - 0x1440]
mov dword [edi], eax
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10ad53b
mov eax, dword [0x10eb290]
test eax, eax
je 0x10ad4f9
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 0x10ad519
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.01075bbb
leave
ret 0x14
mov ax, 0xfe16
jmp 0x10ad53b
cmp edx, 0xa0000003
jne 0x10ad4fb
cmp byte [ebx], 8
jne 0x10ad4fb
or byte [ebx + 0x84], 4
xor eax, eax
mov ax, word [esi + 0xe]
cmp ax, di
je 0x10ad5d7
add eax, 2
push eax
push dword [ebp - 0x1454]
call fcn.010a461b
mov edx, eax
cmp edx, edi
mov dword [ebx + 0x88], edx
je 0x10ad4fb
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 0x10ad4f9
movzx eax, word [esi + 8]
shr eax, 1
push 4
lea eax, [esi + eax*2 + 0x10]
push 0x1011e24
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 0x10ad618
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 0x10ad651
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 0x10ad661
inc word [ebp - 0xc]
cmp word [ebp - 0xc], 0x5a
jbe 0x10ad61e
jmp 0x10ad4fb
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.010a461b
cmp eax, edi
mov dword [ebx + 0x88], eax
je 0x10ad4fb
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 0x10ad4fb