Function at 0x401b20
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x30
mov eax, dword [0x415040]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ebp, ebp
push eax
push ebp
push 0x1f0fff
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0x32
xor esi, esi
mov byte [esp + 0x3c], 0
mov byte [esp + 0x3d], 0
mov byte [esp + 0x3e], 0
mov byte [esp + 0x3f], 0
mov byte [esp + 0x40], 0
mov byte [esp + 0x41], 5
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ebp
mov dword [edi], ebp
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x14]
push ecx
push 8
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401bad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
jmp 0x401cf7
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edx
push ebp
call ebx
mov esi, eax
cmp esi, ebp
jne 0x401bd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x401cf6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push 2
push edx
call edi
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x401c4b
call ebp
cmp eax, 0x7a
je 0x401c07
call ebp
mov dword [esp + 0x10], eax
jmp 0x401cf6
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
jne 0x401c28
call ebp
mov dword [esp + 0x10], eax
jmp 0x401cf6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
push 2
push eax
call edi
test eax, eax
jne 0x401c4b
call ebp
mov dword [esp + 0x10], eax
jmp 0x401cf6
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 4
push 1
lea edx, [esp + 0x5c]
push edx
call edi
test eax, eax
jne 0x401c7b
call ebp
mov dword [esp + 0x10], eax
jmp 0x401cf6
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 6
push 1
lea ecx, [esp + 0x5c]
push ecx
call edi
test eax, eax
jne 0x401ca5
call ebp
mov dword [esp + 0x10], eax
jmp 0x401cf6
xor ebp, ebp
cmp dword [esi], ebp
jbe 0x401ce7
lea edi, [esi + 4]
mov edi, edi
mov eax, dword [esp + 0x24]
mov ebx, dword [edi]
mov edx, dword [edi + 4]
push eax
push ebx
mov dword [esp + 0x38], edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401d50
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401d5c
add ebp, 1
add edi, 8
cmp ebp, dword [esi]
jb 0x401cb0
mov eax, dword [esp + 0x20]
cmp dword [eax], 0
jne 0x401cf6
mov dword [eax], 1
pop ebx
mov eax, dword [esp + 0x18]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_FreeSid]
je 0x401d08
push eax
call edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x401d13
push eax
call edi
test esi, esi
je 0x401d1e
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401d2f
push eax
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x401d3a
push eax
call esi
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00402c84
add esp, 0x30
ret
mov edx, dword [esp + 0x20]
mov dword [edx], 0
jmp 0x401cf6
mov eax, dword [esp + 0x20]
jmp 0x401cf0