Function at 0x10104020
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10132e70
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x480
cmp dword [0x101d2f60], 0
push esi
push edi
jne 0x101040e3
mov ecx, dword [0x1028a1f0]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 0x14
jb 0x10104332
cmp dword [0x1028a1f4], 0xf
mov eax, 0x1028a1e0
push 0x14
cmova eax, dword [0x1028a1e0]
push str.CoreATTRIBUTES.ini
push ecx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.1002c080
lea eax, [ebp - 0x2c]
mov ecx, 0x101d2f50
push eax
call fcn.100170c0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x101040e3
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101040d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x101040d9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1012b183
add esp, 8
cmp dword [0x101d2f64], 0xf
lea ecx, [ebp - 0xf0]
mov eax, 0x101d2f50
cmova eax, dword [0x101d2f50]
sub esp, 0xc
push eax
call fcn.10032b20
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xf4], eax
mov ecx, 0x101d2df8
mov dword [ebp - 4], 0
call fcn.10010ed0
lea eax, [ebp - 0xf0]
mov ecx, 0x101d2de8
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::swap_class_std::basic_istream_char__struct_std::char_traits_char____]
lea eax, [ebp - 0xe0]
mov ecx, 0x101d2df8
push eax
call fcn.101044c0
lea ecx, [ebp - 0xf0]
mov dword [ebp - 4], 0xffffffff
call fcn.1000f1e0
cmp dword [0x101d2e44], 0
je 0x1010431f
cmp dword [0x101d2f64], 0xf
mov eax, 0x101d2f50
cmova eax, dword [0x101d2f50]
push eax
push 0x30c
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
cmp byte [ebp - 0x490], 0
lea esi, [ebp - 0x490]
je 0x101042fa
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
nop
push str.Index
push esi
call fcn.101033c0
push str.Effect
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], eax
call fcn.101033c0
push str.Particle
push esi
mov dword [ebp - 0x24], eax
call fcn.101033c0
push str.Sheen
push esi
mov dword [ebp - 0x20], eax
call fcn.101033c0
cmp dword [0x101d2f64], 0xf
mov dword [ebp - 0x1c], eax
mov eax, 0x101d2f50
cmova eax, dword [0x101d2f50]
push eax
push 0x45
lea eax, [ebp - 0x138]
push eax
push 0x101992e8
push str.Ancient
push esi
call edi
mov ecx, str.true
lea eax, [ebp - 0x138]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10104250
test dl, dl
je 0x1010424c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10104250
add eax, 2
add ecx, 2
test dl, dl
jne 0x10104230
xor eax, eax
jmp 0x10104255
sbb eax, eax
or eax, 1
test eax, eax
mov eax, 0x101d2f50
sete byte [ebp - 0x18]
cmp dword [0x101d2f64], 0xf
cmova eax, dword [0x101d2f50]
push eax
push 0x45
lea eax, [ebp - 0x180]
push eax
push 0x101992e8
push str.StyleOverride
push esi
call edi
mov eax, str.true
lea ecx, [ebp - 0x180]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x101042b0
test dl, dl
je 0x101042ac
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x101042b0
add ecx, 2
add eax, 2
test dl, dl
jne 0x10104290
xor eax, eax
jmp 0x101042b5
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
sete byte [ebp - 0x17]
push eax
call fcn.101046a0
movups xmm0, xmmword [ebp - 0x28]
mov edx, esi
mov ecx, dword [eax]
mov eax, dword [ebp - 0x18]
lea edi, [edx + 1]
movups xmmword [ecx + 0xc], xmm0
mov dword [ecx + 0x1c], eax
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x101042e0
sub edx, edi
inc esi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esi, edx
cmp byte [esi], al
jne 0x101041c0
mov ecx, 0x101d2df8
call fcn.10010ed0
test eax, eax
jne 0x1010431f
push eax
mov eax, dword [0x101d2de8]
push 2
mov ecx, dword [eax + 4]
add ecx, 0x101d2de8
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1000ec00
int3