Function at 0x490a70
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x850], edi
cmp dword [0x4cd38c], edi
je 0x490aa1
call fcn.0048fcc0
mov dword [0x4cd38c], edi
call fcn.00490620
test eax, eax
je 0x490ac3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, edi
jl 0x490d84
lea eax, [ebp - 0x84c]
push eax
push 0x4b17bc
push 1
push edi
push 0x4b17cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jge 0x490b13
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x84c]
mov ecx, dword [eax]
lea edx, [ebp - 0x848]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov esi, eax
cmp esi, edi
jl 0x490afa
mov eax, dword [ebp - 0x848]
mov ecx, dword [eax]
lea edx, [ebp - 0x83c]
push edx
lea edx, [ebp - 0x840]
push edx
push 5
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x490d4c
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x83c]
test eax, eax
je 0x490d46
mov edi, edi
mov ecx, dword [ebp - 0x840]
dec eax
mov dword [ebp - 0x83c], eax
mov edx, dword [ecx + eax*4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x490b85
push 0
sub eax, esi
push 0
sar eax, 1
inc eax
lea ecx, [eax + eax]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push eax
push edx
push 0
push 0
call edi
mov esi, dword [ebp - 0x840]
mov eax, dword [ebp - 0x84c]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [ebp - 0x844]
push ecx
mov ecx, dword [ebp - 0x83c]
mov ecx, dword [esi + ecx*4]
push 0x4b17ac
push ecx
push eax
call edx
test eax, eax
js 0x490d09
mov eax, dword [ebp - 0x844]
mov ecx, dword [eax]
lea edx, [ebp - 0x854]
push edx
push eax
mov eax, dword [ecx + 0x84]
call eax
mov edx, dword [ebp - 0x854]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x490c01
push 0
sub eax, esi
push 0
sar eax, 1
inc eax
lea ecx, [eax + eax]
push ecx
lea ecx, [ebp - 0x418]
push ecx
push eax
push edx
push 0
push 0
call edi
mov eax, dword [ebp - 0x844]
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
lea ecx, [ebp - 0x838]
push ecx
push eax
call edx
mov ecx, dword [ebp - 0x838]
mov edx, dword [ebp - 0x834]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x830]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x82c]
mov dword [eax + 8], ecx
lea esi, [ebp - 0x828]
mov dword [eax + 0xc], edx
call fcn.00490da0
mov eax, dword [ebp - 0x844]
mov ecx, dword [eax]
add esp, 0x10
lea edx, [ebp - 0x838]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov ecx, dword [ebp - 0x838]
mov edx, dword [ebp - 0x834]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x830]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x82c]
mov dword [eax + 8], ecx
lea esi, [ebp - 0x620]
mov dword [eax + 0xc], edx
call fcn.00490da0
mov eax, dword [ebp - 0x844]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 0x10
push eax
call edx
push 0
push 0x320
lea eax, [ebp - 0x828]
push eax
mov ecx, esi
push ecx
lea edx, [ebp - 0x418]
lea ecx, [ebp - 0x210]
call fcn.0048f730
mov edx, dword [ebp - 0x83c]
mov eax, dword [ebp - 0x840]
mov ecx, dword [eax + edx*4]
inc dword [ebp - 0x850]
add esp, 0x10
push ecx
call ebx
mov eax, dword [ebp - 0x83c]
test eax, eax
jne 0x490b70
mov edx, dword [ebp - 0x840]
push edx
call ebx
mov eax, dword [ebp - 0x848]
mov ecx, dword [eax]
lea edx, [ebp - 0x83c]
push edx
lea edx, [ebp - 0x840]
push edx
push 5
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jns 0x490b60
mov edi, dword [ebp - 0x850]
mov eax, dword [ebp - 0x84c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x848]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [0x4d2aa0], 0
mov dword [0x4cd38c], edi
je 0x490d82
call fcn.004908b0
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a01d6
mov esp, ebp
pop ebp
ret