Function at 0x407270
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4297e9
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.00426fc4
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.004200a5
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.0042023f
mov eax, dword [eax]
lea edx, [esp + 0x54]
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 + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fdac
lea ecx, [esp + 0x54]
mov byte [esp + 0x160], 1
push ecx
lea ecx, [esp + 0x14]
call fcn.00420386
push str.config_
lea ecx, [esp + 0x14]
call fcn.00420386
lea esi, [ebp + 0x1c]
lea ecx, [esp + 0x24]
push esi
call fcn.0041fdac
push str..
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 2
call fcn.00420386
lea ecx, [esp + 0x38]
call fcn.00410db3
push 0x434040
mov byte [esp + 0x164], 3
call fcn.0040c340
add esp, 4
lea ecx, [esp + 0x18]
push eax
call fcn.004200a5
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.0042023f
push str.ncstudio.fmt
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0x16c], 5
call fcn.0042023f
mov byte [esp + 0x160], 7
lea ecx, [esp + 0x30]
call fcn.00420037
mov eax, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.00410e76
test eax, eax
je 0x40754c
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push ebx
mov bl, 8
lea ecx, [esp + 0x3c]
call fcn.00411096
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], eax
push ecx
lea ecx, [esp + 0x40]
call fcn.0041128e
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], bl
call fcn.004204de
push str._amend.dat
push 0x43438c
lea ecx, [esp + 0x18]
call fcn.0041efcd
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.004201d9
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 9
call fcn.00420124
lea ecx, [esp + 0x38]
mov byte [esp + 0x164], bl
call fcn.00420037
lea edx, [esp + 0x10]
lea ecx, [esp + 0x24]
push edx
call fcn.0041fdac
push 0x4366e0
push str._amend.dat
lea ecx, [esp + 0x2c]
mov byte [esp + 0x16c], 0xa
call fcn.0041efcd
lea eax, [esp + 0x18]
lea ecx, [esp + 0x3c]
push eax
call fcn.00411165
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.00420037
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], bl
call fcn.00420037
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 7
call fcn.00420037
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x407431
pop ebx
lea ecx, [esp + 0x38]
call fcn.00410e2c
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.004127f5
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.00420386
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
call fcn.00426fc4
mov ecx, dword [esp + 8]
push ecx
mov ecx, ebp
call fcn.00407630
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 4
call fcn.00420037
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], 3
call fcn.00420037
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], 2
call fcn.00410df0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x158], 1
call fcn.00420037
lea ecx, [esp + 8]
mov byte [esp + 0x158], 0
call fcn.00420037
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 0xffffffff
call fcn.00420037
mov ecx, dword [esp + 0x150]
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x158
ret