Function at 0x417810
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2d0c
call fcn.00416d80
push ebx
push ebp
xor ebx, ebx
push esi
push ebx
lea eax, [esp + 0x40c]
xor esi, esi
push 0x428cb8
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 0x417abf
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 0x4179b2
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 0x42a488
push ebx
lea ecx, [esp + 0x614]
push eax
push ecx
call fcn.004176a0
mov edx, dword [esp + 0x62c]
push 0x42a888
push ebx
lea eax, [esp + 0x624]
push edx
push eax
call fcn.004176a0
mov edx, dword [esp + 0x644]
lea ecx, [esp + 0x44]
push ecx
push 1
lea eax, [esp + 0x634]
push edx
push eax
call fcn.004176a0
mov edi, 0x42a888
or ecx, 0xffffffff
xor eax, eax
add esp, 0x30
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov al, byte [0x429c88]
mov edx, ecx
mov esi, edi
mov edi, 0x42a088
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 0x4179a0
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 0x41797a
mov ecx, dword [esp + 0x37]
and ecx, 0xff
push ecx
call esi
add esp, 4
test eax, eax
je 0x4179a0
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, 0x429c88
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4179b8
cmp byte [0x42a088], bl
je 0x4179b8
mov dword [esp + 0x10], 1
jmp 0x4179b8
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 0x417aa3
mov dx, word [0x42ac88]
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 [0x429c88]
and ecx, 3
cmp al, bl
rep movsb byte es:[edi], byte [esi]
jne 0x417aa9
movsx ecx, byte [esp + 0x24]
mov esi, dword [sym.imp.MSVCRT.dll_isalnum]
push ecx
call esi
add esp, 4
test eax, eax
jne 0x417a61
movsx edx, byte [esp + 0x37]
push edx
call esi
add esp, 4
test eax, eax
je 0x417aa9
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, 0x429c88
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