Function at 0x1003cdc0
Capabilities:
Check os version
Resolve function by parsing pe exports
Schedule task via itaskscheduler
Schedule task via itaskservice

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10047422
mov eax, dword fs:[0]
push eax
sub esp, 0x3c0
mov eax, dword [0x10056024]
xor eax, esp
mov dword [esp + 0x3b8], eax
push ebx
push esi
push edi
mov eax, dword [0x10056024]
xor eax, esp
push eax
lea eax, [esp + 0x3d0]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push 0x206
lea eax, [esp + 0x1c2]
push edi
push eax
mov word [esp + 0x1c8], di
call sub.MSVCR80.dll_memset
push esi
lea ecx, [esp + 0x1cc]
push 0x104
push ecx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x18
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, edi
jl 0x1003d307
lea edx, [esp + 0xa4]
push edx
mov dword [esp + 0xa8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xa8], 6
jb 0x1003d23b
lea eax, [esp + 0x18]
push eax
push 0x1004a530
push 1
push edi
push 0x1004a720
mov dword [esp + 0x2c], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x1003d010
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x34]
push ecx
call esi
mov dword [esp + 0x3d8], edi
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], eax
call esi
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
call esi
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x90]
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
call esi
mov byte [esp + 0x3d8], 3
mov esi, dword [esp + 0x9c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov esi, dword [esp + 0xb0]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x64]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x78]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x7c]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x80]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x78]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x7c]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x80]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x94]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0xa8]
mov dword [eax + 4], esi
mov esi, dword [esp + 0xac]
mov dword [eax + 8], esi
mov esi, dword [esp + 0xb0]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x28]
push ecx
call eax
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x64]
push ecx
mov edi, eax
call ebx
lea edx, [esp + 0x84]
push edx
call ebx
lea eax, [esp + 0x74]
push eax
call ebx
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x3dc], 0xffffffff
call ebx
test edi, edi
jge 0x1003d020
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x1003d307
lea edi, [esp + 0x10]
mov dword [esp + 0x2c], 0
call fcn.1003cc90
mov dword [esp + 0x3d8], 4
mov eax, dword [eax]
test eax, eax
je 0x1003d046
mov ecx, dword [eax]
jmp 0x1003d048
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
lea esi, [esp + 0x2c]
push esi
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
lea edi, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x3d8], 0xffffffff
call fcn.1003cd30
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor edi, edi
cmp esi, edi
jl 0x1003d010
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], edi
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x38]
call eax
mov esi, eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, edi
jl 0x1003d010
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp dword [esp + 0x20], edi
mov esi, eax
jne 0x1003d0e5
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [edi + 1]
jmp 0x1003d307
push 0x103
lea eax, [esp + 0xa9]
push 0
push eax
mov byte [esp + 0xb0], 0
call sub.MSVCR80.dll_memset
push 0x104
lea ecx, [esp + 0x1cc]
push ecx
lea edx, [esp + 0xb8]
push edx
call dword [sym.imp.MSVCR80.dll_wcstombs]
xor eax, eax
add esp, 0x18
cmp dword [esp + 0x20], eax
jle 0x1003d232
lea ecx, [eax + 1]
mov dword [esp + 0x10], 0
mov word [esp + 0x34], 3
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x3d8], 5
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov esi, dword [edx]
lea eax, [esp + 0x10]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x4c]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esi + 0x20]
mov dword [eax + 0xc], ecx
call edx
mov esi, eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x3dc], 0xffffffff
call ebx
test esi, esi
jl 0x1003d219
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
test esi, esi
jl 0x1003d202
mov edx, dword [esp + 0x24]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1003d1c1
sub eax, edi
push eax
push edx
lea ecx, [esp + 0xac]
push ecx
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1003d202
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 1
push eax
call edx
mov esi, eax
test esi, esi
jge 0x1003d230
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
jl 0x1003d12b
mov eax, dword [esp + 0x14]
jmp 0x1003d2f7
xor esi, esi
mov eax, dword [esp + 0x14]
jmp 0x1003d2f7
lea eax, [esp + 0x30]
push eax
push 0x1004eee4
push 1
push edi
push 0x1004ef04
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1003d010
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x1004eed4
lea edx, [esp + 0x1c4]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, edi
jge 0x1003d2b0
mov edi, dword [sym.imp.MSVCR80.dll_wprintf]
push str.Failed_calling_ITaskScheduler::Activate:
call edi
push esi
push str.error__0x_x_n
call edi
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x1003d307
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x70]
push 0x2000
push eax
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x1004a4ec
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push edi
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov ecx, dword [esp + 0x3d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.10045f6c
mov esp, ebp
pop ebp
ret 4