Function at 0x4101d0
Capabilities:
Create directory
Read .ini file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42a1ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0040c240
push eax
lea ecx, [esp + 0x28]
call fcn.004200a5
lea eax, [esp + 0x24]
push str.setup.cfg
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x14c], 0
call fcn.0042023f
mov eax, dword [eax]
lea edx, [esp + 0x34]
push eax
push 0x104
push edx
push 0x4366e0
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
call fcn.00420037
lea eax, [esp + 0x34]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.0042023f
push str.Config
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 1
call fcn.00420386
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
call fcn.0041fdac
push 0x434f90
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 2
call fcn.00420386
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x43501c]
mov dl, byte [ecx]
mov byte [esp + 0x1b], 0x41
mov byte [esp + 0x14], dl
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1b]
push ecx
push edx
mov byte [esp + 0x148], 3
call fcn.00410760
add esp, 8
test al, al
je 0x41044e
movsx eax, byte [esp + 0x1b]
push eax
lea ecx, [esp + 0x24]
push 0x434f8c
push ecx
call fcn.0041f640
add esp, 0xc
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
call fcn.0041fdac
push 0x4343dc
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], 5
call fcn.00420386
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push ecx
push str.ActiveGenerateBaseDir
push str.ActiveConfig
call esi
push str.Naiky
lea ecx, [esp + 0x24]
call fcn.00420174
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push edx
push eax
push str.ActiveGeneratePath
push str.ActiveConfig
call esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call fcn.004203c2
lea edx, [esp + 0x10]
push 0x4343dc
lea eax, [esp + 0x18]
push edx
push eax
call fcn.0042023f
mov eax, dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push eax
call esi
test eax, eax
lea ecx, [esp + 0x14]
sete bl
call fcn.00420037
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test bl, bl
je 0x41039c
mov ecx, dword [esp + 0x10]
push 0
push ecx
call ebp
push 0x4343dc
lea ecx, [esp + 0x14]
call fcn.00420386
mov edx, dword [esp + 0x10]
push 2
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.Config
lea ecx, [esp + 0x14]
call fcn.00420386
lea eax, [esp + 0x10]
push 0x4343dc
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.0042023f
mov eax, dword [eax]
push eax
call esi
test eax, eax
lea ecx, [esp + 0x2c]
sete bl
call fcn.00420037
test bl, bl
je 0x4103f9
mov edx, dword [esp + 0x10]
push 0
push edx
call ebp
push 0x4343dc
lea ecx, [esp + 0x14]
call fcn.00420386
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0041fdac
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x14c], 6
call fcn.0041fdac
mov ecx, edi
mov byte [esp + 0x148], 5
call fcn.00410510
mov byte [esp + 0x140], 3
lea ecx, [esp + 0x10]
jmp 0x41049e
mov eax, dword [0x43501c]
mov dword [esp + 0x14], eax
push 0x434f64
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 4
call fcn.00420174
mov eax, dword [0x437194]
test eax, eax
je 0x410484
push str.There_is_no_other_Driver_to_save_generate_files__fail_to_separate_
lea ecx, [esp + 0x18]
call fcn.00420174
mov ecx, dword [esp + 0x14]
push 0
push 0
push ecx
call fcn.00426fc4
mov byte [esp + 0x140], 3
lea ecx, [esp + 0x14]
call fcn.00420037
lea ecx, [esp + 0x20]
mov byte [esp + 0x140], 2
call fcn.00420037
lea ecx, [esp + 0x28]
mov byte [esp + 0x140], 1
call fcn.00420037
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 0
call fcn.00420037
lea ecx, [esp + 0x24]
mov dword [esp + 0x140], 0xffffffff
call fcn.00420037
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x134
ret