Function at 0x4061c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0xa8
push ebx
push ebp
mov ebp, dword [esp + 0xb4]
push esi
push edi
push 0xa
xor esi, esi
push str.config.ini
lea ecx, [esp + 0x18]
mov edi, eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], esi
mov byte [esp + 0x1c], 0
call fcn.00403770
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
jae 0x406209
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406224
push edi
push ebp
call fcn.00405550
test al, al
jne 0x406224
mov bl, 1
jmp 0x406226
xor bl, bl
cmp dword [esp + 0x28], 0x10
jb 0x40623a
mov eax, dword [esp + 0x14]
push eax
call fcn.00427d3a
add esp, 4
mov dword [esp + 0x24], esi
mov esi, dword [0x4687b4]
mov dword [esp + 0x28], 0xf
mov byte [esp + 0x14], 0
test bl, bl
je 0x406278
mov edi, esi
test esi, esi
je 0x406548
call fcn.004065c0
push edi
call fcn.00427d3a
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
mov ebx, esi
test esi, esi
je 0x40628c
call fcn.004065c0
push ebx
call fcn.00427d3a
add esp, 4
push 2
push str.config.ini
lea ecx, [esp + 0x38]
push ecx
call fcn.00407a50
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
test byte [esp + eax + 0x38], 6
je 0x4062bf
lea eax, [esp + 0x30]
call fcn.00406560
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
push str._General_
lea esi, [esp + 0x34]
call fcn.0040bbd0
add esp, 4
push eax
call fcn.004053e0
add esp, 4
push ebp
push ecx
push 0x45bc6c
call fcn.0040bbd0
add esp, 8
mov esi, eax
call fcn.00406650
push eax
call fcn.004053e0
add esp, 4
push edi
push ecx
push 0x45bc70
lea esi, [esp + 0x3c]
call fcn.0040bbd0
add esp, 8
mov esi, eax
call fcn.00406650
push eax
call fcn.004053e0
mov ecx, dword [0x4687cc]
add esp, 4
push ecx
push ecx
push str.Option
lea esi, [esp + 0x3c]
call fcn.0040bbd0
add esp, 8
mov esi, eax
call fcn.00406650
push eax
call fcn.004053e0
mov edx, dword [0x4687d0]
add esp, 4
push edx
push ecx
push str.PngFormat
lea esi, [esp + 0x3c]
call fcn.0040bbd0
add esp, 8
mov esi, eax
call fcn.00406650
push eax
call fcn.004053e0
mov eax, dword [0x4687d4]
add esp, 4
push eax
push ecx
push str.PngSize
lea esi, [esp + 0x3c]
call fcn.0040bbd0
add esp, 8
mov esi, eax
call fcn.00406650
push eax
call fcn.004053e0
add esp, 4
push 0x4688b4
push ecx
push str.Lang
lea esi, [esp + 0x3c]
call fcn.0040bbd0
add esp, 8
mov esi, eax
call fcn.0040bdc0
add esp, 4
push eax
call fcn.004053e0
add esp, 4
push 0x4688d0
push ecx
push str.Presets
lea esi, [esp + 0x3c]
call fcn.0040bbd0
add esp, 8
mov esi, eax
call fcn.0040bdc0
add esp, 4
push eax
call fcn.004053e0
add esp, 4
xor eax, eax
jmp 0x4063f0
mov ecx, dword [eax*4 + 0x4687d8]
push ecx
push ecx
push 0x45bbd0
push ecx
lea edi, [eax + 1]
push edi
push ecx
push str.Format
lea esi, [esp + 0x4c]
call fcn.0040bbd0
add esp, 8
mov esi, eax
call fcn.00406650
add esp, 4
mov esi, eax
call fcn.0040bbd0
add esp, 8
mov esi, eax
call fcn.00406650
push eax
call fcn.004053e0
mov eax, edi
add esp, 4
cmp eax, 4
jl 0x4063f0
push 0x468898
push ecx
push str.Path
lea esi, [esp + 0x3c]
call fcn.0040bbd0
add esp, 8
mov esi, eax
call fcn.0040bdc0
add esp, 4
push eax
call fcn.004053e0
add esp, 4
push 0x4688ec
push ecx
push str.Skin
lea esi, [esp + 0x3c]
call fcn.0040bbd0
add esp, 8
mov esi, eax
call fcn.0040bdc0
add esp, 4
push eax
call fcn.004053e0
mov eax, dword [0x4687e8]
add esp, 4
cmp eax, 0xffffffff
je 0x4064c1
push eax
push ecx
push str.Debug
lea esi, [esp + 0x3c]
call fcn.0040bbd0
add esp, 8
mov esi, eax
call fcn.00406650
push eax
call fcn.004053e0
add esp, 4
mov eax, dword [0x4687ec]
cmp eax, 0xffffffff
je 0x4064ee
push eax
push ecx
push str.MaxThread
lea esi, [esp + 0x3c]
call fcn.0040bbd0
add esp, 8
mov esi, eax
call fcn.00406650
push eax
call fcn.004053e0
add esp, 4
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x30], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
cmp byte [esp + 0x7c], 0
mov dword [esp + 0x34], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x406515
lea eax, [esp + 0x34]
call fcn.004081b0
lea ecx, [esp + 0x34]
call fcn.00406a40
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x84]
mov dword [esp + edx + 0x30], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push eax
mov dword [esp + 0x88], vtable.std::ios_base.0
call fcn.00426c4a
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret