Function at 0x40db50
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dcfa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], esi
mov dword [esi + 0xdc], 1
xor ebx, ebx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40db96
mov ecx, dword [esi + 0xd0]
mov eax, dword [ecx]
call dword [eax + 0x7c]
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40dbc8
mov ecx, dword [esi + 0xd0]
mov edx, dword [ecx]
call dword [edx + 0x80]
mov ecx, dword [esi + 0xd0]
mov eax, dword [ecx]
call dword [eax + 0x84]
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40dc03
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 2
push ecx
lea ecx, [esi + 0x68]
call fcn.0040be10
test al, al
je 0x40dc03
mov ecx, dword [esi + 0xd0]
mov edx, dword [ecx]
call dword [edx + 0x88]
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
mov edi, 7
jne 0x40dc3f
lea eax, [ebp - 0x24]
lea ecx, [esi + 0x68]
push eax
mov dword [ebp - 0x24], edi
call fcn.0040be10
test al, al
je 0x40dc3f
mov ecx, dword [esi + 0xd0]
mov edx, dword [ecx]
call dword [edx + 0x8c]
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40dc63
mov ecx, dword [esi + 0xd0]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40dc84
mov ecx, dword [esi + 0xd4]
mov edx, dword [ecx]
call dword [edx + 0x7c]
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40dcb6
mov ecx, dword [esi + 0xd4]
mov eax, dword [ecx]
call dword [eax + 0x80]
mov ecx, dword [esi + 0xd4]
mov edx, dword [ecx]
call dword [edx + 0x84]
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40dcf1
lea eax, [ebp - 0x24]
lea ecx, [esi + 0x68]
push eax
mov dword [ebp - 0x24], 2
call fcn.0040be10
test al, al
je 0x40dcf1
mov ecx, dword [esi + 0xd4]
mov edx, dword [ecx]
call dword [edx + 0x88]
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40dd28
lea eax, [ebp - 0x24]
lea ecx, [esi + 0x68]
push eax
mov dword [ebp - 0x24], edi
call fcn.0040be10
test al, al
je 0x40dd28
mov ecx, dword [esi + 0xd4]
mov edx, dword [ecx]
call dword [edx + 0x8c]
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40dd4c
mov ecx, dword [esi + 0xd4]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40dd6d
mov ecx, dword [esi + 0xd8]
mov edx, dword [ecx]
call dword [edx + 0x7c]
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40dd9f
mov ecx, dword [esi + 0xd8]
mov eax, dword [ecx]
call dword [eax + 0x80]
mov ecx, dword [esi + 0xd8]
mov edx, dword [ecx]
call dword [edx + 0x84]
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40ddda
lea eax, [ebp - 0x24]
lea ecx, [esi + 0x68]
push eax
mov dword [ebp - 0x24], 2
call fcn.0040be10
test al, al
je 0x40ddda
mov ecx, dword [esi + 0xd8]
mov edx, dword [ecx]
call dword [edx + 0x88]
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40de11
lea eax, [ebp - 0x24]
lea ecx, [esi + 0x68]
push eax
mov dword [ebp - 0x24], edi
call fcn.0040be10
test al, al
je 0x40de11
mov ecx, dword [esi + 0xd8]
mov edx, dword [ecx]
call dword [edx + 0x8c]
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40de35
mov ecx, dword [esi + 0xd8]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40de56
mov ecx, dword [esi + 0xcc]
call fcn.0040e770
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40de77
mov ecx, dword [esi + 0xcc]
call fcn.0040f580
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40de98
mov ecx, dword [esi + 0xcc]
call fcn.0040e980
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40ded0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0xa
push ecx
lea ecx, [esi + 0x68]
call fcn.0040be10
test al, al
je 0x40ded0
mov ecx, dword [esi + 0xcc]
call fcn.0040e620
mov ecx, dword [esi + 0xdc]
inc ecx
mov dword [esi + 0xdc], ecx
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40e09d
mov ecx, dword [esi + 0xcc]
call fcn.0040ec90
mov eax, dword [0x43da30]
cmp eax, ebx
jne 0x40e09d
push 0x43da34
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.00425828
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathscleanup.exe
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00425828
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x18]
push edx
push eax
lea ecx, [ebp - 0x14]
push 0x80000002
push ecx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004027f0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.004257ba
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004257ba
mov edx, dword [ebp - 0x14]
cmp dword [edx - 8], ebx
jne 0x40dfbc
mov eax, dword [0x43db00]
cmp dword [eax - 8], ebx
jne 0x40dfaf
push 0x98
call fcn.004254fb
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
cmp esi, ebx
mov byte [ebp - 4], 6
je 0x40df98
mov ecx, esi
call fcn.00426652
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi], vtable.CResourceException.0
jmp 0x40df9a
xor esi, esi
lea ecx, [ebp - 0x28]
push 0x435e70
push ecx
mov byte [ebp - 4], 4
mov dword [ebp - 0x28], esi
call fcn.0041283f
push 0x43db00
lea ecx, [ebp - 0x14]
call fcn.004258a7
push str.CleanUp_
lea ecx, [ebp - 0x24]
call fcn.00425828
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.00425828
lea edx, [ebp - 0x14]
push str.__WindowsRestart
lea eax, [ebp - 0x2c]
mov bl, 8
push edx
push eax
mov byte [ebp - 4], bl
call fcn.00425a03
lea ecx, [ebp - 0x24]
push eax
lea edx, [ebp - 0x20]
push ecx
push edx
push 0x80000001
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.004029b0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.004257ba
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.004257ba
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.004257ba
push 1
push str.WorkToBeDone
push 0x43da34
mov ecx, 0x43da40
call fcn.00429830
mov eax, dword [esi + 0x9c]
mov ecx, 0x43da40
push eax
push str.FileCount
push str.DeleteOnWindowsRestart
call fcn.00429830
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004257ba
or edi, 0xffffffff
xor ebx, ebx
mov dword [ebp - 4], edi
jmp 0x40e0a0
or edi, 0xffffffff
mov eax, dword [0x43da30]
cmp eax, ebx
je 0x40e11e
push str.CleanUp__cancelled
lea ecx, [ebp - 0x24]
call fcn.00425828
mov eax, dword [esi + 0xdc]
mov dword [ebp - 4], 0xb
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x66666667
shl ecx, 2
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, esi
push edx
lea edx, [ebp - 0x24]
push edx
call fcn.00402c40
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.004257ba
push str.CleanUp__cancelled_by_user.
lea ecx, [ebp - 0x20]
call fcn.00425828
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
mov dword [ebp - 4], 0xc
call fcn.00402d10
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.004257ba
mov ecx, esi
call fcn.0040e1f0
mov ecx, esi
mov dword [esi + 0xa0], eax
call fcn.0040e230
mov ecx, dword [esi + 0xa0]
push eax
push ecx
mov ecx, esi
mov dword [esi + 0xa4], eax
call fcn.00402c80
mov eax, dword [0x43da30]
mov ecx, dword [ebp - 0xc]
neg eax
pop edi
pop esi
sbb eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret