Function at 0x40c450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5844d5
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5f63b0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x5f63b0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x24], edi
mov al, byte [0x6bfe40]
test al, al
je 0x40c4ab
mov ecx, str.CTaskShedulerEntry_V1::Save.
call fcn.00401270
mov al, byte [0x6bfe40]
mov ecx, dword [edi + 0x1c]
test ecx, ecx
jne 0x40c4c7
test al, al
je 0x40c4c0
mov ecx, str.Wrong_Call___m_pTask_is_not_set
call fcn.00401270
xor al, al
jmp 0x40ccc5
or ebx, 0xffffffff
cmp byte [edi + 0x18], 0
je 0x40cabc
cmp dword [edi + 0xc], 0
jle 0x40cbf2
mov eax, dword [edi + 8]
lea edx, [esp + 0x34]
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], 0
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x14]
test eax, eax
js 0x40c51d
mov eax, dword [esp + 0x34]
test ax, ax
je 0x40c51d
movzx esi, ax
dec esi
js 0x40c51d
jmp 0x40c510
mov eax, dword [edi + 0x1c]
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
dec esi
jns 0x40c510
mov dword [esp + 0x18], 0
mov dword [esp + 0x98], 0
mov eax, dword [edi + 0x1c]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
mov esi, eax
test esi, esi
js 0x40cb53
test ecx, ecx
je 0x40cb53
cmp byte [0x6bfe40], 0
mov edi, dword [esp + 0x10]
mov esi, dword [edi]
mov dword [esp + 0x1c], esi
je 0x40c5c4
lea ecx, [esp + 0x10]
call fcn.00403090
push esi
lea eax, [esp + 0x14]
push str.Interval:__i
push eax
mov byte [esp + 0xa4], 2
call fcn.004038c0
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
call fcn.00401270
add esi, 0xfffffff0
mov byte [esp + 0x98], 0
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c5c4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
call fcn.004049e0
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x98], 3
cmp byte [0x6bfe40], 0
je 0x40c63b
lea ecx, [esp + 0x10]
call fcn.00403090
push edi
lea eax, [esp + 0x14]
push str.Start_Boundary:__S
push eax
mov byte [esp + 0xa4], 4
call fcn.004038c0
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
call fcn.00401270
add esi, 0xfffffff0
mov byte [esp + 0x98], 3
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c63b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi - 0xc], 0
jge 0x40c646
or esi, 0xffffffff
jmp 0x40c663
push 0x5c23e8
push edi
call fcn.0054f272
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c65f
or esi, 0xffffffff
jmp 0x40c663
sub esi, edi
sar esi, 1
push esi
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.00403ab0
mov byte [esp + 0x98], 5
push dword [esp + 0x10]
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
movzx eax, ax
lea ebx, [esi + 1]
mov dword [esp + 0x44], eax
test ebx, ebx
js 0x40c6b6
cmp ebx, dword [edi - 0xc]
jg 0x40c6b6
lea eax, [edi + ebx*2]
push 0x5c23e8
push eax
call fcn.0054f272
mov esi, eax
add esp, 8
test esi, esi
je 0x40c6b6
sub esi, edi
sar esi, 1
jmp 0x40c6b9
or esi, 0xffffffff
mov eax, esi
sub eax, ebx
push eax
push ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
call fcn.00403ab0
mov byte [esp + 0x98], 6
push dword [esp + 0x2c]
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
movzx eax, ax
lea ebx, [esi + 1]
mov dword [esp + 0x54], eax
test ebx, ebx
js 0x40c70f
cmp ebx, dword [edi - 0xc]
jg 0x40c70f
lea eax, [edi + ebx*2]
push 0x5c06dc
push eax
call fcn.0054f272
mov esi, eax
add esp, 8
test esi, esi
je 0x40c70f
sub esi, edi
sar esi, 1
jmp 0x40c712
or esi, 0xffffffff
mov eax, esi
sub eax, ebx
push eax
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
call fcn.00403ab0
mov byte [esp + 0x98], 7
push dword [esp + 0x28]
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
inc esi
movzx eax, ax
mov dword [esp + 0x3c], eax
js 0x40c764
cmp esi, dword [edi - 0xc]
jg 0x40c764
lea eax, [edi + esi*2]
push 0x5c23ec
push eax
call fcn.0054f272
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40c764
sub ebx, edi
sar ebx, 1
jmp 0x40c767
or ebx, 0xffffffff
mov eax, ebx
sub eax, esi
push eax
push esi
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x2c]
call fcn.00403ab0
mov byte [esp + 0x98], 8
mov esi, dword [esp + 0x50]
push esi
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
inc ebx
movzx eax, ax
mov dword [esp + 0x40], eax
js 0x40c7b8
cmp ebx, dword [edi - 0xc]
jg 0x40c7b8
lea eax, [edi + ebx*2]
push 0x5c23ec
push eax
call fcn.0054f272
add esp, 8
test eax, eax
je 0x40c7b8
sub eax, edi
sar eax, 1
jmp 0x40c7bb
or eax, 0xffffffff
sub eax, ebx
push eax
push ebx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x2c]
call fcn.00403ab0
mov byte [esp + 0x98], 9
mov ebx, dword [esp + 0x4c]
push ebx
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
movzx eax, ax
mov dword [esp + 0x48], eax
mov eax, 0x2aaaaaab
imul dword [esp + 0x1c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, 1
cmp eax, ecx
cmovl eax, ecx
push 0x30
mov dword [esp + 0x34], eax
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.005502f0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
mov word [esp + 0x6c], ax
mov eax, dword [esp + 0x60]
mov word [esp + 0x6a], ax
mov eax, dword [esp + 0x48]
mov word [esp + 0x68], ax
mov eax, 0x30
mov word [esp + 0x64], ax
mov eax, dword [esp + 0x4c]
mov word [esp + 0x74], ax
mov eax, dword [esp + 0x54]
mov word [esp + 0x76], ax
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x78], 1
mov word [esp + 0x7c], ax
cmp ecx, 0x18
jge 0x40c880
mov eax, ecx
shl eax, 4
sub eax, ecx
shl eax, 2
mov dword [esp + 0x6c], 0x5a0
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x58]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov dword [esp + 0x30], eax
test eax, eax
jns 0x40c9b4
cmp byte [0x6bfe40], 0
je 0x40c8dd
lea ecx, [esp + 0x1c]
call fcn.00403090
push dword [esp + 0x30]
lea eax, [esp + 0x20]
push str.SetTrigger__failed:__i
push eax
mov byte [esp + 0xa4], 0xa
call fcn.004038c0
mov ecx, dword [esp + 0x28]
add esp, 0xc
call fcn.00401270
lea ecx, [esp + 0x1c]
call fcn.00403160
lea edx, [ebx - 0x10]
or ebx, 0xffffffff
mov byte [esp + 0x98], 8
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c901
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [esp + 0x98], 7
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c922
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x98], 6
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c947
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x98], 5
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c96c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x98], 3
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c991
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [esp + 0x98], 0
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40cbce
mov ecx, dword [edi]
push edi
jmp 0x40cbc9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40c9ca
mov dword [esp + 0x18], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [ebx - 0x10]
or ebx, 0xffffffff
mov byte [esp + 0x98], 8
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c9ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [esp + 0x98], 7
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ca0f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x98], 6
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ca34
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x98], 5
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ca59
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x98], 3
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ca7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [esp + 0x98], 0
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ca9f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40cab8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], 0
mov dword [esp + 0x98], 0xb
mov eax, dword [edi + 0x1c]
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 0x5b7b9c
push eax
call dword [ecx]
mov ecx, dword [esp + 0x14]
mov esi, eax
test esi, esi
js 0x40cc30
test ecx, ecx
je 0x40cc30
mov eax, dword [ecx]
push 1
push 0
push ecx
call dword [eax + 0x18]
mov esi, eax
test esi, esi
jns 0x40cbf7
cmp byte [0x6bfe40], 0
je 0x40cca8
lea ecx, [esp + 0x10]
call fcn.00403090
push esi
lea eax, [esp + 0x14]
push str.pIPersistFile__Savfailed:__i
push eax
mov byte [esp + 0xa4], 0xd
call fcn.004038c0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
call fcn.00401270
lea ecx, [esp + 0x10]
call fcn.00403160
jmp 0x40cca8
cmp byte [0x6bfe40], 0
je 0x40cbd2
call fcn.004285d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40cb78
push 0x80004005
call fcn.00404b40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push esi
lea eax, [esp + 0x14]
push str.CreateTriggers__failed:__i
push eax
mov byte [esp + 0xa4], 1
call fcn.004038c0
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
call fcn.00401270
add esi, 0xfffffff0
mov byte [esp + 0x98], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cbce
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x98], 0xffffffff
test ecx, ecx
je 0x40c4c0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor al, al
jmp 0x40ccc5
call fcn.00428146
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40cc15
mov eax, ecx
xor ecx, ecx
mov dword [esp + 0x14], ecx
test eax, eax
je 0x40cc15
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
cmp byte [0x6bfe40], 0
je 0x40cc2c
mov ecx, 0x5c1f48
call fcn.00401270
mov ecx, dword [esp + 0x14]
mov bl, 1
jmp 0x40ccae
cmp byte [0x6bfe40], 0
je 0x40ccac
call fcn.004285d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40cc55
push 0x80004005
call fcn.00404b40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
push esi
lea eax, [esp + 0x28]
push str.QueryInterface_IID_IPersistFile__failed:__i
push eax
mov byte [esp + 0xa4], 0xc
call fcn.004038c0
mov esi, dword [esp + 0x30]
add esp, 0xc
mov ecx, esi
call fcn.00401270
add esi, 0xfffffff0
mov byte [esp + 0x98], 0xb
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40cca8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
xor bl, bl
mov dword [esp + 0x98], 0xffffffff
test ecx, ecx
je 0x40ccc3
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov al, bl
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0054cf7e
mov esp, ebp
pop ebp
ret