Function at 0x409490
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
lea edi, [ebp - 0x68]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
mov eax, dword [ebp + 8]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp esi, esp
call fcn.00415080
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4094d5
xor al, al
jmp 0x40975e
mov esi, esp
lea eax, [ebp - 0x14]
push eax
push 8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp esi, esp
call fcn.00415080
test eax, eax
jne 0x40950c
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
xor al, al
jmp 0x40975e
mov dword [ebp - 0x20], 0
mov esi, esp
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp esi, esp
call fcn.00415080
test eax, eax
jne 0x409575
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00415080
cmp eax, 0x7a
je 0x409575
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
xor al, al
jmp 0x40975e
mov esi, esp
mov eax, dword [ebp - 0x2c]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp esi, esp
call fcn.00415080
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4095c0
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
xor al, al
jmp 0x40975e
mov esi, esp
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp esi, esp
call fcn.00415080
test eax, eax
jne 0x409625
mov esi, esp
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, esp
call fcn.00415080
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
xor al, al
jmp 0x40975e
mov byte [ebp - 0x48], 0
mov byte [ebp - 0x47], 0
mov byte [ebp - 0x46], 0
mov byte [ebp - 0x45], 0
mov byte [ebp - 0x44], 0
mov byte [ebp - 0x43], 5
mov esi, esp
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp esi, esp
call fcn.00415080
test eax, eax
jne 0x4096ad
mov esi, esp
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, esp
call fcn.00415080
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
xor al, al
jmp 0x40975e
mov dword [ebp - 0x60], 0
jmp 0x4096bf
mov eax, dword [ebp - 0x60]
add eax, 1
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [eax]
jae 0x4096f6
mov esi, esp
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + ecx*8 + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
cmp esi, esp
call fcn.00415080
test eax, eax
je 0x4096f4
mov dword [ebp - 0x20], 1
jmp 0x4096f6
jmp 0x4096b6
mov esi, esp
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp esi, esp
call fcn.00415080
mov esi, esp
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, esp
call fcn.00415080
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
cmp dword [ebp - 0x20], 0
je 0x409751
mov byte [ebp - 0x125], 1
jmp 0x409758
mov byte [ebp - 0x125], 0
mov al, byte [ebp - 0x125]
push edx
mov ecx, ebp
push eax
lea edx, [0x409784]
call fcn.00415020
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x128
cmp ebp, esp
call fcn.00415080
mov esp, ebp
pop ebp
ret