Function at 0x10a7814
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 0x34]
mov eax, dword [esi + 0x6c]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x10a783f
mov dx, word [esi + 0x68]
cmp dx, word [ebp + 0x10]
je 0x10a783f
mov word [eax], bx
mov dword [esi + 0x64], ebx
mov ax, word [ebp + 0x10]
mov word [esi + 0x68], ax
mov eax, dword [0x10dd958]
cmp eax, ebx
mov ecx, dword [ecx + 4]
mov dword [ebp - 8], ecx
je 0x10a7872
cmp byte [ecx + 0x30], 6
jne 0x10a7872
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], eax
je 0x10a7872
mov eax, dword [ebp + 0xc]
cmp word [eax + 2], 0x3a
jne 0x10a7872
add dword [ebp + 0xc], 4
cmp dword [esi + 0x6c], ebx
mov edi, 0x400
jne 0x10a7895
push 1
push edi
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0x6c], eax
je 0x10a7a42
mov dword [esi + 0x70], edi
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
lea ebx, [eax + eax + 2]
cmp ebx, dword [esi + 0x70]
pop ecx
jl 0x10a78c8
and dword [esi + 0x70], 0
add ebx, edi
push ebx
push dword [esi + 0x6c]
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
mov dword [esi + 0x6c], eax
je 0x10a7a42
mov dword [esi + 0x70], ebx
mov edi, dword [ebp + 0xc]
and dword [ebp - 4], 0
cmp word [edi], 0x5c
mov eax, dword [esi + 0x6c]
mov edx, edi
je 0x10a78ee
cmp word [eax], 0x5c
mov dword [ebp - 4], eax
je 0x10a78ee
mov word [eax], 0x5c
inc eax
inc eax
and word [eax], 0
xor ecx, ecx
mov cx, word [edi]
jmp 0x10a790d
mov bx, word [eax]
cmp cx, bx
jne 0x10a7912
cmp bx, 0x5c
jne 0x10a7906
mov dword [ebp - 4], eax
inc eax
inc eax
inc edx
inc edx
mov cx, word [edx]
test cx, cx
jne 0x10a78f5
xor ebx, ebx
cmp word [edx], bx
jne 0x10a7922
cmp dword [esi + 0x60], ebx
jne 0x10a7a5d
mov ecx, dword [ebp - 4]
cmp ecx, ebx
je 0x10a792d
mov word [ecx + 2], bx
mov ecx, dword [esi + 0x6c]
lea edx, [ecx + 2]
cmp eax, edx
ja 0x10a794a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 0x54]
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], 1
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
push ecx
call ebx
cmp word [edi], 0x5c
lea eax, [edi + eax*2]
pop ecx
mov dword [ebp + 0xc], eax
je 0x10a7964
sub dword [ebp + 0xc], 2
push dword [esi + 0x6c]
call ebx
pop ecx
mov ecx, dword [esi + 0x6c]
lea edi, [ecx + eax*2]
mov ecx, dword [ebp + 0xc]
mov ax, word [ecx]
xor edx, edx
cmp ax, dx
mov dword [ebp - 0xc], edi
je 0x10a798e
cmp ax, 0x5c
je 0x10a798e
mov word [edi], ax
jmp 0x10a7a30
mov eax, dword [ebp - 4]
add eax, 2
cmp edi, eax
je 0x10a79a1
mov word [edi], 0x5c
mov word [edi + 2], dx
cmp word [ecx], dx
jne 0x10a79b0
cmp word [ebp + 0x10], dx
jne 0x10a7a3d
push edx
push 1
lea eax, [ebp - 0x10]
push eax
push edx
push dword [esi + 0x6c]
push dword [ebp + 8]
call fcn.010a7a67
test ax, ax
jne 0x10a7a42
push 0x200
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x10a7a1c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x5c]
mov edi, dword [eax + 0x54]
jmp 0x10a7a09
lea eax, [ebp - 0x210]
push eax
lea eax, [edi + 4]
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x10a7a0d
mov edi, dword [edi + 0x404]
test edi, edi
jne 0x10a79ec
push dword [esi + 0x6c]
mov dword [esi + 0x60], edi
call ebx
mov edi, dword [ebp - 0xc]
pop ecx
mov dword [esi + 0x64], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
and word [eax + 0x26], 0
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x10a7a3b
inc edi
inc edi
add dword [ebp + 0xc], 2
jmp 0x10a7970
xor edx, edx
cmp dword [esi + 0x60], edx
jne 0x10a7a48
mov ax, 1
jmp 0x10a7a60
mov ecx, dword [esi + 0x6c]
cmp ecx, edx
je 0x10a7a5d
mov eax, dword [esi + 0x64]
cmp word [ecx + eax*2], 0x5c
jne 0x10a7a5d
inc eax
mov dword [esi + 0x64], eax
xor ax, ax
pop edi
pop esi
pop ebx
leave
ret 0xc