Function at 0x101d277
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 0x101d644
cmp dword [ebp + 0xc], esi
je 0x101d644
cmp dword [ebp + 0xc], 2
je 0x101d644
cmp ecx, esi
je 0x101d644
cmp edx, esi
je 0x101d644
mov dword [ecx], esi
push edi
lea ecx, [ebp - 0x224]
push ecx
push eax
mov dword [edx], esi
call fcn.0101c080
mov edi, eax
cmp edi, esi
jl 0x101d30d
lea eax, [ebp - 0x220]
push eax
call fcn.0101d0cc
mov edi, eax
cmp edi, esi
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x214], eax
jl 0x101d612
push ebx
mov ebx, 0x80070000
mov eax, dword [ebp - 0x214]
movzx esi, word [eax]
xor eax, eax
cmp ax, si
je 0x101d5cf
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 0x101d481
cmp dword [ebp + 0xc], 2
jle 0x101d477
cmp dword [ebp + 0xc], 4
jg 0x101d477
cmp si, 0x61
jb 0x101d38a
cmp si, 0x7a
jbe 0x101d396
cmp si, 0x41
jb 0x101d3ad
cmp si, 0x5a
ja 0x101d3ad
mov ecx, dword [ebp - 0x214]
push 0x3a
pop edx
cmp dx, word [ecx + 2]
jne 0x101d3ad
xor edx, edx
cmp dx, word [ecx + 4]
je 0x101d3af
xor eax, eax
test edi, edi
jl 0x101d57b
test eax, eax
je 0x101d57b
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x101d57b
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0101c080
test eax, eax
jl 0x101d57b
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 0x101d57b
mov esi, dword [ebp - 0x210]
test esi, esi
jne 0x101d4c0
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 0x101d528
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x101d461
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x101d4b9
call esi
test eax, eax
jle 0x101d470
and eax, 0xffff
or eax, ebx
mov edi, eax
jmp 0x101d51e
mov edi, 0x80070057
jmp 0x101d5a4
push 0x1009fc8
push dword [ebp - 0x214]
call fcn.01014a50
test eax, eax
je 0x101d3ad
push 0x1009fc4
push dword [ebp - 0x214]
call fcn.0101476c
test eax, eax
je 0x101d3ad
xor eax, eax
inc eax
jmp 0x101d3af
mov edi, 0x80004005
jmp 0x101d51e
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 0x101d4e7
xor edi, edi
jmp 0x101d518
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jle 0x101d4fc
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x101d50f
call edi
test eax, eax
jle 0x101d50b
and eax, 0xffff
or eax, ebx
mov edi, eax
jmp 0x101d514
mov edi, 0x80004005
test edi, edi
jl 0x101d57b
mov dword [ebp - 0x218], esi
test edi, edi
jl 0x101d57b
mov esi, dword [ebp - 0x210]
push dword [ebp - 0x214]
call fcn.0101492d
mov ecx, dword [ebp - 0x218]
mov dword [ecx + esi*4], eax
test eax, eax
je 0x101d544
xor edi, edi
jmp 0x101d575
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x101d559
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x101d56c
call esi
test eax, eax
jle 0x101d568
and eax, 0xffff
or eax, ebx
mov edi, eax
jmp 0x101d571
mov edi, 0x80004005
test edi, edi
jl 0x101d57b
inc dword [ebp - 0x210]
cmp dword [ebp - 0x21c], 0
je 0x101d5a4
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 0x101d5a4
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 0x101d5af
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2 + 2]
mov dword [ebp - 0x214], eax
test edi, edi
jge 0x101d327
pop ebx
test edi, edi
jl 0x101d610
cmp dword [ebp - 0x210], 0
jne 0x101d5e2
mov edi, 0x80070490
test edi, edi
jl 0x101d610
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.0101d071
cmp dword [ebp - 0x220], esi
je 0x101d63f
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 0x101d649
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100b8d5
leave
ret 0x10