Function at 0x4a7990
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8393
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x10], 0
jne 0x4a79d6
mov eax, 0x80004005
jmp 0x4a8195
mov dword [ebp - 0xd0], 0
lea eax, [ebp - 0xd0]
mov dword [ebp - 4], 0
push eax
push 0x514fec
push 1
push 0
push 0x514fdc
mov dword [ebp - 0xcc], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x4a816b
mov dword [ebp - 0xa8], 0
cmp dword [ebx + 0x14], 8
mov edx, ebx
mov byte [ebp - 4], 2
jb 0x4a7a2e
mov edx, dword [ebx]
mov eax, dword [ebp - 0xd0]
lea edi, [ebp - 0xa8]
push edi
push 0x514ffc
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x4a7b05
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0xc8], 0
je 0x4a7af7
mov dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xb0]
push edx
push 0x514ffc
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 3
call dword [ecx]
mov edi, eax
mov eax, dword [ebp - 0xb0]
test edi, edi
jns 0x4a7abf
mov byte [ebp - 4], 2
test eax, eax
je 0x4a7aa2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xa8]
mov byte [ebp - 4], 1
test eax, eax
je 0x4a816b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4a816b
mov ecx, dword [eax]
lea edx, [ebp - 0xc8]
push edx
push eax
call dword [ecx + 0x40]
test eax, eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xb0]
js 0x4a7a98
test eax, eax
je 0x4a7ae4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0xc8], 0x41302
je 0x4a7af7
mov edi, 0x80070050
jmp 0x4a7aa2
push ebx
mov ecx, esi
call fcn.004a5ea0
mov edi, eax
test edi, edi
js 0x4a7aa2
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x4a7b1f
mov dword [ebp - 0xa8], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebx + 0x14], 8
jb 0x4a7b27
mov ebx, dword [ebx]
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0xa8]
push edx
push 0x514ffc
push 0x514fcc
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
mov edi, eax
test edi, edi
js 0x4a7aa2
mov dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xac]
push edx
push 0x514ffc
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 4
call dword [ecx]
mov edi, eax
test edi, edi
jns 0x4a7b85
mov eax, dword [ebp - 0xac]
jmp 0x4a7a94
cmp dword [esi + 0x40], 8
lea edx, [esi + 0x2c]
jb 0x4a7b90
mov edx, dword [edx]
mov eax, dword [ebp - 0xac]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
mov edi, eax
test edi, edi
jns 0x4a7bb1
mov eax, dword [ebp - 0xac]
jmp 0x4a7a94
cmp dword [esi + 0x54], 0
je 0x4a7be3
cmp dword [esi + 0x58], 8
lea edx, [esi + 0x44]
jb 0x4a7bc2
mov edx, dword [edx]
mov eax, dword [ebp - 0xac]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edi, eax
test edi, edi
jns 0x4a7be3
mov eax, dword [ebp - 0xac]
jmp 0x4a7a94
cmp dword [esi + 0x6c], 0
je 0x4a7c15
cmp dword [esi + 0x70], 8
lea edx, [esi + 0x5c]
jb 0x4a7bf4
mov edx, dword [edx]
mov eax, dword [ebp - 0xac]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x90]
mov edi, eax
test edi, edi
jns 0x4a7c15
mov eax, dword [ebp - 0xac]
jmp 0x4a7a94
cmp dword [esi + 0x84], 0
je 0x4a7c6f
cmp byte [esi + 0xd4], 0
je 0x4a7c6f
xor edx, edx
cmp dword [esi + 0x9c], edx
je 0x4a7c42
cmp dword [esi + 0xa0], 8
lea edx, [esi + 0x8c]
jb 0x4a7c42
mov edx, dword [edx]
cmp dword [esi + 0x88], 8
lea edi, [esi + 0x74]
jb 0x4a7c50
mov edi, dword [edi]
mov eax, dword [ebp - 0xac]
push edx
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov edi, eax
test edi, edi
jns 0x4a7c6f
mov eax, dword [ebp - 0xac]
jmp 0x4a7a94
cmp dword [esi + 0xb4], 0
je 0x4a7ca7
cmp dword [esi + 0xb8], 8
lea edx, [esi + 0xa4]
jb 0x4a7c89
mov edx, dword [edx]
mov eax, dword [ebp - 0xac]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edi, eax
test edi, edi
jns 0x4a7ca7
mov eax, dword [ebp - 0xac]
jmp 0x4a7a94
mov eax, dword [ebp - 0xac]
push dword [esi + 0xd8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x70]
mov edi, eax
test edi, edi
jns 0x4a7cca
mov eax, dword [ebp - 0xac]
jmp 0x4a7a94
cmp dword [esi + 0x28], 0
jne 0x4a7cdb
xor eax, eax
cmp ax, word [esi]
je 0x4a7e2d
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xb0]
push edx
lea edx, [ebp - 0xc8]
mov byte [ebp - 4], 5
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
jns 0x4a7d32
mov eax, dword [ebp - 0xb0]
mov byte [ebp - 4], 4
test eax, eax
je 0x4a7d27
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xac]
jmp 0x4a7a94
push 0x30
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movzx ecx, word [esi + 6]
mov eax, 0x30
mov word [ebp - 0x44], ax
xor edx, edx
movzx eax, word [esi]
add esp, 0xc
mov word [ebp - 0x40], ax
movzx eax, word [esi + 2]
mov word [ebp - 0x3e], ax
movzx eax, word [esi + 8]
mov word [ebp - 0x34], ax
movzx eax, word [esi + 0xa]
mov word [ebp - 0x32], ax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x30], eax
movzx eax, word [esi + 0x10]
mov word [ebp - 0x3c], cx
cmp dx, ax
je case.default.0x4a7da8
mov word [ebp - 0x3a], ax
movzx eax, word [esi + 0x12]
mov word [ebp - 0x38], ax
movzx eax, word [esi + 0x16]
mov dword [ebp - 0x28], 1
mov word [ebp - 0x36], ax
mov eax, dword [esi + 0x28]
dec eax
jmp dword [eax*4 + 0x4a81b4]
mov dword [ebp - 0x24], edx
jmp 0x4a7dff
mov eax, 1
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], ax
jmp 0x4a7dff
push esi
mov ecx, esi
mov dword [ebp - 0x24], 2
call fcn.004a9f10
mov word [ebp - 0x1e], ax
mov eax, 1
mov word [ebp - 0x20], ax
jmp 0x4a7dff
dec ecx
mov dword [ebp - 0x24], 3
mov eax, 1
shl eax, cl
mov dword [ebp - 0x20], eax
mov eax, 0xfff
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0x44]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edi, eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xb0]
test edi, edi
js 0x4a7d1d
test eax, eax
je 0x4a7e2d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xc4]
push edx
push 0x5180d0
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 6
call dword [ecx]
mov edi, eax
mov eax, dword [ebp - 0xc4]
test edi, edi
js 0x4a7d19
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc4]
test edi, edi
js 0x4a7d19
mov ecx, dword [eax]
lea edx, [ebp - 0xcc]
push edx
push eax
call dword [ecx + 0x20]
mov dword [ebp - 0xc0], vtable.ATL::CAccessToken.0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
lea ecx, [ebp - 0xa4]
call fcn.004a4f20
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ecx, [ebp - 0xc8]
push ecx
push 1
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x4a7ef3
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0xc0]
call dword [eax + 4]
mov eax, dword [ebp - 0xc8]
jmp 0x4a7f37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x4a80d5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0xb0]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4a80d5
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0xc0]
call dword [eax + 4]
mov eax, dword [ebp - 0xb0]
push 0
mov dword [ebp - 0xbc], eax
lea ecx, [ebp - 0xc0]
push 1
lea eax, [ebp - 0xa4]
push eax
call fcn.004a4a60
test al, al
je 0x4a80d5
mov dword [ebp - 0xec], 0
mov byte [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 2
mov dword [ebp - 0xf0], vtable.ATL::CDacl.0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xcc]
mov byte [ebp - 4], 9
test eax, eax
je 0x4a7fe0
lea ecx, [ebp - 0xb0]
push ecx
push 0
lea ecx, [ebp - 0xc8]
push ecx
push 0
push 0
push 4
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x4a7ff5
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0xf0]
mov edi, 0x80004005
call fcn.004a5380
jmp 0x4a80da
mov esi, dword [ebp - 0xc8]
test esi, esi
je 0x4a804d
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 8]
cmp eax, method.ATL::CDacl.virtual_8
jne 0x4a8039
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xe0]
call fcn.004a95d0
push dword [ebp - 0xec]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [ebp - 0xec], 0
jmp 0x4a8041
lea ecx, [ebp - 0xf0]
call eax
push esi
lea ecx, [ebp - 0xf0]
call fcn.004a5ae0
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc8], 0
setne al
test al, al
je 0x4a7fe0
push 0
push 0x1f01ff
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xf0]
call fcn.004a5900
test al, al
je 0x4a7fe0
mov esi, dword [ebp - 0xcc]
test esi, esi
je 0x4a7fe0
lea ecx, [ebp - 0xf0]
call fcn.004a6840
push 0
push eax
push 0
push 0
push 4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x4a7fe0
lea ecx, [ebp - 0xf0]
call fcn.004a5380
jmp 0x4a80da
mov edi, 0x80004005
lea ecx, [ebp - 0xa4]
call fcn.004a5430
mov ecx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], vtable.ATL::CAccessToken.0
test ecx, ecx
je 0x4a811b
test eax, eax
je 0x4a8111
push ecx
push eax
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xb8], 0
test eax, eax
je 0x4a8130
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xbc], 0
push 4
push dword [ebp - 0xb4]
call fcn.004bee2d
mov eax, dword [ebp - 0xc4]
add esp, 8
mov dword [ebp - 0xb4], 0
jmp 0x4a7d19
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x4a817c
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4a8193
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret 8