Function at 0x4017ad
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.00401ffc
push dword [ebx + 4]
lea eax, [ebp - 0x18]
mov edi, str.Startup
push 0xa
push eax
push 0x4140c4
push str.HideWaitDlg
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x18]
push eax
push 0x4140b4
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
sbb al, al
mov ecx, ebx
inc al
mov byte [esi + 0x1f2], al
call fcn.00401ffc
push dword [ebx + 4]
lea eax, [ebp - 0x18]
push 0xa
push eax
push 0x415580
push str.EngineVersion
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x18], 0
je 0x4019d0
lea eax, [ebp - 0x18]
push 1
push eax
lea ecx, [ebp - 0x34]
call fcn.00401cee
cmp word [0x4140a0], 0
mov eax, 0x4140a2
je 0x40185a
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x401850
mov edi, 0x4140a0
push 0
sub eax, edi
lea ecx, [ebp - 0x34]
sar eax, 1
dec eax
push eax
push edi
call fcn.004020e1
cmp eax, dword [0x41231c]
mov dword [ebp - 4], eax
je 0x4019c1
push eax
lea eax, [ebp - 0x50]
push 0
push eax
lea ecx, [ebp - 0x34]
call fcn.00401e55
mov ecx, eax
mov dword [ebp - 8], ecx
call fcn.00401ffc
mov eax, dword [ebp - 8]
push dword [eax + 4]
call fcn.00410880
pop ecx
shl eax, 0x10
lea ecx, [ebp - 0x50]
mov dword [esi + 0x1f4], eax
call fcn.00401d5d
cmp word [0x4140a0], 0
mov eax, 0x4140a2
je 0x4018ce
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4018c4
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.004020e1
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.00401e55
mov ecx, eax
mov dword [ebp - 0xc], ecx
call fcn.00401ffc
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
call fcn.00410880
or dword [esi + 0x1f4], eax
pop ecx
lea ecx, [ebp - 0x50]
call fcn.00401d5d
cmp word [0x4140a0], 0
mov eax, 0x4140a2
je 0x401939
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40192f
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.004020e1
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.00401e55
mov ecx, eax
mov dword [ebp - 0xc], ecx
call fcn.00401ffc
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
call fcn.00410880
pop ecx
shl eax, 0x10
lea ecx, [ebp - 0x50]
mov dword [esi + 0x1f8], eax
call fcn.00401d5d
push dword [0x41231c]
inc edi
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x34]
push edi
push eax
call fcn.00401e55
mov edi, eax
mov ecx, edi
call fcn.00401ffc
push dword [edi + 4]
call fcn.00410880
or dword [esi + 0x1f8], eax
pop ecx
lea ecx, [ebp - 0x50]
call fcn.00401d5d
lea ecx, [ebp - 0x34]
call fcn.00401d5d
mov edi, str.Startup
jmp 0x4019e4
push 0x41409c
call fcn.00410880
shl eax, 0x10
pop ecx
mov dword [esi + 0x1f4], eax
mov ecx, ebx
call fcn.00401ffc
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.00401ffc
push dword [ebx + 4]
lea eax, [ebp - 0x18]
push 0xa
push eax
push 0x4140c4
push str.UseLatestEngine
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x18]
push eax
push 0x4140b4
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