Function at 0x418890
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x448004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x44b688]
mov dword [ebp - 0x2c4], ecx
call dword [sym.imp.USER32.dll_GetMenu]
mov dword [ebp - 0x2bc], eax
call fcn.00414dd0
push eax
push 0x43be74
lea eax, [ebp - 0x88]
push 0x80
push eax
call fcn.00401010
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [ebp - 0x88]
add esp, 0x10
push eax
push dword [0x44b63c]
call ebx
cmp dword [0x449424], 0
mov ecx, 0x43f9d0
mov eax, 0x43f9d4
cmove eax, ecx
push eax
push dword [0x44b66c]
call ebx
push 0x442cc3
push dword [0x44b664]
call ebx
push 0x442cc3
push dword [0x44b670]
mov dword [0x449430], 0
call ebx
push 0x442cc3
push dword [0x44b644]
call ebx
push 0
push dword [0x44b658]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [0x44b660]
call ebx
push 0
push dword [0x44b648]
call ebx
mov esi, dword [0x44b688]
mov edi, dword [0x44b64c]
push 0x404
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x2ac], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x2b0], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x439
push edi
movlpd qword [ebp - 0x2a8], xmm0
movlpd qword [ebp - 0x2a0], xmm0
mov dword [ebp - 0x298], 0
movlpd qword [ebp - 0x290], xmm0
mov dword [ebp - 0x2b8], 0x30
mov dword [ebp - 0x2b4], 0x11
mov dword [ebp - 0x294], 0x43eefc
call esi
push 0
push dword [ebp - 0x2bc]
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, dword [0x449414]
mov ebx, eax
mov dword [ebp - 0x2c0], ebx
test ecx, ecx
je 0x418a0e
add ecx, 0xef04
jmp 0x418a10
xor ecx, ecx
mov edi, dword [sym.imp.USER32.dll_ModifyMenuW]
push ecx
push 0xa002
push 0x402
push 3
push ebx
call edi
mov eax, dword [0x449414]
test eax, eax
je 0x418a36
add eax, 0x17704
jmp 0x418a38
xor eax, eax
push eax
push 0xa008
push 0x402
push 6
push ebx
call edi
cmp dword [0x449404], 0
jbe 0x418d0d
push 0
push 0
push 0x147
push dword [ebp - 0x2c4]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x418d0d
mov edx, dword [0x449404]
xor ecx, ecx
test edx, edx
je 0x418d0d
mov ebx, dword [0x449400]
mov eax, dword [ebx]
test eax, eax
js 0x418a91
cmp eax, esi
je 0x418aa1
inc ecx
add ebx, 0x4950
cmp ecx, edx
jb 0x418a87
jmp 0x418d0d
mov eax, dword [0x449414]
test eax, eax
je 0x418ab1
add eax, 0xef04
jmp 0x418ab3
xor eax, eax
push eax
push 0xa002
push 0x400
push 3
push dword [ebp - 0x2c0]
call edi
mov esi, dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [ebx + 0x280]
push eax
push dword [0x44b664]
call esi
lea eax, [ebx + 0x270]
mov dword [0x449430], 0
push eax
push dword [0x44b644]
call esi
push ecx
mov ecx, dword [ebx + 0x26c]
lea edx, [ebp - 0x288]
call fcn.0040be90
mov esi, dword [0x44b688]
add esp, 4
mov edi, dword [0x44b64c]
push 0x404
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x2ac], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x288]
movlpd qword [ebp - 0x2a8], xmm0
mov dword [ebp - 0x294], eax
lea eax, [ebp - 0x2b8]
push eax
push 0
push 0x439
push edi
movlpd qword [ebp - 0x2a0], xmm0
mov dword [ebp - 0x298], 0
movlpd qword [ebp - 0x290], xmm0
mov dword [ebp - 0x2b8], 0x30
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2b4], 0x11
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [ebx + 0x280], 0
lea edi, [ebx + 0x280]
je 0x418c62
push 0x43ffe4
lea esi, [ebx + 0x270]
push esi
call fcn.0042622f
add esp, 8
test eax, eax
je 0x418bd8
push 0x43feb0
push esi
call fcn.0042622f
add esp, 8
test eax, eax
je 0x418bd8
push 0x43ffd8
push esi
call fcn.0042622f
add esp, 8
test eax, eax
jne 0x418bf4
mov eax, dword [0x449430]
mov ecx, 1
cmp dword [ebx + 0x26c], 0x800
cmovl eax, ecx
mov dword [0x449430], eax
cmp dword [ebx + 8], 0
mov ecx, 0x43f9d0
mov eax, 0x43f9d4
cmove eax, ecx
push eax
push dword [0x44b670]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [ebx + 0x2a0]
push dword [0x4488bc]
push str.Combox_select_change__update_secure_boot_option:__u__u
call fcn.00414ac0
mov eax, dword [ebx + 0x2a0]
add esp, 0xc
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x4488bc], eax
test eax, eax
je 0x418c47
push 1
jmp 0x418ccc
push 0
push dword [0x44b658]
call esi
push 0
push dword [0x44b678]
call esi
push 0
jmp 0x418ce0
mov eax, dword [0x449414]
test eax, eax
je 0x418c72
add eax, 0x17704
jmp 0x418c74
xor eax, eax
push eax
push 0xa008
push 0x400
push 6
push dword [ebp - 0x2c0]
call dword [sym.imp.USER32.dll_ModifyMenuW]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x442cc3
push dword [0x44b670]
call ebx
push 0x442cc3
push dword [0x44b644]
call ebx
push str.Not_ventoy_disk__set_secure_boot_option
call fcn.00414ac0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
add esp, 4
mov dword [0x4488bc], 1
push 0
push dword [0x44b658]
call esi
push 1
push dword [0x44b678]
call esi
push 8
push 0
push dword [ebp - 0x2bc]
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 1
push dword [0x44b660]
call esi
cmp byte [edi], 0
je 0x418d0d
push 1
push dword [0x44b648]
call esi
push 1
push 0
push dword [0x44b688]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [0x44b688]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fa5e
mov esp, ebp
pop ebp
ret