Function at 0x10029889
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 8], eax
mov esi, edx
mov dword [ebp - 0x2c], edi
inc ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
test edi, edi
je 0x10029ca1
cmp dword [edi], 0xfeedf002
jne 0x10029ca1
mov edx, dword [ebp + 8]
test edx, 0xf6ad0e41
jne 0x10029ca1
test esi, esi
je 0x100298e2
cmp word [esi], ax
jne 0x100298f8
test dl, 8
jne 0x100298f1
push 0xa1
jmp 0x10029ca3
mov dword [ebp - 0x10], 0x10005a88
call fcn.100310f1
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1002990b
push 6
jmp 0x10029ca3
mov esi, edx
and esi, 8
mov dword [ebp - 0xc], esi
jne 0x10029928
mov ecx, dword [ebp - 0x10]
call fcn.10080e5a
test eax, eax
je 0x10029ca9
mov edx, dword [ebp + 8]
mov ecx, 0x6000
mov eax, edx
and eax, ecx
cmp eax, ecx
je 0x10029ca1
mov ecx, dword [ebp - 0x10]
xor edx, edx
push 0
call fcn.1003670e
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x10029ca9
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [ebp + 0x10], edx
jbe 0x100299a9
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add esi, 8
mov ecx, dword [ebp + 0x10]
test dword [esi - 8], eax
je 0x10029998
mov ecx, dword [esi]
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x10029995
push dword [esi - 4]
push eax
push dword [ebp - 0x10]
push edi
call dword [0x10087410]
call dword [ebp - 0x20]
test eax, eax
je 0x10029a82
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
inc edx
add esi, 0x18
mov dword [ebp - 0x14], edx
cmp edx, ecx
jb 0x10029968
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
and eax, 0x1000008
cmp eax, 8
je 0x100299bf
mov edx, ecx
mov ecx, edi
call fcn.100337f8
test esi, esi
jne 0x10029a64
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
and dword [ebp - 0x14], esi
call fcn.10036b2c
mov esi, eax
test esi, esi
jns 0x10029a25
push esi
push 0x262
mov ecx, 0x10005a90
call fcn.1003a254
test esi, 0x10000000
je 0x10029a0a
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
cmp eax, 0x13d
je 0x10029a20
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x10029a1b
mov eax, esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x10029a20
movzx eax, si
mov dword [ebp - 8], eax
jmp 0x10029a3f
mov dword [ebp - 8], esi
jmp 0x10029a3f
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x10029a38
cmp eax, 4
jne 0x10029a41
mov dword [ebp - 8], 0xa1
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x10029a59
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x10029c2f
mov esi, dword [ebp - 0xc]
test byte [ebp + 8], 4
je 0x10029a89
mov ecx, edi
call fcn.10030a0e
mov ecx, eax
call fcn.10022496
test eax, eax
jne 0x10029a89
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
jmp 0x10029c2f
test esi, esi
jne 0x10029abf
mov esi, dword [ebp - 0x18]
mov ecx, edi
mov edx, esi
call fcn.1002962d
mov ebx, eax
test ebx, ebx
jne 0x10029abf
push 0x29e
push 0x10005a90
push eax
push 0x10005ac0
xor ecx, ecx
mov edx, edi
push esi
inc ecx
call fcn.1002fae3
jmp 0x10029c2f
push 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10030a2b
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.10029531
xor edx, edx
mov dword [ebp - 0xc], edx
cmp dword [ebp + 0x10], edx
jbe 0x10029b26
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add esi, 0xc
mov ecx, dword [ebp + 0x10]
test dword [esi - 0xc], eax
je 0x10029b1b
mov ecx, dword [esi]
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x10029b18
push dword [esi - 8]
push eax
push dword [ebp - 0x10]
push edi
call dword [0x10087410]
call dword [ebp - 0x20]
test eax, eax
je 0x10029bda
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
inc edx
add esi, 0x18
mov dword [ebp - 0xc], edx
cmp edx, ecx
jb 0x10029aeb
mov ecx, edi
call fcn.1003a5ed
call fcn.1003a815
mov edx, eax
mov ecx, edi
call fcn.1003105f
mov esi, dword [ebp - 0x24]
cmp dword [esi], 0
je 0x10029b5b
push dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x10029b5b
and dword [esi], 0
mov ecx, dword [ebp - 0x18]
call fcn.10036a6b
mov edx, esi
mov dword [esi], eax
mov ecx, edi
call fcn.10029d62
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jns 0x10029b8b
push esi
push 0x2c2
mov ecx, 0x10005a90
call fcn.1003a254
xor ebx, ebx
jmp 0x10029bdf
xor edx, edx
mov dword [ebp - 0xc], edx
cmp dword [ebp + 0x10], edx
jbe 0x10029bdf
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add esi, 0x10
mov ecx, dword [ebp + 0x10]
test dword [esi - 0x10], eax
je 0x10029bcd
mov ecx, dword [esi]
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x10029bca
push dword [esi - 0xc]
push eax
push dword [ebp - 0x10]
push edi
call dword [0x10087410]
call dword [ebp - 0x24]
test eax, eax
je 0x10029bda
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
inc edx
add esi, 0x18
mov dword [ebp - 0xc], edx
cmp edx, ecx
jb 0x10029ba1
jmp 0x10029bdc
xor ebx, ebx
mov esi, dword [ebp - 0x1c]
push 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10030a60
test esi, esi
jns 0x10029c2b
test esi, 0x10000000
je 0x10029c0e
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
cmp eax, 0x13d
je 0x10029c24
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x10029c1f
mov eax, esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x10029c24
movzx eax, si
mov dword [ebp - 8], eax
jmp 0x10029c27
mov dword [ebp - 8], esi
xor ebx, ebx
jmp 0x10029c38
test ebx, ebx
jne 0x10029c38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10029c7e
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add edi, 4
test dword [edi - 4], ecx
je 0x10029c73
cmp dword [edi + 0x10], 0
je 0x10029c73
mov eax, dword [edi]
mov dword [eax], ebx
push dword [edi]
mov esi, dword [edi + 0x10]
push ecx
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebp - 0x2c]
call dword [0x10087410]
call esi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
add edi, 0x18
sub eax, 1
mov dword [ebp + 0x10], eax
jne 0x10029c48
test ebx, ebx
jne 0x10029c8b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
jmp 0x10029cab
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret 0xc