Function at 0x18002ca98
Capabilities:
Schedule task via itaskscheduler

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov ebx, edx
lea rdx, str.SBWUpdateTask_Logon_
lea rcx, [rax + 0x18]
call fcn.1800041c0
nop
test ebx, ebx
jne 0x18002cae5
lea rcx, str.SBWUpdateTask_Time_
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, str.SBWUpdateTask_Time_
mov edx, eax
lea rcx, [rsp + 0x80]
call fcn.180003e28
mov rax, qword [0x18015f768]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [0x18015f720]
call fcn.1800cf560
mov rbx, qword [rsp + 0x38]
mov r8, rbx
mov edx, dword [rbx - 8]
lea rcx, [rsp + 0x80]
call fcn.180008324
lea r11, [rsp + 0x30]
mov qword [rsp + 0x20], r11
lea r9, [0x180119b88]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x180119ba8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x18002cb93
lea rcx, [rbx - 0xc]
lea rdi, [0x18015f758]
or ebx, 0xffffffff
cmp rcx, rdi
je 0x18002cb67
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x18002cb67
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x80]
add rcx, 0xfffffffffffffff4
cmp rcx, rdi
je 0x18002cb89
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x18002cb89
call fcn.1800d1434
mov eax, 0x80004005
jmp 0x18002cdf0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r9, [rsp + 0x88]
lea r8, [0x180119b78]
mov rdx, qword [rsp + 0x80]
call qword [rax + 0x30]
test eax, eax
jns 0x18002cc2f
mov dword [rsp + 0x20], eax
lea r9, str.Failed_calling_ITaskScheduler::Activate:error__0x_x
mov r8d, 0x1c3
lea rdx, str..SPWTaskMgr.cpp
lea rcx, [0x18015f578]
call fcn.18000b1e8
nop
lea rcx, [rbx - 0xc]
lea rdi, [0x18015f758]
or ebx, 0xffffffff
cmp rcx, rdi
je 0x18002cc03
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x18002cc03
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x80]
add rcx, 0xfffffffffffffff4
cmp rcx, rdi
je 0x18002cc25
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x18002cc25
call fcn.1800d1434
mov eax, 0x80004005
jmp 0x18002cdf0
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
call qword [rax + 0x80]
mov esi, eax
test eax, eax
jns 0x18002ccd3
mov dword [rsp + 0x20], eax
lea r9, str.Failed_calling_ITask::GetStatus:_error__0x_x
mov r8d, 0x1cb
lea rdx, str..SPWTaskMgr.cpp
lea rcx, [0x18015f578]
call fcn.18000b1e8
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rbx - 0xc]
lea rdi, [0x18015f758]
or ebx, 0xffffffff
cmp rcx, rdi
je 0x18002cca7
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x18002cca7
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x80]
add rcx, 0xfffffffffffffff4
cmp rcx, rdi
je 0x18002ccc9
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x18002ccc9
call fcn.1800d1434
mov eax, 0x80004005
jmp 0x18002cdf0
cmp dword [rsp + 0x78], 0x41301
jne 0x18002cd7a
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov esi, eax
test eax, eax
jns 0x18002cd7a
mov dword [rsp + 0x20], eax
lea r9, str.Failed_calling_ITask::Terminate:_error__0x_x
mov r8d, 0x1d5
lea rdx, str..SPWTaskMgr.cpp
lea rcx, [0x18015f578]
call fcn.18000b1e8
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rbx - 0xc]
lea rdi, [0x18015f758]
or ebx, 0xffffffff
cmp rcx, rdi
je 0x18002cd51
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x18002cd51
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x80]
add rcx, 0xfffffffffffffff4
cmp rcx, rdi
je 0x18002cd73
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x18002cd73
call fcn.1800d1434
mov eax, 0x80004005
jmp 0x18002cdf0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x80]
call qword [rax + reloc.WS2_32.dll_getservbyport]
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rbx - 0xc]
lea rdi, [0x18015f758]
or ebx, 0xffffffff
cmp rcx, rdi
je 0x18002cdcc
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x18002cdcc
call fcn.1800d1434
nop
mov rcx, qword [rsp + 0x80]
add rcx, 0xfffffffffffffff4
cmp rcx, rdi
je 0x18002cdee
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x18002cdee
call fcn.1800d1434
mov eax, esi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret