Function at 0x4a4fd0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3510
call fcn.004fa800
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3508], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x214], 0
mov eax, dword [ebp - 4]
push eax
push 0x566dd4
lea ecx, [ebp - 0x210]
push ecx
call fcn.004fbfb3
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
je 0x4a52eb
mov dword [ebp - 0x2934], 0
push 0xc
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004f8090
add esp, 0xc
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0x2710
push 0
lea ecx, [ebp - 0x2930]
push ecx
call fcn.004f8090
add esp, 0xc
push 0
lea edx, [ebp - 0x2934]
push edx
push 0x2710
lea eax, [ebp - 0x2930]
push eax
push 0xc
lea ecx, [ebp - 0x220]
push ecx
push 0x2d1400
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a51d9
lea eax, [ebp - 0x2930]
mov dword [ebp - 0x2d24], eax
mov byte [ebp - 0x3110], 0
push 0x3e7
push 0
lea ecx, [ebp - 0x310f]
push ecx
call fcn.004f8090
add esp, 0xc
mov byte [ebp - 0x2d20], 0
push 0x3e7
push 0
lea edx, [ebp - 0x2d1f]
push edx
call fcn.004f8090
add esp, 0xc
mov eax, dword [ebp - 0x2d24]
mov ecx, dword [eax + 0x18]
lea edx, [ebp + ecx - 0x2930]
push edx
mov ecx, dword [ebp - 0x3508]
call fcn.004a4d10
push eax
lea eax, [ebp - 0x3110]
push eax
call fcn.004fa700
add esp, 8
mov ecx, dword [ebp - 0x2d24]
mov edx, dword [ecx + 0x10]
lea eax, [ebp + edx - 0x2930]
push eax
lea ecx, [ebp - 0x2d20]
push ecx
call fcn.004fa700
add esp, 8
cmp dword [ebp + 8], 0
je 0x4a51d7
movsx edx, byte [ebp - 0x3110]
push edx
call fcn.004fa343
add esp, 4
test eax, eax
jne 0x4a5188
movsx eax, byte [ebp - 0x30fd]
push eax
call fcn.004fa343
add esp, 4
test eax, eax
je 0x4a51d7
lea ecx, [ebp - 0x3110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp + 0xc], eax
jae 0x4a51a5
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x350c], edx
jmp 0x4a51b8
lea eax, [ebp - 0x3110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x350c], eax
mov ecx, dword [ebp - 0x350c]
push ecx
lea edx, [ebp - 0x3110]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 8], 1
jmp 0x4a51e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3114], eax
push 0x2710
push 0
lea ecx, [ebp - 0x2930]
push ecx
call fcn.004f8090
add esp, 0xc
push 0
lea edx, [ebp - 0x2934]
push edx
push 0x2710
lea eax, [ebp - 0x2930]
push eax
push 0
push 0
push 0x2d0c10
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a52d2
lea edx, [ebp - 0x2930]
mov dword [ebp - 0x3118], edx
mov eax, dword [ebp - 0x3118]
add eax, 0x10
push eax
lea ecx, [ebp - 0x3500]
push ecx
call fcn.004fa700
add esp, 8
cmp dword [ebp + 8], 0
je 0x4a52d0
movsx edx, byte [ebp - 0x3500]
push edx
call fcn.004fa343
add esp, 4
test eax, eax
jne 0x4a5281
movsx eax, byte [ebp - 0x34ed]
push eax
call fcn.004fa343
add esp, 4
test eax, eax
je 0x4a52d0
lea ecx, [ebp - 0x3500]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp + 0xc], eax
jae 0x4a529e
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x3510], edx
jmp 0x4a52b1
lea eax, [ebp - 0x3500]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x3510], eax
mov ecx, dword [ebp - 0x3510]
push ecx
lea edx, [ebp - 0x3500]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 8], 1
jmp 0x4a52de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3504], eax
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret 8