Function at 0x416e00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x448004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x449404]
xorps xmm0, xmm0
push ebx
push esi
mov dword [ebp - 0x414], eax
xor esi, esi
mov eax, dword [0x449400]
push edi
mov dword [ebp - 0x41c], eax
mov edi, 0x41
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], esi
movlpd qword [ebp - 0x430], xmm0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
je 0x416e97
nop word [eax + eax]
test bl, 1
je 0x416e8c
xor edx, edx
mov dword [ebp + esi*4 - 0x408], edi
mov ecx, edi
call fcn.0040d050
push eax
push edi
push str.Logical_Drive:_C____PhyDrive:_d
mov dword [ebp + esi*4 - 0x208], eax
call fcn.00414ac0
add esp, 0xc
inc esi
inc edi
shr ebx, 1
jne 0x416e60
mov dword [ebp - 0x40c], esi
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x417092
mov ebx, dword [ebp - 0x41c]
add ebx, 8
mov dword [ebp - 0x418], eax
nop dword [eax]
nop dword [eax + eax]
push 0x40
lea eax, [ebx + 0x224]
mov dword [ebx - 8], 0xffffffff
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x428], xmm0
call fcn.00420f90
add esp, 0xc
cmp dword [0x4493fc], 0
je 0x416f11
cmp dword [ebx + 0x14], 0
jne 0x416f11
lea eax, [ebx + 0x98]
push eax
lea eax, [ebx + 0x18]
push eax
push str.__s__s__is_filtered_for_not_removable.
call fcn.00414ac0
add esp, 0xc
jmp 0x417046
cmp dword [0x4488b8], 0
je 0x416f40
cmp dword [ebx + 0x218], 7
je 0x416f40
lea eax, [ebx + 0x98]
push eax
lea eax, [ebx + 0x18]
push eax
push str.__s__s__is_filtered_for_not_USB_type.
call fcn.00414ac0
add esp, 0xc
jmp 0x417046
mov eax, dword [ebp - 0x410]
xor edx, edx
mov dword [ebx - 8], eax
inc eax
mov dword [ebp - 0x410], eax
test esi, esi
jle 0x416f85
lea ecx, [edx + 1]
nop dword [eax]
mov eax, dword [ebp + edx*4 - 0x208]
cmp eax, dword [ebx - 4]
jne 0x416f80
cmp ecx, 0x40
jae 0x416f7f
mov al, byte [ebp + edx*4 - 0x408]
mov byte [ebx + ecx + 0x223], al
inc ecx
inc edx
cmp edx, esi
jl 0x416f60
mov ecx, dword [ebx - 4]
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x430]
push eax
sub esp, 8
lea edx, [ebp - 0x630]
call fcn.004163e0
add esp, 0x10
test eax, eax
je 0x417046
lea edi, [ebx + 0x29c]
mov ecx, 0x80
lea esi, [ebp - 0x630]
xor eax, eax
cmp byte [ebp - 0x46e], 0xee
lea edx, [ebx + 0x278]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x424]
lea esi, [ebx + 0x298]
push esi
push ecx
push dword [ebp - 0x42c]
sete al
mov dword [ebx + 0x4a4], ecx
push dword [ebp - 0x430]
mov dword [ebx], eax
lea ecx, [ebx - 8]
mov eax, dword [ebp - 0x428]
mov dword [ebx + 0x4a0], eax
call fcn.0040e380
push dword [esi]
lea esi, [ebx + 0x278]
push esi
push dword [ebx - 4]
push str.PhyDrive__d_is_Ventoy_Disk_ver:_s_SecureBoot:_u
call fcn.00414ac0
add esp, 0x20
lea ecx, [ebx - 8]
call fcn.00416bc0
cmp byte [esi], 0
jne 0x417040
push str.Unknown_Ventoy_Version
mov byte [esi], 0x3f
call fcn.00414ac0
add esp, 4
mov esi, dword [ebp - 0x40c]
add ebx, 0x4950
sub dword [ebp - 0x418], 1
jne 0x416ec0
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x414]
cmp dword [eax], 0
jge 0x417071
mov dword [eax + 4], 0xffffff
add eax, 0x4950
sub ecx, 1
jne 0x417065
mov eax, dword [ebp - 0x410]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fa5e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fa5e
mov esp, ebp
pop ebp
ret