Function at 0x406950
Capabilities:
Accept command line arguments
Get common file path
Get program files directory
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
push edi
xorps xmm0, xmm0
mov dword [esp + 0x50], 0
push 0xf
movlpd qword [esp + 0x5c], xmm0
mov dword [esp + 0x68], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], str.MyWindowClass
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push 0x7f00
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
push 0
mov dword [esp + 0x5c], 0x406010
mov dword [esp + 0x68], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x68], eax
xor edi, edi
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x20], eax
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 0x406c8f
mov esi, 1
mov dword [esp + 0x10], esi
nop dword [eax + eax]
push str.__silent
push dword [ecx + esi*4]
call fcn.00408709
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.00408709
add esp, 0x10
test eax, eax
je 0x406a67
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 0x406a40
sub ecx, esi
mov esi, dword [esp + 0x10]
sar ecx, 1
cmp ecx, 7
jbe 0x406a67
test edi, edi
jne 0x406a67
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.00408709
add esp, 8
test eax, eax
je 0x406b3e
mov dword [0x41e8c0], 0
test edi, edi
jne 0x406b3e
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 0x406c04
push edi
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, 0x82
mov eax, edi
nop dword [eax]
cmp word [eax], 0
je 0x406ade
add eax, 2
sub ecx, 1
jne 0x406ad0
mov eax, 0x82
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x406b3a
mov edx, 0x82
lea eax, [edi + esi*2]
sub edx, esi
je 0x406b2d
mov ebx, str.Supermium
mov ecx, 0x7ffffffe
sub ebx, eax
nop dword [eax]
test ecx, ecx
je 0x406b29
movzx esi, word [ebx + eax]
test si, si
je 0x406b29
mov word [eax], si
dec ecx
add eax, 2
sub edx, 1
jne 0x406b10
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.00408709
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.00408709
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.00408709
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.00408709
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.00408709
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 0x406c23
mov ecx, dword [esp + 0xc]
jmp 0x406a00
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 0x406c8f
test edi, edi
jne 0x406c49
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 0x406c81
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
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push dword [ebp + 8]
push 0
push 0
push 0x1cc
push 0x190
push 0x64
push 0x64
push 0x90c80000
push 0x41a0f4
push dword [esp + 0x9c]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
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 0x406d0f
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [eax]
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 0x406cf0
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10