Function at 0x47d190
Capabilities:
Compare security identifiers
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ec70
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4c9144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x24], esi
push 0xc
mov dword [ebp - 0x2c], esi
call fcn.004881ae
add esp, 4
cmp eax, esi
je 0x47d3a2
mov edi, eax
mov dword [eax], eax
mov dword [ebp - 0x30], edi
mov dword [eax + 4], eax
mov dword [ebp - 4], esi
push 0x44
mov dword [ebp - 0x20], 0x44
call fcn.00487e0b
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x47d222
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0x16
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x47d222
push esi
call fcn.00488a62
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x14]
add esp, 4
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
xor eax, eax
push 1
push eax
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
je 0x47d2be
cmp dword [ebp - 0x10], 0
je 0x47d2be
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
jbe 0x47d2b4
xor esi, esi
mov eax, dword [ebp - 0x10]
mov eax, dword [esi + eax + 8]
test eax, eax
je 0x47d29f
push eax
push str.msnmsgr.exe
call fcn.00489d2d
add esp, 8
test eax, eax
jne 0x47d29f
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + ecx + 0xc]
test eax, eax
je 0x47d290
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x47d290
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x47d29f
mov edx, dword [ebp - 0x10]
lea eax, [esi + edx + 4]
lea edi, [ebp - 0x30]
call fcn.00473c40
mov eax, dword [ebp - 0x1c]
inc eax
add esi, 0x10
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x18]
jb 0x47d255
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test esi, esi
je 0x47d2cb
push esi
call fcn.00488a62
add esp, 4
push 0xc
mov dword [ebx + 4], 0
call fcn.004881ae
xor edx, edx
add esp, 4
cmp eax, edx
je 0x47d37e
mov dword [ebx], eax
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [eax + 4], eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
cmp ebx, ecx
je 0x47d340
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebx]
mov dword [ecx + 4], ecx
mov dword [ebx + 4], edx
cmp eax, dword [ebx]
je 0x47d321
lea esp, [esp]
mov esi, dword [eax]
push eax
call fcn.00487ef3
add esp, 4
mov eax, esi
cmp esi, dword [ebx]
jne 0x47d310
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x47d340
mov eax, dword [edi]
mov ecx, dword [ebx]
mov ecx, dword [ecx]
push edi
push eax
mov eax, edx
push ecx
lea esi, [ebp - 0x30]
mov edx, ebx
call fcn.0047d660
mov edi, dword [ebp - 0x30]
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x47d361
jmp 0x47d350
mov esi, dword [eax]
push eax
call fcn.00487ef3
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x47d350
push edi
call fcn.00487ef3
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 esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x3c]
call fcn.004894ce
push 0x4bc120
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], vtable.std::bad_alloc.0
call fcn.0048ba70
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x24], esi
call fcn.004894ce
push 0x4bc120
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], vtable.std::bad_alloc.0
call fcn.0048ba70
int3