Function at 0x100389b0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x100815df
call fcn.1005d058
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 0x10038a3b
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 0x10038bcb
mov ecx, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x10038bc2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10003b7e
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
jmp 0x10038bc2
mov dword [ebp - 0x20], 0x10038384
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 0x10038a89
mov esi, dword [ebp + 8]
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
jmp 0x10038b89
mov esi, dword [ebp - 0x24]
push esi
call fcn.1005cae1
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10038aa7
push esi
push 0
push ebx
call fcn.1005f2d0
add esp, 0xc
jmp 0x10038aa9
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 0x10038aef
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 0x10038aea
push ebx
call fcn.1005cb2d
pop ecx
jmp 0x10038b89
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x10038b10
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.1005cb2d
pop ecx
jmp 0x10038b89
lea edx, [ebx + eax]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038b18
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.100045fd
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 0x1006a210
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.100383ae
add esp, 0x10
lea ecx, [ebp - 0x4c]
push esi
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.1003ba53
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.10002625
push ebx
call fcn.1005cb2d
pop ecx
test edi, edi
je 0x10038b94
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x10038bcb
mov ecx, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x10038bc2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10003b7e
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.1005cb1f
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