Function at 0x404a20
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4333f0
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x449140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x308], esi
mov dword [ebp - 0x304], esi
push 0x42
lea eax, [ebp - 0x54]
mov dword [ebp - 0x304], esi
push 0
push eax
mov dword [ebp - 0x2f0], 0
call fcn.004197c0
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
lea eax, [ebp - 0x2f0]
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
mov edi, eax
test edi, edi
jne 0x4050f6
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x2b0], eax
call fcn.00414e42
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
push edi
push edi
mov dword [ebp - 4], 2
mov eax, dword [ebx]
push edi
push edi
mov dword [ebp - 0x2f8], eax
lea eax, [ebp - 0x2f8]
push eax
push 1
push dword [ebp - 0x2f0]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
mov edi, eax
test edi, edi
jne 0x405143
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], eax
mov byte [ebp - 4], 5
mov ebx, dword [sym.imp.RstrtMgr.DLL_RmGetList]
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2e4], eax
lea eax, [ebp - 0x2e4]
push eax
push edi
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2f0]
call ebx
mov edi, eax
test edi, edi
jne 0x404b61
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00414e42
push dword [ebp - 0x308]
jmp 0x4050c1
cmp edi, 0xea
jne 0x40518d
mov eax, dword [ebp - 0x2dc]
test eax, eax
je 0x404b3d
push eax
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x2d8], eax
call fcn.00405390
lea eax, [ebp - 0x2e4]
push eax
push dword [ebp - 0x280]
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2f0]
call ebx
mov edi, eax
test edi, edi
je 0x404be4
push 0x43e12c
lea ecx, [ebp - 0x2a4]
call fcn.00405e30
push edi
lea edx, [ebp - 0x2a4]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2d4]
call fcn.0040e0b0
add esp, 4
mov byte [ebp - 4], 9
jmp 0x4051ba
push dword [ebp - 0x2d8]
lea ecx, [ebp - 0x280]
call fcn.00405390
xor ebx, ebx
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x2d8], ebx
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x2e4], ecx
mov dword [ebp - 0x260], ecx
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x280]
cmp edi, dword [ebp - 0x27c]
je 0x405042
add edi, 0xc
mov dword [ebp - 0x2dc], edi
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c40
sub eax, edx
lea ecx, [ebp - 0x2e0]
sar eax, 1
lea eax, [edi + eax*2]
push eax
push edi
call fcn.00406f20
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x2e0]
mov eax, dword [esi - 8]
cmp eax, 4
jb 0x404d04
lea ecx, [esi - 8]
mov edx, 0x43e138
lea ecx, [ecx + eax*2]
push 4
call fcn.00408140
add esp, 4
test al, al
jne 0x404d04
push ecx
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x2e8], 0x2e
push eax
lea edx, [ebp - 0x2e0]
lea ecx, [ebp - 0x310]
call fcn.00406e20
add esp, 8
mov dword [ebp - 0x2e8], eax
add esi, 0xfffffff4
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
jne 0x404cd6
push esi
call fcn.00417cf7
mov eax, dword [ebp - 0x2e8]
add esp, 4
mov esi, dword [eax]
mov dword [eax], 0
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x2e0], esi
test eax, eax
je 0x404d04
lea ecx, [eax - 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x404d04
push ecx
call fcn.00417cf7
add esp, 4
push dword [edi - 0xc]
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2fc], eax
test eax, eax
je 0x404fad
lea eax, [ebp - 0x2fc]
mov dword [ebp - 0x298], eax
call fcn.00414e42
mov dword [ebp - 0x294], eax
mov byte [ebp - 0x290], 0
lea eax, [ebp - 0x320]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x328]
mov dword [ebp - 0x318], 0
push eax
lea eax, [ebp - 0x330]
mov dword [ebp - 0x314], 0
push eax
lea eax, [ebp - 0x318]
mov dword [ebp - 0x330], 0
push eax
push dword [ebp - 0x2fc]
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x31c], 0
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x404f87
lea eax, [ebp - 0x318]
push eax
lea eax, [edi - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jne 0x404f87
push 0x208
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.004197c0
add esp, 0xc
mov dword [ebp - 0x300], 0x104
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x25c]
push eax
push 0
push dword [ebp - 0x2fc]
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x404f87
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404e30
sub ecx, edx
lea eax, [ebp - 0x25c]
sar ecx, 1
lea eax, [eax + ecx*2]
push eax
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.00406f20
lea edx, [ebp - 0x2f8]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x304]
call fcn.0040b0d0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2f4]
mov eax, dword [eax]
push dword [eax - 8]
push eax
push 2
push 0x43e140
call fcn.00405f30
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2f4]
mov eax, dword [ebp - 0x2f4]
mov edi, dword [eax - 8]
lea ebx, [edi + 1]
push ebx
call fcn.00407ee0
mov eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2ec], eax
mov dword [eax + edi*2], 0x5d
mov dword [eax - 8], ebx
mov eax, ebx
mov byte [ebp - 4], 0x10
add eax, eax
mov dword [ebp - 0x30c], eax
sar eax, 1
je 0x404f1f
mov edi, dword [esi - 8]
lea ecx, [ebp - 0x2e0]
lea ebx, [edi + eax]
push ebx
call fcn.00407ee0
mov esi, dword [ebp - 0x2e0]
push dword [ebp - 0x30c]
push dword [ebp - 0x2e8]
lea edi, [esi + edi*2]
push edi
call fcn.00419240
mov eax, dword [ebp - 0x30c]
add esp, 0xc
xor ecx, ecx
mov word [eax + edi], cx
mov dword [esi - 8], ebx
mov ecx, dword [ebp - 0x2e8]
or eax, 0xffffffff
add ecx, 0xfffffff4
lock xadd dword [ecx], eax
dec eax
jne 0x404f3b
push ecx
call fcn.00417cf7
add esp, 4
mov eax, dword [ebp - 0x304]
test eax, eax
je 0x404f5b
lea ecx, [eax - 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x404f5b
push ecx
call fcn.00417cf7
add esp, 4
mov eax, dword [ebp - 0x2f8]
test eax, eax
je 0x404f7b
lea ecx, [eax - 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x404f7b
push ecx
call fcn.00417cf7
add esp, 4
mov ebx, dword [ebp - 0x2d8]
mov edi, dword [ebp - 0x2dc]
mov byte [ebp - 4], 0xb
call fcn.00414e42
cmp eax, dword [ebp - 0x294]
lea ecx, [ebp - 0x298]
push dword [ebp - 0x2ec]
setg dl
call fcn.004070b0
add esp, 4
cmp ebx, dword [ebp - 0x2e4]
je 0x404fc6
lock inc dword [esi - 0xc]
mov dword [ebx], esi
add ebx, 4
mov dword [ebp - 0x264], ebx
jmp 0x404feb
lea eax, [ebp - 0x2e0]
push eax
push ebx
lea ecx, [ebp - 0x268]
call fcn.00408380
mov eax, dword [ebp - 0x260]
mov ebx, dword [ebp - 0x264]
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2d8], ebx
mov byte [ebp - 4], 0xa
test esi, esi
je 0x40500f
add esi, 0xfffffff4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
jne 0x40500f
push esi
call fcn.00417cf7
add esp, 4
add edi, 0x29c
mov dword [ebp - 0x2dc], edi
lea eax, [edi - 0xc]
cmp eax, dword [ebp - 0x27c]
jne 0x404c38
mov eax, dword [ebp - 0x268]
mov esi, dword [ebp - 0x308]
mov ecx, dword [ebp - 0x2e4]
mov edi, dword [ebp - 0x280]
mov dword [esi + 8], ecx
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x268], 0
mov dword [esi], eax
mov dword [esi + 4], ebx
call fcn.004054d0
test edi, edi
je 0x4050b6
mov eax, dword [ebp - 0x278]
sub eax, edi
sar eax, 2
imul eax, eax, 0xdb35a717
imul ecx, eax, 0x29c
mov eax, edi
cmp ecx, 0x1000
jb 0x4050ac
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4051d7
push ecx
push edi
call fcn.00417cfc
add esp, 8
call fcn.00414e42
push dword [ebp - 0x2ec]
cmp eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2b0]
setg dl
call fcn.004070c0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417a68
mov esp, ebp
pop ebp
ret
push 0x43e108
lea ecx, [ebp - 0x2a4]
call fcn.00405e30
push edi
lea edx, [ebp - 0x2a4]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28c]
call fcn.0040e0b0
add esp, 4
push eax
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 1
call fcn.00401b80
push 0x447aac
lea eax, [ebp - 0x2bc]
push eax
call fcn.004191cc
push 0x43e118
lea ecx, [ebp - 0x2a4]
call fcn.00405e30
push edi
lea edx, [ebp - 0x2a4]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x274]
call fcn.0040e0b0
add esp, 4
push eax
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 4
call fcn.00401b80
push 0x447aac
lea eax, [ebp - 0x28c]
push eax
call fcn.004191cc
push 0x43e12c
lea ecx, [ebp - 0x2a4]
call fcn.00405e30
push edi
lea edx, [ebp - 0x2a4]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d4]
call fcn.0040e0b0
add esp, 4
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x274]
call fcn.00401b80
push 0x447aac
lea eax, [ebp - 0x274]
push eax
call fcn.004191cc
call fcn.0041c7fe
int3