Function at 0x521590
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x114
mov eax, dword [0x597c40]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0xc]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x5215c0
mov ecx, dword [str.WEH5ColorConfig.ini]
mov edx, dword [0x572cf0]
mov dword [eax], ecx
mov ecx, dword [0x572cf4]
mov dword [eax + 4], edx
mov edx, dword [0x572cf8]
mov dword [eax + 8], ecx
mov ecx, dword [0x572cfc]
mov dword [eax + 0xc], edx
mov dl, byte [0x572d00]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], dl
lea eax, [esp + 0x10]
push eax
push 0x104
lea ecx, [esi + 0x2570]
push ecx
push 0x572d04
push str.PicturePath:
push str.MyBackGroundImage
call edi
lea edx, [esp + 0x10]
push edx
push 5
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Red:
push str.TextColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x2028], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Green:
push str.TextColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x202c], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Blue:
push str.TextColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x2030], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Red:
push str.SliderNormalColors
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
mov dword [esi + 0x2564], eax
push edx
push 5
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Green:
push str.SliderNormalColors
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x2568], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Blue:
push str.SliderNormalColors
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x256c], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Red:
push str.SliderSelectedColors
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x2558], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Green:
push str.SliderSelectedColors
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x255c], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Blue:
push str.SliderSelectedColors
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x2560], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Red:
push str.URLLinkColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x32bc], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Green:
push str.URLLinkColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x32c0], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Blue:
push str.URLLinkColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x32c4], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Red:
push str.URLActiveColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x32c8], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Green:
push str.URLActiveColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x32cc], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Blue:
push str.URLActiveColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x32d0], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Red:
push str.URLVisitedColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x32d4], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Green:
push str.URLVisitedColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x32d8], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Blue:
push str.URLVisitedColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x32dc], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Red:
push str.URLHoverColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x32e0], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Green:
push str.URLHoverColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x32e4], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Blue:
push str.URLHoverColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x32e8], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Red:
push str.ButtonTextColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x7990], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Green:
push str.ButtonTextColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
add esp, 4
lea edx, [esp + 0x10]
push edx
push 5
mov dword [esi + 0x7994], eax
lea eax, [esp + 0xc]
push eax
push 0x572d04
push str.Blue:
push str.ButtonTextColor
call edi
lea ecx, [esp + 4]
push ecx
call fcn.00504e5c
mov ecx, dword [esp + 0x118]
add esp, 4
pop edi
xor ecx, esp
mov dword [esi + 0x7998], eax
call fcn.00504076
add esp, 0x114
ret