Function at 0x100997d
Capabilities:
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xaac
mov eax, dword [0x100c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 1
push 0xe2
push 0x1001e10
lea ecx, [ebp - 0xa80]
mov dword [ebp - 0xa50], esi
call fcn.0100771f
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0xa8c], ebx
lea edi, [ebp - 0xa88]
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0xaa8]
push 0x82a
mov dword [ebp - 0xaac], ebx
rep stosd dword es:[edi], eax
mov word [ebp - 0xa48], ax
lea eax, [ebp - 0xa46]
push ebx
push eax
call sub.msvcrt.dll_memset
or dword [ebp - 0xa4c], 0xffffffff
xor eax, eax
inc eax
add esp, 0x18
mov dword [ebp - 0xa58], ebx
mov dword [ebp - 0xa5c], eax
mov dword [ebp - 0xa54], ebx
cmp esi, ebx
je 0x1009aad
push dword [ebp + 8]
mov dword [esi], eax
mov eax, 0xf7
push 0x1001de4
mov word [ebp - 0xa7c], ax
lea eax, [ebp - 0x210]
push 0x105
push eax
mov dword [ebp - 0xa80], ebx
call fcn.010025d8
add esp, 0x10
mov dword [ebp - 0xa80], eax
cmp eax, ebx
mov eax, 0xfe
jl 0x1009abc
push ebx
push ebx
push 3
push ebx
push 3
mov word [ebp - 0xa7c], ax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa4c], eax
cmp eax, 0xffffffff
jne 0x1009ac8
call fcn.01008973
mov dword [ebp - 0xa80], eax
mov eax, 0x107
jmp 0x1009abc
mov dword [ebp - 0xa80], 0x80070057
mov eax, 0xf7
mov word [ebp - 0xa7a], ax
jmp 0x1009d88
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
mov ecx, 0x107
mov word [ebp - 0xa7c], cx
lea ecx, [ebp - 0xa58]
push ecx
push 0xc
lea ecx, [ebp - 0xa8c]
push ecx
push 0xc
lea ecx, [ebp - 0x21c]
push ecx
mov edi, 0x2d1400
push edi
push eax
mov dword [ebp - 0xa80], ebx
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x218], ebx
call esi
test eax, eax
je 0x1009b6d
cmp dword [ebp - 0xa8c], 0xc
jne 0x1009b6d
cmp dword [ebp - 0xa88], 0xc
jne 0x1009b6d
cmp byte [ebp - 0xa84], bl
jne 0x1009b6d
mov eax, dword [section..data]
cmp eax, section..data
je 0x1009b5b
test dword [eax + 0x1c], 0x10000000
je 0x1009b5b
push dword [ebp + 8]
push 0x1001cf8
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100755d
mov eax, dword [ebp - 0xa50]
mov dword [eax], ebx
mov eax, 0x11f
jmp 0x1009d7b
push ebx
lea eax, [ebp - 0xa58]
push eax
push 0x20
lea eax, [ebp - 0xaac]
push eax
push 0xc
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebp - 0xa4c]
mov dword [ebp - 0x21c], 1
mov dword [ebp - 0x218], ebx
call esi
test eax, eax
je 0x1009bb6
cmp dword [ebp - 0xaac], 0x20
jne 0x1009bb6
cmp dword [ebp - 0xaa8], 0x20
je 0x1009bc9
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0xaac]
rep stosd dword es:[edi], eax
mov byte [ebp - 0xa94], bl
cmp byte [ebp - 0xa94], 0xf
jne 0x1009c2d
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.010095fb
test eax, eax
jl 0x1009c2d
cmp dword [ebp - 0xa5c], ebx
jne 0x1009c2d
mov eax, dword [section..data]
cmp eax, section..data
je 0x1009c1b
test dword [eax + 0x1c], 0x10000000
je 0x1009c1b
push dword [ebp + 8]
push 0x1001cf8
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100755d
mov eax, dword [ebp - 0xa50]
mov dword [eax], ebx
mov eax, 0x145
jmp 0x1009d7b
cmp byte [ebp - 0xa94], 3
je 0x1009c43
cmp byte [ebp - 0xa94], 0xb
jne 0x1009cec
push 0x28
pop eax
push 3
mov word [ebp - 0xa48], ax
pop eax
push ebx
mov word [ebp - 0xa46], ax
lea eax, [ebp - 0xa58]
push eax
mov eax, 0x82c
push eax
lea ecx, [ebp - 0xa48]
push ecx
push eax
mov eax, ecx
push eax
push 0x4d02c
push dword [ebp - 0xa4c]
mov dword [ebp - 0xa40], 0x200
mov dword [ebp - 0xa3c], 0xa
mov dword [ebp - 0xa34], 0x2c
mov byte [ebp - 0xa22], 0xec
call esi
test eax, eax
je 0x1009cec
cmp word [ebp - 0x86a], 1
jne 0x1009cec
mov eax, dword [section..data]
cmp eax, section..data
je 0x1009cda
test dword [eax + 0x1c], 0x10000000
je 0x1009cda
push dword [ebp + 8]
push 0x1001cf8
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100755d
mov eax, dword [ebp - 0xa50]
mov dword [eax], ebx
mov eax, 0x169
jmp 0x1009d7b
lea eax, [ebp - 0xa54]
push eax
push dword [ebp + 8]
call fcn.0100975e
test eax, eax
jl 0x1009d4c
cmp dword [ebp - 0xa54], ebx
je 0x1009d4c
cmp dword [ebp - 0xa54], 0x2000
jbe 0x1009d4c
mov eax, dword [section..data]
cmp eax, section..data
je 0x1009d3d
test dword [eax + 0x1c], 0x10000000
je 0x1009d3d
push dword [ebp + 8]
push 0x1001cf8
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100755d
mov eax, dword [ebp - 0xa50]
mov dword [eax], ebx
mov eax, 0x17a
jmp 0x1009d7b
mov eax, dword [section..data]
cmp eax, section..data
je 0x1009d76
test dword [eax + 0x1c], 0x10000000
je 0x1009d76
push dword [ebp + 8]
push 0x1001cf8
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100755d
mov eax, 0x17f
mov dword [ebp - 0xa80], ebx
mov word [ebp - 0xa7c], ax
cmp dword [ebp - 0xa4c], 0xffffffff
mov esi, dword [ebp - 0xa80]
je 0x1009dab
cmp dword [ebp - 0xa4c], ebx
je 0x1009dab
push dword [ebp - 0xa4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xa80]
call fcn.010078e6
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006fd7
leave
ret 8