Function at 0x4c6740
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5bfd4d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push ebp
push esi
push edi
push 0x649cf8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x64a740]
push str.update_Task_set_LoopDay0_where_LoopDay_0_or_LoopDay_1000_or_isnull_LoopDay_
call fcn.005572e4
mov eax, dword [0x64a740]
lea ecx, [esp + 0x70]
push eax
call fcn.00557aba
lea ecx, [esp + 0x5c]
mov dword [esp + 0x188], 0
call fcn.0055b385
lea ecx, [esp + 0x38]
mov byte [esp + 0x188], 1
call fcn.0055b385
lea ecx, [esp + 0x4c]
mov byte [esp + 0x188], 2
call fcn.0055b385
lea ecx, [esp + 0x30]
mov byte [esp + 0x188], 3
push ecx
call fcn.0058766b
mov edx, dword [eax]
mov eax, dword [0x63b4a0]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x18c], 6
call fcn.005876aa
mov edi, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x20]
call fcn.005876aa
mov esi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x20]
inc esi
call fcn.005876aa
mov eax, dword [eax + 0x14]
push 0x61857c
push 0x61857c
push 0x61857c
add eax, 0x76c
push edi
push esi
push eax
push 0x61857c
lea eax, [esp + 0x34]
push str.select__from_Task_where_EndDT__s_d__02d__02d_00:00:00_s_and_EndDT__s1990_01_01_00:00:00_s_and_LoopDay_0
push eax
call fcn.00588507
mov ecx, dword [esp + 0x3c]
add esp, 0x24
push 0
push ecx
push 0
lea ecx, [esp + 0x7c]
call fcn.00557dcf
mov eax, dword [esp + 0x138]
test eax, eax
jne 0x4c6ac0
lea edx, [esp + 0x5c]
push 0
push edx
push 0x61a918
lea ecx, [esp + 0x7c]
call fcn.005587de
lea eax, [esp + 0x38]
push 0
push eax
push str.EndDT
lea ecx, [esp + 0x7c]
call fcn.005587de
lea ecx, [esp + 0x4c]
push 0
push ecx
push str.LoopDay
lea ecx, [esp + 0x7c]
call fcn.005587de
mov eax, dword [esp + 0x40]
xor edx, edx
xor ecx, ecx
mov esi, dword [esp + 0x54]
mov dx, word [eax + 0xa]
mov cx, word [eax + 8]
push edx
xor edx, edx
mov dx, word [eax + 6]
push ecx
push edx
xor ecx, ecx
mov cx, word [eax + 4]
xor edx, edx
mov dx, word [eax + 2]
push ecx
movsx eax, word [eax]
push edx
push eax
lea ecx, [esp + 0x3c]
push str._d__02d__02d__02d:_02d:_02d
push ecx
call fcn.00588507
lea esi, [esi + esi*2]
add esp, 0x20
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
lea edi, [eax + eax*8]
shl edi, 7
mov dword [esp + 0x20], edi
push ecx
lea edx, [esp + 0x70]
mov eax, esp
mov dword [esp + 0x30], esp
push edx
lea ecx, [esp + 0x24]
mov dword [eax], edi
call fcn.00403b10
mov eax, dword [eax]
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.005876aa
mov ebp, dword [eax]
push 0
lea ecx, [esp + 0x18]
call fcn.005876aa
mov ebx, dword [eax + 4]
push 0
lea ecx, [esp + 0x18]
call fcn.005876aa
mov ecx, dword [eax + 8]
push 0
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x18]
call fcn.005876aa
mov edx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], edx
call fcn.005876aa
mov esi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x18]
inc esi
call fcn.005876aa
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x2c]
push ebp
push ebx
push ecx
add eax, 0x76c
push edx
push esi
push eax
lea eax, [esp + 0x40]
push str._d__02d__02d__02d:_02d:_02d
push eax
call fcn.00588507
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
push ecx
push edx
call fcn.00568a52
add esp, 0x28
test eax, eax
jl 0x4c69b7
add edi, dword [esp + 0x20]
jmp 0x4c68fd
mov eax, dword [esp + 0x40]
xor ecx, ecx
xor edx, edx
push 0xffffffffffffffff
mov cx, word [eax + 0xa]
mov dx, word [eax + 8]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 6]
mov dx, word [eax + 4]
push ecx
push edx
movsx edx, word [eax]
xor ecx, ecx
mov cx, word [eax + 2]
push ecx
push edx
lea ecx, [esp + 0x4c]
call fcn.0058751e
push ecx
lea ecx, [esp + 0x34]
mov eax, esp
mov dword [esp + 0x24], esp
mov dword [eax], edi
lea eax, [esp + 0x4c]
push eax
call fcn.004690a0
mov ecx, dword [eax]
push 0
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
call fcn.005876aa
mov edi, dword [eax]
push 0
lea ecx, [esp + 0x14]
call fcn.005876aa
mov ebx, dword [eax + 4]
push 0
lea ecx, [esp + 0x14]
call fcn.005876aa
mov ebp, dword [eax + 8]
push 0
lea ecx, [esp + 0x14]
call fcn.005876aa
mov edx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edx
call fcn.005876aa
mov esi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x14]
inc esi
call fcn.005876aa
mov ecx, dword [esp + 0x64]
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x20]
push ecx
push 0x61857c
push edi
push ebx
push ebp
add eax, 0x76c
push edx
push esi
push eax
push 0x61857c
lea eax, [esp + 0x3c]
push str.update_Task_set_EndDT_s_d__02d__02d__02d:_02d:_02d_s_Remind1_IsFinish0_where_ID_d
push eax
call fcn.00588507
mov ecx, dword [esp + 0x44]
add esp, 0x2c
push ecx
mov ecx, dword [0x64a740]
call fcn.005572e4
push 1
push 1
lea ecx, [esp + 0x78]
mov edx, dword [esp + 0x78]
call dword [edx + 0x14]
mov eax, dword [esp + 0x138]
test eax, eax
je 0x4c686a
lea ecx, [esp + 0x70]
call fcn.00557ea3
push 0x649cf8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x28]
mov byte [esp + 0x188], 5
call fcn.0058df3f
lea ecx, [esp + 0x24]
mov byte [esp + 0x188], 4
call fcn.0058df3f
lea ecx, [esp + 0x18]
mov byte [esp + 0x188], 3
call fcn.0058df3f
lea ecx, [esp + 0x4c]
mov byte [esp + 0x188], 2
call fcn.0055b3f5
lea ecx, [esp + 0x38]
mov byte [esp + 0x188], 1
call fcn.0055b3f5
lea ecx, [esp + 0x5c]
mov byte [esp + 0x188], 0
call fcn.0055b3f5
lea ecx, [esp + 0x70]
mov dword [esp + 0x188], 0xffffffff
call fcn.00557cc6
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x17c
ret