Function at 0x10ba846
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10e607c]
mov edx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 0x34]
mov ecx, dword [esi + 0x6c]
push edi
xor edi, edi
cmp ecx, edi
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], edx
je 0x10ba88a
mov bx, word [esi + 0x68]
cmp bx, word [ebp + 0x10]
je 0x10ba88a
mov word [ecx], di
mov dword [esi + 0x64], edi
mov cx, word [ebp + 0x10]
mov word [esi + 0x68], cx
mov ecx, dword [0x10f69a0]
cmp ecx, edi
mov eax, dword [eax + 4]
mov dword [ebp - 0x20c], eax
je 0x10ba8c5
cmp byte [eax + 0x30], 6
jne 0x10ba8c5
cmp edx, edi
mov dword [ebp - 0x20c], ecx
je 0x10ba8c5
cmp word [edx + 2], 0x3a
jne 0x10ba8c5
add edx, 4
mov dword [ebp - 0x208], edx
cmp dword [esi + 0x6c], edi
mov ebx, 0x400
jne 0x10ba8e8
push 1
push ebx
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [esi + 0x6c], eax
je 0x10baad3
mov dword [esi + 0x70], ebx
push dword [ebp - 0x208]
call dword [sym.imp.msvcrt.dll_wcslen]
lea edi, [eax + eax + 2]
cmp edi, dword [esi + 0x70]
pop ecx
jl 0x10ba932
and dword [esi + 0x70], 0
add edi, ebx
push edi
push dword [esi + 0x6c]
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
jne 0x10ba92c
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x10ba923
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
and dword [esi + 0x6c], 0
jmp 0x10baad3
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], edi
mov edi, dword [ebp - 0x208]
and dword [ebp - 0x208], 0
cmp word [edi], 0x5c
mov eax, dword [esi + 0x6c]
mov edx, edi
je 0x10ba961
cmp word [eax], 0x5c
mov dword [ebp - 0x208], eax
je 0x10ba961
mov word [eax], 0x5c
inc eax
inc eax
and word [eax], 0
xor ecx, ecx
mov cx, word [edi]
jmp 0x10ba983
mov bx, word [eax]
cmp cx, bx
jne 0x10ba988
cmp bx, 0x5c
jne 0x10ba97c
mov dword [ebp - 0x208], eax
inc eax
inc eax
inc edx
inc edx
mov cx, word [edx]
test cx, cx
jne 0x10ba968
xor ebx, ebx
cmp word [edx], bx
jne 0x10ba998
cmp dword [esi + 0x60], ebx
jne 0x10baaee
mov ecx, dword [ebp - 0x208]
cmp ecx, ebx
je 0x10ba9a6
mov word [ecx + 2], bx
mov ecx, dword [esi + 0x6c]
lea edx, [ecx + 2]
cmp eax, edx
ja 0x10ba9c6
mov eax, dword [ebp - 0x20c]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 0x54]
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], 1
push ecx
call dword [sym.imp.msvcrt.dll_wcslen]
cmp word [edi], 0x5c
pop ecx
lea ebx, [edi + eax*2]
je 0x10ba9d9
dec ebx
dec ebx
push dword [esi + 0x6c]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, dword [esi + 0x6c]
lea edi, [ecx + eax*2]
mov ax, word [ebx]
xor edx, edx
cmp ax, dx
mov dword [ebp - 0x214], edi
je 0x10baa07
cmp ax, 0x5c
je 0x10baa07
mov word [edi], ax
jmp 0x10baac3
mov eax, dword [ebp - 0x208]
add eax, 2
cmp edi, eax
je 0x10baa1d
mov word [edi], 0x5c
mov word [edi + 2], dx
cmp word [ebx], dx
jne 0x10baa2c
cmp word [ebp + 0x10], dx
jne 0x10baace
push edx
push 1
lea eax, [ebp - 0x218]
push eax
push edx
push dword [esi + 0x6c]
push dword [ebp - 0x210]
call fcn.010bab05
test ax, ax
jne 0x10baad3
push 0x100
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x10baaaf
mov eax, dword [ebp - 0x20c]
mov eax, dword [eax + 0x5c]
mov edi, dword [eax + 0x54]
jmp 0x10baa95
lea eax, [ebp - 0x204]
push eax
lea eax, [edi + 4]
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x10baa99
mov edi, dword [edi + 0x404]
test edi, edi
jne 0x10baa78
push dword [esi + 0x6c]
mov dword [esi + 0x60], edi
call dword [sym.imp.msvcrt.dll_wcslen]
mov edi, dword [ebp - 0x214]
pop ecx
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 0x210]
mov eax, dword [eax + 0x34]
and word [eax + 0x26], 0
cmp word [ebx], 0
je 0x10baacc
inc edi
inc edi
inc ebx
inc ebx
jmp 0x10ba9e9
xor edx, edx
cmp dword [esi + 0x60], edx
jne 0x10baad9
mov ax, 1
jmp 0x10baaf1
mov ecx, dword [esi + 0x6c]
cmp ecx, edx
je 0x10baaee
mov eax, dword [esi + 0x64]
cmp word [ecx + eax*2], 0x5c
jne 0x10baaee
inc eax
mov dword [esi + 0x64], eax
xor ax, ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 0xc