Function at 0x407220
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x428639
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebp
mov ebp, ecx
cmp byte [ebp], 0
jne 0x40725c
xor al, al
pop ebp
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
add esp, 0x158
ret
mov ecx, ebp
call fcn.00407b60
test al, al
jne 0x407296
push 0
push 0
push 0x433050
call fcn.0040bf70
add esp, 4
push eax
call fcn.00425e22
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.0040be70
push eax
lea ecx, [esp + 0x20]
call fcn.0041efb5
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.0041f14f
mov eax, dword [eax]
lea edx, [esp + 0x54]
push eax
push 0x104
push edx
push 0x436270
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
call fcn.0041ef47
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.0041ecbc
lea ecx, [esp + 0x54]
mov byte [esp + 0x160], 1
push ecx
lea ecx, [esp + 0x14]
call fcn.0041f296
push str.config_
lea ecx, [esp + 0x14]
call fcn.0041f296
lea esi, [ebp + 0x1c]
lea ecx, [esp + 0x24]
push esi
call fcn.0041ecbc
push str..
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 2
call fcn.0041f296
lea ecx, [esp + 0x38]
call fcn.0040fdf2
push 0x433040
mov byte [esp + 0x164], 3
call fcn.0040bf70
add esp, 4
lea ecx, [esp + 0x18]
push eax
call fcn.0041efb5
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.0041f14f
push str.ncstudio.fmt
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0x16c], 5
call fcn.0041f14f
mov byte [esp + 0x160], 7
lea ecx, [esp + 0x30]
call fcn.0041ef47
mov eax, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.0040feb5
test eax, eax
je 0x4074fc
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push ebx
mov bl, 8
lea ecx, [esp + 0x3c]
call fcn.004100d5
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], eax
push ecx
lea ecx, [esp + 0x40]
call fcn.004102cd
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], bl
call fcn.0041f3ee
push str._amend.dat
push 0x4341f4
lea ecx, [esp + 0x18]
call fcn.0041dedd
test eax, eax
je 0x4074de
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.0041f0e9
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 9
call fcn.0041f034
lea ecx, [esp + 0x38]
mov byte [esp + 0x164], bl
call fcn.0041ef47
lea edx, [esp + 0x10]
lea ecx, [esp + 0x24]
push edx
call fcn.0041ecbc
push 0x436270
push str._amend.dat
lea ecx, [esp + 0x2c]
mov byte [esp + 0x16c], 0xa
call fcn.0041dedd
lea eax, [esp + 0x18]
lea ecx, [esp + 0x3c]
push eax
call fcn.004101a4
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x164], 0xb
push ecx
call edi
test eax, eax
je 0x4074bd
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.00407c60
lea ecx, [esp + 0x18]
mov byte [esp + 0x164], 0xa
call fcn.0041ef47
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], bl
call fcn.0041ef47
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 7
call fcn.0041ef47
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4073e1
pop ebx
lea ecx, [esp + 0x38]
call fcn.0040fe6b
mov esi, dword [esi]
push esi
call fcn.0040bc10
push 0x433040
call fcn.0040bf70
mov edx, dword [esp + 0x20]
push eax
push edx
call fcn.00411835
add esp, 0x10
test eax, eax
pop edi
pop esi
je 0x407550
push 0x433038
call fcn.0040bf70
add esp, 4
lea ecx, [esp + 0x10]
push eax
call fcn.0041f296
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
call fcn.00425e22
mov ecx, dword [esp + 8]
push ecx
mov ecx, ebp
call fcn.004075e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 4
call fcn.0041ef47
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], 3
call fcn.0041ef47
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], 2
call fcn.0040fe2f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x158], 1
call fcn.0041ef47
lea ecx, [esp + 8]
mov byte [esp + 0x158], 0
call fcn.0041ef47
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 0xffffffff
call fcn.0041ef47
mov ecx, dword [esp + 0x150]
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x158
ret