Function at 0x402ad0
Capabilities:
Schedule task via itaskservice

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x2a0
mov eax, dword [0x41800c]
mov ebx, ecx
xor eax, ebp
mov dword [esp + 0x298], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], 0
push eax
push 0x414020
push 1
push 0
push 0x414030
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x402c1a
mov eax, dword [esp + 0x6c]
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
mov ecx, dword [eax]
sub esp, 0x44
movsd xmm0, qword [esp + 0x94]
movsd xmm1, qword [esp + 0x9c]
movsd qword [esp + 0x3c], xmm1
movsd qword [esp + 0x34], xmm0
movsd xmm0, qword [esp + 0x84]
movsd xmm1, qword [esp + 0x8c]
movsd qword [esp + 0x2c], xmm1
movsd qword [esp + 0x24], xmm0
movsd xmm0, qword [esp + 0x74]
movsd xmm1, qword [esp + 0x7c]
movsd qword [esp + 0x1c], xmm1
movsd qword [esp + 0x14], xmm0
movsd xmm0, qword [esp + 0x64]
movsd xmm1, qword [esp + 0x6c]
movsd qword [esp + 0xc], xmm1
movsd qword [esp + 4], xmm0
mov dword [esp], eax
call dword [ecx + 0x28]
test eax, eax
js 0x402c5a
mov dword [esp + 0x1c], 0
push 0x415798
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x402be1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push edi
push esi
call dword [eax + 0x1c]
test eax, eax
jns 0x402c97
xor esi, esi
cmp eax, 0x80070002
cmovne esi, eax
test edi, edi
je 0x402c0a
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402c71
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x402c71
mov esi, eax
push 0x4155ca
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
je 0x402c71
mov edi, eax
lea ebx, [esp + 0x8e]
push 0x20a
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
sub esp, 0x10
mov dword [esp + 0x10], esi
mov dword [esp], ebx
mov dword [esp + 0x18], 0x105
jmp 0x402d41
mov esi, eax
push 0x4155ca
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
jne 0x402d19
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x402c7f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x298]
xor ecx, ebp
call fcn.00413150
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [esp + 0x74]
mov edx, 0x4158b8
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
mov word [esp + 0x74], 0
mov ecx, esi
call fcn.00408e10
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov ecx, esi
mov edx, ebx
push eax
call fcn.00406ec0
add esp, 4
cmp dword [esp + 0x88], 7
jbe 0x402ce8
mov esi, dword [esp + 0x74]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push 0
push ebx
push eax
call dword [ecx + 0x3c]
test eax, eax
jns 0x402d7a
xor esi, esi
cmp eax, 0x80070002
cmovne esi, eax
test ebx, ebx
jne 0x403014
jmp 0x40301b
mov edi, eax
lea ebx, [esp + 0x8e]
push 0x20a
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
sub esp, 0x10
mov dword [esp + 0x10], esi
mov dword [esp], ebx
mov dword [esp + 0x18], 0x107
mov dword [esp + 0x14], str.RemoveTask
call fcn.00401000
add esp, 0x1c
mov dword [esp + 0x74], ebx
lea eax, [esp + 0x74]
push 0
push eax
push 0
push 1
push 0
push esi
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x402c71
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0x38]
test eax, eax
jns 0x402e25
mov esi, eax
mov dword [esp + 0xc], ebx
push 0x4155ca
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
je 0x402ffe
mov ebx, eax
lea eax, [esp + 0x8e]
push 0x20a
push 0
push eax
call sub.VCRUNTIME140.dll_memset
sub esp, 0x10
lea eax, [esp + 0xaa]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], 0x127
mov dword [esp + 0x14], str.RemoveTask
mov dword [esp], eax
call fcn.00401000
add esp, 0x1c
lea eax, [esp + 0x8e]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x70]
push 0
push eax
push 0
push 1
push 0
push esi
push 0
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x402ffe
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
test eax, eax
jns 0x402ecc
push 0x4155ca
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
je 0x403002
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0x8e]
push 0x20a
push 0
push ebx
mov dword [esp + 0x14], eax
call sub.VCRUNTIME140.dll_memset
sub esp, 0x10
mov dword [esp + 0x10], esi
mov dword [esp], ebx
mov dword [esp + 0x18], 0x12a
mov dword [esp + 0x14], str.RemoveTask
call fcn.00401000
add esp, 0x1c
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x70]
push 0
push eax
push 0
push 1
push 0
push esi
push 0
push 1
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x403002
cmp dword [esp + 0x14], 0
jg 0x403002
push 0x4157a8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x10], 0
lea edx, [esp + 0x10]
mov ecx, dword [esi]
push edx
mov dword [esp + 0xc], eax
push eax
push esi
call dword [ecx + 0x1c]
test eax, eax
mov dword [esp + 0xc], ebx
jns 0x402f4b
mov esi, eax
push 0x4155ca
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
je 0x402fd9
lea ecx, [esp + 0x8e]
push 0x20a
push 0
push ecx
mov ebx, eax
call sub.VCRUNTIME140.dll_memset
sub esp, 0x10
lea eax, [esp + 0xaa]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], 0x130
jmp 0x402f9b
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push edi
push eax
call dword [ecx + 0x30]
mov esi, eax
test eax, eax
jns 0x402fdd
push 0x4155ca
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
je 0x402fd9
lea ecx, [esp + 0x8e]
push 0x20a
push 0
push ecx
mov ebx, eax
call sub.VCRUNTIME140.dll_memset
sub esp, 0x10
lea eax, [esp + 0xaa]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], 0x131
mov dword [esp], eax
mov dword [esp + 0x14], str.RemoveTask
call fcn.00401000
add esp, 0x1c
lea eax, [esp + 0x8e]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x70]
push 0
push eax
push 0
push 1
push 0
push esi
push 0
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
xor ebx, ebx
jmp 0x402fdf
mov bl, 1
mov eax, dword [esp + 8]
test eax, eax
je 0x402fee
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402ffc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test bl, bl
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x403010
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test ebx, ebx
je 0x40301b
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x74]
call fcn.00408db0
test edi, edi
jne 0x402c03
jmp 0x402c0a