Function at 0x40c450
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2018
call fcn.004999f0
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.0040c740
mov edi, dword [esp + 8]
test edi, edi
je 0x40c4c6
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40c4c6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c4c6
mov ecx, dword [esp + 0x18]
cmp ecx, 0x80
jg 0x40c4d3
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 0x40c50e
test eax, eax
je 0x40c50e
push eax
mov ecx, esi
call fcn.00432f10
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 0x40c545
test eax, eax
je 0x40c545
push eax
lea ecx, [esi + 0x10]
call fcn.00432f10
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 0x40c578
test eax, eax
je 0x40c578
push eax
lea ecx, [esi + 0x20]
call fcn.00432f10
push str.PageState
lea ecx, [esp + 0x14]
call fcn.0040c700
mov edi, eax
test edi, edi
je 0x40c5dc
mov ebp, dword [sym.imp.MSVCRT.dll__wcsnicmp]
push 0x20
push str.Hide
push edi
call ebp
add esp, 0xc
test eax, eax
jne 0x40c5aa
mov eax, 1
jmp 0x40c5d8
push 0x20
push str.Minimized
push edi
call ebp
add esp, 0xc
test eax, eax
jne 0x40c5c2
mov eax, 2
jmp 0x40c5d8
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 0x40c64a
test eax, eax
je 0x40c64a
push eax
lea ecx, [esi + 0x30]
call fcn.00432f10
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 0x40c67d
test eax, eax
je 0x40c67d
push eax
lea ecx, [esi + 0x40]
call fcn.00432f10
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 0x40c6e0
test eax, eax
je 0x40c6e0
push eax
lea ecx, [esi + 0x50]
call fcn.00432f10
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x2018
ret 4