Function at 0x406b60
Capabilities:
Create directory
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x428583
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea eax, [ebp + 0x14]
push eax
call fcn.00408a20
mov eax, dword [ebp + 0x1c]
push eax
call fcn.0040bc10
mov eax, dword [ebp + 0x1c]
add esp, 4
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call fcn.0040be70
push eax
lea ecx, [esp + 0x30]
call fcn.0041efb5
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x44]
push str.setup.cfg
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
lea edx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x15c], ebx
call fcn.0041f14f
mov eax, dword [eax]
push eax
lea eax, [esp + 0x48]
push 0x104
push eax
push 0x436270
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x10]
call fcn.0041ef47
lea ecx, [esp + 0x44]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
call fcn.0041f14f
lea ecx, [esp + 0x34]
push str.config
lea edx, [esp + 0x34]
push ecx
push edx
mov byte [esp + 0x15c], 1
call fcn.0041f14f
mov al, byte [esp + 0x3b]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x14], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
push str.ncstudio.dat
push edx
mov ecx, ebp
mov byte [esp + 0x15c], 3
call fcn.00406f60
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp esi, ebx
je 0x406c7f
mov ecx, eax
sub ecx, esi
test ecx, 0xfffffffc
jne 0x406ca5
cmp esi, eax
mov byte [esp + 0x150], 2
mov edi, eax
je 0x406ef4
push ebx
mov ecx, esi
call fcn.00409ba0
add esi, 4
cmp esi, edi
jne 0x406c91
jmp 0x406ef0
mov edx, dword [0x434bac]
mov dword [esp + 0x28], edx
cmp esi, eax
mov byte [esp + 0x150], 4
je 0x406d8f
mov bl, 5
push esi
lea ecx, [esp + 0x14]
call fcn.0041ecbc
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], bl
call fcn.0041e1ed
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
call fcn.0041e175
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 6
call fcn.0041f034
lea ecx, [esp + 0x40]
mov byte [esp + 0x150], bl
call fcn.0041ef47
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0041e1ed
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x3c]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.0041e0f9
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 7
call fcn.0041f034
lea ecx, [esp + 0x3c]
mov byte [esp + 0x150], bl
call fcn.0041ef47
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
call fcn.0041f2d2
push 0xa
lea ecx, [esp + 0x2c]
call fcn.0041f2bd
lea ecx, [esp + 0x10]
mov byte [esp + 0x150], 4
call fcn.0041ef47
mov eax, dword [esp + 0x1c]
add esi, 4
cmp esi, eax
jne 0x406cc1
xor ebx, ebx
push 0x433028
call fcn.0040bf70
add esp, 4
lea ecx, [esp + 0x24]
push eax
call fcn.0041efb5
lea ecx, [esp + 0x28]
mov byte [esp + 0x150], 8
push ecx
lea ecx, [esp + 0x28]
call fcn.0041f2d2
push 0x433030
call fcn.0040bf70
add esp, 4
lea ecx, [esp + 0x24]
push eax
call fcn.0041f296
mov edx, dword [esp + 0x24]
push ebx
push 0x34
push edx
call fcn.00425e22
cmp eax, 6
jne 0x406eaa
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp esi, eax
mov byte [ebp], 1
je 0x406e0e
mov eax, dword [esi]
mov ecx, ebp
push eax
call fcn.004078c0
mov eax, dword [esp + 0x1c]
add esi, 4
cmp esi, eax
jne 0x406df9
lea ecx, [esp + 0x24]
mov byte [esp + 0x150], 4
call fcn.0041ef47
lea ecx, [esp + 0x28]
mov byte [esp + 0x150], 3
call fcn.0041ef47
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, eax
mov byte [esp + 0x150], 2
mov edi, eax
je 0x406e58
mov ecx, esi
call fcn.0041ef47
add esi, 4
cmp esi, edi
jne 0x406e46
mov esi, dword [esp + 0x18]
push esi
call fcn.0041ecb1
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x150], 1
call fcn.0041ef47
lea ecx, [esp + 0x34]
mov byte [esp + 0x150], 0
call fcn.0041ef47
lea ecx, [esp + 0x2c]
mov dword [esp + 0x150], 0xffffffff
call fcn.0041ef47
mov al, 1
jmp 0x406f41
lea ecx, [esp + 0x24]
mov byte [esp + 0x150], 4
call fcn.0041ef47
lea ecx, [esp + 0x28]
mov byte [esp + 0x150], 3
call fcn.0041ef47
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, eax
mov byte [esp + 0x150], 2
mov edi, eax
je 0x406ef4
mov ecx, esi
call fcn.0041ef47
add esi, 4
cmp esi, edi
jne 0x406ee2
mov esi, dword [esp + 0x18]
push esi
call fcn.0041ecb1
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x150], 1
call fcn.0041ef47
lea ecx, [esp + 0x34]
mov byte [esp + 0x150], 0
call fcn.0041ef47
lea ecx, [esp + 0x2c]
mov dword [esp + 0x150], 0xffffffff
call fcn.0041ef47
xor al, al
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x144
ret