Function at 0x42b020
Capabilities:
Compare security identifiers
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565fc5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5d60c4]
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
push 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x5e44e8]
xor esi, esi
mov dword [ebp - 0x20], esi
cmp dword [eax + 0xe20], esi
jne 0x42b085
lea eax, [ebp - 0x20]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
jmp 0x42b0c9
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x42b0cf
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42b0cf
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x42b0cf
lea eax, [ebp - 0x20]
push eax
push 0x2000000
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push ecx
push 0
push 0
push 2
push eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0x500
call ebx
test eax, eax
jne 0x42b1a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42b1a7
mov edi, dword [ebp - 0x1c]
lea ecx, [edi + 8]
cmp edi, ecx
sbb eax, eax
test ecx, eax
je 0x42b1a7
cmp edi, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x42b15d
cmp edi, ecx
sbb eax, eax
and eax, ecx
call fcn.005647c0
mov esi, esp
test esi, esi
je 0x42b1a7
mov dword [esi], 0xcccc
jmp 0x42b178
cmp edi, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.00531933
mov esi, eax
add esp, 4
test esi, esi
je 0x42b17b
mov dword [esi], 0xdddd
add esi, 8
mov edi, dword [ebp - 0x1c]
test esi, esi
je 0x42b1a7
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
push 2
push dword [ebp - 0x20]
call ebx
test eax, eax
jne 0x42b1da
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x42b1a7
push esi
call fcn.0052fd09
add esp, 4
xor bl, bl
lea ecx, [ebp - 0x34]
call fcn.0042b2d0
lea ecx, [ebp - 0x40]
call fcn.0042b2d0
mov al, bl
lea esp, [ebp - 0x50]
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.0052b789
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42b193
xor ebx, ebx
xor edi, edi
cmp dword [esi], ebx
jbe 0x42b230
lea ebx, [esi + 4]
nop dword [eax]
push dword [ebp - 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x42b22b
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x42b210
xor ebx, ebx
jmp 0x42b230
mov ebx, 1
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x42b244
push esi
call fcn.0052fd09
add esp, 4
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x42b1a9