Function at 0x1004df70
Capabilities:
Enumerate processes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
mov esi, ecx
push 1
lea eax, [esi + 0xc]
mov dword [esi + 0x20], 0
push eax
mov dword [esi], 0xc
mov dword [esi + 8], 0
mov dword [esi + 4], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
cmp eax, 1
jne 0x1004e24f
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.1004e6c0
add esp, 8
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
push str.SoftwareValveSteamActiveProcess
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1004e01b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x1024d748
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
mov ebx, dword [ebp - 0x10]
push edi
test ebx, ebx
jne 0x1004e088
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x1004e088
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1004e081
mov edi, edi
lea eax, [ebp - 0x120]
push eax
push str.steam.exe
call fcn.100cdee0
add esp, 8
test eax, eax
je 0x1004e07b
lea eax, [ebp - 0x144]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1004e050
jmp 0x1004e081
mov ebx, dword [ebp - 0x13c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1004e0b0
lea eax, [ebp - 8]
push eax
push edi
call fcn.1004e6c0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44
mov dword [ebp - 0x18], 0x44
call fcn.100c192b
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov eax, dword [ebp - 4]
mov edi, 0x2c
mov ecx, dword [sym.imp.ADVAPI32.dll_GetLengthSid]
test eax, eax
je 0x1004e0f0
push eax
call ecx
mov ecx, dword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea edi, [eax + 0x2c]
test ebx, ebx
je 0x1004e0f9
push ebx
call ecx
add edi, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x1004e109
push eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add edi, eax
call fcn.100ad570
push 1
push 0
push 0xa8
mov ecx, dword [eax]
push str.C:_buildworker_steam_rel_client_win32_build_srcoverlaycommonipcwin32.cpp
push edi
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
mov dword [esi + 0x20], eax
test eax, eax
je 0x1004e246
push edi
push 0
push eax
call fcn.100c3490
add esp, 0xc
push 2
push edi
push dword [esi + 0x20]
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x1004e17e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeAcl_failed._GetLastError_returned:__d_n
call fcn.100ae180
add esp, 8
call fcn.100ad570
push 0
push dword [esi + 0x20]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov dword [esi + 0x20], 0
jmp 0x1004e22d
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x1004e1b8
push eax
push 0x10000000
push 2
push dword [esi + 0x20]
call ecx
test eax, eax
jne 0x1004e1b2
call edi
push eax
push str.AddAccessAllowedAce_failed_for_the_process_owner._GetLastError_returned:__d_n
call fcn.100ae180
add esp, 8
mov ecx, dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test ebx, ebx
je 0x1004e1dd
push ebx
push 0x10000000
push 2
push dword [esi + 0x20]
call ecx
test eax, eax
jne 0x1004e1dd
call edi
push eax
push str.AddAccessAllowedAce_failed_for_administrator._GetLastError_returned:__d_n
call fcn.100ae180
add esp, 8
mov eax, dword [ebp - 8]
test eax, eax
je 0x1004e209
push eax
push 0x10000000
push 2
push dword [esi + 0x20]
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x1004e209
call edi
push eax
push str.AddAccessAllowedAce_failed_for_steam._GetLastError_returned:__d_n
call fcn.100ae180
add esp, 8
push 0
push dword [esi + 0x20]
push 1
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x1004e22d
call edi
push eax
push str.SetSecurityDescriptorDacl_failed._GetLastError_returned:__d_n
call fcn.100ae180
add esp, 8
push dword [ebp - 4]
call fcn.100c1934
push ebx
call fcn.100c1934
push dword [ebp - 8]
call fcn.100c1934
add esp, 0xc
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeSecurityDescriptor_failed._GetLastError_returned:__d_n
call fcn.100ae180
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret