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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4245a0
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x437008]
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 edi, edx
mov ebx, ecx
mov dword [ebp - 0x31c], ebx
mov dword [ebp - 0x2fc], ebx
push 0x42
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x2fc], ebx
push 0
push eax
mov dword [ebp - 0x2f8], 0
call fcn.00413cb0
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
push 0
lea eax, [ebp - 0x2f8]
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
mov esi, eax
test esi, esi
jne 0x404520
lea eax, [ebp - 0x2f8]
mov dword [ebp - 0x2b8], eax
call fcn.00412686
mov dword [ebp - 0x308], eax
mov dword [ebp - 0x2b4], eax
xor al, al
mov byte [ebp - 0x2e9], al
mov byte [ebp - 0x2b0], al
push esi
push esi
mov dword [ebp - 4], 2
mov eax, dword [edi]
push esi
push esi
mov dword [ebp - 0x300], eax
lea eax, [ebp - 0x300]
push eax
push 1
push dword [ebp - 0x2f8]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
mov esi, eax
test esi, esi
jne 0x40456d
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 5
mov edi, dword [sym.imp.RstrtMgr.DLL_RmGetList]
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2f0], eax
lea eax, [ebp - 0x2f0]
push eax
push esi
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x2e8]
push eax
push dword [ebp - 0x2f8]
call edi
mov esi, eax
test esi, esi
jne 0x403fae
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call fcn.00412686
push dword [ebp - 0x2fc]
jmp 0x4044eb
cmp esi, 0xea
jne 0x4045b7
mov eax, dword [ebp - 0x2e8]
test eax, eax
je 0x403f8a
push eax
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x2e0], eax
call fcn.004047c0
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp - 0x2a0]
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x2e8]
push eax
push dword [ebp - 0x2f8]
call edi
mov esi, eax
test esi, esi
je 0x404031
push 0x42ccc8
lea ecx, [ebp - 0x294]
call fcn.00404f60
push esi
lea edx, [ebp - 0x294]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2dc]
call fcn.0040c750
add esp, 4
mov byte [ebp - 4], 9
jmp 0x4045e4
push dword [ebp - 0x2e0]
lea ecx, [ebp - 0x2a0]
call fcn.004047c0
xor edi, edi
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x2e0], edi
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x2f0], ecx
mov dword [ebp - 0x268], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x29c]
mov esi, dword [ebp - 0x2a0]
mov dword [ebp - 0x33c], edx
mov dword [ebp - 0x2fc], esi
cmp esi, edx
je 0x404463
mov eax, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ebx, [esi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov dword [ebp - 0x338], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov dword [ebp - 0x334], eax
mov eax, dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
mov dword [ebp - 0x2e8], ebx
mov dword [ebp - 0x318], esi
mov dword [ebp - 0x32c], eax
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4040c5
sub eax, edx
lea ecx, [ebp - 0x2e4]
sar eax, 1
lea eax, [ebx + eax*2]
push eax
push ebx
call fcn.00405f10
mov byte [ebp - 4], 0xb
push dword [ebx - 0xc]
push 0
push 0x1000
call dword [ebp - 0x338]
mov dword [ebp - 0x304], eax
test eax, eax
je 0x4043ba
lea eax, [ebp - 0x304]
mov dword [ebp - 0x288], eax
call fcn.00412686
mov dword [ebp - 0x284], eax
mov byte [ebp - 0x280], 0
lea eax, [ebp - 0x344]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x34c]
mov dword [ebp - 0x324], 0
push eax
lea eax, [ebp - 0x354]
mov dword [ebp - 0x320], 0
push eax
lea eax, [ebp - 0x324]
mov dword [ebp - 0x354], 0
push eax
push dword [ebp - 0x304]
mov dword [ebp - 0x350], 0
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x340], 0
call dword [ebp - 0x334]
test eax, eax
je 0x4043b2
lea eax, [ebp - 0x324]
push eax
lea eax, [ebx - 8]
push eax
call esi
test eax, eax
jne 0x4043b2
push 0x208
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00413cb0
add esp, 0xc
mov dword [ebp - 0x330], 0x104
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x264]
push eax
push 0
push dword [ebp - 0x304]
call dword [ebp - 0x32c]
test eax, eax
je 0x4043b2
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404210
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
lea eax, [eax + ecx*2]
push eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x300]
call fcn.00405f10
lea edx, [ebp - 0x300]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x30c]
call fcn.004097a0
push eax
mov edx, 0x42ccd4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x328]
call fcn.00406020
add esp, 4
mov ebx, eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebx]
mov esi, dword [ecx - 8]
mov ecx, ebx
lea edi, [esi + 1]
push edi
call fcn.00406eb0
mov ecx, dword [ebx]
mov dword [ecx + esi*2], 0x5d
mov eax, dword [ebx]
mov dword [eax - 8], edi
mov eax, dword [ebx]
mov dword [ebp - 0x314], eax
mov dword [ebx], 0
mov dword [ebp - 0x2f4], eax
mov byte [ebp - 4], 0x10
mov eax, dword [eax - 8]
add eax, eax
mov ecx, eax
mov dword [ebp - 0x310], eax
sar ecx, 1
je 0x4042fc
mov eax, dword [ebp - 0x2e4]
mov edi, dword [eax - 8]
lea ebx, [edi + ecx]
push ebx
lea ecx, [ebp - 0x2e4]
call fcn.00406eb0
mov esi, dword [ebp - 0x2e4]
push dword [ebp - 0x310]
push dword [ebp - 0x314]
lea edi, [esi + edi*2]
push edi
call fcn.00413e10
mov eax, dword [ebp - 0x310]
add esp, 0xc
xor ecx, ecx
mov word [eax + edi], cx
mov dword [esi - 8], ebx
jmp 0x404302
mov esi, dword [ebp - 0x2e4]
mov ecx, dword [ebp - 0x314]
or eax, 0xffffffff
add ecx, 0xfffffff4
lock xadd dword [ecx], eax
dec eax
jne 0x40431e
push ecx
call fcn.00410cbd
add esp, 4
mov eax, dword [ebp - 0x328]
test eax, eax
je 0x40433e
lea ecx, [eax - 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x40433e
push ecx
call fcn.00410cbd
add esp, 4
mov eax, dword [ebp - 0x30c]
test eax, eax
je 0x40435e
lea ecx, [eax - 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x40435e
push ecx
call fcn.00410cbd
add esp, 4
mov eax, dword [ebp - 0x300]
test eax, eax
je 0x40437e
lea ecx, [eax - 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x40437e
push ecx
call fcn.00410cbd
add esp, 4
mov ebx, dword [ebp - 0x2e8]
mov edi, dword [ebp - 0x2e0]
mov byte [ebp - 4], 0xb
call fcn.00412686
cmp eax, dword [ebp - 0x284]
lea ecx, [ebp - 0x288]
push dword [ebp - 0x30c]
setg dl
call fcn.00406100
add esp, 4
jmp 0x4043c0
mov esi, dword [ebp - 0x2e4]
jmp 0x40438a
mov esi, dword [ebp - 0x2e4]
cmp edi, dword [ebp - 0x2f0]
je 0x4043db
lea eax, [esi - 0xc]
lock inc dword [eax]
mov dword [edi], esi
add edi, 4
mov dword [ebp - 0x26c], edi
jmp 0x404406
lea eax, [ebp - 0x2e4]
push eax
push edi
lea ecx, [ebp - 0x270]
call fcn.004071e0
mov eax, dword [ebp - 0x268]
mov edi, dword [ebp - 0x26c]
mov esi, dword [ebp - 0x2e4]
mov dword [ebp - 0x2f0], eax
mov dword [ebp - 0x2e0], edi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x40442a
add esi, 0xfffffff4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
jne 0x40442a
push esi
call fcn.00410cbd
add esp, 4
mov esi, dword [ebp - 0x318]
add ebx, 0x29c
mov dword [ebp - 0x2e8], ebx
lea eax, [ebx - 0xc]
cmp eax, dword [ebp - 0x33c]
jne 0x4040c0
mov eax, dword [ebp - 0x270]
mov ebx, dword [ebp - 0x31c]
mov ecx, dword [ebp - 0x2f0]
mov esi, dword [ebp - 0x2fc]
mov dword [ebx + 8], ecx
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x270], 0
mov dword [ebx], eax
mov dword [ebx + 4], edi
call fcn.00404900
test esi, esi
je 0x4044d7
mov eax, dword [ebp - 0x298]
sub eax, esi
sar eax, 2
imul eax, eax, 0xdb35a717
imul ecx, eax, 0x29c
mov eax, esi
cmp ecx, 0x1000
jb 0x4044cd
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404601
push ecx
push esi
call fcn.00410cc2
add esp, 8
cmp byte [ebp - 0x2e9], 0
jne 0x404502
call fcn.00412686
push dword [ebp - 0x2f4]
cmp eax, dword [ebp - 0x308]
lea ecx, [ebp - 0x2b8]
setg dl
call fcn.00406110
add esp, 4
mov eax, ebx
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.00410a2e
mov esp, ebp
pop ebp
ret
push 0x42cca4
lea ecx, [ebp - 0x294]
call fcn.00404f60
push esi
lea edx, [ebp - 0x294]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2ac]
call fcn.0040c750
add esp, 4
push eax
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 1
call fcn.00401630
push 0x435e84
lea eax, [ebp - 0x2c4]
push eax
call fcn.00413c3e
push 0x42ccb4
lea ecx, [ebp - 0x294]
call fcn.00404f60
push esi
lea edx, [ebp - 0x294]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x27c]
call fcn.0040c750
add esp, 4
push eax
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 4
call fcn.00401630
push 0x435e84
lea eax, [ebp - 0x2ac]
push eax
call fcn.00413c3e
push 0x42ccc8
lea ecx, [ebp - 0x294]
call fcn.00404f60
push esi
lea edx, [ebp - 0x294]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2dc]
call fcn.0040c750
add esp, 4
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x27c]
call fcn.00401630
push 0x435e84
lea eax, [ebp - 0x27c]
push eax
call fcn.00413c3e
call fcn.004159de
int3