Function at 0x487cf0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x30fc
call fcn.004d7c90
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x30f8], eax
mov eax, dword [esp + 0x3100]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
mov esi, ecx
lea ecx, [esp + 0x414]
push 0x53f424
xor ebp, ebp
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebp
call fcn.004d9a19
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea edx, [esp + 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x487f50
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push 0x2710
mov dword [esp + 0x28], eax
lea eax, [esp + 0x9fc]
push ebx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.004d5720
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0xc
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x2710
lea edx, [esp + 0xa04]
push edx
push 0xc
lea eax, [esp + 0x30]
push eax
push 0x2d1400
push edi
call ebp
test eax, eax
je 0x487e77
push 0x3e7
lea ecx, [esp + 0x2d]
push ebx
push ecx
mov byte [esp + 0x34], bl
call fcn.004d5720
mov edx, dword [esp + 0xa1c]
add esp, 0xc
lea eax, [esp + edx + 0x9f8]
push eax
mov ecx, esi
call fcn.00487b40
lea edx, [esp + 0x28]
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
cmp cl, bl
jne 0x487df0
mov eax, dword [esp + 0xa08]
lea eax, [esp + eax + 0x9f8]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x487e08
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x487e81
movsx ecx, byte [esp + 0x28]
push ecx
call fcn.004d7849
add esp, 4
test eax, eax
jne 0x487e3b
movsx edx, byte [esp + 0x3b]
push edx
call fcn.004d7849
add esp, 4
test eax, eax
je 0x487e81
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x3114]
cmp ecx, eax
jae 0x487e55
mov eax, ecx
jmp 0x487e60
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [esp + 0x10], 1
jmp 0x487e81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x14]
push 0x2710
lea eax, [esp + 0x9fc]
push ebx
push eax
call fcn.004d5720
add esp, 0xc
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x2710
lea edx, [esp + 0xa04]
push edx
push ebx
push ebx
push 0x2d0c10
push edi
call ebp
test eax, eax
je 0x487f3d
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0xa08]
mov byte [esp + eax + 0x28], cl
inc eax
cmp cl, bl
jne 0x487ec0
cmp esi, ebx
je 0x487f43
movsx eax, byte [esp + 0x28]
push eax
call fcn.004d7849
add esp, 4
test eax, eax
jne 0x487ef8
movsx ecx, byte [esp + 0x3b]
push ecx
call fcn.004d7849
add esp, 4
test eax, eax
je 0x487f43
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x28]
push edx
call ebx
mov ecx, dword [esp + 0x3114]
cmp ecx, eax
jae 0x487f14
mov eax, ecx
jmp 0x487f1b
lea eax, [esp + 0x28]
push eax
call ebx
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
jmp 0x487f52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
jmp 0x487f52
mov eax, ebp
mov ecx, dword [esp + 0x3108]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d6555
add esp, 0x30fc
ret 8