Function at 0x14d160
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x14d35b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0xc
call fcn.0001487c
lea eax, [ebp - 0xd]
xor ecx, ecx
mov edx, 8
call fcn.0001487c
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x14d339
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x18]
push eax
push 8
lea eax, [ebp - 0xd]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push esi
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x14d200
call fcn.00015adc
jmp 0x14d340
mov eax, dword [ebp - 9]
call fcn.000142b0
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 9]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push esi
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x14d243
call fcn.00015adc
jmp 0x14d340
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 8]
mov edx, dword [ebx]
mov byte [edx + 0x40], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 9]
mov edx, dword [ebx]
mov byte [edx + 0x41], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0xa]
mov edx, dword [ebx]
mov byte [edx + 0x42], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0xb]
mov edx, dword [ebx]
mov byte [edx + 0x43], al
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.0013aa98
lea edx, [ebp - 0x28]
call fcn.0014c128
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx]
add eax, 0x44
call fcn.00016e78
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0013aa98
lea edx, [ebp - 0x2c]
call fcn.0014c128
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebx]
add eax, 0x48
call fcn.00016e78
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x14]
call fcn.0013aa98
lea edx, [ebp - 0x30]
call fcn.0014c128
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
add eax, 0x4c
call fcn.00016e78
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0013aa98
lea edx, [ebp - 0x34]
call fcn.0014c128
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx]
add eax, 0x50
call fcn.00016e78
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebx]
mov dword [edx + 0x54], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x14d340
mov eax, dword [ebp - 0x14]
push eax
call fcn.00019f24
pop ecx
cmp byte [ebp - 5], 0
jne 0x14d338
mov edx, 0x15
mov eax, dword [ebp - 4]
call fcn.0014d79c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x14d362
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.000161f4
ret