Function at 0x42c5f9
Capabilities:
Compare security identifiers

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xb8
mov eax, dword [0x4960a8]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
mov ebx, ecx
mov dword [ebp - 0x44], eax
call fcn.0042c1d2
test al, al
jne 0x42c627
inc al
jmp 0x42c8a2
push edi
or dword [ebp - 0x38], 0xffffffff
xor edi, edi
lea eax, [ebp - 0x3c]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
push 2
lea eax, [ebp + 0x68]
push eax
mov byte [ebp - 0x31], 0
mov dword [ebp - 0x3c], edi
mov byte [ebp + 0x68], 0
mov byte [ebp + 0x69], 0
mov byte [ebp + 0x6a], 0
mov byte [ebp + 0x6b], 0
mov byte [ebp + 0x6c], 0
mov byte [ebp + 0x6d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x42c6b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
mov ecx, dword [0x497644]
cmp ecx, 0x497644
je 0x42c87e
test byte [ecx + 0x1c], 1
je 0x42c87e
cmp byte [ecx + 0x19], 2
jb 0x42c87e
push eax
push 0x472618
push 0xf
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0042a72b
add esp, 0x14
jmp 0x42c87e
push esi
lea eax, [ebp - 0x38]
push eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42c72c
call esi
cmp eax, 0x3f0
jne 0x42c6f7
lea eax, [ebp - 0x38]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x42c72c
call esi
mov dword [ebx + 4], eax
mov ecx, dword [0x497644]
cmp ecx, 0x497644
je 0x42c87d
test byte [ecx + 0x1c], 1
je 0x42c87d
cmp byte [ecx + 0x19], 2
jb 0x42c87d
push eax
push 0x472618
push 0x10
jmp 0x42c77e
lea eax, [ebp - 0x40]
push eax
push edi
push edi
push 2
push dword [ebp - 0x38]
mov dword [ebp - 0x40], edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x42c791
call esi
cmp eax, 0x7a
je 0x42c791
call esi
mov dword [ebx + 4], eax
mov ecx, dword [0x497644]
cmp ecx, 0x497644
je 0x42c87d
test byte [ecx + 0x1c], 1
je 0x42c87d
cmp byte [ecx + 0x19], 2
jb 0x42c87d
push eax
push 0x472618
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0042a72b
add esp, 0x14
jmp 0x42c87d
lea ecx, [ebp - 0x30]
call fcn.0042f538
push dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
call fcn.0042f656
mov edi, eax
test edi, edi
jne 0x42c7ef
mov dword [ebx + 4], 0xe
mov eax, dword [0x497644]
cmp eax, 0x497644
je 0x42c873
test byte [eax + 0x1c], 1
je 0x42c873
cmp byte [eax + 0x19], 2
jb 0x42c873
push 0x472618
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0040d1fe
add esp, 0x10
jmp 0x42c873
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
push edi
push 2
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x42c83d
call esi
mov dword [ebx + 4], eax
mov ecx, dword [0x497644]
cmp ecx, 0x497644
je 0x42c873
test byte [ecx + 0x1c], 1
je 0x42c873
cmp byte [ecx + 0x19], 2
jb 0x42c873
push eax
push 0x472618
push 0x13
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0042a72b
add esp, 0x14
jmp 0x42c873
xor esi, esi
cmp dword [edi], esi
jbe 0x42c873
lea ebx, [edi + 4]
push dword [ebx]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x42c85f
inc esi
add ebx, 8
cmp esi, dword [edi]
jb 0x42c846
jmp 0x42c873
mov eax, dword [edi + esi*8 + 8]
mov ecx, dword [ebp - 0x44]
shr eax, 2
not al
and al, 1
mov byte [ecx], al
mov byte [ebp - 0x31], 1
lea ecx, [ebp - 0x30]
call fcn.0042f64b
xor edi, edi
pop esi
cmp dword [ebp - 0x3c], edi
je 0x42c88f
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x3c], edi
cmp dword [ebp - 0x38], 0xffffffff
pop edi
je 0x42c89f
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop ebx
call fcn.00459871
add ebp, 0x74
leave
ret 4