Function at 0x407270
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4297d9
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebp
mov ebp, ecx
cmp byte [ebp], 0
jne 0x4072ac
xor al, al
pop ebp
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
add esp, 0x158
ret
mov ecx, ebp
call fcn.00407c00
test al, al
jne 0x4072e6
push 0
push 0
push 0x434050
call fcn.0040c340
add esp, 4
push eax
call fcn.00426fb4
xor al, al
pop ebp
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
add esp, 0x158
ret
push esi
push edi
call fcn.0040c240
push eax
lea ecx, [esp + 0x20]
call fcn.00420095
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x54]
push str.setup.cfg
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x16c], 0
call fcn.0042022f
mov eax, dword [eax]
lea edx, [esp + 0x54]
push eax
push 0x104
push edx
push 0x436600
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
call fcn.00420027
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fd9c
lea ecx, [esp + 0x54]
mov byte [esp + 0x160], 1
push ecx
lea ecx, [esp + 0x14]
call fcn.00420376
push str.config_
lea ecx, [esp + 0x14]
call fcn.00420376
lea esi, [ebp + 0x1c]
lea ecx, [esp + 0x24]
push esi
call fcn.0041fd9c
push str..
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 2
call fcn.00420376
lea ecx, [esp + 0x38]
call fcn.00410da3
push 0x434040
mov byte [esp + 0x164], 3
call fcn.0040c340
add esp, 4
lea ecx, [esp + 0x18]
push eax
call fcn.00420095
lea edx, [esp + 0x54]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x16c], 4
call fcn.0042022f
push str.ncstudio.fmt
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0x16c], 5
call fcn.0042022f
mov byte [esp + 0x160], 7
lea ecx, [esp + 0x30]
call fcn.00420027
mov eax, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.00410e66
test eax, eax
je 0x40754c
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push ebx
mov bl, 8
lea ecx, [esp + 0x3c]
call fcn.00411086
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], eax
push ecx
lea ecx, [esp + 0x40]
call fcn.0041127e
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], bl
call fcn.004204ce
push str._amend.dat
push 0x43435c
lea ecx, [esp + 0x18]
call fcn.0041efbd
test eax, eax
je 0x40752e
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.004201c9
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 9
call fcn.00420114
lea ecx, [esp + 0x38]
mov byte [esp + 0x164], bl
call fcn.00420027
lea edx, [esp + 0x10]
lea ecx, [esp + 0x24]
push edx
call fcn.0041fd9c
push 0x436600
push str._amend.dat
lea ecx, [esp + 0x2c]
mov byte [esp + 0x16c], 0xa
call fcn.0041efbd
lea eax, [esp + 0x18]
lea ecx, [esp + 0x3c]
push eax
call fcn.00411155
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x164], 0xb
push ecx
call edi
test eax, eax
je 0x40750d
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.00407d00
lea ecx, [esp + 0x18]
mov byte [esp + 0x164], 0xa
call fcn.00420027
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], bl
call fcn.00420027
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 7
call fcn.00420027
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x407431
pop ebx
lea ecx, [esp + 0x38]
call fcn.00410e1c
mov esi, dword [esi]
push esi
call fcn.0040bfe0
push 0x434040
call fcn.0040c340
mov edx, dword [esp + 0x20]
push eax
push edx
call fcn.004127e5
add esp, 0x10
test eax, eax
pop edi
pop esi
je 0x4075a0
push 0x434038
call fcn.0040c340
add esp, 4
lea ecx, [esp + 0x10]
push eax
call fcn.00420376
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
call fcn.00426fb4
mov ecx, dword [esp + 8]
push ecx
mov ecx, ebp
call fcn.00407630
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 4
call fcn.00420027
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], 3
call fcn.00420027
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], 2
call fcn.00410de0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x158], 1
call fcn.00420027
lea ecx, [esp + 8]
mov byte [esp + 0x158], 0
call fcn.00420027
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 0xffffffff
call fcn.00420027
mov ecx, dword [esp + 0x150]
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x158
ret