Function at 0x4017d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
and byte [ebp - 0x18], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
mov esi, ecx
stosd dword es:[edi], eax
lea ebx, [esi + 0x1c]
mov ecx, ebx
stosb byte es:[edi], al
call fcn.00402077
push dword [ebx + 4]
lea eax, [ebp - 0x18]
mov edi, str.Startup
push 0xa
push eax
push 0x4140d0
push str.HideWaitDlg
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x18]
push eax
push 0x4140c0
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
sbb al, al
mov ecx, ebx
inc al
mov byte [esi + 0x1f3], al
call fcn.00402077
push dword [ebx + 4]
lea eax, [ebp - 0x18]
push 0xa
push eax
push 0x4155f0
push str.EngineVersion
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x18], 0
je 0x4019f3
lea eax, [ebp - 0x18]
push 1
push eax
lea ecx, [ebp - 0x34]
call fcn.00401d11
cmp word [0x4140ac], 0
mov eax, 0x4140ae
je 0x40187d
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x401873
mov edi, 0x4140ac
push 0
sub eax, edi
lea ecx, [ebp - 0x34]
sar eax, 1
dec eax
push eax
push edi
call fcn.0040200d
cmp eax, dword [0x412324]
mov dword [ebp - 4], eax
je 0x4019e4
push eax
lea eax, [ebp - 0x50]
push 0
push eax
lea ecx, [ebp - 0x34]
call fcn.00401e12
mov ecx, eax
mov dword [ebp - 8], ecx
call fcn.00402077
mov eax, dword [ebp - 8]
push dword [eax + 4]
call fcn.00410d3a
pop ecx
shl eax, 0x10
lea ecx, [ebp - 0x50]
mov dword [esi + 0x1f4], eax
call fcn.00401d80
cmp word [0x4140ac], 0
mov eax, 0x4140ae
je 0x4018f1
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4018e7
mov ecx, dword [ebp - 4]
sub eax, edi
sar eax, 1
inc ecx
dec eax
push ecx
mov dword [ebp - 0xc], ecx
push eax
push edi
lea ecx, [ebp - 0x34]
call fcn.0040200d
mov dword [ebp - 8], eax
sub eax, dword [ebp - 4]
lea ecx, [ebp - 0x34]
dec eax
push eax
lea eax, [ebp - 0x50]
push dword [ebp - 0xc]
push eax
call fcn.00401e12
mov ecx, eax
mov dword [ebp - 0xc], ecx
call fcn.00402077
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
call fcn.00410d3a
or dword [esi + 0x1f4], eax
pop ecx
lea ecx, [ebp - 0x50]
call fcn.00401d80
cmp word [0x4140ac], 0
mov eax, 0x4140ae
je 0x40195c
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x401952
mov ecx, dword [ebp - 8]
sub eax, edi
sar eax, 1
inc ecx
dec eax
push ecx
mov dword [ebp - 0xc], ecx
push eax
push edi
lea ecx, [ebp - 0x34]
call fcn.0040200d
mov edi, eax
sub eax, dword [ebp - 8]
lea ecx, [ebp - 0x34]
dec eax
push eax
lea eax, [ebp - 0x50]
push dword [ebp - 0xc]
push eax
call fcn.00401e12
mov ecx, eax
mov dword [ebp - 0xc], ecx
call fcn.00402077
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
call fcn.00410d3a
pop ecx
shl eax, 0x10
lea ecx, [ebp - 0x50]
mov dword [esi + 0x1f8], eax
call fcn.00401d80
push dword [0x412324]
inc edi
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x34]
push edi
push eax
call fcn.00401e12
mov edi, eax
mov ecx, edi
call fcn.00402077
push dword [edi + 4]
call fcn.00410d3a
or dword [esi + 0x1f8], eax
pop ecx
lea ecx, [ebp - 0x50]
call fcn.00401d80
lea ecx, [ebp - 0x34]
call fcn.00401d80
mov edi, str.Startup
jmp 0x401a07
push 0x4140a8
call fcn.00410d3a
shl eax, 0x10
pop ecx
mov dword [esi + 0x1f4], eax
mov ecx, ebx
call fcn.00402077
push dword [ebx + 4]
push 0
push str.EngineBinding
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, ebx
mov dword [esi + 0x1fc], eax
call fcn.00402077
push dword [ebx + 4]
lea eax, [ebp - 0x18]
push 0xa
push eax
push 0x4140d0
push str.UseLatestEngine
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x18]
push eax
push 0x4140c0
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
sbb al, al
pop edi
inc al
mov byte [esi + 0x200], al
pop esi
pop ebx
leave
ret