Function at 0x407040
Capabilities:
Schedule task via itaskservice

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59145c
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5fcffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0x5d3078
push 1
push 0
push 0x5d3088
call dword [sym.imp.ole32.dll_CoCreateInstance]
or edi, 0xffffffff
test eax, eax
js 0x407166
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x74]
push eax
call esi
movups xmm0, xmmword [ebp - 0x74]
lea eax, [ebp - 0x64]
push eax
movups xmmword [ebp - 0x84], xmm0
call esi
movups xmm0, xmmword [ebp - 0x64]
lea eax, [ebp - 0x54]
push eax
movups xmmword [ebp - 0x94], xmm0
call esi
movups xmm0, xmmword [ebp - 0x54]
lea eax, [ebp - 0x44]
push eax
movups xmmword [ebp - 0xa4], xmm0
call esi
mov byte [ebp - 4], 4
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x84]
mov ecx, dword [ebp - 0x28]
mov eax, esp
sub esp, 0x10
mov edx, dword [ecx]
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x94]
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0xa4]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x44]
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0x28]
mov esi, eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x4071ac
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40718d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eb08
mov esp, ebp
pop ebp
ret 4
push 0xc
mov dword [ebp - 0x34], 0
call fcn.004246a8
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x4071fd
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
push 0x5daa48
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x4074c7
jmp 0x4071ff
xor esi, esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4074d1
mov byte [ebp - 4], 6
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x28]
push edx
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, edi
mov byte [ebp - 4], 0
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x407267
mov ecx, dword [esi]
test ecx, ecx
je 0x407245
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40725c
push eax
call fcn.004246e0
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0056ed8a
add esp, 8
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x18], 0
jl 0x40716c
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4072b9
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40716c
xor edi, edi
test eax, eax
jle 0x40744c
mov eax, 3
mov dword [ebp - 0x2c], 0
inc edi
mov word [ebp - 0x44], ax
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 7
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
movups xmm0, xmmword [ebp - 0x44]
push eax
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0x20]
mov esi, eax
mov byte [ebp - 4], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
js 0x407443
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov dword [ebp - 0x14], eax
call fcn.004255be
test eax, eax
je 0x4074bd
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x30]
test edx, edx
jne 0x40734e
xor eax, eax
jmp 0x407362
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407353
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x18]
call fcn.00403260
cmp dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x18]
jl 0x40741e
push dword [ebp - 0x30]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
call fcn.004255be
mov ecx, eax
test ecx, ecx
je 0x4074bd
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x14]
push dword [ebp - 0x20]
push 0x5daa50
push eax
call fcn.00402d70
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x4074bd
mov ecx, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4073f6
test dx, dx
je 0x4073f2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4073f6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4073d0
xor eax, eax
jmp 0x4073fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x407465
mov byte [ebp - 4], 8
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40741e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x407443
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp edi, dword [ebp - 0x1c]
jl 0x4072c3
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor esi, esi
or edi, 0xffffffff
jmp 0x40716e
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 8
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407498
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4074b3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x40716e
push 0x80004005
call fcn.004033d0
push 0x8007000e
call fcn.0056fe40
push 0x8007000e
call fcn.0056fe40
int3