Function at 0x447f24
Capabilities:
Compare security identifiers

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xb8
mov eax, dword [0x49cff4]
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.00447d27
test al, al
jne 0x447f52
inc al
jmp 0x4481cd
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 0x447fe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
mov ecx, dword [0x49cba4]
cmp ecx, 0x49cba4
je 0x4481a9
test byte [ecx + 0x1c], 1
je 0x4481a9
cmp byte [ecx + 0x19], 2
jb 0x4481a9
push eax
push 0x486c80
push 0xf
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.00443431
add esp, 0x14
jmp 0x4481a9
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 0x448057
call esi
cmp eax, 0x3f0
jne 0x448022
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 0x448057
call esi
mov dword [ebx + 4], eax
mov ecx, dword [0x49cba4]
cmp ecx, 0x49cba4
je 0x4481a8
test byte [ecx + 0x1c], 1
je 0x4481a8
cmp byte [ecx + 0x19], 2
jb 0x4481a8
push eax
push 0x486c80
push 0x10
jmp 0x4480a9
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 0x4480bc
call esi
cmp eax, 0x7a
je 0x4480bc
call esi
mov dword [ebx + 4], eax
mov ecx, dword [0x49cba4]
cmp ecx, 0x49cba4
je 0x4481a8
test byte [ecx + 0x1c], 1
je 0x4481a8
cmp byte [ecx + 0x19], 2
jb 0x4481a8
push eax
push 0x486c80
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.00443431
add esp, 0x14
jmp 0x4481a8
lea ecx, [ebp - 0x30]
call fcn.00446e70
push dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
call fcn.00447079
mov edi, eax
test edi, edi
jne 0x44811a
mov dword [ebx + 4], 0xe
mov eax, dword [0x49cba4]
cmp eax, 0x49cba4
je 0x44819e
test byte [eax + 0x1c], 1
je 0x44819e
cmp byte [eax + 0x19], 2
jb 0x44819e
push 0x486c80
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0043f09c
add esp, 0x10
jmp 0x44819e
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 0x448168
call esi
mov dword [ebx + 4], eax
mov ecx, dword [0x49cba4]
cmp ecx, 0x49cba4
je 0x44819e
test byte [ecx + 0x1c], 1
je 0x44819e
cmp byte [ecx + 0x19], 2
jb 0x44819e
push eax
push 0x486c80
push 0x13
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.00443431
add esp, 0x14
jmp 0x44819e
xor esi, esi
cmp dword [edi], esi
jbe 0x44819e
lea ebx, [edi + 4]
push dword [ebx]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x44818a
inc esi
add ebx, 8
cmp esi, dword [edi]
jb 0x448171
jmp 0x44819e
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.0044706e
xor edi, edi
pop esi
cmp dword [ebp - 0x3c], edi
je 0x4481ba
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x3c], edi
cmp dword [ebp - 0x38], 0xffffffff
pop edi
je 0x4481ca
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.0044ce01
add ebp, 0x74
leave
ret 4