Function at 0x100051d7
Capabilities:
Get disk information

Disassembly:
push 0xb0
mov eax, 0x10077fa7
call fcn.1005d50a
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 0x100053f8
mov edx, dword [ebp - 0x64]
xor eax, eax
inc eax
shl eax, cl
test edx, eax
je 0x100053e8
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 0x1000526e
cmp eax, 6
jne 0x100053e8
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 0x100053e8
push 0x18
lea eax, [ebp - 0xa0]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call fcn.10054f10
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 0x100053df
push 0x221
call fcn.10055d3b
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [ebp - 0x4c], esi
je 0x100053df
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 0x100053d8
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
add esi, 0x10
cmp esi, ebx
je 0x100053d5
cmp eax, 0x2e
jbe 0x100053d5
push 0x13
push esi
push 0xa
pop ecx
lea edx, [ebp - 0x88]
call fcn.10004d50
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
push edi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10002335
push ebx
push 1
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], edi
call fcn.10002251
push 0x2e
push esi
push 0x1b
pop ecx
lea edx, [ebp - 0x88]
call fcn.10004d50
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
push edi
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.10002335
push ebx
push 1
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], edi
call fcn.10002251
push 0x1a
push esi
push 0x17
pop ecx
lea edx, [ebp - 0xbc]
call fcn.10004d50
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6c]
push edi
push ebx
push eax
mov dword [ebp - 4], 2
call fcn.10002335
push ebx
push 1
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], edi
call fcn.10002251
mov byte [ebp - 0x41], 1
mov esi, dword [ebp - 0x4c]
push esi
call fcn.10055dfe
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 0x10005236
mov al, byte [ebp - 0x41]
call fcn.1005d58d
ret