Function at 0x4091f2
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30f8
call fcn.00411070
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x9e8]
push str..PhysicalDrive_d
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 0x9e8]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40942d
push esi
push edi
push 0xc
lea eax, [ebp - 0x18]
push ebx
push eax
mov dword [ebp - 0xc], ebx
call sub.MSVCRT.dll_memset
mov esi, 0x2710
lea eax, [ebp - 0x30f8]
push esi
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x30f8]
push esi
push eax
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x2d1400
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x409369
mov dx, word [0x41df70]
mov ecx, 0xf9
xor eax, eax
lea edi, [ebp - 0x3fe]
mov word [ebp - 0x400], dx
mov word [ebp - 0x7e8], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xf9
xor eax, eax
lea edi, [ebp - 0x7e6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x30e8]
lea eax, [ebp + eax - 0x30f8]
push eax
lea eax, [ebp - 0x7e8]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x7e8]
push eax
push 0x41db70
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp - 0x30e0]
lea eax, [ebp + eax - 0x30f8]
push eax
call fcn.004090c8
push eax
lea eax, [ebp - 0x400]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x1c
cmp byte [0x41cd78], bl
jne 0x409358
movzx eax, byte [ebp - 0x400]
mov edi, dword [sym.imp.MSVCRT.dll_isalnum]
push eax
call edi
test eax, eax
pop ecx
jne 0x409343
movzx eax, byte [ebp - 0x3ed]
push eax
call edi
test eax, eax
pop ecx
je 0x409358
lea eax, [ebp - 0x400]
push eax
push 0x41cd78
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x40936f
cmp byte [0x41db70], bl
je 0x40936f
mov dword [ebp - 4], 1
jmp 0x40936f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea eax, [ebp - 0x30f8]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x30f8]
push esi
push eax
push ebx
push ebx
push 0x2d0c10
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40941c
mov ax, word [0x41df70]
mov ecx, 0xf9
mov word [ebp - 0x400], ax
xor eax, eax
lea edi, [ebp - 0x3fe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x30e8]
push eax
lea eax, [ebp - 0x400]
push eax
call sub.MSVCRT.dll_strcpy
cmp byte [0x41cd78], bl
pop ecx
pop ecx
jne 0x409422
movsx eax, byte [ebp - 0x400]
mov esi, dword [sym.imp.MSVCRT.dll_isalnum]
push eax
call esi
test eax, eax
pop ecx
jne 0x409400
movsx eax, byte [ebp - 0x3ed]
push eax
call esi
test eax, eax
pop ecx
je 0x409422
lea eax, [ebp - 0x400]
push eax
push 0x41cd78
call sub.MSVCRT.dll_strcpy
pop ecx
mov dword [ebp - 4], 1
pop ecx
jmp 0x409422
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret