Function at 0x42e1f4
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x94], ebx
mov ecx, ebx
mov byte [ebp - 0x90], bl
mov dword [ebp - 0x8c], 2
mov dword [ebp - 0x98], 0x514608
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
jb 0x42e252
mov eax, dword [edi]
jmp 0x42e254
mov eax, edi
test eax, eax
je 0x42e2b3
lea ecx, [ebp - 0x74]
push ecx
push ebx
lea ecx, [ebp - 0x70]
push ecx
push ebx
push ebx
push 4
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x42e27e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42e435
mov esi, dword [ebp - 0x70]
test esi, esi
je 0x42e29c
lea ecx, [ebp - 0x98]
call fcn.0042d380
push esi
lea ecx, [ebp - 0x98]
call fcn.0042d434
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x70], ebx
mov ecx, dword [ebp - 0x84]
setne al
jmp 0x42e2b5
mov al, bl
test al, al
je 0x42e435
mov esi, ebx
mov dword [ebp - 0x74], esi
test ecx, ecx
je 0x42e3d4
lea ecx, [ebp - 0x68]
call fcn.0042ce50
push esi
lea ecx, [ebp - 0x88]
call fcn.004300bb
mov ecx, dword [eax]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], ecx
lea esi, [ecx + 4]
cmp eax, esi
je 0x42e342
mov eax, dword [esi + 0x4c]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x50]
push eax
call fcn.0042fd50
lea eax, [esi + 0x54]
push eax
lea ecx, [ebp - 0x14]
call fcn.0042fd50
lea eax, [esi + 0x58]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042fd50
mov al, byte [esi + 0x48]
mov byte [ebp - 0x20], al
test al, al
je 0x42e33f
add esi, 4
push esi
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push esi
lea ecx, [ebp - 0x64]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x42e453
mov ecx, dword [ebp - 0x70]
mov eax, dword [ecx]
mov esi, dword [ecx + 0x64]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x70]
mov byte [ebp - 0x69], al
mov eax, dword [ebp - 0x78]
mov cl, byte [ecx + 0x68]
mov byte [ebp - 0x6a], cl
add eax, 4
je 0x42e39a
cmp byte [ebp - 0x20], bl
je 0x42e39a
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x42e39a
mov ecx, dword [ebp - 0x78]
call fcn.0042d09f
test al, al
je 0x42e39a
mov eax, dword [ebp - 0x78]
add eax, 4
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x42e39c
mov al, bl
test al, al
je 0x42e3b9
cmp byte [ebp - 0x69], bl
jne 0x42e3b9
mov al, byte [ebp - 0x6a]
and al, 3
cmp al, 3
jne 0x42e3b9
mov eax, 0x1200c9
and esi, eax
cmp esi, eax
je 0x42e424
lea ecx, [ebp - 0x68]
call fcn.0042cf82
mov esi, dword [ebp - 0x74]
inc esi
mov dword [ebp - 0x74], esi
cmp esi, dword [ebp - 0x84]
jb 0x42e2ca
push ecx
push ecx
push dword [ebp - 0x78]
lea ecx, [ebp - 0x98]
call fcn.0042d2f6
test al, al
je 0x42e431
cmp dword [edi + 0x14], 8
jb 0x42e3f0
mov edi, dword [edi]
test edi, edi
je 0x42e431
push ebx
lea ecx, [ebp - 0x98]
call fcn.0042d139
push eax
push ebx
push ebx
push 4
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete al
test al, al
je 0x42e431
mov bl, 1
jmp 0x42e435
lea ecx, [ebp - 0x68]
call fcn.0042cf82
xor eax, eax
inc eax
jmp 0x42e433
mov al, bl
mov bl, al
lea ecx, [ebp - 0x98]
call fcn.0042d2bf
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
call fcn.0042cb22
push eax
mov byte [ebp - 0x20], bl
call fcn.0042ca68
int3