Function at 0x4041a0
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4085f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea eax, [esp + 0x40]
push 0x20
push eax
push str.default
push str.default
push str.SkinSettings
mov dword [esp + 0x7c], 0
call edi
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
push eax
push 0x20
push ecx
push str.default
push str.current
push str.SkinSettings
call edi
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::CString_2
push str.table
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x3c]
mov byte [esp + 0x64], 2
test eax, eax
je 0x404265
mov eax, dword [esp + 0x74]
mov ecx, dword [esi + 0x40]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
lea eax, [esp + 0x1c]
push str._s._s._s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x40428b
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push str._s._d__d._s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
lea edi, [esi + 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00405760
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x18]
mov dword [ebx], eax
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jne 0x4044f5
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0x1c]
push str._s.TABLE_d._s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esp + 0x78]
push eax
push ecx
mov ecx, edi
call fcn.00405760
mov eax, dword [esp + 0x78]
mov dword [ebx], eax
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jne 0x4044f5
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x18]
push str._s.DEFAULT._s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x78]
mov ecx, edi
push edx
push eax
call fcn.00405760
mov eax, dword [esp + 0x78]
mov dword [ebx], eax
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jne 0x4044f5
mov eax, dword [esp + 0x14]
lea ebp, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x404362
test cl, cl
je 0x40435e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x404362
add eax, 2
add ebp, 2
test cl, cl
jne 0x40433d
xor eax, eax
jmp 0x404367
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4044c4
mov eax, dword [esi + 0x3c]
test eax, eax
mov eax, dword [esp + 0x74]
push eax
je 0x404393
mov ecx, dword [esi + 0x40]
lea edx, [esp + 0x14]
push ecx
push str.default._s._s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x4043af
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.default._d__d._s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x10]
lea edx, [esp + 0x6c]
push ecx
push edx
mov ecx, edi
call fcn.00406100
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x6c]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
cmp ecx, eax
je 0x4043e9
mov ecx, dword [ecx + 0xc]
mov eax, dword [esp + 0x10]
push ecx
push eax
call ebp
add esp, 8
test eax, eax
jl 0x4043e9
lea eax, [esp + 0x6c]
jmp 0x4043f4
mov eax, dword [edi + 4]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x78]
mov eax, dword [eax]
mov dword [ebx], eax
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jne 0x4044f5
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push ecx
push edx
lea eax, [esp + 0x18]
push str.default.TABLE_d._s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00407000
mov ecx, dword [edi + 4]
mov dword [esp + 0x70], eax
cmp eax, ecx
je 0x40444e
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0x10]
push eax
push edx
call ebp
add esp, 8
test eax, eax
jl 0x40444e
lea eax, [esp + 0x70]
jmp 0x404459
mov eax, dword [edi + 4]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
mov eax, dword [eax]
mov dword [ebx], eax
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jne 0x4044f5
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x10]
push eax
push str.default.DEFAULT._s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.00407000
mov ecx, dword [edi + 4]
mov dword [esp + 0x70], eax
cmp eax, ecx
je 0x4044ae
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [esp + 0x14]
push eax
call ebp
add esp, 8
test eax, eax
jl 0x4044ae
lea eax, [esp + 0x70]
jmp 0x4044b9
mov edi, dword [edi + 4]
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], edi
mov eax, dword [eax]
mov dword [ebx], eax
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jne 0x4044f5
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x74]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x404527
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x74]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0x10