Function at 0x10190fd
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], 1
test ebx, ebx
je 0x10193c6
push ebx
call fcn.010195b8
cmp eax, 0xfeedf002
jne 0x10193c6
test dword [ebp + 0x10], 0xfefffe41
jne 0x10193c6
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1019149
cmp word [esi], 0
jne 0x101915e
test byte [ebp + 0x10], 8
jne 0x1019159
push 0xa1
jmp 0x10193c8
mov esi, 0x1002eb8
push ebx
call fcn.010198d3
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1019172
push 6
jmp 0x10193c8
mov edi, dword [ebp + 0x10]
and edi, 8
jne 0x1019188
push esi
call fcn.0102b462
test eax, eax
je 0x10193ce
push 0
push esi
call fcn.01014fba
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x10193ce
test edi, edi
je 0x10191aa
test dword [ebp + 0x10], 0x1000000
je 0x10191b1
push esi
push ebx
call fcn.01015de9
test edi, edi
jne 0x1019246
and dword [ebp + 8], edi
lea eax, [ebp + 8]
push eax
push esi
call fcn.01015cd1
mov esi, eax
test esi, esi
jl 0x10191e8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x10191df
cmp eax, 4
jne 0x1019224
mov dword [ebp - 4], 0xa1
jmp 0x1019220
test esi, 0x10000000
je 0x1019207
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
cmp eax, 0x13d
je 0x101921d
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x1019218
mov eax, esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x101921d
movzx eax, si
mov dword [ebp - 4], eax
jmp 0x1019220
mov dword [ebp - 4], esi
and dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x101923c
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 8], 0
je 0x10193a0
test byte [ebp + 0x10], 4
je 0x1019269
push ebx
call fcn.0101a025
push eax
call fcn.0101da0e
test eax, eax
jne 0x1019269
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 8], 0
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 8], eax
je 0x10193a0
push eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ebx
call fcn.0101957a
test edi, edi
je 0x101928e
push 8
push ebx
call fcn.01016c87
test byte [ebp + 0x10], 2
je 0x101929c
push 2
push ebx
call fcn.01016c87
test byte [ebp + 0x10], 0x10
je 0x10192aa
push 0x10
push ebx
call fcn.01016c87
test byte [ebp + 0x10], 0x20
je 0x10192b8
push 0x20
push ebx
call fcn.01016c87
test byte [ebp + 0x10], 0x80
je 0x10192c9
push 0x80
push ebx
call fcn.01016c87
mov eax, 0x100
test dword [ebp + 0x10], eax
je 0x10192da
push eax
push ebx
call fcn.01016c87
mov eax, 0x1000000
test dword [ebp + 0x10], eax
je 0x1019305
push eax
push ebx
call fcn.01016c87
push 0
push ebx
call fcn.01019852
push eax
call fcn.0102002b
call fcn.0101fffb
push eax
push ebx
call fcn.01019899
push 0x10000
push ebx
call fcn.01016c87
push ebx
call fcn.0101c4e8
call fcn.0101fffb
push eax
push ebx
call fcn.01019877
mov esi, dword [ebp - 0xc]
mov eax, dword [esi]
xor edi, edi
cmp eax, edi
je 0x1019342
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x1019342
mov dword [esi], edi
push edi
push dword [ebp + 0xc]
call fcn.01014fba
push esi
push ebx
mov dword [esi], eax
call fcn.01018ef9
mov esi, eax
push 0
lea eax, [ebp + 8]
push eax
push ebx
call fcn.01019a06
test esi, esi
jge 0x10193a0
test esi, 0x10000000
je 0x1019383
mov edi, dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push esi
call edi
cmp eax, 0x13d
je 0x1019399
push esi
call edi
jmp 0x1019394
mov eax, esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x1019399
movzx eax, si
mov dword [ebp - 4], eax
jmp 0x101939c
mov dword [ebp - 4], esi
and dword [ebp - 8], 0
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
je 0x10193c1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
jmp 0x10193d0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc