Function at 0x1003b5c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f0a5
mov eax, dword fs:[0]
push eax
sub esp, 0xd58
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 8]
xor al, al
mov byte [ebp - 0xd25], al
mov dword [ebp - 0xd2c], 0
test al, al
jne 0x1003ba17
push 0x200
lea eax, [ebp - 0x514]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x514]
push dword [ebp - 0xd2c]
push str..PhysicalDrive_d
push 0xffffffffffffffff
push 0xff
push eax
call fcn.1000f290
add esp, 0x14
lea eax, [ebp - 0x514]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xd30], eax
cmp eax, 0xffffffff
je 0x1003b9fb
push 0x800
xorps xmm0, xmm0
mov dword [ebp - 0xd18], 0
lea eax, [ebp - 0xd14]
movq qword [ebp - 0xd24], xmm0
push 0
push eax
mov dword [ebp - 0xd1c], 0
mov dword [ebp - 0xd24], 0
mov dword [ebp - 0xd20], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xd18]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd14]
push eax
push 0xc
lea eax, [ebp - 0xd24]
push eax
push 0x2d1400
push dword [ebp - 0xd30]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1003b9e9
push 0x100
lea eax, [ebp - 0x114]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x100
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x314]
push 0x100
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0xd04]
lea eax, [ebp - 0x214]
add esp, 0xc
lea ecx, [ebp - 0xd14]
push eax
push 0
call fcn.1003afc0
mov edx, dword [ebp - 0xd00]
lea eax, [ebp - 0x314]
push eax
push 0
lea ecx, [ebp - 0xd14]
call fcn.1003afc0
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x114]
push eax
push 1
lea ecx, [ebp - 0xd14]
call fcn.1003afc0
movsx eax, byte [ebp - 0x114]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 0x1c
test eax, eax
jne 0x1003b7ac
movsx eax, byte [ebp - 0x101]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
je 0x1003b9ef
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0xd34], 0xf
mov dword [ebp - 0xd38], 0
mov byte [ebp - 0xd48], 0
jne 0x1003b7d4
xor ecx, ecx
jmp 0x1003b7e9
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003b7e0
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xd48]
call fcn.100041c0
lea eax, [ebp - 0xd48]
cmp esi, eax
je 0x1003b842
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x1003b817
inc eax
push eax
push dword [esi]
call fcn.100043e0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x1003b82f
mov eax, dword [esi]
jmp 0x1003b831
mov eax, esi
mov byte [eax], 0
mov ecx, esi
lea eax, [ebp - 0xd48]
push eax
call fcn.10033c90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd34]
cmp eax, 0x10
jb 0x1003b861
inc eax
push eax
push dword [ebp - 0xd48]
call fcn.100043e0
cmp byte [ebp - 0x214], 0
mov dword [ebp - 0xd34], 0xf
mov dword [ebp - 0xd38], 0
mov byte [ebp - 0xd48], 0
jne 0x1003b889
xor ecx, ecx
jmp 0x1003b89b
lea ecx, [ebp - 0x214]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003b892
sub ecx, edx
push ecx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0xd48]
call fcn.100041c0
lea eax, [ebp - 0xd48]
cmp edi, eax
je 0x1003b8f4
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x1003b8c9
inc eax
push eax
push dword [edi]
call fcn.100043e0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x1003b8e1
mov eax, dword [edi]
jmp 0x1003b8e3
mov eax, edi
mov byte [eax], 0
mov ecx, edi
lea eax, [ebp - 0xd48]
push eax
call fcn.10033c90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd34]
cmp eax, 0x10
jb 0x1003b913
inc eax
push eax
push dword [ebp - 0xd48]
call fcn.100043e0
cmp byte [ebp - 0x314], 0
mov dword [ebp - 0xd4c], 0xf
mov dword [ebp - 0xd50], 0
mov byte [ebp - 0xd60], 0
jne 0x1003b93b
xor eax, eax
jmp 0x1003b94d
lea eax, [ebp - 0x314]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003b944
sub eax, edx
push eax
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0xd60]
call fcn.100041c0
lea eax, [ebp - 0xd60]
cmp ebx, eax
je 0x1003b9a6
mov eax, dword [ebx + 0x14]
cmp eax, 0x10
jb 0x1003b97b
inc eax
push eax
push dword [ebx]
call fcn.100043e0
mov dword [ebx + 0x14], 0xf
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x1003b993
mov eax, dword [ebx]
jmp 0x1003b995
mov eax, ebx
mov byte [eax], 0
mov ecx, ebx
lea eax, [ebp - 0xd60]
push eax
call fcn.10033c90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd4c]
cmp eax, 0x10
jb 0x1003b9c5
inc eax
push eax
push dword [ebp - 0xd60]
call fcn.100043e0
mov dword [ebp - 0xd4c], 0xf
mov dword [ebp - 0xd50], 0
mov byte [ebp - 0xd60], 0
mov byte [ebp - 0xd25], 1
jmp 0x1003b9ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xd30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xd2c]
mov al, byte [ebp - 0xd25]
inc ecx
mov dword [ebp - 0xd2c], ecx
cmp ecx, 0x10
jl 0x1003b607
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret