Function at 0x10bc2c9
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x10e3200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push 0x103f0b0
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x214], 1
call fcn.010bce33
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x218], edi
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, edi
jne 0x10bc37e
push 0x57
pop ecx
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x21c], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bc774
test byte [eax + 0x1c], 8
je 0x10bc774
push 0x103d6f8
push ecx
push 0x103ee20
push 0x34
jmp 0x10bc865
mov dword [esi], edi
push ebx
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.010474b6
cmp eax, edi
jge 0x10bc3f4
mov ecx, eax
mov dword [ebp - 0x214], edi
call fcn.010bcebf
mov dword [ebp - 0x21c], eax
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bc774
test byte [eax + 0x1c], 8
je 0x10bc774
push 0x103f070
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.010474b6
push eax
mov eax, dword [0x10e308c]
push 0x103ee20
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010acaf3
jmp 0x10bc774
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10bc3fd
sub eax, edx
sar eax, 1
jne 0x10bc44f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], edi
call esi
mov dword [ebp - 0x21c], eax
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bc774
test byte [eax + 0x1c], 8
je 0x10bc774
push 0x103f060
call esi
push eax
push 0x103ee20
push 0x36
jmp 0x10bc860
lea eax, [ebp + eax*2 - 0x212]
cmp word [eax], 0x5c
jne 0x10bc461
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x220]
push eax
push 2
push 1
lea eax, [ebp - 0x210]
push eax
call fcn.010bbec5
test eax, eax
jne 0x10bc4be
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], edi
call esi
mov dword [ebp - 0x21c], eax
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bc774
test byte [eax + 0x1c], 8
je 0x10bc774
push 0x103f000
call esi
push eax
push 0x103ee20
push 0x37
jmp 0x10bc860
cmp dword [ebp - 0x220], edi
je 0x10bc774
push 0xc
call fcn.010bd1d1
mov esi, eax
mov dword [ebp - 0x22c], esi
cmp esi, edi
jne 0x10bc518
push 0xe
pop ecx
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x21c], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bc774
test byte [eax + 0x1c], 8
je 0x10bc774
push 0x103d6e4
push ecx
push 0x103ee20
push 0x38
jmp 0x10bc865
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x220]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
imul eax, eax, 0x18
push eax
call fcn.010bd1d1
mov dword [esi], eax
cmp eax, edi
jne 0x10bc571
push 0xe
pop ecx
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x21c], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bc774
test byte [eax + 0x1c], 8
je 0x10bc774
push 0x103efdc
push ecx
push 0x103ee20
push 0x39
jmp 0x10bc865
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov dword [ebp - 0x228], edi
cmp dword [ebx + 4], edi
jbe 0x10bc751
add ebx, 0x2c
push dword [ebp - 0x224]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x218]
and dword [ebp - 0x224], 0
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x218], eax
test ecx, ecx
je 0x10bc643
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x230], edx
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10bc5c6
sub eax, dword [ebp - 0x230]
sar eax, 1
push eax
push ecx
push dword [ebp - 0x218]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x10bc643
push dword [ebp - 0x218]
push dword [ebx]
call fcn.010bd43d
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x10bc6c5
and dword [ebp - 0x214], eax
push 0xe
pop ecx
mov dword [ebp - 0x21c], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bc774
test byte [eax + 0x1c], 8
je 0x10bc774
push 0x103efc4
push ecx
push 0x103ee20
push 0x3c
jmp 0x10bc865
push 8
push dword [ebp - 0x218]
push 0x103efb0
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
push dword [ebp - 0x218]
test eax, eax
jne 0x10bc6b2
push 0x103ef90
call fcn.010bd43d
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x10bc6c5
and dword [ebp - 0x214], eax
push 0xe
pop ecx
mov dword [ebp - 0x21c], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bc774
test byte [eax + 0x1c], 8
je 0x10bc774
push 0x103efc4
push ecx
push 0x103ee20
push 0x3a
jmp 0x10bc865
call fcn.010bd342
mov dword [ebp - 0x218], eax
test eax, eax
je 0x10bc7c3
mov eax, dword [esi]
add eax, edi
lea ecx, [eax + 4]
push ecx
push eax
push dword [ebp - 0x218]
call fcn.010bdca0
test eax, eax
je 0x10bc7f4
mov eax, dword [esi]
push 0x100163c
push dword [edi + eax]
call fcn.010bd43d
push eax
mov dword [ebp - 0x224], eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x10bc875
mov eax, dword [esi]
mov eax, dword [edi + eax]
inc dword [ebp - 0x228]
push 0x3f
pop ecx
mov word [eax + 2], cx
mov eax, dword [esi]
mov dword [edi + eax + 0xc], 0x200000
mov ecx, dword [ebx - 0x24]
mov eax, dword [esi]
mov dword [edi + eax + 8], ecx
mov ecx, dword [ebx - 8]
mov eax, dword [esi]
mov dword [edi + eax + 0x10], ecx
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x228]
add ebx, 0x30
add edi, 0x18
cmp ecx, dword [eax + 4]
jb 0x10bc589
xor edi, edi
push 0x10b576d
push 0x18
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.msvcrt.dll_qsort]
mov eax, dword [ebp - 0x234]
add esp, 0x10
mov dword [eax], esi
mov dword [ebp - 0x22c], edi
push dword [ebp - 0x224]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
lea eax, [ebp - 0x22c]
push eax
call fcn.010bbe6b
push dword [ebp - 0x220]
call esi
push 0x103f0b0
call fcn.010bce68
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010987b7
leave
ret 0xc
and dword [ebp - 0x214], 0
push 0xe
pop ecx
mov dword [ebp - 0x21c], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bc774
test byte [eax + 0x1c], 8
je 0x10bc774
push 0x103efc4
push ecx
push 0x103ee20
push 0x3b
jmp 0x10bc865
mov eax, dword [0x10e308c]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x10e308c
mov ebx, 0x103ee20
cmp eax, edi
je 0x10bc82f
test byte [eax + 0x1c], 2
je 0x10bc82f
call esi
push eax
push dword [ebp - 0x218]
mov eax, dword [0x10e308c]
push ebx
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010acc55
and dword [ebp - 0x214], 0
call esi
mov dword [ebp - 0x21c], eax
mov eax, dword [0x10e308c]
cmp eax, edi
je 0x10bc774
test byte [eax + 0x1c], 8
je 0x10bc774
push 0x103ae48
call esi
push eax
push ebx
push 0x3e
mov eax, dword [0x10e308c]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010acaf3
jmp 0x10bc774
and dword [ebp - 0x214], 0
push 0x32
pop edx
mov dword [ebp - 0x21c], edx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bc774
test byte [eax + 0x1c], 8
je 0x10bc774
mov ecx, dword [ebp - 0x228]
mov esi, dword [esi]
imul ecx, ecx, 0x18
push dword [ecx + esi + 4]
push dword [ebp - 0x224]
push 0x103df28
push edx
push 0x103ee20
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010b0ad3
jmp 0x10bc774