Function at 0x1004a1ea
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov eax, 0x1027de0b
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1004a241
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc8
call fcn.10208570
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
push 0
push 0
push 3
push 0
push dword [ebp - 0x24]
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x1004a2ba
push 0x6d
push 0x43e92f5
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1004a2d1
mov eax, 0
jmp 0x1004a46b
mov dword [ebp - 0xc], 0x400
push 0x80000301
push 0
push 0xc
push 1
mov ebx, 0x1bc
call fcn.10208be0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1004a30d
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x1bc
call fcn.10208be0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1004a344
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], esp
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1004a35a
add eax, 8
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1004a365
add eax, 8
push eax
xor eax, eax
call dword [0x104a6cbf]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x1004a38c
push 0x1d4
push 0x43e92f5
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1004a3a1
add eax, 8
push eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1004a3ac
add eax, 8
push eax
xor eax, eax
call dword [0x104a6cbf]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x1004a3d3
push 0x207
push 0x43e92f5
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x30]
push 0xc
push dword [ebp - 0x28]
push 0x2d1400
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x1004a41e
push 0x207
push 0x43e92f5
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jne 0x1004a437
lea eax, [ebp - 0x14]
push eax
call fcn.1004a4a1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x1004a463
push 0x2b0
push 0x43e92f5
push 6
call fcn.10207bbd
add esp, 0xc
mov eax, dword [ebp - 0x20]
jmp 0x1004a46b
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1004a47c
push ebx
call fcn.10207bb1
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1004a48c
push ebx
call fcn.10207bb1
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1004a49c
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret