Function at 0x4bac70
Capabilities:
Check os version
Schedule task via itaskscheduler
Schedule task via itaskservice

Disassembly:
sub esp, 0x198
push ebx
push ebp
push esi
push edi
xor esi, esi
xor bl, bl
push esi
mov byte [esp + 0x1b], bl
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, 0x80010106
je 0x4bac99
mov byte [esp + 0x17], 1
mov bl, byte [esp + 0x17]
call fcn.004af5a0
test al, al
jne 0x4baeff
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x94], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp byte [esp + 0x94], 6
setae al
test al, al
je 0x4baeff
lea ecx, [esp + 0x18]
push ecx
push 0x6f5de8
push 1
push esi
push 0x6f5df8
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [esp + 0x18], esi
je 0x4baee8
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x50]
push edx
call esi
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x90], eax
call esi
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call esi
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call esi
mov esi, dword [esp + 0x8c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebp
mov dword [eax + 8], ebx
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x30]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x44]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x48]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x4c]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x64]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x68]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x6c]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x70]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x84]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x88]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x8c]
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 + 0x40]
push ecx
mov edi, eax
call esi
lea edx, [esp + 0x60]
push edx
call esi
lea eax, [esp + 0x70]
push eax
call esi
lea ecx, [esp + 0x50]
push ecx
call esi
test edi, edi
mov eax, dword [esp + 0x18]
jge 0x4bae43
test eax, eax
je 0x4bae39
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
cmp byte [esp + 0x17], 0
jmp 0x4baeea
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x6f5e84
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jge 0x4bae70
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4bae69
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp byte [esp + 0x17], 0
jmp 0x4baeea
mov ebp, dword [esp + 0x1ac]
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bae80
sub eax, edx
sar eax, 1
push eax
push ebp
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 0
push esi
push eax
call edx
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test edi, edi
jge 0x4baec9
cmp edi, 0x80070002
jne 0x4bae59
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4baed9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov bl, byte [esp + 0x17]
push ebp
mov eax, str.Scheduler
call fcn.004a53f0
test bl, bl
je 0x4baef2
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x198
ret 4
push esi
push esi
push esi
push 3
push 6
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [esp + 0x1c]
push eax
push 0x6f5db8
push 1
push esi
push 0x6f5dd8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4baee8
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x1ac]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x4baee8
mov ebp, dword [esp + 0x1ac]
jmp 0x4baedd