Function at 0x1001a70f
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x6f78]
mov eax, 0x6f78
call fcn.100333a0
push 0xffffffffffffffff
push 0x1005b960
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10081730]
xor eax, ebp
mov dword [ebp + 0x6f74], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov ebx, 0x4e20
mov edi, 0x7ce
push 0x206
lea eax, [ebp + 0x6d6e]
push esi
push eax
mov word [ebp + 0x6d6c], si
call fcn.10031d30
push dword [ebp - 0x14]
lea eax, [ebp + 0x6d6c]
push str..PhysicalDrive_d
push 0x104
push eax
call fcn.10004701
add esp, 0x1c
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp + 0x6d6c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x1001aa2b
push 0x4e1e
lea eax, [ebp + 0xe]
push esi
push eax
mov dword [ebp - 0x20], esi
mov word [ebp + 0xc], si
call fcn.10031d30
push 0xc
lea eax, [ebp]
push esi
push eax
call fcn.10031d30
push ebx
lea eax, [ebp + 0xc]
push esi
push eax
mov dword [ebp], esi
mov dword [ebp + 4], esi
call fcn.10031d30
add esp, 0x24
push esi
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push 0xc
lea eax, [ebp]
push eax
push 0x2d1400
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001aa1c
push edi
lea eax, [ebp + 0x659e]
push esi
push eax
mov word [ebp + 0x659c], si
call fcn.10031d30
push edi
lea eax, [ebp + 0x5dce]
push esi
push eax
mov word [ebp + 0x5dcc], si
call fcn.10031d30
push edi
lea eax, [ebp + 0x4e2e]
push esi
push eax
mov word [ebp + 0x4e2c], si
call fcn.10031d30
push edi
lea eax, [ebp + 0x55fe]
push esi
push eax
mov word [ebp + 0x55fc], si
call fcn.10031d30
lea eax, [ebp + 0x4e2c]
push eax
push esi
push dword [ebp + 0x18]
lea eax, [ebp + 0xc]
push eax
call fcn.10019ab2
add esp, 0x40
lea eax, [ebp + 0x5dcc]
push eax
push esi
push dword [ebp + 0x1c]
lea eax, [ebp + 0xc]
push eax
call fcn.10019ab2
lea eax, [ebp + 0x55fc]
push eax
push esi
push dword [ebp + 0x20]
lea eax, [ebp + 0xc]
push eax
call fcn.10019ab2
lea eax, [ebp + 0x659c]
push eax
push 1
push dword [ebp + 0x24]
lea eax, [ebp + 0xc]
push eax
call fcn.10019ab2
mov eax, dword [ebp - 0x10]
add eax, 0x822
add esp, 0x30
cmp word [eax], si
jne 0x1001a930
movzx eax, word [ebp + 0x659c]
push eax
call fcn.10033f59
test eax, eax
pop ecx
jne 0x1001a8ef
movzx eax, word [ebp + 0x65c2]
push eax
call fcn.10033f59
test eax, eax
pop ecx
je 0x1001a930
cmp dword [ebp - 0x18], 1
je 0x1001a930
lea eax, [ebp + 0x659c]
push eax
mov eax, dword [ebp - 0x10]
push 0x400
add eax, 0x822
push eax
call fcn.10005880
lea eax, [ebp + 0x5dcc]
push eax
mov eax, dword [ebp - 0x10]
push 0x400
add eax, 0x1022
push eax
call fcn.10005880
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x10]
add eax, 0x1822
cmp word [eax], si
jne 0x1001a99b
movzx eax, word [ebp + 0x659c]
push eax
call fcn.10033f59
test eax, eax
pop ecx
jne 0x1001a961
movzx eax, word [ebp + 0x65c2]
push eax
call fcn.10033f59
test eax, eax
pop ecx
je 0x1001a99b
cmp dword [ebp - 0x18], 1
je 0x1001a99b
lea eax, [ebp + 0x659c]
push eax
mov eax, dword [ebp - 0x10]
push 0x400
add eax, 0x1822
push eax
call fcn.10005880
lea eax, [ebp + 0x5dcc]
push eax
mov eax, dword [ebp - 0x10]
push 0x400
add eax, 0x2022
push eax
call fcn.10005880
movzx eax, word [ebp + 0x659c]
push eax
call fcn.10033f59
test eax, eax
pop ecx
jne 0x1001a9bf
movzx eax, word [ebp + 0x65c2]
push eax
call fcn.10033f59
test eax, eax
pop ecx
je 0x1001a9f2
lea eax, [ebp + 0x659c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.10001681
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x3c]
push eax
add ecx, 0x2824
mov dword [ebp - 4], esi
call fcn.1000b7d3
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x3c]
call fcn.1000131a
push ebx
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.10031d30
add esp, 0xc
push esi
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push esi
push esi
push 0x700a0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x1001aa22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x10
jl 0x1001a761
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6f74]
xor ecx, ebp
call fcn.10031c08
add ebp, 0x6f78
leave
ret