Function at 0x405d42
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f432
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x450bf0]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push esi
push edi
mov eax, dword [0x450bf0]
xor eax, esp
push eax
lea eax, [esp + 0x370]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
xor bl, bl
call fcn.0043d560
push eax
lea ecx, [esp + 0x20]
call fcn.00402597
xor edi, edi
mov dword [esp + 0x378], edi
call fcn.0043d800
lea ecx, [esp + 0x25c]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x405db6
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00407878
mov esi, 0x446690
push esi
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x390], 1
call fcn.00407878
add esp, 0x18
mov byte [esp + 0x378], 3
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00401c0b
push str.Config
lea ecx, [esp + 0x18]
call fcn.00402367
push esi
lea ecx, [esp + 0x18]
call fcn.00402367
push dword [esp + 0x14]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x405fb0
push str.Config.ini
lea ecx, [esp + 0x18]
call fcn.00402367
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x18]
call fcn.0041bf9f
test eax, eax
je 0x405fb0
call fcn.0041822d
push eax
lea ecx, [esp + 0x1c]
call fcn.00401bc3
mov byte [esp + 0x378], 4
call fcn.0041822d
push eax
lea ecx, [esp + 0x14]
call fcn.00401bc3
mov byte [esp + 0x378], 5
push dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x104
lea eax, [esp + 0x15c]
push eax
mov edi, 0x446a78
push edi
push str.ActiveGenerateBaseDir
push str.ActiveConfig
call ebx
lea eax, [esp + 0x154]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402715
push edi
lea ecx, [esp + 0x1c]
call fcn.00407c83
test eax, eax
jne 0x405f3b
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00401c0b
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00401c0b
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00401c0b
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00401c0b
xor al, al
mov ecx, dword [esp + 0x370]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.00420391
mov esp, ebp
pop ebp
ret 8
push esi
lea ecx, [esp + 0x1c]
call fcn.00402367
push dword [esp + 0x14]
lea eax, [esp + 0x158]
push 0x104
push eax
push edi
push str.ActiveGeneratePath
push str.ActiveConfig
call ebx
lea eax, [esp + 0x154]
push eax
lea ecx, [esp + 0x14]
call fcn.00402715
push edi
lea ecx, [esp + 0x14]
call fcn.00407c83
test eax, eax
jne 0x405fcf
mov eax, dword [esp + 0x20]
add eax, 0x98
cmp dword [eax], 0
jne 0x405f96
mov dword [eax], 1
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00401c0b
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00401c0b
xor bl, bl
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00401c0b
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00401c0b
mov al, bl
jmp 0x405f15
push esi
lea ecx, [esp + 0x14]
call fcn.00402367
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00407821
add esp, 0xc
mov ecx, dword [esp + 0x28]
push eax
mov byte [esp + 0x37c], 6
call fcn.00408d3c
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.00401c0b
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
mov bl, 1
call fcn.00401c0b
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00401c0b
jmp 0x405fb0