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

Disassembly:
push 0xffffffffffffffff
push 0x578d1e
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0xa8]
xor ebx, ebx
push str.PlanTemplate
mov dword [esp + 0x1c], ebx
call fcn.004a9e20
cmp eax, ebx
jne 0x4e9273
mov eax, 0xffffff37
jmp 0x4e928b
push str.Template
mov ecx, eax
call fcn.004a9e20
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x1c], esi
jne 0x4e92b4
xor eax, eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 4
mov esi, dword [esp + 0x1c]
push str.IsReadOnly
mov ecx, esi
call fcn.004ac000
cmp eax, ebx
jne 0x4e92c8
xor ebp, ebp
jmp 0x4e92d3
push eax
call fcn.00531b2c
add esp, 4
mov ebp, eax
push str.Name
mov ecx, esi
call fcn.004ac000
mov edi, eax
cmp edi, ebx
je 0x4e973e
push edi
lea ecx, [esp + 0x18]
call fcn.004019c0
mov eax, dword [esp + 0x14]
push str.Backup.AllDaysTemplate
push eax
mov dword [esp + 0xa8], ebx
call fcn.00530c5f
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
jne 0x4e9334
mov ecx, dword [esp + 0x14]
push str.Backup.EmptyTemplate
push ecx
call fcn.00530c5f
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
je 0x4e93bb
mov eax, dword [esp + 0x14]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
or edx, ecx
jge 0x4e9355
push ebx
lea ecx, [esp + 0x18]
call fcn.00401650
mov eax, dword [esp + 0x14]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.004019c0
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0xa8], 1
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0xa8], bl
call fcn.004ea820
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xa4], 2
call fcn.00402060
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0xa0], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e93bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x20
call fcn.0050fcfd
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
cmp esi, ebx
mov byte [esp + 0xa0], 3
je 0x4e941f
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edi
call fcn.004019c0
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0xac], 4
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0xac], 3
call fcn.004ea820
or dword [esp + 0x1c], 1
push eax
mov ecx, esi
mov byte [esp + 0xa8], 5
call fcn.004e8830
mov edi, eax
jmp 0x4e9421
xor edi, edi
test byte [esp + 0x18], 1
mov dword [esp + 0x20], edi
mov dword [esp + 0xa0], ebx
je 0x4e9458
mov eax, dword [esp + 0x34]
and dword [esp + 0x18], 0xfffffffe
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e9458
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5c
lea ecx, [esp + 0x40]
push ebx
push ecx
mov dword [esp + 0x34], ebx
call fcn.00530d30
mov ecx, dword [esp + 0x28]
add esp, 0xc
push str.Period
call fcn.004a9e20
mov esi, eax
cmp esi, ebx
je 0x4e96be
lea ebp, [edi + 0xc]
mov dword [esp + 0x2c], ebp
jmp 0x4e9494
mov ebp, dword [esp + 0x2c]
push str.FileType
mov ecx, esi
call fcn.004ac000
cmp eax, ebx
jne 0x4e94aa
mov dword [esp + 0x40], ebx
jmp 0x4e94b7
push eax
call fcn.00531b2c
add esp, 4
mov dword [esp + 0x40], eax
push str.TaskType
mov ecx, esi
call fcn.004ac000
cmp eax, ebx
jne 0x4e94cd
mov dword [esp + 0x54], ebx
jmp 0x4e94da
push eax
call fcn.00531b2c
add esp, 4
mov dword [esp + 0x54], eax
push str.StartTime
mov ecx, esi
call fcn.004ac000
cmp eax, ebx
jne 0x4e94f0
mov dword [esp + 0x44], ebx
jmp 0x4e94fd
push eax
call fcn.00531b2c
add esp, 4
mov dword [esp + 0x44], eax
push str.FileStartTime
mov ecx, esi
call fcn.004ac000
cmp eax, ebx
jne 0x4e9513
mov dword [esp + 0x4c], ebx
jmp 0x4e9520
push eax
call fcn.00531b2c
add esp, 4
mov dword [esp + 0x4c], eax
push str.FileEndTime
mov ecx, esi
call fcn.004ac000
cmp eax, ebx
jne 0x4e9536
mov dword [esp + 0x50], ebx
jmp 0x4e9543
push eax
call fcn.00531b2c
add esp, 4
mov dword [esp + 0x50], eax
push str.EndTime
mov ecx, esi
call fcn.004ac000
cmp eax, ebx
jne 0x4e9559
mov dword [esp + 0x48], ebx
jmp 0x4e9566
push eax
call fcn.00531b2c
add esp, 4
mov dword [esp + 0x48], eax
push str.StartDay
mov ecx, esi
call fcn.004ac000
cmp eax, ebx
jne 0x4e957c
mov dword [esp + 0x58], ebx
jmp 0x4e9589
push eax
call fcn.00531b2c
add esp, 4
mov dword [esp + 0x58], eax
push str.StartMonth
mov ecx, esi
call fcn.004ac000
cmp eax, ebx
jne 0x4e959f
mov dword [esp + 0x5c], ebx
jmp 0x4e95ac
push eax
call fcn.00531b2c
add esp, 4
mov dword [esp + 0x5c], eax
push str.StartDay
mov ecx, esi
call fcn.004ac000
cmp eax, ebx
jne 0x4e95c2
mov dword [esp + 0x60], ebx
jmp 0x4e95cf
push eax
call fcn.00531b2c
add esp, 4
mov dword [esp + 0x60], eax
push str.EndYear
mov ecx, esi
call fcn.004ac000
cmp eax, ebx
jne 0x4e95e5
mov dword [esp + 0x78], ebx
jmp 0x4e95f2
push eax
call fcn.00531b2c
add esp, 4
mov dword [esp + 0x78], eax
push str.EndMonth
mov ecx, esi
call fcn.004ac000
cmp eax, ebx
jne 0x4e9608
mov dword [esp + 0x7c], ebx
jmp 0x4e9615
push eax
call fcn.00531b2c
add esp, 4
mov dword [esp + 0x7c], eax
push str.EndDay
mov ecx, esi
call fcn.004ac000
cmp eax, ebx
jne 0x4e962e
mov dword [esp + 0x80], ebx
jmp 0x4e963e
push eax
call fcn.00531b2c
add esp, 4
mov dword [esp + 0x80], eax
push 0x64
call fcn.0050fcfd
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0xa0], 7
je 0x4e9672
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x3c]
push edx
push edi
mov ecx, eax
call fcn.004e7ac0
add edi, 1
mov dword [esp + 0x28], edi
jmp 0x4e9674
xor eax, eax
mov edi, dword [ebp + 4]
mov ecx, dword [edi + 4]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push ecx
push edi
mov ecx, ebp
mov byte [esp + 0xac], bl
call fcn.004d0ec0
mov ecx, dword [esp + 0x2c]
push 1
mov ebp, eax
call fcn.004b2100
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
push str.Period
mov ecx, esi
mov dword [eax], ebp
call fcn.004a9e60
mov esi, eax
cmp esi, ebx
jne 0x4e9490
mov esi, dword [esp + 0x38]
mov edi, dword [esi + 0x108]
mov eax, dword [edi + 4]
add esi, 0x104
lea edx, [esp + 0x20]
push edx
push eax
push edi
mov ecx, esi
call fcn.004d0ec0
push 1
mov ecx, esi
mov ebp, eax
call fcn.004b2100
mov ecx, dword [esp + 0x1c]
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
push str.Template
mov dword [eax], ebp
call fcn.004a9e60
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x1c], esi
mov dword [esp + 0xa0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e9731
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jne 0x4e92b0
jmp 0x4e9289
mov eax, 0xffffff36
jmp 0x4e928b