Function at 0x407280
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42a609
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebp
mov ebp, ecx
cmp byte [ebp], 0
jne 0x4072bc
xor al, al
pop ebp
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
add esp, 0x158
ret
mov ecx, ebp
call fcn.00407bc0
test al, al
jne 0x4072f6
push 0
push 0
push 0x435050
call fcn.0040c2c0
add esp, 4
push eax
call fcn.00427dee
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.0040c1c0
push eax
lea ecx, [esp + 0x20]
call fcn.00420eb4
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.0042104e
mov eax, dword [eax]
lea edx, [esp + 0x54]
push eax
push 0x104
push edx
push 0x43a4b0
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
call fcn.00420e46
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.00420bbb
lea ecx, [esp + 0x54]
mov byte [esp + 0x160], 1
push ecx
lea ecx, [esp + 0x14]
call fcn.00421195
push str.config_
lea ecx, [esp + 0x14]
call fcn.00421195
lea esi, [ebp + 0x1c]
lea ecx, [esp + 0x24]
push esi
call fcn.00420bbb
push str..
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 2
call fcn.00421195
lea ecx, [esp + 0x38]
call fcn.00410d02
push 0x435040
mov byte [esp + 0x164], 3
call fcn.0040c2c0
add esp, 4
lea ecx, [esp + 0x18]
push eax
call fcn.00420eb4
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.0042104e
push str.ncstudio.fmt
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0x16c], 5
call fcn.0042104e
mov byte [esp + 0x160], 7
lea ecx, [esp + 0x30]
call fcn.00420e46
mov eax, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.00410dc5
test eax, eax
je 0x40755c
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push ebx
mov bl, 8
lea ecx, [esp + 0x3c]
call fcn.00410fe5
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], eax
push ecx
lea ecx, [esp + 0x40]
call fcn.004111dd
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], bl
call fcn.004212ed
push str._amend.dat
push 0x4361f4
lea ecx, [esp + 0x18]
call fcn.0041fd97
test eax, eax
je 0x40753e
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00420fe8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 9
call fcn.00420f33
lea ecx, [esp + 0x38]
mov byte [esp + 0x164], bl
call fcn.00420e46
lea edx, [esp + 0x10]
lea ecx, [esp + 0x24]
push edx
call fcn.00420bbb
push 0x43a4b0
push str._amend.dat
lea ecx, [esp + 0x2c]
mov byte [esp + 0x16c], 0xa
call fcn.0041fd97
lea eax, [esp + 0x18]
lea ecx, [esp + 0x3c]
push eax
call fcn.004110b4
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x164], 0xb
push ecx
call edi
test eax, eax
je 0x40751d
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.00407cc0
lea ecx, [esp + 0x18]
mov byte [esp + 0x164], 0xa
call fcn.00420e46
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], bl
call fcn.00420e46
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 7
call fcn.00420e46
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x407441
pop ebx
lea ecx, [esp + 0x38]
call fcn.00410d7b
mov esi, dword [esi]
push esi
call fcn.0040bf60
push 0x435040
call fcn.0040c2c0
mov edx, dword [esp + 0x20]
push eax
push edx
call fcn.004127e5
add esp, 0x10
test eax, eax
pop edi
pop esi
je 0x4075b0
push 0x435038
call fcn.0040c2c0
add esp, 4
lea ecx, [esp + 0x10]
push eax
call fcn.00421195
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
call fcn.00427dee
mov ecx, dword [esp + 8]
push ecx
mov ecx, ebp
call fcn.00407640
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 4
call fcn.00420e46
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], 3
call fcn.00420e46
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], 2
call fcn.00410d3f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x158], 1
call fcn.00420e46
lea ecx, [esp + 8]
mov byte [esp + 0x158], 0
call fcn.00420e46
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 0xffffffff
call fcn.00420e46
mov ecx, dword [esp + 0x150]
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x158
ret