Function at 0x4570d0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x534
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x530], eax
mov eax, dword [0x514540]
mov edx, dword [eax + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x544]
mov dword [esp + 0x28], ecx
push edi
mov ecx, 0x514540
call edx
mov ebp, eax
add ebp, 0x10
xor edi, edi
mov dword [esp + 0x1c], ebp
cmp esi, edi
jne 0x457200
call fcn.00403350
push eax
push 0x104
lea eax, [esp + 0x340]
push eax
push edi
push str.EditTheme
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [0x5144c4]
push str..ini
lea ecx, [esp + 0x33c]
push ecx
push str.theme_
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00417280
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004032c0
add esp, 0xc
push eax
lea edx, [esp + 0x20]
push edx
call fcn.004032c0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
call fcn.00402640
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4571a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4571c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4571e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4571fc
lea eax, [esi - 0x10]
jmp 0x4573f8
mov ebp, dword [esp + 0x1c]
push esi
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [0x514540]
mov eax, dword [edx + 0xc]
mov ecx, 0x514540
call eax
lea ecx, [esp + 0x30]
push ecx
push 0xbc614e
mov esi, eax
push str.Count
add esi, 0x10
push str.Scope
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xbc614e
jne 0x457253
mov dword [esp + 0x10], edi
mov ebx, edi
cmp ebx, edi
mov dword [esp + 0x18], edi
jle 0x4573d9
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea edx, [esp + 0x18]
push str.Scope_d
push edx
call fcn.00402950
mov esi, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push 0x40
lea ecx, [esp + 0x240]
push ecx
push 0
push str.Name
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x238]
push edx
call ebp
test eax, eax
je 0x4573c8
lea eax, [esp + 0x30]
push eax
push 0x40
lea ecx, [esp + 0x2c0]
push ecx
push 0
push str.Color
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x4573c8
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c0]
push str._x__x
push ecx
call fcn.0049f49e
add esp, 0x10
cmp eax, 2
jne 0x4573c8
mov eax, dword [esp + 0x20]
mov edx, eax
shr edx, 8
movzx ecx, dl
movzx edx, al
shl edx, 8
or ecx, edx
shr eax, 0x10
shl ecx, 8
movzx eax, al
or ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
shl ecx, 8
or edx, ecx
lea ecx, [esp + 0x30]
push ecx
shr eax, 0x10
movzx eax, al
push 0xbc614e
shl edx, 8
push str.Style
or edx, eax
push esi
mov dword [esp + 0x34], edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esp + 0x28], eax
cmp eax, 0xbc614e
je 0x457364
cmp eax, 0x10
jbe 0x45736c
mov dword [esp + 0x28], 0
mov edi, dword [esp + 0x2c]
lea edx, [esp + 0x238]
push edx
add edi, 4
call ebp
push eax
lea eax, [esp + 0x23c]
push eax
mov ecx, edi
call fcn.00456c70
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub esp, 0xc
mov ebx, eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
push ecx
mov dword [eax + 8], ecx
lea edx, [esp + 0x248]
mov ecx, esp
push edx
call fcn.0040cf30
push ebx
mov ecx, edi
call fcn.00456dc0
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
inc edi
cmp edi, ebx
mov dword [esp + 0x18], edi
jl 0x457265
mov ebp, dword [esp + 0x1c]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4573f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x457411
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x540]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049e9d2
add esp, 0x534
ret 4