Function at 0x491260
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4943ee
mov eax, dword fs:[0]
push eax
sub esp, 0xd90
mov eax, dword [0x4ae248]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x265], 0
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], 0
jmp 0x4912ad
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
add eax, 1
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
cmp dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], 0x10
jge 0x4915af
movzx ecx, byte [ebp - 0x265]
test ecx, ecx
jne 0x4915af
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], 0
push 0x200
push 0
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
push eax
push 0x497140
push 0xffffffffffffffff
push 0xff
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
call dword [sym.imp.MSVCR100.dll__snwprintf_s]
add esp, 0x14
push 0
push 0
push 3
push 0
push 3
push 0
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
cmp dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], 0xffffffff
jne 0x491339
jmp 0x4915aa
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], 0
push 0xc
push 0
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], 0
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], 0
push 0x800
push 0
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
push 0x800
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push 0xc
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
push 0x2d1400
mov edx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x491597
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
cmp dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], 0
je 0x491595
mov byte [ebp - 0xd84], 0
push 0xff
push 0
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov byte [ebp - 0xc84], 0
push 0xff
push 0
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov byte [ebp - 0xb84], 0
push 0xff
push 0
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
push 0
mov edx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov eax, dword [edx + 0x10]
push eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
push ecx
call fcn.004908e0
add esp, 0x10
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
push 0
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov ecx, dword [eax + 0x14]
push ecx
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
call fcn.004908e0
add esp, 0x10
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push 1
mov ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov edx, dword [ecx + 0x18]
push edx
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
call fcn.004908e0
add esp, 0x10
movsx ecx, byte [ebp - 0xd84]
push ecx
call dword [sym.imp.MSVCR100.dll_isalnum]
add esp, 4
test eax, eax
jne 0x4914bc
movsx edx, byte [ebp - 0xd71]
push edx
call dword [sym.imp.MSVCR100.dll_isalnum]
add esp, 4
test eax, eax
je 0x491595
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea ecx, [ebp - 0x2c]
call fcn.00415800
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
mov ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
push edx
mov ecx, dword [ebp + 8]
call fcn.004208a0
mov dword [ebp - 4], reloc.NETAPI32.dll_NetApiBufferFree
lea ecx, [ebp - 0x2c]
call fcn.0040b8a0
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea ecx, [ebp - 0x48]
call fcn.00415800
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
mov ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004208a0
mov dword [ebp - 4], reloc.NETAPI32.dll_NetApiBufferFree
lea ecx, [ebp - 0x48]
call fcn.0040b8a0
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea ecx, [ebp - 0x64]
call fcn.00415800
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
mov ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ecx
mov dword [ebp - 4], 2
mov edx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.004208a0
mov dword [ebp - 4], reloc.NETAPI32.dll_NetApiBufferFree
lea ecx, [ebp - 0x64]
call fcn.0040b8a0
mov byte [ebp - 0x265], 1
jmp 0x49159d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49129e
mov al, byte [ebp - 0x265]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00492cee
mov esp, ebp
pop ebp
ret