Function at 0x1016f240
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 0x101a0b90
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x480
cmp dword [0x10252b90], 0
push esi
push edi
jne 0x1016f303
mov ecx, dword [0x10316f58]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 0x14
jb 0x1016f552
cmp dword [0x10316f5c], 0xf
mov eax, 0x10316f48
push 0x14
cmova eax, dword [0x10316f48]
push str.CoreATTRIBUTES.ini
push ecx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.10093420
lea eax, [ebp - 0x2c]
mov ecx, 0x10252b80
push eax
call fcn.1007b730
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x1016f303
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1016f2f9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1016f2f9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1019873b
add esp, 8
cmp dword [0x10252b94], 0xf
lea ecx, [ebp - 0xf0]
mov eax, 0x10252b80
cmova eax, dword [0x10252b80]
sub esp, 0xc
push eax
call fcn.10099b40
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, 0x10252a28
mov dword [ebp - 4], 0
call fcn.10074380
lea eax, [ebp - 0xf0]
mov ecx, 0x10252a18
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, 0x10252a28
push eax
call fcn.1016f6f0
lea ecx, [ebp - 0xf0]
mov dword [ebp - 4], 0xffffffff
call fcn.10072640
cmp dword [0x10252a74], 0
je 0x1016f53f
cmp dword [0x10252b94], 0xf
mov eax, 0x10252b80
cmova eax, dword [0x10252b80]
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 0x1016f51a
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
nop
push str.Index
push esi
call fcn.1016e500
push str.Effect
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], eax
call fcn.1016e500
push str.Particle
push esi
mov dword [ebp - 0x24], eax
call fcn.1016e500
push str.Sheen
push esi
mov dword [ebp - 0x20], eax
call fcn.1016e500
cmp dword [0x10252b94], 0xf
mov dword [ebp - 0x1c], eax
mov eax, 0x10252b80
cmova eax, dword [0x10252b80]
push eax
push 0x45
lea eax, [ebp - 0x138]
push eax
push 0x1021b8ec
push str.Ancient
push esi
call edi
mov ecx, str.true
lea eax, [ebp - 0x138]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1016f470
test dl, dl
je 0x1016f46c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1016f470
add eax, 2
add ecx, 2
test dl, dl
jne 0x1016f450
xor eax, eax
jmp 0x1016f475
sbb eax, eax
or eax, 1
test eax, eax
mov eax, 0x10252b80
sete byte [ebp - 0x18]
cmp dword [0x10252b94], 0xf
cmova eax, dword [0x10252b80]
push eax
push 0x45
lea eax, [ebp - 0x180]
push eax
push 0x1021b8ec
push str.StyleOverride
push esi
call edi
mov eax, str.true
lea ecx, [ebp - 0x180]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x1016f4d0
test dl, dl
je 0x1016f4cc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x1016f4d0
add ecx, 2
add eax, 2
test dl, dl
jne 0x1016f4b0
xor eax, eax
jmp 0x1016f4d5
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.1016f8d0
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 0x1016f500
sub edx, edi
inc esi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esi, edx
cmp byte [esi], al
jne 0x1016f3e0
mov ecx, 0x10252a28
call fcn.10074380
test eax, eax
jne 0x1016f53f
push eax
mov eax, dword [0x10252a18]
push 2
mov ecx, dword [eax + 4]
add ecx, 0x10252a18
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.1006ff00
int3