Function at 0x418664
Capabilities:
Read .ini file

Disassembly:
push 0xd8
mov eax, 0x4b8ff2
call fcn.004b6929
mov dword [ebp - 0xc8], ecx
xor eax, eax
mov ecx, eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0xcc], vtable.McSSConfig.0
push 0xfff0
mov byte [ebp - 4], 1
call fcn.0047ea3c
pop ecx
push dword [ebp - 0xcc]
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xd4], eax
push eax
call fcn.004126ba
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
call fcn.0040d531
cmp dword [eax + 0x14], 8
jb 0x4186ea
mov eax, dword [eax]
mov edi, dword [ebp - 0xd4]
push eax
push 0x7ff8
push edi
push str.Tasks
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0040b224
cmp esi, 0x7ff7
jae 0x418bb3
xor eax, eax
cmp ax, word [edi]
je 0x4188bc
xor esi, esi
push edi
call fcn.00487778
inc eax
mov dword [ebp - 0x28], esi
pop ecx
push 7
xor ecx, ecx
mov dword [ebp - 0x18], esi
lea eax, [edi + eax*2]
mov word [ebp - 0x28], cx
mov dword [ebp - 0x9c], eax
pop eax
mov dword [ebp - 0x14], eax
push 0x5f
pop ecx
mov byte [ebp - 4], 3
cmp cx, word [edi]
je 0x418855
push 0x3d
push edi
call fcn.00484022
pop ecx
pop ecx
test eax, eax
je 0x41876b
xor ecx, ecx
mov word [eax], cx
push 0x5f
pop eax
push eax
push edi
call fcn.004857db
pop ecx
pop ecx
test eax, eax
je 0x418852
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x28]
push edi
call fcn.0040b252
mov edi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xb4]
cmp edi, eax
je 0x4187c8
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.0041bcc4
pop ecx
pop ecx
test al, al
jne 0x4187b8
push 0x18
pop eax
add edi, eax
cmp edi, esi
jne 0x41879f
mov eax, dword [ebp - 0xb4]
xor esi, esi
cmp edi, eax
jne 0x418852
cmp eax, dword [ebp - 0xbc]
je 0x4187e1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xb8]
call fcn.0041b21e
jmp 0x4187f1
lea ecx, [ebp - 0x28]
push ecx
push eax
lea ecx, [ebp - 0xb8]
call fcn.0041b35e
push str.E:BT_bcd09f30_9318_47da_a932_cca71cfec57eFreetools_srcSSSchedulerSSScheduler.cpp
push str.s_ReadTimerConfig
push 0xe7
push 1
lea ecx, [ebp - 0xc0]
call fcn.0040d1be
mov byte [ebp - 4], 4
mov edx, str.s_ReadTimerConfig___Task_Found:
mov ecx, dword [eax]
call fcn.004124b8
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov ecx, eax
cmovae edx, dword [ebp - 0x28]
call fcn.004124b8
lea ecx, [ebp - 0xc0]
call fcn.0040d1fc
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x9c]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x4188ab
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa0], ecx
cmp eax, 0x1000
jb 0x4188a2
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00405547
mov eax, dword [ebp - 0xac]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xa0]
push eax
push ecx
call fcn.0047ea2e
pop ecx
pop ecx
mov eax, dword [ebp - 0x9c]
xor ecx, ecx
cmp cx, word [eax]
jne 0x418725
mov esi, dword [0x503048]
mov ecx, 0x503048
push dword [esi + 4]
push ecx
call fcn.0041b4f7
mov dword [esi + 4], esi
xor edi, edi
mov dword [esi], esi
mov dword [esi + 8], esi
mov esi, dword [ebp - 0xa4]
mov dword [0x50304c], edi
jmp 0x418b47
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.0040c7ff
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
lea eax, [ebp - 0x28]
push eax
mov dword [ecx], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.0040c7ff
lea ecx, [ebp - 0x98]
call fcn.00414be7
push str.E:BT_bcd09f30_9318_47da_a932_cca71cfec57eFreetools_srcSSSchedulerSSScheduler.cpp
push str.s_ReadTimerConfig
push 0xf8
push 1
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 6
call fcn.0040d1be
mov byte [ebp - 4], 7
mov edx, str.s_ReadTimerConfig___Task_name:
mov ecx, dword [eax]
call fcn.004124b8
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov ecx, eax
cmovae edx, dword [ebp - 0x28]
call fcn.004124b8
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 6
call fcn.0040d1fc
lea ecx, [ebp - 0x98]
call fcn.004168b4
test eax, eax
jns 0x4189ca
mov edx, dword [0x502b50]
test edx, edx
je 0x418ae4
mov eax, dword [edx]
lea esi, [ebp - 0x90]
sub esp, 0x18
push 6
pop ecx
mov edi, esp
push str.Failed_to_read_task__s___continuing__task_will_not_run_
push 0xfb
push str.s_ReadTimerConfig
push str.E:BT_bcd09f30_9318_47da_a932_cca71cfec57eFreetools_srcSSSchedulerSSScheduler.cpp
rep movsd dword es:[edi], dword [esi]
push edx
call dword [eax + 0x14]
mov esi, dword [ebp - 0x9c]
add esp, 0x2c
xor edi, edi
jmp 0x418ae4
cmp dword [ebp - 0x30], 0
push str.E:BT_bcd09f30_9318_47da_a932_cca71cfec57eFreetools_srcSSSchedulerSSScheduler.cpp
push str.s_ReadTimerConfig
jne 0x418a2a
push 0x100
push 1
lea ecx, [ebp - 0xac]
call fcn.0040d1be
mov byte [ebp - 4], 8
mov edx, str.s_ReadTimerConfig___Task
mov ecx, dword [eax]
call fcn.004124b8
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov ecx, eax
cmovae edx, dword [ebp - 0x28]
call fcn.004124b8
mov edx, str._isnt_enabled
mov ecx, eax
call fcn.004124b8
lea ecx, [ebp - 0xac]
call fcn.0040d1fc
jmp 0x418ae4
push 0x104
push 1
lea ecx, [ebp - 0xc4]
call fcn.0040d1be
mov byte [ebp - 4], 9
mov edx, str.s_ReadTimerConfig___Task_type:
mov ecx, dword [eax]
call fcn.004124b8
push dword [ebp - 0x48]
mov ecx, eax
call fcn.00413ed3
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 6
call fcn.0040d1fc
mov eax, dword [ebp - 0x48]
sub eax, 1
je 0x418a72
sub eax, 1
jne 0x418ae4
mov eax, dword [ebp - 0x44]
sub eax, edi
je 0x418a91
sub eax, 1
je 0x418b5b
sub eax, 1
je 0x418a91
sub eax, 1
je 0x418a91
sub eax, 1
jne 0x418ae4
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x418aba
push edi
lea ecx, [ebp - 0x98]
call fcn.00417582
lea ecx, [ebp - 0x98]
test eax, eax
js 0x418aea
call fcn.00416d2f
test eax, eax
js 0x418ae4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.0041b448
lea edx, [ebp - 0x98]
push edx
mov ecx, dword [eax]
add ecx, 0x14
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x98]
call fcn.00414c71
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x418b42
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa0], ecx
cmp eax, 0x1000
jb 0x418b39
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00405547
mov eax, dword [ebp - 0x9c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xa0]
push eax
push ecx
call fcn.0047ea2e
pop ecx
pop ecx
push 0x18
pop eax
add esi, eax
mov dword [ebp - 0x9c], esi
cmp esi, dword [ebp - 0xb4]
jne 0x4188eb
jmp 0x418bbe
mov eax, dword [ebp - 0xc8]
cmp eax, dword [ebp - 0x40]
jbe 0x418ae4
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x418b9b
push edi
lea ecx, [ebp - 0x98]
call fcn.00417582
lea ecx, [ebp - 0x98]
test eax, eax
js 0x418aea
call fcn.00416d2f
test eax, eax
js 0x418ae4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xdc]
jmp 0x418acd
mov edi, 0x80004005
mov dword [ebp - 0xa8], edi
lea ecx, [ebp - 0xd0]
call fcn.0040d089
mov ecx, dword [ebp - 0xa4]
test ecx, ecx
je 0x418c4d
mov esi, ecx
cmp esi, dword [ebp - 0xb4]
je 0x418bff
mov edi, dword [ebp - 0xb4]
mov ecx, esi
call fcn.0040b224
push 0x18
pop eax
add esi, eax
cmp esi, edi
jne 0x418be3
mov edi, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xbc]
sub eax, ecx
mov dword [ebp - 0x9c], ecx
push 0x18
cdq
pop esi
idiv esi
imul eax, eax, 0x18
mov dword [ebp - 0xa8], eax
cmp eax, 0x1000
jb 0x418c44
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00405547
mov eax, dword [ebp - 0xa8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x9c]
push eax
push ecx
call fcn.0047ea2e
pop ecx
pop ecx
mov eax, edi
call fcn.004b68d8
ret