Function at 0x101d0c8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1022018]
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 0x101d495
cmp dword [ebp + 0xc], esi
je 0x101d495
cmp dword [ebp + 0xc], 2
je 0x101d495
cmp ecx, esi
je 0x101d495
cmp edx, esi
je 0x101d495
mov dword [ecx], esi
push edi
lea ecx, [ebp - 0x224]
push ecx
push eax
mov dword [edx], esi
call fcn.0101bed1
mov edi, eax
cmp edi, esi
jl 0x101d15e
lea eax, [ebp - 0x220]
push eax
call fcn.0101cf1d
mov edi, eax
cmp edi, esi
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x214], eax
jl 0x101d463
push ebx
mov ebx, 0x80070000
mov eax, dword [ebp - 0x214]
movzx esi, word [eax]
xor eax, eax
cmp ax, si
je 0x101d420
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 0x101d2d2
cmp dword [ebp + 0xc], 2
jle 0x101d2c8
cmp dword [ebp + 0xc], 4
jg 0x101d2c8
cmp si, 0x61
jb 0x101d1db
cmp si, 0x7a
jbe 0x101d1e7
cmp si, 0x41
jb 0x101d1fe
cmp si, 0x5a
ja 0x101d1fe
mov ecx, dword [ebp - 0x214]
push 0x3a
pop edx
cmp dx, word [ecx + 2]
jne 0x101d1fe
xor edx, edx
cmp dx, word [ecx + 4]
je 0x101d200
xor eax, eax
test edi, edi
jl 0x101d3cc
test eax, eax
je 0x101d3cc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x101d3cc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0101bed1
test eax, eax
jl 0x101d3cc
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 0x101d3cc
mov esi, dword [ebp - 0x210]
test esi, esi
jne 0x101d311
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 0x101d379
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x101d2b2
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x101d30a
call esi
test eax, eax
jle 0x101d2c1
and eax, 0xffff
or eax, ebx
mov edi, eax
jmp 0x101d36f
mov edi, 0x80070057
jmp 0x101d3f5
push 0x1009e18
push dword [ebp - 0x214]
call fcn.0101488c
test eax, eax
je 0x101d1fe
push 0x1009e14
push dword [ebp - 0x214]
call fcn.010145a8
test eax, eax
je 0x101d1fe
xor eax, eax
inc eax
jmp 0x101d200
mov edi, 0x80004005
jmp 0x101d36f
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 0x101d338
xor edi, edi
jmp 0x101d369
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jle 0x101d34d
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x101d360
call edi
test eax, eax
jle 0x101d35c
and eax, 0xffff
or eax, ebx
mov edi, eax
jmp 0x101d365
mov edi, 0x80004005
test edi, edi
jl 0x101d3cc
mov dword [ebp - 0x218], esi
test edi, edi
jl 0x101d3cc
mov esi, dword [ebp - 0x210]
push dword [ebp - 0x214]
call fcn.01014769
mov ecx, dword [ebp - 0x218]
mov dword [ecx + esi*4], eax
test eax, eax
je 0x101d395
xor edi, edi
jmp 0x101d3c6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x101d3aa
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x101d3bd
call esi
test eax, eax
jle 0x101d3b9
and eax, 0xffff
or eax, ebx
mov edi, eax
jmp 0x101d3c2
mov edi, 0x80004005
test edi, edi
jl 0x101d3cc
inc dword [ebp - 0x210]
cmp dword [ebp - 0x21c], 0
je 0x101d3f5
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 0x101d3f5
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 0x101d400
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2 + 2]
mov dword [ebp - 0x214], eax
test edi, edi
jge 0x101d178
pop ebx
test edi, edi
jl 0x101d461
cmp dword [ebp - 0x210], 0
jne 0x101d433
mov edi, 0x80070490
test edi, edi
jl 0x101d461
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.0101cec2
cmp dword [ebp - 0x220], esi
je 0x101d490
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 0x101d49a
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100b6a5
leave
ret 0x10