Function at 0x40a990
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2018
call fcn.004a7630
push ebp
mov ebp, ecx
push edi
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2024]
mov eax, dword [ebp]
mov dword [esp + 0xc], ecx
lea edx, [esp + 0x20]
lea ecx, [esp + 8]
mov dword [esp + 0x1c], ebp
mov dword [esp + 8], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0x1000
mov dword [esp + 0x10], 0
call fcn.0040ac80
mov edi, dword [esp + 8]
test edi, edi
je 0x40aa06
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40aa06
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40aa06
mov ecx, dword [esp + 0x18]
cmp ecx, 0x80
jg 0x40aa13
pop edi
xor eax, eax
pop ebp
add esp, 0x2018
ret 4
push ebx
push esi
mov esi, dword [ebp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push ecx
push eax
mov eax, dword [esp + 0x24]
push eax
push str.FixedProductText
push edx
add esi, 0xa0
call ebx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0
je 0x40aa4e
test eax, eax
je 0x40aa4e
push eax
mov ecx, esi
call fcn.00435980
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
push str.OptionalProductText
push ecx
call ebx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0
je 0x40aa85
test eax, eax
je 0x40aa85
push eax
lea ecx, [esi + 0x10]
call fcn.00435980
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
push edx
push str.InstalledProductText
push eax
call ebx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0
je 0x40aab8
test eax, eax
je 0x40aab8
push eax
lea ecx, [esi + 0x20]
call fcn.00435980
push str.PageState
lea ecx, [esp + 0x14]
call fcn.0040ac40
mov edi, eax
test edi, edi
je 0x40ab1c
mov ebp, dword [sym.imp.MSVCRT.dll__wcsnicmp]
push 0x20
push str.Hide
push edi
call ebp
add esp, 0xc
test eax, eax
jne 0x40aaea
mov eax, 1
jmp 0x40ab18
push 0x20
push str.Minimized
push edi
call ebp
add esp, 0xc
test eax, eax
jne 0x40ab02
mov eax, 2
jmp 0x40ab18
push 0x20
push str.Smart
push edi
call ebp
add esp, 0xc
neg eax
sbb eax, eax
and al, 0xfd
add eax, 3
mov ebp, dword [esp + 0x24]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ecx + 0x150], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push 0
push str.ShowCancelButton
push eax
call edi
mov edx, dword [ebp + 0x1c]
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [edx + 0x154], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push str.SubTitle
push ecx
call ebx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0
je 0x40ab8a
test eax, eax
je 0x40ab8a
push eax
lea ecx, [esi + 0x30]
call fcn.00435980
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
push edx
push str.SubText
push eax
call ebx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0
je 0x40abbd
test eax, eax
je 0x40abbd
push eax
lea ecx, [esi + 0x40]
call fcn.00435980
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push 0
push str.SubTextHeight
push edx
call edi
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push 0
push str.SubTextMargin
push ecx
call edi
mov dword [esi + 0x64], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push str.AllProductInstalledPrompt
push eax
call ebx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0
je 0x40ac20
test eax, eax
je 0x40ac20
push eax
lea ecx, [esi + 0x50]
call fcn.00435980
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x2018
ret 4