Function at 0x10010920
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x31c]
sub esp, 0x31c
push 0xfffffffffffffffe
push 0x1016c1c8
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x318], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp + 0x210], bl
push 0x104
push ebx
lea eax, [ebp + 0x211]
push eax
call fcn.10116880
mov byte [ebp + 0x108], bl
push 0x104
push ebx
lea ecx, [ebp + 0x109]
push ecx
call fcn.10116880
mov byte [ebp], bl
push 0x104
push ebx
lea edx, [ebp + 1]
push edx
call fcn.10116880
add esp, 0x24
mov dword [ebp - 4], ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
test edi, edi
je 0x10010c8f
cmp byte [edi], 0
je 0x10010c8f
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10010c8f
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x10010c8f
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov ecx, edi
lea edx, [ebp + 0x210]
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x10010a10
lea ecx, [ebp + 0x210]
call fcn.100559b0
lea eax, [ebp + 0x210]
mov dword [ebp - 0x2c], eax
mov edi, edi
mov cl, byte [eax]
inc eax
mov dword [ebp - 0x2c], eax
test cl, cl
je 0x10010a44
cmp byte [eax], 0x2f
jne 0x10010a30
mov byte [eax], 0x5c
jmp 0x10010a30
lea ecx, [ebp + 0x210]
lea edx, [ebp + 0x108]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x10010a50
lea edx, [ebp + 0x108]
push edx
lea eax, [ebp + 0x210]
push eax
call dword [0x101905d0]
lea ecx, [ebp + 0x210]
push ecx
call fcn.1010f90d
add esp, 4
mov dword [esi], eax
xor edi, edi
cmp eax, edi
jne 0x10010a8c
push 0xe
jmp 0x10010c91
push eax
call dword [0x101905c0]
test eax, eax
jne 0x10010c88
mov edx, dword [esi]
push edx
call dword [0x101905c4]
test eax, eax
jne 0x10010c88
mov eax, dword [esi]
push eax
call dword [0x101905c8]
test eax, eax
jne 0x10010c88
mov ecx, dword [esi]
push ecx
call dword [0x101905cc]
test eax, eax
jne 0x10010c88
lea ecx, [ebp + 0x210]
lea edx, [ebp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x10010ad7
mov byte [ebp + 0x212], al
push 0x105
lea edx, [ebp + 0x108]
push edx
lea eax, [ebp + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
cmp eax, edi
je 0x10010c93
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x38], str.DeviceHarddisk
mov dword [ebp - 0x34], str.___
mov dword [ebp - 0x30], str.DosDevices_
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
cmp ebx, 3
jae 0x10010b9b
mov edi, dword [ebp + ebx*4 - 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x24], eax
push eax
push edi
lea ecx, [ebp + 0x108]
push ecx
call fcn.1011c70c
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x10010b58
inc ebx
jmp 0x10010b25
test ebx, ebx
jne 0x10010b71
lea ecx, [ebp]
lea edx, [ebp + 0x210]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x10010b65
jmp 0x10010b9b
lea edx, [ebp]
push edx
call dword [0x101903b4]
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [ebp + eax + 0x108]
push ecx
push 0x1013fbf8
lea edx, [ebp + 0x210]
push edx
call fcn.1010d6a8
add esp, 0x10
test edi, edi
je 0x10010baf
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10010c93
lea eax, [ebp + 0x210]
push eax
call fcn.1010f90d
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x10010bd2
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10010c93
push 0x80
push 3
push 3
push 0x80
mov edi, eax
call fcn.10033690
add esp, 0x10
mov ecx, eax
mov dword [esi + 8], ecx
call fcn.1004cb20
test eax, eax
je 0x10010c93
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x10010c15
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10010c93
mov dword [ebp - 0x6c], 0
push 0x30
push 0
lea ecx, [ebp - 0x68]
push ecx
call fcn.10116880
add esp, 0xc
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10010c93
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0xc], eax
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0x18], ecx
mov edx, dword [ebp - 0x40]
mov dword [esi + 0x1c], edx
test eax, 0xa00
jne 0x10010c65
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp - 0x4c]
mov dword [esi + 0x14], ecx
jmp 0x10010c7f
lea edx, [esi + 0x14]
push edx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
mov dword [esi + 0x10], eax
test eax, eax
je 0x10010c93
cmp eax, 0xffffffff
je 0x10010c93
mov dword [ebp - 0x20], 1
jmp 0x10010c93
push 0xa1
jmp 0x10010c91
push 0x57
call ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.10010cc6
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x318]
xor ecx, ebp
call fcn.1010d699
add ebp, 0x31c
mov esp, ebp
pop ebp
ret