Function at 0x10b2954
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1458
call fcn.0107a6d0
mov eax, dword [0x10e607c]
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 0x10b2a7b
cmp dword [ebp - 0x1444], 0x14
jb 0x10b2c99
jmp 0x10b2a1a
mov eax, 0x1002
cmp dword [ebp - 0x1428], eax
jae 0x10b29e6
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 0x10b2a24
cmp ecx, edi
je 0x10b2a24
cmp dword [ebp - 0x1428], edi
jne 0x10b29d3
jmp 0x10b2a26
xor eax, eax
cmp eax, edi
je 0x10b2c99
cmp dword [ebp - 0x1438], 8
je 0x10b2a8a
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 0x10b29c4
jmp 0x10b2c99
cmp dword [ebp - 0x1430], 0x1002
lea esi, [ebp - 0x1218]
mov dword [ebp - 0x143c], esi
jbe 0x10b2ab7
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 0x10b2c99
cmp dword [ebp - 0x1444], edi
je 0x10b2c99
cmp esi, edi
mov eax, dword [ebp - 0x1454]
mov eax, dword [eax + 0x34]
je 0x10b2c85
mov edx, dword [esi]
cmp edx, 0x80000007
jne 0x10b2cd0
mov ecx, dword [eax + 0x3c]
cmp ecx, edi
je 0x10b2cd0
cmp byte [ebx], 9
jne 0x10b2cd0
cmp word [eax + 0x40], di
mov eax, dword [0x10f4668]
je 0x10b2b55
cmp eax, edi
je 0x10b2cca
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 0x10b2b7c
cmp eax, edi
je 0x10b2cca
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 0x10b2cca
and dword [ebp - 0x1440], 0
cmp dword [edi], 0
mov word [ebx + 0xa4], 2
jbe 0x10b2c67
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.010a9982
test eax, eax
mov dword [ebp - 0x1448], eax
je 0x10b2c59
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 0x10b2bf2
inc eax
inc eax
jmp 0x10b2c01
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 0x10b2c29
mov eax, dword [ebp - 0x1448]
mov dword [ebx + 0xac], eax
mov eax, dword [0x10f4668]
test eax, eax
je 0x10b2c43
mov edx, dword [ebp - 0x143c]
push dword [edx + ecx*4]
call dword [eax + 0x20]
mov eax, dword [0x10f4668]
inc dword [ebp - 0x1440]
mov ecx, dword [ebp - 0x1440]
cmp ecx, dword [edi]
jb 0x10b2b9d
jmp 0x10b2c6c
mov eax, dword [ebp - 0x1440]
mov dword [edi], eax
or ax, 0xffff
jmp 0x10b2cbb
mov eax, dword [0x10f4668]
test eax, eax
je 0x10b2c79
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 0x10b2c99
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.01078836
leave
ret 0x14
mov ax, 0xfe16
jmp 0x10b2cbb
cmp edx, 0xa0000003
jne 0x10b2c7b
cmp byte [ebx], 8
jne 0x10b2c7b
or byte [ebx + 0x84], 4
xor eax, eax
mov ax, word [esi + 0xe]
cmp ax, di
je 0x10b2d57
add eax, 2
push eax
push dword [ebp - 0x1454]
call fcn.010a9982
mov edx, eax
cmp edx, edi
mov dword [ebx + 0x88], edx
je 0x10b2c7b
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 0x10b2c79
movzx eax, word [esi + 8]
shr eax, 1
push 4
lea eax, [esi + eax*2 + 0x10]
push 0x1012778
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 0x10b2d98
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 0x10b2dd1
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 0x10b2de1
inc word [ebp - 0xc]
cmp word [ebp - 0xc], 0x5a
jbe 0x10b2d9e
jmp 0x10b2c7b
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.010a9982
cmp eax, edi
mov dword [ebx + 0x88], eax
je 0x10b2c7b
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 0x10b2c7b