Function at 0x10013850
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x38d4
call fcn.1004d3e0
mov eax, dword [0x1008ab54]
xor eax, esp
mov dword [esp + 0x38cc], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0xfd0]
push pe_nt_image_headers32
xor edi, edi
push eax
mov dword [esp + 0x24], edi
call fcn.1004b260
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea ecx, [esp + 0xfe0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100138ef
cmp dword [0x10090964], 1
jne 0x10013b57
push ebx
push 0x2e8
push str._nPhysicalDrive_d_ReadPhysicalDriveInNTWithZeroRights_ERROR_nCreateFile__s__returned_INVALID_HANDLE_VALUE_n
push 0x800
push 0x100923a8
call fcn.1004992c
add esp, 0x14
push str.._error_dev.txt
mov edi, 0x100923a8
call fcn.10016250
add esp, 4
mov eax, ebx
jmp 0x10013b59
xor eax, eax
push 0x2710
lea edx, [esp + 0x11cc]
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.1004b150
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0xc
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x2710
lea ecx, [esp + 0x11d4]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call ebp
test eax, eax
je 0x10013b14
push 0x3e7
lea eax, [esp + 0x2d]
push ebx
push eax
mov byte [esp + 0x34], bl
call fcn.1004b150
add esp, 0xc
push 0x3e7
lea ecx, [esp + 0x415]
push ebx
push ecx
mov byte [esp + 0x41c], bl
call fcn.1004b150
add esp, 0xc
push 0x3e7
lea edx, [esp + 0x7fd]
push ebx
push edx
mov byte [esp + 0x804], bl
call fcn.1004b150
add esp, 0xc
push 0x3e7
lea eax, [esp + 0xbe5]
push ebx
push eax
mov byte [esp + 0xbec], bl
call fcn.1004b150
mov eax, dword [esp + 0x11e0]
add esp, 0xc
push ebx
lea edi, [esp + 0x7fc]
lea ecx, [esp + 0x11cc]
call fcn.100136e0
mov eax, dword [esp + 0x11dc]
add esp, 4
push ebx
lea edi, [esp + 0x414]
lea ecx, [esp + 0x11cc]
call fcn.100136e0
mov eax, dword [esp + 0x11e0]
add esp, 4
push ebx
lea edi, [esp + 0xbe4]
lea ecx, [esp + 0x11cc]
call fcn.100136e0
mov eax, dword [esp + 0x11e4]
add esp, 4
push 1
lea edi, [esp + 0x2c]
lea ecx, [esp + 0x11cc]
call fcn.100136e0
add esp, 4
cmp byte [0x10090f80], bl
jne 0x10013a98
movsx ecx, byte [esp + 0x28]
push ecx
call fcn.10060a24
add esp, 4
test eax, eax
jne 0x10013a5f
movsx edx, byte [esp + 0x3b]
push edx
call fcn.10060a24
add esp, 4
test eax, eax
je 0x10013a98
lea eax, [esp + 0x28]
push eax
push 0x400
push 0x10090f80
call fcn.1004985b
add esp, 0xc
lea ecx, [esp + 0x410]
push ecx
push 0x400
push 0x10090b80
call fcn.1004985b
add esp, 0xc
mov dword [esp + 0x14], 1
push 0x2710
lea edx, [esp + 0x11cc]
push ebx
push edx
call fcn.1004b150
add esp, 0xc
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x2710
lea ecx, [esp + 0x11d4]
push ecx
push ebx
push ebx
push 0x700a0
push esi
call ebp
test eax, eax
jne 0x10013b4a
cmp dword [0x10090964], 1
jne 0x10013b4a
push ebx
push 0x326
push str._nPhysicalDrive_d_ReadPhysicalDriveInNTWithZeroRights_ERRORnDeviceIoControl__s__IOCTL_DISK_GET_DRIVE_GEOMETRY_EX__returned_0
push 0x800
push 0x100923a8
call fcn.1004992c
add esp, 0x14
push str.._error_dev.txt
mov edi, 0x100923a8
call fcn.10016250
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
jmp 0x10013b59
cmp dword [0x10090964], 1
jne 0x10013b4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nDeviceIOControl_IOCTL_STORAGE_QUERY_PROPERTY_error___d_n
push 0x800
push 0x100923a8
call fcn.1004992c
push str.._error_dev.txt
mov edi, 0x100923a8
call fcn.10016250
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
jmp 0x10013b59
mov eax, edi
mov ecx, dword [esp + 0x38dc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10048e2f
add esp, 0x38d4
ret