Function at 0x4581f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482350
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4b700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402820
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402820
mov byte [ebp - 4], 2
mov bl, 1
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.Schtasks__delete__TN_AnkRebootManager__f
call fcn.0045d100
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
mov dl, bl
lea ecx, [ebp - 0x24]
call fcn.00460ee0
add esp, 4
mov byte [ebp - 4], 4
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov edi, dword [ebp - 0x18]
add edi, 0xfffffff0
cmp ecx, edi
je 0x4582ba
lea ebx, [edi + 0xc]
cmp dword [ebx], 0
jl 0x4582ae
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4582ae
call fcn.00403060
mov dword [ebp - 0x28], eax
or esi, 0xffffffff
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4582a6
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x4582bd
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0x18]
call fcn.004030c0
or esi, 0xffffffff
mov byte [ebp - 4], 5
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4582df
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push ecx
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x28], esp
mov edi, dword [ebp - 0x18]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea eax, [edi - 4]
cmp dword [eax], 0
jl 0x458308
cmp ecx, dword [edi - 0x10]
jne 0x458308
lea ebx, [edi - 0x10]
lock inc dword [eax]
jmp 0x458332
mov eax, dword [ecx]
push 2
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x458872
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov edx, dword [edi - 0xc]
inc edx
push edx
push edi
lea ecx, [ebx + 0x10]
call fcn.004031c0
add esp, 8
lea eax, [ebx + 0x10]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov byte [ebp - 4], 6
mov byte [ebp - 4], 7
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.deleteProactiveTasks_AnkRebootManager:
call fcn.0045d100
mov byte [ebp - 4], 8
mov byte [ebp - 4], 2
or ecx, 0xffffffff
call fcn.0045f800
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x38], esp
push 0x493824
call fcn.0045c170
mov byte [ebp - 4], 9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x487a74
call fcn.0045c170
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 2
mov edx, 0xac
lea ecx, [ebp - 0x20]
call fcn.00401370
add esp, 0x30
mov byte [ebp - 4], 0xb
push str.atemp.xml
lea ecx, [ebp - 0x28]
call fcn.0045d100
mov byte [ebp - 4], 0xc
push str.schtasks__create__F__TN_AnkRebootManager__XML
lea ecx, [ebp - 0x24]
call fcn.0045d100
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x38]
call fcn.0045c7c0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x28]
push ecx
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.0045c7c0
add esp, 8
mov byte [ebp - 4], 0xf
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov edi, dword [ebp - 0x1c]
add edi, 0xfffffff0
cmp ecx, edi
je 0x45844a
lea ebx, [edi + 0xc]
cmp dword [ebx], 0
jl 0x45843e
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x45843e
call fcn.00403060
mov dword [ebp - 0x30], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x458436
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
add eax, 0x10
mov dword [ebp - 0x1c], eax
jmp 0x45844a
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004030c0
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45846c
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45848e
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4584b0
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4584d2
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 0x11], 1
push ecx
mov dword [ebp - 0x30], esp
mov dword [ebp - 0x38], esp
mov edi, dword [ebp - 0x1c]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea eax, [edi - 4]
cmp dword [eax], 0
jl 0x4584ff
cmp ecx, dword [edi - 0x10]
jne 0x4584ff
lea ebx, [edi - 0x10]
lock inc dword [eax]
jmp 0x458529
mov eax, dword [ecx]
push 2
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x458877
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov edx, dword [edi - 0xc]
inc edx
push edx
push edi
lea ecx, [ebx + 0x10]
call fcn.004031c0
add esp, 8
lea eax, [ebx + 0x10]
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0xb
mov dl, byte [ebp - 0x11]
lea ecx, [ebp - 0x34]
call fcn.00460ee0
add esp, 4
mov byte [ebp - 4], 0x16
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov edi, dword [ebp - 0x18]
add edi, 0xfffffff0
cmp ecx, edi
je 0x45859e
lea ebx, [edi + 0xc]
cmp dword [ebx], 0
jl 0x458592
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x458592
call fcn.00403060
mov dword [ebp - 0x38], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x45858a
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x45859e
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0x18]
call fcn.004030c0
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4585c0
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push str.AnkRebootManager
lea ecx, [ebp - 0x28]
call fcn.0045d100
mov byte [ebp - 4], 0x18
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x488924
call fcn.0045d100
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x38]
call fcn.0045c7c0
mov byte [ebp - 4], 0x1a
mov ecx, esp
mov dword [ebp - 0x30], esp
lea edx, [ebp - 0x18]
push edx
mov edx, eax
call fcn.0045c7c0
add esp, 4
mov byte [ebp - 4], 0x1b
mov byte [ebp - 4], 0x1c
or ecx, 0xffffffff
call fcn.0045f800
add esp, 8
mov byte [ebp - 4], 0x1d
mov byte [ebp - 4], 0x18
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458640
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x1e
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458662
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push str.atemp.xml
lea ecx, [ebp - 0x28]
call fcn.0045d100
mov byte [ebp - 4], 0x1f
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.0045c7c0
add esp, 4
mov byte [ebp - 4], 0x20
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0x21
mov byte [ebp - 4], 0x1f
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4586b3
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x22
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4586d5
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x23
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4586f7
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x24
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458719
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x25
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x458739
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004031b0
call fcn.004031b0
int3