Function at 0x100384e9
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x10085a1c
call fcn.100603d0
sub esp, 0x40
push ebx
xor ebx, ebx
mov dword [ebp - 0x38], 0xf
push esi
mov dword [ebp - 0x4c], ebx
push edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push str..PhysicalDrive0
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10038574
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
cmp eax, 0x10
jb 0x10038704
mov ecx, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x100386fb
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1000329c
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
jmp 0x100386fb
mov dword [ebp - 0x20], 0x10037b5d
mov dword [ebp - 0x1c], edi
push ebx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x34], ebx
push eax
push 0xc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], ebx
push eax
push 0x2d1400
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100385c2
mov esi, dword [ebp + 8]
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
jmp 0x100386c2
mov esi, dword [ebp - 0x24]
push esi
call fcn.10060065
mov ebx, eax
pop ecx
test ebx, ebx
je 0x100385e0
push esi
push 0
push ebx
call fcn.10062850
add esp, 0xc
jmp 0x100385e2
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
push esi
push ebx
push 0xc
lea eax, [ebp - 0x34]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10038628
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
test ebx, ebx
je 0x10038623
push ebx
call fcn.100600b1
pop ecx
jmp 0x100386c2
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x10038649
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
call fcn.100600b1
pop ecx
jmp 0x100386c2
lea edx, [ebx + eax]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038651
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.10003987
cmp dword [ebp - 0x38], 0x10
lea esi, [ebp - 0x4c]
lea eax, [ebp - 0x4c]
cmovae esi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x4c]
add esi, dword [ebp - 0x3c]
cmp dword [ebp - 0x38], 0x10
push fcn.1006e800
cmovae eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x38], 0x10
push eax
cmovae ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x10]
push ecx
push eax
call fcn.10037ebf
add esp, 0x10
lea ecx, [ebp - 0x4c]
push esi
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.1003c0f9
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.10001d1b
push ebx
call fcn.100600b1
pop ecx
test edi, edi
je 0x100386cd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x10038704
mov ecx, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x100386fb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1000329c
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.100600a3
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret