Function at 0x407270
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4297c9
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.00426fa4
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.00420085
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.0042021f
mov eax, dword [eax]
lea edx, [esp + 0x54]
push eax
push 0x104
push edx
push 0x437490
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
call fcn.00420017
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.0041fd8c
lea ecx, [esp + 0x54]
mov byte [esp + 0x160], 1
push ecx
lea ecx, [esp + 0x14]
call fcn.00420366
push str.config_
lea ecx, [esp + 0x14]
call fcn.00420366
lea esi, [ebp + 0x1c]
lea ecx, [esp + 0x24]
push esi
call fcn.0041fd8c
push str..
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 2
call fcn.00420366
lea ecx, [esp + 0x38]
call fcn.00410d93
push 0x434040
mov byte [esp + 0x164], 3
call fcn.0040c340
add esp, 4
lea ecx, [esp + 0x18]
push eax
call fcn.00420085
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.0042021f
push str.ncstudio.fmt
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0x16c], 5
call fcn.0042021f
mov byte [esp + 0x160], 7
lea ecx, [esp + 0x30]
call fcn.00420017
mov eax, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.00410e56
test eax, eax
je 0x40754c
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push ebx
mov bl, 8
lea ecx, [esp + 0x3c]
call fcn.00411076
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], eax
push ecx
lea ecx, [esp + 0x40]
call fcn.0041126e
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], bl
call fcn.004204be
push str._amend.dat
push 0x4351f4
lea ecx, [esp + 0x18]
call fcn.0041efad
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.004201b9
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 9
call fcn.00420104
lea ecx, [esp + 0x38]
mov byte [esp + 0x164], bl
call fcn.00420017
lea edx, [esp + 0x10]
lea ecx, [esp + 0x24]
push edx
call fcn.0041fd8c
push 0x437490
push str._amend.dat
lea ecx, [esp + 0x2c]
mov byte [esp + 0x16c], 0xa
call fcn.0041efad
lea eax, [esp + 0x18]
lea ecx, [esp + 0x3c]
push eax
call fcn.00411145
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.00420017
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], bl
call fcn.00420017
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 7
call fcn.00420017
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x407431
pop ebx
lea ecx, [esp + 0x38]
call fcn.00410e0c
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.004127d5
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.00420366
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
call fcn.00426fa4
mov ecx, dword [esp + 8]
push ecx
mov ecx, ebp
call fcn.00407630
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 4
call fcn.00420017
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], 3
call fcn.00420017
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], 2
call fcn.00410dd0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x158], 1
call fcn.00420017
lea ecx, [esp + 8]
mov byte [esp + 0x158], 0
call fcn.00420017
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 0xffffffff
call fcn.00420017
mov ecx, dword [esp + 0x150]
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x158
ret