Function at 0x50f775
Capabilities:
Schedule task via itaskservice

Disassembly:
push 0x100
mov eax, 0x69d920
call fcn.0056e23b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xac], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x84], ecx
xor ecx, ecx
push 6
mov ebx, ecx
mov dword [ebp - 0x8c], eax
push ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov dword [eax], ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
or ecx, 0xffffffff
mov dword [ebp - 0x4c], esi
test esi, esi
jne 0x50f7fb
push eax
push eax
push eax
push 3
push 4
push eax
push eax
push ecx
push eax
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea ecx, [ebp - 0x48]
call fcn.004173bc
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x48]
push 0x6f2ba8
push 0x6f2bc8
push 0x6f2bdc
push eax
call fcn.0041ccda
add esp, 0x10
lea ecx, [ebp - 0x2c]
call fcn.004173bc
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.0042810e
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
push 0x704f80
push 1
push edi
push 0x704ff0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x50fc34
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0xec]
push eax
call ebx
mov byte [ebp - 4], 2
lea esi, [ebp - 0xec]
lea edi, [ebp - 0xfc]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xdc]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call ebx
mov byte [ebp - 4], 3
lea esi, [ebp - 0xdc]
lea edi, [ebp - 0x10c]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xcc]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call ebx
mov byte [ebp - 4], 4
lea esi, [ebp - 0xcc]
lea edi, [ebp - 0x9c]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xbc]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call ebx
mov byte [ebp - 4], 5
sub esp, 0x10
mov edi, esp
mov eax, dword [ebp - 0x70]
lea esi, [ebp - 0xfc]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x10c]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x9c]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0xbc]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x28]
test eax, eax
sets bl
mov byte [ebp - 4], 4
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0xbc]
push eax
call esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0xcc]
push eax
call esi
mov byte [ebp - 4], 2
lea eax, [ebp - 0xdc]
push eax
call esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0xec]
push eax
call esi
test bl, bl
jne 0x50fc2e
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x58]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.004af57e
mov byte [ebp - 4], 6
mov edx, dword [eax]
test edx, edx
je 0x50f972
mov edx, dword [edx]
jmp 0x50f974
xor edx, edx
mov eax, dword [ebp - 0x70]
lea esi, [ebp - 0x80]
push esi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
sets bl
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x50f99b
call fcn.004b318f
and dword [ebp - 0x58], 0
test bl, bl
jne 0x50fc2e
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
push edx
push dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
test eax, eax
js 0x50fc2e
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x5c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
test eax, eax
js 0x50fc2e
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x6c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
js 0x50fc2e
lea ecx, [ebp - 0xa4]
call fcn.0052a520
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x84]
test esi, esi
je 0x50fa3d
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
and dword [ebp - 0x58], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
js 0x50fa3d
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x74]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x74]
or edi, 0xffffffff
test eax, eax
js 0x50fa32
xor eax, eax
cmp word [ebp - 0x74], di
sete al
mov dword [esi], eax
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x50fa40
or edi, 0xffffffff
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x88]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x50fa6e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.0052a54e
mov ebx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
jmp 0x50fc37
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x88], ebx
je 0x50fa7e
mov byte [ebp - 4], bl
jmp 0x50fa58
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x78]
push edx
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
js 0x50fa79
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x68]
push edx
push str.MbLk
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x50fa79
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x54]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
js 0x50fa79
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x54]
call fcn.0064806f
pop ecx
pop ecx
test eax, eax
jne 0x50fa79
push dword [ebp - 0x54]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x54]
and dword [ebp - 0x54], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
js 0x50fa79
push dword [ebp - 0x54]
lea ecx, [ebp - 0xa4]
call fcn.0052a90d
push str.Schedule
lea ecx, [ebp - 0xa4]
call fcn.0052a7a7
test eax, eax
je 0x50fa79
push str.Clean
lea ecx, [ebp - 0xa4]
call fcn.0052a7a7
test eax, eax
je 0x50fa79
push str.Silent
lea ecx, [ebp - 0xa4]
call fcn.0052a7a7
test eax, eax
je 0x50fa79
push str.Restart
lea ecx, [ebp - 0xa4]
call fcn.0052a7a7
test eax, eax
je 0x50fb62
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], ebx
jmp 0x50fb81
push str.Shutdown
lea ecx, [ebp - 0xa4]
call fcn.0052a7a7
mov ecx, dword [ebp - 0x8c]
neg eax
sbb eax, eax
and eax, 2
mov dword [ecx], eax
push dword [ebp - 0x54]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [ebp - 0x54], 0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa4]
call fcn.0052a54e
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x64]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
js 0x50fa63
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x88]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x50fa63
cmp dword [ebp - 0x88], ebx
jne 0x50fa63
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
push edx
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
js 0x50fa63
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x84]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x50fa63
push dword [ebp - 0xa8]
push dword [ebp - 0x84]
push dword [ebp - 0x60]
call fcn.005100b4
mov ecx, dword [ebp - 0xac]
add esp, 0xc
mov esi, dword [ebp - 0x4c]
mov dword [ecx], eax
test eax, eax
jne 0x50fc37
mov ebx, dword [ebp - 0x50]
jmp 0x50fc37
mov esi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x50]
or edi, 0xffffffff
cmp dword [ebp - 0x54], 0
je 0x50fc46
push dword [ebp - 0x54]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x50fc53
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x50fc60
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x50fc6d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x50fc7a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x50fc87
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x50fc94
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x50fca1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x80]
test ecx, ecx
je 0x50fcae
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x50fcbb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
test esi, esi
jne 0x50fcc5
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0041786a
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x48]
call fcn.0041786a
mov eax, ebx
call fcn.0056e1e5
ret