Function at 0x10004885
Capabilities:
Get disk information

Disassembly:
push 0xb0
mov eax, 0x100742f1
call fcn.100588d8
mov eax, dword [ebp + 8]
push 9
pop ecx
mov esi, str..PhysicalDriveN
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x41], bl
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x3a
mov word [ebp - 0x14], 0x5c
mov word [ebp - 0x12], bx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ebx
or edi, 0xffffffff
cmp byte [ebp - 0x41], bl
jne 0x10004aa6
mov edx, dword [ebp - 0x64]
xor eax, eax
inc eax
shl eax, cl
test edx, eax
je 0x10004a96
lea eax, [ebp - 0x18]
add ecx, 0x41
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1000491c
cmp eax, 6
jne 0x10004a96
mov eax, dword [ebp - 0x50]
push ebx
push ebx
push 3
push ebx
add eax, 0x30
inc dword [ebp - 0x50]
push 7
mov word [ebp - 0x1e], ax
push 0xc0000000
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
mov dword [ebp - 0x48], eax
je 0x10004a96
push 0x18
lea eax, [ebp - 0xa0]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call fcn.10051de0
add esp, 0xc
push ebx
lea eax, [ebp - 0x5c]
push eax
push 0x18
lea eax, [ebp - 0xa0]
push eax
push ebx
push ebx
push 0x74080
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10004a8d
push 0x221
call fcn.100541b7
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [ebp - 0x4c], esi
je 0x10004a8d
push ebx
lea eax, [ebp - 0x58]
push eax
push 0x221
push esi
push 0x21
push esi
push 0x7c088
push dword [ebp - 0x48]
mov byte [esi + 0xa], 0xec
mov dword [ebp - 0x58], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10004a86
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
add esi, 0x10
cmp esi, ebx
je 0x10004a83
cmp eax, 0x2e
jbe 0x10004a83
push 0x13
push esi
push 0xa
pop ecx
lea edx, [ebp - 0x88]
call fcn.100043fe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
push edi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10001a96
push ebx
push 1
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], edi
call fcn.10001b45
push 0x2e
push esi
push 0x1b
pop ecx
lea edx, [ebp - 0x88]
call fcn.100043fe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
push edi
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.10001a96
push ebx
push 1
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], edi
call fcn.10001b45
push 0x1a
push esi
push 0x17
pop ecx
lea edx, [ebp - 0xbc]
call fcn.100043fe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6c]
push edi
push ebx
push eax
mov dword [ebp - 4], 2
call fcn.10001a96
push ebx
push 1
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], edi
call fcn.10001b45
mov byte [ebp - 0x41], 1
mov esi, dword [ebp - 0x4c]
push esi
call fcn.1005432d
pop ecx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x54]
inc ecx
cmp ecx, 0x20
mov dword [ebp - 0x54], ecx
jl 0x100048e4
mov al, byte [ebp - 0x41]
call fcn.1005895b
ret