Function at 0x1005fd60
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3838
call fcn.1005d480
mov eax, dword [0x100a3428]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x37f8], ecx
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x110], 0
mov eax, dword [ebp - 0x37f8]
mov ecx, dword [eax]
push ecx
push str..PhysicalDrive_d
lea edx, [ebp - 0x108]
push edx
call fcn.10009970
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
jne 0x1005fddb
jmp 0x10060165
mov dword [ebp - 0x2834], 0
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
push 0x2710
push 0
lea edx, [ebp - 0x2830]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x2834]
push eax
push 0x2710
lea ecx, [ebp - 0x2830]
push ecx
push 0xc
lea edx, [ebp - 0x11c]
push edx
push 0x2d1400
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1006014c
lea ecx, [ebp - 0x2830]
mov dword [ebp - 0x300c], ecx
lea edx, [ebp - 0x33f8]
push edx
push 0
mov eax, dword [ebp - 0x300c]
mov ecx, dword [eax + 0xc]
push ecx
lea edx, [ebp - 0x2830]
push edx
call fcn.1005f560
add esp, 0x10
lea eax, [ebp - 0x3008]
push eax
push 0
mov ecx, dword [ebp - 0x300c]
mov edx, dword [ecx + 0x10]
push edx
lea eax, [ebp - 0x2830]
push eax
call fcn.1005f560
add esp, 0x10
lea ecx, [ebp - 0x2c20]
push ecx
push 0
mov edx, dword [ebp - 0x300c]
mov eax, dword [edx + 0x14]
push eax
lea ecx, [ebp - 0x2830]
push ecx
call fcn.1005f560
add esp, 0x10
lea edx, [ebp - 0x37e0]
push edx
push 1
mov eax, dword [ebp - 0x300c]
mov ecx, dword [eax + 0x18]
push ecx
lea edx, [ebp - 0x2830]
push edx
call fcn.1005f560
add esp, 0x10
movsx eax, byte [0x100cba60]
test eax, eax
jne 0x100600ca
movsx ecx, byte [ebp - 0x37e0]
push ecx
call dword [sym.imp.MSVCR100.dll_isalnum]
add esp, 4
test eax, eax
jne 0x1005ff2c
movsx edx, byte [ebp - 0x37cd]
push edx
call dword [sym.imp.MSVCR100.dll_isalnum]
add esp, 4
test eax, eax
je 0x100600ca
lea eax, [ebp - 0x33f8]
mov dword [ebp - 0x37fc], eax
mov dword [ebp - 0x3800], 0x100cb660
mov ecx, dword [ebp - 0x3800]
mov dword [ebp - 0x3804], ecx
mov edx, dword [ebp - 0x37fc]
mov al, byte [edx]
mov byte [ebp - 0x3805], al
mov ecx, dword [ebp - 0x3800]
mov dl, byte [ebp - 0x3805]
mov byte [ecx], dl
mov eax, dword [ebp - 0x37fc]
add eax, 1
mov dword [ebp - 0x37fc], eax
mov ecx, dword [ebp - 0x3800]
add ecx, 1
mov dword [ebp - 0x3800], ecx
cmp byte [ebp - 0x3805], 0
jne 0x1005ff4e
lea edx, [ebp - 0x3008]
mov dword [ebp - 0x380c], edx
mov dword [ebp - 0x3810], 0x100cb260
mov eax, dword [ebp - 0x3810]
mov dword [ebp - 0x3814], eax
mov ecx, dword [ebp - 0x380c]
mov dl, byte [ecx]
mov byte [ebp - 0x3815], dl
mov eax, dword [ebp - 0x3810]
mov cl, byte [ebp - 0x3815]
mov byte [eax], cl
mov edx, dword [ebp - 0x380c]
add edx, 1
mov dword [ebp - 0x380c], edx
mov eax, dword [ebp - 0x3810]
add eax, 1
mov dword [ebp - 0x3810], eax
cmp byte [ebp - 0x3815], 0
jne 0x1005ffb3
lea ecx, [ebp - 0x37e0]
mov dword [ebp - 0x381c], ecx
mov dword [ebp - 0x3820], 0x100cba60
mov edx, dword [ebp - 0x3820]
mov dword [ebp - 0x3824], edx
mov eax, dword [ebp - 0x381c]
mov cl, byte [eax]
mov byte [ebp - 0x3825], cl
mov edx, dword [ebp - 0x3820]
mov al, byte [ebp - 0x3825]
mov byte [edx], al
mov ecx, dword [ebp - 0x381c]
add ecx, 1
mov dword [ebp - 0x381c], ecx
mov edx, dword [ebp - 0x3820]
add edx, 1
mov dword [ebp - 0x3820], edx
cmp byte [ebp - 0x3825], 0
jne 0x10060018
lea eax, [ebp - 0x2c20]
mov dword [ebp - 0x382c], eax
mov dword [ebp - 0x3830], 0x100cae60
mov ecx, dword [ebp - 0x3830]
mov dword [ebp - 0x3834], ecx
mov edx, dword [ebp - 0x382c]
mov al, byte [edx]
mov byte [ebp - 0x3835], al
mov ecx, dword [ebp - 0x3830]
mov dl, byte [ebp - 0x3835]
mov byte [ecx], dl
mov eax, dword [ebp - 0x382c]
add eax, 1
mov dword [ebp - 0x382c], eax
mov ecx, dword [ebp - 0x3830]
add ecx, 1
mov dword [ebp - 0x3830], ecx
cmp byte [ebp - 0x3835], 0
jne 0x1006007d
mov dword [ebp - 0x10c], 1
push 0x2710
push 0
lea edx, [ebp - 0x2830]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x2834]
push eax
push 0x2710
lea ecx, [ebp - 0x2830]
push ecx
push 0
push 0
push 0x700a0
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10060111
jmp 0x1006014a
lea eax, [ebp - 0x2830]
mov dword [ebp - 0x37ec], eax
mov ecx, dword [ebp - 0x37ec]
xor edx, edx
cmp dword [ecx + 8], 0xc
sete dl
mov dword [ebp - 0x37f0], edx
mov eax, dword [ebp - 0x37ec]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x37e8], ecx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x37e4], edx
jmp 0x10060158
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x37f4], eax
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cc54
mov esp, ebp
pop ebp
ret