Function at 0x101d269
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push esi
xor esi, esi
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x210], esi
cmp eax, esi
je 0x101d636
cmp dword [ebp + 0xc], esi
je 0x101d636
cmp dword [ebp + 0xc], 2
je 0x101d636
cmp ecx, esi
je 0x101d636
cmp edx, esi
je 0x101d636
mov dword [ecx], esi
push edi
lea ecx, [ebp - 0x224]
push ecx
push eax
mov dword [edx], esi
call fcn.0101c072
mov edi, eax
cmp edi, esi
jl 0x101d2ff
lea eax, [ebp - 0x220]
push eax
call fcn.0101d0be
mov edi, eax
cmp edi, esi
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x214], eax
jl 0x101d604
push ebx
mov ebx, 0x80070000
mov eax, dword [ebp - 0x214]
movzx esi, word [eax]
xor eax, eax
cmp ax, si
je 0x101d5c1
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x21c], 0
xor eax, eax
inc eax
add esp, 0xc
cmp dword [ebp + 0xc], eax
je 0x101d473
cmp dword [ebp + 0xc], 2
jle 0x101d469
cmp dword [ebp + 0xc], 4
jg 0x101d469
cmp si, 0x61
jb 0x101d37c
cmp si, 0x7a
jbe 0x101d388
cmp si, 0x41
jb 0x101d39f
cmp si, 0x5a
ja 0x101d39f
mov ecx, dword [ebp - 0x214]
push 0x3a
pop edx
cmp dx, word [ecx + 2]
jne 0x101d39f
xor edx, edx
cmp dx, word [ecx + 4]
je 0x101d3a1
xor eax, eax
test edi, edi
jl 0x101d56d
test eax, eax
je 0x101d56d
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x101d56d
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0101c072
test eax, eax
jl 0x101d56d
push 0xffffffffffffffff
push dword [ebp - 0x21c]
push 0xffffffffffffffff
push dword [ebp - 0x224]
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
dec eax
dec eax
jne 0x101d56d
mov esi, dword [ebp - 0x210]
test esi, esi
jne 0x101d4b2
push 4
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x101d51a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x101d453
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x101d4ab
call esi
test eax, eax
jle 0x101d462
and eax, 0xffff
or eax, ebx
mov edi, eax
jmp 0x101d510
mov edi, 0x80070057
jmp 0x101d596
push 0x1009fb8
push dword [ebp - 0x214]
call fcn.01014a3d
test eax, eax
je 0x101d39f
push 0x1009fb4
push dword [ebp - 0x214]
call fcn.01014759
test eax, eax
je 0x101d39f
xor eax, eax
inc eax
jmp 0x101d3a1
mov edi, 0x80004005
jmp 0x101d510
lea eax, [esi*4 + 4]
push eax
push dword [ebp - 0x218]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
je 0x101d4d9
xor edi, edi
jmp 0x101d50a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jle 0x101d4ee
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x101d501
call edi
test eax, eax
jle 0x101d4fd
and eax, 0xffff
or eax, ebx
mov edi, eax
jmp 0x101d506
mov edi, 0x80004005
test edi, edi
jl 0x101d56d
mov dword [ebp - 0x218], esi
test edi, edi
jl 0x101d56d
mov esi, dword [ebp - 0x210]
push dword [ebp - 0x214]
call fcn.0101491a
mov ecx, dword [ebp - 0x218]
mov dword [ecx + esi*4], eax
test eax, eax
je 0x101d536
xor edi, edi
jmp 0x101d567
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x101d54b
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x101d55e
call esi
test eax, eax
jle 0x101d55a
and eax, 0xffff
or eax, ebx
mov edi, eax
jmp 0x101d563
mov edi, 0x80004005
test edi, edi
jl 0x101d56d
inc dword [ebp - 0x210]
cmp dword [ebp - 0x21c], 0
je 0x101d596
push dword [ebp - 0x21c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x101d596
and dword [ebp - 0x21c], 0
mov esi, dword [ebp - 0x214]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101d5a1
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2 + 2]
mov dword [ebp - 0x214], eax
test edi, edi
jge 0x101d319
pop ebx
test edi, edi
jl 0x101d602
cmp dword [ebp - 0x210], 0
jne 0x101d5d4
mov edi, 0x80070490
test edi, edi
jl 0x101d602
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x22c]
and dword [ebp - 0x218], 0
mov dword [ecx], eax
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x228]
and dword [ebp - 0x210], 0
mov dword [ecx], eax
xor esi, esi
push dword [ebp - 0x210]
push dword [ebp - 0x218]
call fcn.0101d063
cmp dword [ebp - 0x220], esi
je 0x101d631
push dword [ebp - 0x220]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
jmp 0x101d63b
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100b8c5
leave
ret 0x10