Function at 0x401150
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43771b
push eax
mov eax, 0x1138
mov dword fs:[0], esp
call fcn.00418360
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x18], ebp
lea edi, [ebp + 0xc]
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], edi
mov edx, dword [edi]
mov ebx, dword [edi - 4]
cmp edx, edx
mov eax, edx
je 0x4011b1
mov esi, eax
mov edi, ebx
add eax, 0x828
mov ecx, 0x20a
add ebx, 0x828
cmp eax, edx
rep movsd dword es:[edi], dword [esi]
jne 0x401193
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov esi, ebx
cmp ebx, eax
mov dword [esp + 0x10], eax
je 0x4011d2
mov ecx, esi
call fcn.00405340
mov eax, dword [esp + 0x10]
add esi, 0x828
cmp esi, eax
jne 0x4011bd
mov eax, dword [esp + 0x14]
mov dword [edi], ebx
add edi, 0x14
dec eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
jne 0x401188
lea ebx, [ebp + 0xa8]
mov ecx, 0x41
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.00418050
add esp, 8
test eax, eax
je 0x401244
mov ecx, eax
lea edx, [esp + 0x1c]
sub ecx, edx
lea esi, [esp + 0x1c]
inc ecx
mov edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.alertlim.ini
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x800
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x200
lea edi, [esp + 0x950]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
lea edi, [esp + 0x948]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x948]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebx
je 0x40157f
jmp 0x4012b8
mov ebx, dword [esp + 0x10]
lea eax, [ebp + 0xa8]
xor esi, esi
push eax
push esi
push str.alerttype
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x120]
mov edi, eax
call fcn.00401000
lea eax, [edi - 5]
mov dword [esp + 0x1150], esi
cmp eax, 7
ja case.0x4012ef.7
jmp dword [eax*4 + 0x40159c]
lea ecx, [esp + 0x120]
mov byte [ebp + 0xa0], 1
push ecx
push ebx
mov ecx, ebp
call fcn.00401dd0
jmp 0x40132b
mov esi, 1
lea edx, [esp + 0x120]
mov ecx, ebp
push edx
push ebx
mov byte [ebp + 0xa0], 1
call fcn.00401c00
lea eax, [esi + esi*4]
lea ebp, [ebp + eax*4]
mov eax, 0x7d8c42b3
mov dword [ebp], edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
add ebp, 4
sub edx, ecx
mov ebx, ecx
imul edx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x401459
mov eax, dword [ebp + 4]
test eax, eax
je 0x40137d
sub ecx, eax
mov eax, 0x7d8c42b3
imul ecx
sar edx, 0xa
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 1
mov edi, edx
ja 0x401382
mov edi, 1
mov ecx, ebp
call fcn.00402260
mov esi, eax
add esi, edi
mov eax, esi
jns 0x401393
xor eax, eax
mov edx, eax
shl edx, 6
add edx, eax
lea eax, [eax + edx*4]
shl eax, 3
push eax
call fcn.0042ab4f
mov ecx, dword [ebp + 4]
add esp, 4
mov edi, eax
push edi
push ebx
push ecx
mov ecx, ebp
call fcn.00402290
lea edx, [esp + 0x120]
mov ecx, ebp
push edx
push 1
push eax
mov dword [esp + 0x20], eax
call fcn.004022d0
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
add eax, 0x828
push eax
push ecx
push ebx
mov ecx, ebp
call fcn.00402290
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
push edx
push eax
mov ecx, ebp
call fcn.00402230
mov eax, dword [ebp + 4]
push eax
call fcn.0042ab78
mov ecx, esi
add esp, 4
shl ecx, 6
add ecx, esi
lea edx, [esi + ecx*4]
mov ecx, ebp
lea eax, [edi + edx*8]
mov dword [ebp + 0xc], eax
call fcn.00402260
inc eax
mov dword [ebp + 4], edi
mov ecx, eax
shl ecx, 6
add ecx, eax
lea edx, [eax + ecx*4]
lea eax, [edi + edx*8]
mov dword [ebp + 8], eax
jmp 0x40153c
mov esi, 2
jmp 0x401314
mov esi, 3
jmp 0x401314
mov esi, 4
jmp 0x401314
mov byte [ebp + 0xa0], 0
jmp 0x401544
mov edx, ecx
mov eax, 0x7d8c42b3
sub edx, ebx
imul edx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x4014d6
lea edx, [ebx + 0x828]
push edx
push ecx
push ebx
mov ecx, ebp
call fcn.00402290
mov esi, dword [ebp + 8]
lea eax, [esp + 0x120]
mov ecx, esi
push eax
sub ecx, ebx
mov eax, 0x7d8c42b3
imul ecx
sar edx, 0xa
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, ebp
sub eax, edx
push eax
push esi
call fcn.004022d0
mov eax, dword [ebp + 8]
cmp ebx, eax
je 0x401535
mov edi, ebx
add ebx, 0x828
mov ecx, 0x20a
lea esi, [esp + 0x120]
cmp ebx, eax
rep movsd dword es:[edi], dword [esi]
jne 0x4014ba
jmp 0x401535
lea eax, [ecx - 0x828]
push ecx
push ecx
push eax
mov ecx, ebp
mov dword [esp + 0x20], eax
call fcn.00402290
mov edx, dword [ebp + 8]
lea eax, [edx - 0x828]
cmp ebx, eax
je 0x401511
sub eax, 0x828
sub edx, 0x828
mov ecx, 0x20a
mov esi, eax
mov edi, edx
cmp eax, ebx
rep movsd dword es:[edi], dword [esi]
jne 0x4014f7
lea eax, [ebx + 0x828]
cmp ebx, eax
je 0x401535
mov edi, ebx
add ebx, 0x828
mov ecx, 0x20a
lea esi, [esp + 0x120]
cmp ebx, eax
rep movsd dword es:[edi], dword [esi]
jne 0x40151b
add dword [ebp + 8], 0x828
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1150], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebx + ecx + 1]
lea ecx, [esp + 0x120]
mov dword [esp + 0x10], edi
call fcn.00405340
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4012b4
mov ecx, dword [esp + 0x1148]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1144
ret