Function at 0x1006fc70
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x10093605
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x100b0380]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b0380]
xor eax, esp
push eax
lea eax, [esp + 0x85c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x86c]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edi
xor ebp, ebp
mov dword [esp + 0x18], ebp
push edi
lea ecx, [esp + 0x658]
push 0x100a55ac
push ecx
mov eax, 0x200
mov dword [esp + 0x870], ebx
call fcn.1006f7c0
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea edx, [esp + 0x66c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or esi, 0xffffffff
cmp eax, esi
jne 0x1006fd18
call fcn.1006f7a0
cmp eax, ebx
je 0x1006fd1e
mov dword [esp + 0x864], esi
jmp 0x10070035
mov ebp, eax
mov dword [esp + 0x18], ebp
push 0x3e8
lea eax, [esp + 0x270]
push ebx
push eax
call fcn.1007dcf0
add esp, 0xc
push ebx
lea ecx, [esp + 0x38]
push ecx
push 0x3e8
xor eax, eax
lea edx, [esp + 0x278]
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
push 0xc
mov dword [esp + 0x54], eax
lea eax, [esp + 0x4c]
push eax
push 0x2d1400
push ebp
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1007001f
cmp ebp, ebx
je 0x1006fd8d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov dword [esp + 0x18], ebp
cmp byte [esp + 0x276], bl
jne 0x1007001f
mov eax, dword [esp + 0x288]
cmp eax, 1
je 0x1007001f
cmp eax, 0xa
je 0x1007001f
cmp eax, 4
je 0x1007001f
cmp eax, 7
je 0x1007001f
cmp eax, 0xe
je 0x1007001f
cmp eax, 0xf
je 0x1007001f
lea ecx, [esp + 0x1c]
push ecx
call fcn.1001a210
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x868], 1
call fcn.1001a210
lea eax, [esp + 0x24]
push eax
push edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x86c], 2
call fcn.1006fa20
add esp, 8
test eax, eax
je 0x1006fe1e
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], ebx
jne 0x10070071
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x868], 1
call fcn.100464f0
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x868], bl
call fcn.100464f0
mov edi, dword [esp + 0x284]
mov eax, dword [esp + 0x270]
cmp edi, eax
jae 0x1007001f
mov esi, dword [esp + 0x278]
cmp esi, eax
jae 0x1007001c
cmp dword [esp + 0x27c], eax
jae 0x1007001c
push 0x104
lea ecx, [esp + 0x168]
push ebx
push ecx
call fcn.1007dcf0
add esp, 0xc
cmp edi, ebx
je 0x1006fef7
lea edi, [esp + 0x44]
mov dword [esp + 0x44], 0x11c
mov esi, 1
call fcn.1006b940
test eax, eax
je 0x1006febb
mov eax, dword [esp + 0x48]
cmp eax, 6
ja 0x1006feb9
jne 0x1006febb
cmp dword [esp + 0x4c], 2
jb 0x1006febb
xor esi, esi
mov eax, dword [esp + 0x284]
lea eax, [esp + eax + 0x26c]
push eax
mov edx, 0x104
lea ecx, [esp + 0x168]
call fcn.1002d550
mov edx, dword [esp + 0x20]
push esi
push edx
lea esi, [esp + 0x16c]
call fcn.1006f930
mov esi, dword [esp + 0x280]
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
jne 0x1006ff12
mov dword [esp + 0x864], 0xffffffff
jmp 0x10070026
push 0x104
lea edx, [esp + 0x168]
push ebx
push edx
call fcn.1007dcf0
add esp, 0xc
cmp esi, ebx
je 0x1006ff64
lea edi, [esp + 0x2c]
mov ecx, 0x104
lea edx, [esp + 0x164]
lea esi, [esp + esi + 0x26c]
call fcn.10070390
cmp eax, ebx
jl 0x1006ff64
mov eax, dword [esp + 0x2c]
mov edx, 0x104
push esi
sub edx, eax
lea ecx, [esp + eax + 0x168]
call fcn.10070340
cmp byte [esp + 0x164], bl
je 0x1006ff80
push 0x100a52d0
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov eax, dword [esp + 0x27c]
cmp eax, ebx
je 0x1006ffc3
lea edi, [esp + 0x30]
mov ecx, 0x104
lea edx, [esp + 0x164]
lea esi, [esp + eax + 0x26c]
call fcn.10070390
cmp eax, ebx
jl 0x1006ffc3
mov eax, dword [esp + 0x30]
mov edx, 0x104
push esi
sub edx, eax
lea ecx, [esp + eax + 0x168]
call fcn.10070340
cmp byte [esp + 0x164], bl
je 0x1007000d
push 0x100a52d0
lea ecx, [esp + 0x168]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea eax, [esp + 0x164]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1006fff0
mov ecx, dword [esp + 0x20]
sub eax, edx
lea edx, [esp + 0x164]
push edx
push ecx
mov edx, eax
call fcn.1006c9b0
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
cmp dword [eax - 0xc], ebx
jne 0x100700d0
or esi, 0xffffffff
mov dword [esp + 0x864], esi
cmp ebp, ebx
je 0x10070035
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x28]
inc edi
cmp edi, 0x10
mov dword [esp + 0x28], edi
jl 0x1006fcbe
xor eax, eax
mov ecx, dword [esp + 0x85c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.10079a05
add esp, 0x854
ret
mov edi, dword [esp + 0x20]
push edi
lea eax, [esp + 0x20]
call fcn.10070210
mov eax, dword [esp + 0x24]
mov edx, dword [eax - 0xc]
push eax
push edi
call fcn.1006c9b0
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x868], 1
call fcn.100464f0
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x868], bl
call fcn.100464f0
mov dword [esp + 0x864], esi
cmp ebp, ebx
je 0x100700c6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebx
mov eax, 1
jmp 0x10070049
mov dword [esp + 0x864], 0xffffffff
jmp 0x100700b7