Function at 0x1003d330
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_wcscpy_s]
add esp, 0x18
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, edi
jl 0x1003d7a8
lea edx, [esp + 0xa4]
push edx
mov dword [esp + 0xa8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xa8], 6
jb 0x1003d7ce
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 0x1003d580
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 edi, dword [esp + 0x34]
mov ebx, 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], edi
mov dword [eax + 4], ebx
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 esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x64]
push ecx
mov edi, eax
call esi
lea edx, [esp + 0x84]
push edx
call esi
lea eax, [esp + 0x74]
push eax
call esi
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x3dc], 0xffffffff
call esi
test edi, edi
jge 0x1003d590
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 0x1003d7a8
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 0x1003d5b6
mov ecx, dword [eax]
jmp 0x1003d5b8
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
lea edi, [esp + 0x2c]
push edi
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
lea edi, [esp + 0x10]
mov ebx, 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 ebx, edi
jl 0x1003d580
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 ebx, eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp ebx, edi
jl 0x1003d580
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
jne 0x1003d653
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 0x1003d7a8
push 0x103
lea eax, [esp + 0xa9]
push edi
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]
add esp, 0x18
xor eax, eax
cmp dword [esp + 0x20], edi
jle 0x1003d794
jmp 0x1003d6a2
xor edi, edi
lea ecx, [eax + 1]
mov dword [esp + 0x10], edi
mov word [esp + 0x34], 3
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x3d8], 5
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
lea eax, [esp + 0x10]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x4c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [edi + 0x20]
mov dword [eax + 0xc], ecx
call edx
mov edi, eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x3dc], 0xffffffff
call esi
test edi, edi
jl 0x1003d786
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
test eax, eax
jl 0x1003d76f
mov edx, dword [esp + 0x24]
mov eax, edx
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1003d730
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 0x1003d76f
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 0
push eax
call edx
test eax, eax
jge 0x1003d794
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 0x1003d6a0
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]
xor eax, eax
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
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 0x1003d580
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 0x1003d846
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 0x1003d7a8
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x70]
push 4
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
cmp esi, edi
jge 0x1003d7a0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x1003d7a8