Function at 0x405c50
Capabilities:
Accept command line arguments
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
push edi
push 0xf
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
xor eax, eax
xor edi, edi
mov dword [esp + 0x20], eax
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x28], 1
mov ecx, eax
mov dword [esp + 0xc], ecx
jle 0x405f3f
mov esi, 1
mov dword [esp + 0x10], esi
nop dword [eax + eax]
push str.__silent
push dword [ecx + esi*4]
call fcn.00407979
test eax, eax
mov eax, 1
push str.__path
cmovne ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], ebx
push dword [eax + esi*4]
call fcn.00407979
add esp, 0x10
test eax, eax
je 0x405d27
mov eax, dword [esp + 0xc]
mov edx, dword [eax + esi*4]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405d00
sub ecx, esi
mov esi, dword [esp + 0x10]
sar ecx, 1
cmp ecx, 7
jbe 0x405d27
test edi, edi
jne 0x405d27
mov dword [esp + 0x2c], 1
lea edi, [edx + 0xe]
mov eax, dword [esp + 0xc]
push str.__system_level
push dword [eax + esi*4]
call fcn.00407979
add esp, 8
test eax, eax
je 0x405dee
test edi, edi
jne 0x405dee
push 0x208
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x405eb4
push edi
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, 0x82
mov eax, edi
nop
cmp word [eax], 0
je 0x405d8e
add eax, 2
sub ecx, 1
jne 0x405d80
mov eax, 0x82
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x405dea
mov edx, 0x82
lea eax, [edi + esi*2]
sub edx, esi
je 0x405ddd
mov ebx, str.Supermium
mov ecx, 0x7ffffffe
sub ebx, eax
nop dword [eax]
test ecx, ecx
je 0x405dd9
movzx esi, word [ebx + eax]
test si, si
je 0x405dd9
mov word [eax], si
dec ecx
add eax, 2
sub edx, 1
jne 0x405dc0
mov ebx, dword [esp + 0x30]
test edx, edx
lea ecx, [eax - 2]
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push str.__install_emoji
push dword [eax + esi*4]
call fcn.00407979
mov ecx, dword [esp + 0x28]
test eax, eax
mov eax, 1
cmovne ecx, eax
mov eax, dword [esp + 0x14]
push str.__shortcuts
mov dword [esp + 0x2c], ecx
push dword [eax + esi*4]
call fcn.00407979
mov ecx, dword [esp + 0x2c]
test eax, eax
mov eax, 1
cmovne ecx, eax
mov eax, dword [esp + 0x1c]
push str.__no_registry_writes
mov dword [esp + 0x30], ecx
push dword [eax + esi*4]
call fcn.00407979
mov ecx, dword [esp + 0x30]
test eax, eax
mov eax, 1
cmovne ecx, eax
mov eax, dword [esp + 0x24]
push str.__ungoogled
mov dword [esp + 0x34], ecx
push dword [eax + esi*4]
call fcn.00407979
mov ecx, dword [esp + 0x34]
test eax, eax
mov eax, 1
cmovne ecx, eax
mov eax, dword [esp + 0x2c]
push str.__classic_theme
mov dword [esp + 0x38], ecx
push dword [eax + esi*4]
call fcn.00407979
mov ecx, dword [esp + 0x4c]
add esp, 0x28
test eax, eax
mov eax, 1
cmovne ecx, eax
inc esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], esi
cmp esi, dword [esp + 0x28]
jge 0x405ed3
mov ecx, dword [esp + 0xc]
jmp 0x405cc0
push 0x10
push str.Supermium_Setup
push str.Failed_to_allocate_memory.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test ebx, ebx
je 0x405f3f
test edi, edi
jne 0x405ef9
push 0x10
push str.Supermium_Setup
push str.Failed_to_specify_a_valid_path_for_unattended_mode._Please_provide_a_valid_path_and_try_again.
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x14]
mov edx, edi
push ecx
push eax
mov eax, dword [esp + 0x20]
xor ecx, ecx
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push eax
call fcn.004046d0
add esp, 0x14
cmp dword [esp + 0x2c], 0
jne 0x405f31
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x34]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x405f81
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x34]
push eax
call edi
lea eax, [esp + 0x34]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
call esi
test eax, eax
jne 0x405f62
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10