Function at 0x10bc55c
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 0x103f1d8
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x214], 1
call fcn.010bd0c6
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 0x10bc611
push 0x57
pop ecx
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x21c], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bca07
test byte [eax + 0x1c], 8
je 0x10bca07
push 0x103d820
push ecx
push 0x103ef48
push 0x34
jmp 0x10bcaf8
mov dword [esi], edi
push ebx
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.010474dc
cmp eax, edi
jge 0x10bc687
mov ecx, eax
mov dword [ebp - 0x214], edi
call fcn.010bd152
mov dword [ebp - 0x21c], eax
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bca07
test byte [eax + 0x1c], 8
je 0x10bca07
push 0x103f198
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.010474dc
push eax
mov eax, dword [0x10e308c]
push 0x103ef48
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010acf68
jmp 0x10bca07
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10bc690
sub eax, edx
sar eax, 1
jne 0x10bc6e2
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 0x10bca07
test byte [eax + 0x1c], 8
je 0x10bca07
push 0x103f188
call esi
push eax
push 0x103ef48
push 0x36
jmp 0x10bcaf3
lea eax, [ebp + eax*2 - 0x212]
cmp word [eax], 0x5c
jne 0x10bc6f4
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.010bc158
test eax, eax
jne 0x10bc751
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 0x10bca07
test byte [eax + 0x1c], 8
je 0x10bca07
push 0x103f128
call esi
push eax
push 0x103ef48
push 0x37
jmp 0x10bcaf3
cmp dword [ebp - 0x220], edi
je 0x10bca07
push 0xc
call fcn.010bd463
mov esi, eax
mov dword [ebp - 0x22c], esi
cmp esi, edi
jne 0x10bc7ab
push 0xe
pop ecx
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x21c], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bca07
test byte [eax + 0x1c], 8
je 0x10bca07
push 0x103d80c
push ecx
push 0x103ef48
push 0x38
jmp 0x10bcaf8
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.010bd463
mov dword [esi], eax
cmp eax, edi
jne 0x10bc804
push 0xe
pop ecx
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x21c], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bca07
test byte [eax + 0x1c], 8
je 0x10bca07
push 0x103f104
push ecx
push 0x103ef48
push 0x39
jmp 0x10bcaf8
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov dword [ebp - 0x228], edi
cmp dword [ebx + 4], edi
jbe 0x10bc9e4
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 0x10bc8d6
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x230], edx
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10bc859
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 0x10bc8d6
push dword [ebp - 0x218]
push dword [ebx]
call fcn.010bd706
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x10bc958
and dword [ebp - 0x214], eax
push 0xe
pop ecx
mov dword [ebp - 0x21c], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bca07
test byte [eax + 0x1c], 8
je 0x10bca07
push 0x103f0ec
push ecx
push 0x103ef48
push 0x3c
jmp 0x10bcaf8
push 8
push dword [ebp - 0x218]
push 0x103f0d8
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
push dword [ebp - 0x218]
test eax, eax
jne 0x10bc945
push 0x103f0b8
call fcn.010bd706
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x10bc958
and dword [ebp - 0x214], eax
push 0xe
pop ecx
mov dword [ebp - 0x21c], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bca07
test byte [eax + 0x1c], 8
je 0x10bca07
push 0x103f0ec
push ecx
push 0x103ef48
push 0x3a
jmp 0x10bcaf8
call fcn.010bd60b
mov dword [ebp - 0x218], eax
test eax, eax
je 0x10bca56
mov eax, dword [esi]
add eax, edi
lea ecx, [eax + 4]
push ecx
push eax
push dword [ebp - 0x218]
call fcn.010bdf6c
test eax, eax
je 0x10bca87
mov eax, dword [esi]
push 0x100163c
push dword [edi + eax]
call fcn.010bd706
push eax
mov dword [ebp - 0x224], eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x10bcb08
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 0x10bc81c
xor edi, edi
push 0x10b5a2d
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.010bc0fe
push dword [ebp - 0x220]
call esi
push 0x103f1d8
call fcn.010bd0fb
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.010989ab
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 0x10bca07
test byte [eax + 0x1c], 8
je 0x10bca07
push 0x103f0ec
push ecx
push 0x103ef48
push 0x3b
jmp 0x10bcaf8
mov eax, dword [0x10e308c]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x10e308c
mov ebx, 0x103ef48
cmp eax, edi
je 0x10bcac2
test byte [eax + 0x1c], 2
je 0x10bcac2
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.010ace97
and dword [ebp - 0x214], 0
call esi
mov dword [ebp - 0x21c], eax
mov eax, dword [0x10e308c]
cmp eax, edi
je 0x10bca07
test byte [eax + 0x1c], 8
je 0x10bca07
push 0x103af70
call esi
push eax
push ebx
push 0x3e
mov eax, dword [0x10e308c]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010acf68
jmp 0x10bca07
and dword [ebp - 0x214], 0
push 0x32
pop edx
mov dword [ebp - 0x21c], edx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10bca07
test byte [eax + 0x1c], 8
je 0x10bca07
mov ecx, dword [ebp - 0x228]
mov esi, dword [esi]
imul ecx, ecx, 0x18
push dword [ecx + esi + 4]
push dword [ebp - 0x224]
push 0x103e050
push edx
push 0x103ef48
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010b0db7
jmp 0x10bca07