Function at 0x411240
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x43d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x43e364]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov dword [ebp - 0x414], eax
xor edi, edi
mov eax, dword [0x43e360]
mov esi, 0x41
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x410], edi
movlpd qword [ebp - 0x430], xmm0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
je 0x4112d7
nop word [eax + eax]
test bl, 1
je 0x4112cc
xor edx, edx
mov dword [ebp + edi*4 - 0x408], esi
mov ecx, esi
call fcn.00408490
push eax
push esi
push str.Logical_Drive:_C____PhyDrive:_d
mov dword [ebp + edi*4 - 0x208], eax
call fcn.0040f530
add esp, 0xc
inc edi
inc esi
shr ebx, 1
jne 0x4112a0
mov dword [ebp - 0x410], edi
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x4115fe
mov ebx, dword [ebp - 0x41c]
add ebx, 0x264
mov dword [ebp - 0x418], eax
nop word [eax + eax]
push 0x40
lea eax, [ebx - 0x40]
mov dword [ebx - 0x264], 0xffffffff
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x428], xmm0
call fcn.00418c40
add esp, 0xc
cmp dword [0x43e35c], 0
je 0x411357
cmp dword [ebx - 0x248], 0
jne 0x411357
lea eax, [ebx - 0x1c4]
push eax
lea eax, [ebx - 0x244]
push eax
push str.__s__s__is_filtered_for_not_removable.
call fcn.0040f530
add esp, 0xc
jmp 0x4115b0
cmp dword [0x43d8b8], 0
je 0x411386
cmp dword [ebx - 0x44], 7
je 0x411386
lea eax, [ebx - 0x1c4]
push eax
lea eax, [ebx - 0x244]
push eax
push str.__s__s__is_filtered_for_not_USB_type.
call fcn.0040f530
add esp, 0xc
jmp 0x4115b0
mov esi, dword [ebp - 0x40c]
xor edx, edx
mov dword [ebx - 0x264], esi
inc esi
mov dword [ebp - 0x40c], esi
test edi, edi
jle 0x4113d5
lea ecx, [edx + 1]
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + edx*4 - 0x208]
cmp eax, dword [ebx - 0x260]
jne 0x4113d0
cmp ecx, 0x40
jae 0x4113cf
mov al, byte [ebp + edx*4 - 0x408]
mov byte [ebx + ecx - 0x41], al
inc ecx
inc edx
cmp edx, edi
jl 0x4113b0
mov ecx, dword [ebx - 0x260]
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x430]
push eax
sub esp, 8
lea edx, [ebp - 0x630]
call fcn.00410cc0
add esp, 0x10
test eax, eax
je 0x4115b6
xor eax, eax
lea edi, [ebx + 0x24]
cmp byte [ebp - 0x46e], 0xee
lea esi, [ebp - 0x630]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x424]
sete al
push ecx
mov dword [ebx - 0x25c], eax
xor dl, dl
mov eax, dword [ebp - 0x428]
mov dword [ebx + 0x228], ecx
mov ecx, dword [ebx - 0x260]
push 0
mov dword [ebx + 0x224], eax
call fcn.004081a0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x41157e
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 0x42c]
push str.Parse_FAT_fs...
mov dword [0x43f3c0], edi
mov dword [0x43f450], eax
mov dword [0x43f454], ecx
call fcn.0040f530
add esp, 4
call fcn.00403fc0
cmp dword [0x43f1b0], 0
jne 0x411497
call fcn.00403fc0
mov ecx, 0x43e4b0
mov dword [0x43e4e4], 0x408fe0
mov dword [0x43e4e8], 0
call fcn.00403000
test eax, eax
je 0x4114e2
push eax
push str.FAT_FS:_Error_could_not_load_FAT_details___d___r_n
call fcn.0040f530
push str.attach_media_failed...
call fcn.0040f530
add esp, 0xc
push 1
push str.GetVentoyVerInPhyDrive_rc_d...
call fcn.0040f530
add esp, 8
jmp 0x411549
push str.attach_media_success...
mov dword [0x43e38c], 1
call fcn.0040f530
add esp, 4
mov ecx, ebx
call fcn.00408e20
mov esi, eax
push esi
push str.GetVentoyVerInPhyDrive_rc_d...
call fcn.0040f530
add esp, 8
test esi, esi
jne 0x411549
push ebx
push dword [ebx - 0x260]
push str.VentoyVerInPhyDrive__d_is___s_...
call fcn.0040f530
add esp, 0xc
mov edx, 0x437114
mov ecx, str._EFI_BOOT_grubx64_real.efi
call fcn.00404070
test eax, eax
je 0x411549
mov ecx, eax
mov dword [ebx + 0x20], 1
call fcn.00404360
cmp dword [0x43f1b0], 0
jne 0x411557
call fcn.00403fc0
mov eax, dword [0x43e4ec]
test eax, eax
je 0x411562
call eax
mov ecx, 0x43e4b0
call fcn.00405250
mov eax, dword [0x43e4f0]
test eax, eax
je 0x411577
call eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx + 0x20]
push ebx
push dword [ebx - 0x260]
push str.PhyDrive__d_is_Ventoy_Disk_ver:_s_SecureBoot:_u
call fcn.0040f530
add esp, 0x10
cmp byte [ebx], 0
jne 0x4115aa
push str.Unknown_Ventoy_Version
mov byte [ebx], 0x3f
call fcn.0040f530
add esp, 4
mov edi, dword [ebp - 0x410]
mov esi, dword [ebp - 0x40c]
add ebx, 0x4920
sub dword [ebp - 0x418], 1
jne 0x411300
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x414]
cmp dword [eax], 0
jge 0x4115e1
mov dword [eax + 4], 0xffffff
add eax, 0x4920
sub ecx, 1
jne 0x4115d5
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417710
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.00417710
mov esp, ebp
pop ebp
ret