Function at 0x401300
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2ff4
call fcn.00405ea0
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
push edi
mov dword [esp + 0x10], esi
push esi
lea eax, [esp + 0x28]
push 0x409020
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x24]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401510
xor edx, edx
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x8f4]
mov dword [esp + 0x18], edx
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], edx
push eax
lea ecx, [esp + 0x8fc]
mov dword [esp + 0x28], edx
push 0x2710
push ecx
lea edx, [esp + 0x28]
push 0xc
push edx
push 0x2d1400
push ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401439
mov eax, dword [esp + 0x90c]
lea ecx, [esp + eax + 0x8f4]
push ecx
call fcn.00401140
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x50c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [0x409cd8]
and ecx, 3
cmp al, bl
rep movsb byte es:[edi], byte [esi]
jne 0x40143f
movsx ecx, byte [esp + 0x50c]
mov esi, dword [sym.imp.MSVCRT.dll_isalnum]
push ecx
call esi
add esp, 4
test eax, eax
jne 0x401410
movsx edx, byte [esp + 0x51f]
push edx
call esi
add esp, 4
test eax, eax
je 0x40143f
lea edi, [esp + 0x50c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x409cd8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40143f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x8f4]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x8f8]
push ecx
push 0x2710
push edx
push ebx
push ebx
push 0x2d0c10
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4014ff
lea edi, [esp + 0x904]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [0x409cd8]
and ecx, 3
cmp al, bl
rep movsb byte es:[edi], byte [esi]
jne 0x401505
movsx ecx, byte [esp + 0x124]
mov esi, dword [sym.imp.MSVCRT.dll_isalnum]
push ecx
call esi
add esp, 4
test eax, eax
jne 0x4014d6
movsx edx, byte [esp + 0x137]
push edx
call esi
add esp, 4
test eax, eax
je 0x401505
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x409cd8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x401505
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
inc esi
cmp esi, 4
mov dword [esp + 0x10], esi
jl 0x401316
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2ff4
ret