Function at 0x416560
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x446004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x447404]
xorps xmm0, xmm0
push ebx
push esi
mov dword [ebp - 0x414], eax
xor esi, esi
mov eax, dword [0x447400]
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 0x4165f7
nop word [eax + eax]
test bl, 1
je 0x4165ec
xor edx, edx
mov dword [ebp + esi*4 - 0x408], edi
mov ecx, edi
call fcn.0040cf20
push eax
push edi
push str.Logical_Drive:_C____PhyDrive:_d
mov dword [ebp + esi*4 - 0x208], eax
call fcn.00414230
add esp, 0xc
inc esi
inc edi
shr ebx, 1
jne 0x4165c0
mov dword [ebp - 0x40c], esi
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x4167f2
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.00420360
add esp, 0xc
cmp dword [0x4473fc], 0
je 0x416671
cmp dword [ebx + 0x14], 0
jne 0x416671
lea eax, [ebx + 0x98]
push eax
lea eax, [ebx + 0x18]
push eax
push str.__s__s__is_filtered_for_not_removable.
call fcn.00414230
add esp, 0xc
jmp 0x4167a6
cmp dword [0x4468b8], 0
je 0x4166a0
cmp dword [ebx + 0x218], 7
je 0x4166a0
lea eax, [ebx + 0x98]
push eax
lea eax, [ebx + 0x18]
push eax
push str.__s__s__is_filtered_for_not_USB_type.
call fcn.00414230
add esp, 0xc
jmp 0x4167a6
mov eax, dword [ebp - 0x410]
xor edx, edx
mov dword [ebx - 8], eax
inc eax
mov dword [ebp - 0x410], eax
test esi, esi
jle 0x4166e5
lea ecx, [edx + 1]
nop dword [eax]
mov eax, dword [ebp + edx*4 - 0x208]
cmp eax, dword [ebx - 4]
jne 0x4166e0
cmp ecx, 0x40
jae 0x4166df
mov al, byte [ebp + edx*4 - 0x408]
mov byte [ebx + ecx + 0x223], al
inc ecx
inc edx
cmp edx, esi
jl 0x4166c0
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.00415b40
add esp, 0x10
test eax, eax
je 0x4167a6
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.0040dac0
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.00414230
add esp, 0x20
lea ecx, [ebx - 8]
call fcn.00416320
cmp byte [esi], 0
jne 0x4167a0
push str.Unknown_Ventoy_Version
mov byte [esi], 0x3f
call fcn.00414230
add esp, 4
mov esi, dword [ebp - 0x40c]
add ebx, 0x4950
sub dword [ebp - 0x418], 1
jne 0x416620
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x414]
cmp dword [eax], 0
jge 0x4167d1
mov dword [eax + 4], 0xffffff
add eax, 0x4950
sub ecx, 1
jne 0x4167c5
mov eax, dword [ebp - 0x410]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ee2e
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.0041ee2e
mov esp, ebp
pop ebp
ret