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

Disassembly:
sub esp, 0x14
mov eax, dword [0x5144c4]
push ebp
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x24], edi
call fcn.00417280
mov edx, dword [eax]
add esp, 0xc
push edx
lea ecx, [esp + 0x10]
call fcn.0040cf30
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 0x42e05e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str._syntax_
lea ecx, [esp + 0x10]
call fcn.00412f70
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.00412f70
lea edx, [esp + 0xc]
push edx
lea ecx, [edi + 4]
call fcn.00402640
mov ebp, dword [esp + 0xc]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42e0be
add ebp, 0xfffffff0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42e0b3
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x14
ret 4
push ebx
push ebp
push esi
push str.Count
push str.Snippet
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov dword [esp + 0x20], ebx
cmp ebx, esi
jne 0x42e104
add ebp, 0xfffffff0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e0f8
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x14
ret 4
cmp dword [edi], esi
jne 0x42e124
push 0xc
call fcn.0049f1a2
add esp, 4
cmp eax, esi
je 0x42e120
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
jmp 0x42e122
xor eax, eax
mov dword [edi], eax
mov eax, dword [0x514540]
mov edx, dword [eax + 0xc]
mov ecx, 0x514540
call edx
mov edi, eax
add edi, 0x10
cmp ebx, esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], esi
jle 0x42e24c
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, edi
push esi
lea eax, [esp + 0x2c]
push str.Item_d
push eax
call fcn.00402950
mov edi, dword [esp + 0x34]
add esp, 0xc
push ebp
push 0x3f
push 0x4dd6c8
push 0
push str.Trigger
push edi
call ebx
test eax, eax
je 0x42e23d
push ebp
push 0x3ff
push 0x4dcec8
push 0
push str.Snippet
push edi
call ebx
test eax, eax
je 0x42e23d
push eax
push 0x4dcec8
call fcn.00437840
push 0xc
mov dword [esp + 0x24], eax
call fcn.0049f1a2
add esp, 0xc
test eax, eax
je 0x42e1c6
mov ecx, eax
call fcn.0042c330
mov esi, eax
jmp 0x42e1c8
xor esi, esi
mov eax, 0x4dd6c8
mov dword [esp + 0x10], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e1d4
sub eax, edx
sar eax, 1
push eax
push 0x4dd6c8
mov ecx, esi
call fcn.00402140
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esi + 8]
call fcn.00402a90
push ebp
push 0xff
push 0x4dce48
push 0
push str.Title
push edi
call ebx
test eax, eax
mov eax, 0x4dce48
jne 0x42e220
mov eax, 0x4dd6c8
push eax
lea ecx, [esi + 4]
call fcn.00402a90
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
call fcn.00442c80
mov esi, dword [esp + 0x14]
inc esi
cmp esi, dword [esp + 0x20]
mov dword [esp + 0x14], esi
jl 0x42e150
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e268
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebp, 0xfffffff0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42e285
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret 4