Function at 0x415610
Capabilities:
Get common file path
Get file version info
Read .ini file
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa34
mov eax, dword [0x43d004]
xor eax, esp
mov dword [esp + 0xa30], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x30]
push eax
push 0x104
mov dword [esp + 0x24], str.boot_boot.img
mov dword [esp + 0x28], str.bootcore.img.xz
mov dword [esp + 0x2c], str.ventoy_ventoy.disk.img.xz
mov dword [esp + 0x30], str.ventoy_version
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x30]
push str._altexe
push eax
call fcn.00418342
add esp, 8
test eax, eax
je 0x415695
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor edi, edi
mov esi, str.boot_boot.img
nop dword [eax]
push esi
push 0x436cc0
push 0
call fcn.0040f640
add esp, 0xc
test eax, eax
je 0x4159cb
mov esi, dword [esp + edi*4 + 0x20]
inc edi
test esi, esi
jne 0x4156a0
call fcn.0041dd5f
push 0
mov dword [esp + 0x14], 0
mov eax, dword [eax]
mov esi, dword [eax]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
lea ecx, [eax - 1]
cmp ecx, 0x7ff
ja 0x415745
lea ecx, [esp + 0x238]
push ecx
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x415745
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x43a2a0
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov ecx, dword [esp + 0x10]
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x16]
push eax
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x12]
push eax
push str._u._u._u._u
push 0x40
push 0x43fbe0
call fcn.00401010
add esp, 0x1c
call fcn.0040f7b0
push eax
push 0x43fbe0
push 0x43a1c4
push str._n_n_Ventoy2Disk_s__s___s___n
call fcn.0040f530
lea eax, [esp + 0x40]
push eax
push str.Current_directory:__s_
call fcn.0040f530
add esp, 0x18
call fcn.004152d0
test eax, eax
je 0x415796
mov eax, 0x32
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa30]
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret 0x10
test ebx, ebx
je 0x4157ad
cmp byte [ebx], 0
je 0x4157ad
push ebx
push str.CmdLine:__s_
call fcn.0040f530
add esp, 8
xor esi, esi
call fcn.0041dd59
cmp dword [eax], esi
jle 0x41582f
call fcn.0041dd5f
push 2
push 0x439c60
mov eax, dword [eax]
push dword [eax + esi*4]
call fcn.0041c070
add esp, 0xc
test eax, eax
je 0x41581b
call fcn.0041dd5f
push 2
push 0x439c64
mov eax, dword [eax]
push dword [eax + esi*4]
call fcn.0041c070
add esp, 0xc
test eax, eax
je 0x41581b
call fcn.0041dd5f
push 2
push 0x439c68
mov eax, dword [eax]
push dword [eax + esi*4]
call fcn.0041c070
add esp, 0xc
test eax, eax
jne 0x415825
mov dword [0x43d8b4], 1
jmp 0x415825
mov dword [0x43d8b8], 0
inc esi
call fcn.0041dd59
cmp esi, dword [eax]
jl 0x4157b8
lea eax, [esp + 0x238]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.Ventoy2Disk.ini
lea eax, [esp + 0x23c]
push 0x104
push eax
call fcn.0041d9b6
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [esp + 0x244]
add esp, 0xc
push eax
push 1
push 0x439b20
push str.Filter
call esi
neg eax
sbb eax, eax
and dword [0x43d8b8], eax
lea eax, [esp + 0x238]
push eax
push 0
push str.Force
push str.Operation
call esi
mov ecx, dword [0x43d8b4]
mov edi, 1
push edi
push dword [0x43d8b8]
cmp eax, edi
push dword [0x43e35c]
cmove ecx, edi
push str.Control_Flag:__d__d__d
mov dword [0x43d8b4], ecx
call fcn.0040f530
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add esp, 0x10
push 0x43a1c8
push 0
push str.PartStyle
push 0x436b38
call esi
mov ecx, dword [0x43e380]
cmp eax, edi
push 0x43a1c8
push 0
push str.ShowAllDevice
cmove ecx, edi
push 0x436b38
mov dword [0x43e380], ecx
call esi
dec eax
neg eax
sbb eax, eax
and dword [0x43d8b8], eax
call fcn.0040fee0
push 0x43f538
push str.Windows_Version:___Windows__s__
call fcn.0040f530
push str._n_Enum_All_PhyDrives_
call fcn.0040f530
add esp, 0xc
push 0x249000
call fcn.0041c36a
add esp, 4
mov dword [0x43e360], eax
test eax, eax
jne 0x415956
push str.Failed_to_alloc_phy_drive_memory
call fcn.0040f530
add esp, 4
jmp 0x415975
push 0x249000
push 0
push eax
call fcn.00418c40
add esp, 0xc
call fcn.004085e0
call fcn.00411620
call fcn.00411240
mov eax, dword [esp + 0x14]
push 0
push 0x414f60
push 0
push 0x6e
push eax
mov dword [0x43fc28], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push dword [0x43e360]
call fcn.0041bffb
add esp, 4
mov dword [0x43e360], 0
mov dword [0x43e364], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa30]
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret 0x10
mov edi, 0x32
push esi
push str._File___s__not_found__did_you_download_it_from_official_website___
call fcn.0040f530
add esp, 8
sub edi, 1
jne 0x4159d0
push str.grubgrub.cfg
push edi
call fcn.0040f640
add esp, 8
push 0x10
push str.Error
test eax, eax
je 0x415a03
push str.Dont_run_me_here__please_use_the_released_install_package.
jmp 0x415a08
push str.Please_run_under_the_correct_directory_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0xa3c]
mov eax, 0x490
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret 0x10