Function at 0x418720
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2d0c
call fcn.00417a60
push ebx
push ebp
xor ebx, ebx
push esi
push ebx
lea eax, [esp + 0x40c]
xor esi, esi
push 0x429d28
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea ecx, [esp + 0x408]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4189cf
push edi
xor edx, edx
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x60c]
mov dword [esp + 0x18], edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], edx
push ebx
push eax
lea ecx, [esp + 0x614]
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 0x4188c2
mov ecx, 0xf9
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x618]
push 0x42b460
push ebx
lea ecx, [esp + 0x614]
push eax
push ecx
call fcn.004185b0
mov edx, dword [esp + 0x62c]
push 0x42b860
push ebx
lea eax, [esp + 0x624]
push edx
push eax
call fcn.004185b0
mov edx, dword [esp + 0x644]
lea ecx, [esp + 0x44]
push ecx
push 1
lea eax, [esp + 0x634]
push edx
push eax
call fcn.004185b0
mov edi, 0x42b860
or ecx, 0xffffffff
xor eax, eax
add esp, 0x30
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov al, byte [0x42ac60]
mov edx, ecx
mov esi, edi
mov edi, 0x42b060
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp al, bl
rep movsb byte es:[edi], byte [esi]
jne 0x4188b0
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.MSVCRT.dll_isalnum]
and eax, 0xff
push eax
call esi
add esp, 4
test eax, eax
jne 0x41888a
mov ecx, dword [esp + 0x37]
and ecx, 0xff
push ecx
call esi
add esp, 4
test eax, eax
je 0x4188b0
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x42ac60
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4188c8
cmp byte [0x42b060], bl
je 0x4188c8
mov dword [esp + 0x10], 1
jmp 0x4188c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x60c]
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x610]
push eax
push 0x2710
push ecx
push ebx
push ebx
push 0x2d0c10
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4189b3
mov dx, word [0x42bc60]
mov ecx, 0xf9
xor eax, eax
lea edi, [esp + 0x26]
mov word [esp + 0x24], dx
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edi, [esp + 0x61c]
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, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [0x42ac60]
and ecx, 3
cmp al, bl
rep movsb byte es:[edi], byte [esi]
jne 0x4189b9
movsx ecx, byte [esp + 0x24]
mov esi, dword [sym.imp.MSVCRT.dll_isalnum]
push ecx
call esi
add esp, 4
test eax, eax
jne 0x418971
movsx edx, byte [esp + 0x37]
push edx
call esi
add esp, 4
test eax, eax
je 0x4189b9
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], 1
mov eax, ecx
mov esi, edi
mov edi, 0x42ac60
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2d0c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2d0c
ret
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2d0c
ret