Function at 0x10038ebf
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x1008293f
call fcn.1005e3b0
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 0x10038f4a
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 0x100390da
mov ecx, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x100390d1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10003d00
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
jmp 0x100390d1
mov dword [ebp - 0x20], 0x10038893
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 0x10038f98
mov esi, dword [ebp + 8]
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
jmp 0x10039098
mov esi, dword [ebp - 0x24]
push esi
call fcn.1005de3c
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10038fb6
push esi
push 0
push ebx
call fcn.10060630
add esp, 0xc
jmp 0x10038fb8
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 0x10038ffe
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 0x10038ff9
push ebx
call fcn.1005de88
pop ecx
jmp 0x10039098
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x1003901f
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.1005de88
pop ecx
jmp 0x10039098
lea edx, [ebx + eax]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10039027
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.1000477f
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 0x1006b570
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.100388bd
add esp, 0x10
lea ecx, [ebp - 0x4c]
push esi
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.1003cd5b
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.1000264a
push ebx
call fcn.1005de88
pop ecx
test edi, edi
je 0x100390a3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x100390da
mov ecx, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x100390d1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10003d00
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.1005de7a
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