Function at 0x40fe00
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42afb2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x334
push ebx
push esi
push edi
mov edi, ecx
xor bl, bl
call fcn.0040c1c0
push eax
lea ecx, [esp + 0x20]
call fcn.00420eb4
lea eax, [esp + 0x1c]
push str.setup.cfg
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x354], 0
call fcn.0042104e
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea edx, [esp + 0x128]
push 0x104
push edx
push 0x43a4b0
push str.PATH
push str.SETTINGS
call esi
lea ecx, [esp + 0x14]
call fcn.00420e46
lea eax, [esp + 0x124]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.0042104e
push str.Config
lea ecx, [esp + 0x10]
mov byte [esp + 0x34c], 1
call fcn.00421195
push 0x436244
lea ecx, [esp + 0x10]
call fcn.00421195
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x4100d7
push str.Config.ini
lea ecx, [esp + 0x10]
call fcn.00421195
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x228]
push ecx
push edx
call fcn.0042207d
test eax, eax
je 0x4100d7
mov eax, dword [0x436dd0]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x20]
push eax
push 0x104
push ecx
push 0x43a4b0
mov bl, 3
push str.ActiveGenerateBaseDir
push str.ActiveConfig
mov byte [esp + 0x360], bl
call esi
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
call fcn.00420f83
mov eax, dword [esp + 0x10]
push 0x43a4b0
push eax
call fcn.004127e5
add esp, 8
test eax, eax
je 0x41001f
push 0x436244
lea ecx, [esp + 0x14]
call fcn.00421195
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
push ecx
push 0x104
push edx
push 0x43a4b0
push str.ActiveGeneratePath
push str.ActiveConfig
call esi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
call fcn.00420f83
mov ecx, dword [esp + 0x18]
push 0x43a4b0
push ecx
call fcn.004127e5
add esp, 8
test eax, eax
jne 0x41006d
mov eax, dword [edi + 0x7c]
test eax, eax
jne 0x41001f
mov edx, dword [0x436dd0]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push 0x436340
push ecx
mov byte [esp + 0x354], 4
call fcn.0042044f
mov eax, dword [0x43af64]
add esp, 0xc
test eax, eax
je 0x40fffa
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push str.Generate_files_directory_is_wrong
push eax
call fcn.0042044f
add esp, 0xc
mov ecx, dword [esp + 0x14]
push 0
push 0
push ecx
call fcn.00427dee
mov eax, dword [edi + 0x7c]
lea ecx, [esp + 0x14]
inc eax
mov byte [esp + 0x348], bl
mov dword [edi + 0x7c], eax
call fcn.00420e46
lea ecx, [esp + 0x18]
mov byte [esp + 0x348], 2
call fcn.00420e46
lea ecx, [esp + 0x10]
mov byte [esp + 0x348], 1
call fcn.00420e46
lea ecx, [esp + 0xc]
mov byte [esp + 0x348], 0
call fcn.00420e46
lea ecx, [esp + 0x1c]
mov dword [esp + 0x348], 0xffffffff
call fcn.00420e46
xor al, al
jmp 0x4100fe
push 0x436244
lea ecx, [esp + 0x1c]
call fcn.00421195
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00420fe8
mov ecx, dword [esp + 0x350]
push eax
mov byte [esp + 0x34c], 5
call fcn.00420f33
lea ecx, [esp + 0x14]
mov byte [esp + 0x348], bl
call fcn.00420e46
lea ecx, [esp + 0x18]
mov bl, 1
mov byte [esp + 0x348], 2
call fcn.00420e46
lea ecx, [esp + 0x10]
mov byte [esp + 0x348], bl
call fcn.00420e46
lea ecx, [esp + 0xc]
mov byte [esp + 0x348], 0
call fcn.00420e46
lea ecx, [esp + 0x1c]
mov dword [esp + 0x348], 0xffffffff
call fcn.00420e46
mov al, bl
mov ecx, dword [esp + 0x340]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x340
ret 4