Function at 0x10020a30
Capabilities:
Compare security identifiers
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xa0
push ebx
push esi
mov esi, dword [esp + 0xb0]
xor ebx, ebx
cmp esi, ebx
push edi
jne 0x10020a58
mov esi, dword [esp + 0xbc]
cmp esi, ebx
jne 0x10020a58
mov esi, dword [esp + 0xb0]
xor edi, edi
cmp esi, ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
je 0x10020ec9
mov eax, dword [esp + 0xc0]
push ebp
cmp eax, ebx
je 0x10020b7f
lea eax, [esp + 0x24]
mov ebp, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea ecx, [esp + 0x58]
push 2
push ecx
mov byte [esp + 0x60], 0
mov byte [esp + 0x61], 0
mov byte [esp + 0x62], 0
mov byte [esp + 0x63], 0
mov byte [esp + 0x64], 0
mov byte [esp + 0x65], 5
call ebp
test eax, eax
je 0x10020e8a
lea edx, [esp + 0x28]
lea eax, [esp + 0x2c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x3000
push 1
push eax
mov byte [esp + 0x58], 0
mov byte [esp + 0x59], 0
mov byte [esp + 0x5a], 0
mov byte [esp + 0x5b], 0
mov byte [esp + 0x5c], 0
mov byte [esp + 0x5d], 0x10
call ebp
test eax, eax
je 0x10020e8a
push 0x14
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x10020e8a
mov dword [eax], 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 8], 0xf
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov dword [edx + 4], eax
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x10], 0x60
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov dword [edx + 0xc], eax
jmp 0x10020ba3
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 2
push eax
call fcn.1001f990
add esp, 0x10
test eax, eax
je 0x10020e8a
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x50]
push ecx
push edx
push 3
push eax
call fcn.1001f990
add esp, 0x10
test eax, eax
je 0x10020e8a
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push edx
push 0xa
push esi
call fcn.1001f990
add esp, 0x10
test eax, eax
je 0x10020e8a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x3c]
push eax
push ecx
push 1
push esi
call fcn.1001f990
add esp, 0x10
test eax, eax
je 0x10020e8a
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 2
push esi
call fcn.1001f990
add esp, 0x10
test eax, eax
je 0x10020e8a
lea ecx, [esp + 0x14]
lea edx, [esp + 0x48]
push ecx
push edx
push 4
push esi
call fcn.1001f990
add esp, 0x10
test eax, eax
je 0x10020e8a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x4c]
push eax
push ecx
push 5
push esi
call fcn.1001f990
add esp, 0x10
test eax, eax
je 0x10020e8a
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
push edx
push eax
push 6
push esi
call fcn.1001f990
add esp, 0x10
test eax, eax
je 0x10020e8a
lea ecx, [esp + 0x14]
lea edx, [esp + 0x40]
push ecx
push edx
push 7
push esi
call fcn.1001f990
add esp, 0x10
test eax, eax
je 0x10020e8a
mov eax, dword [esp + 0x1c]
push eax
call fcn.10020fb0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10020fb0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov eax, dword [edx]
mov ebp, dword [ecx]
add eax, ebp
lea edx, [eax*8 + 0xc]
push edx
call sub.MFC42u.DLL_operatornew
mov ebp, eax
add esp, 0xc
cmp ebp, ebx
je 0x10020e8a
mov esi, dword [esp + 0x1c]
mov edi, ebp
mov eax, dword [esi]
lea ecx, [eax*8 + 0xc]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
xor esi, esi
cmp dword [ecx], ebx
jbe 0x10020d6a
mov eax, dword [ecx + esi*8 + 8]
test al, 0x28
je 0x10020d63
cmp dword [ebp], 0
jbe 0x10020d40
lea edi, [ebp + 8]
test al, 8
je 0x10020d25
mov eax, dword [ecx + esi*8 + 4]
mov ecx, dword [edi - 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x10020e9f
mov eax, dword [ecx + esi*8 + 8]
test al, 0x20
je 0x10020d35
cmp dword [edi], eax
je 0x10020e9f
mov edx, dword [ebp]
inc ebx
add edi, 8
cmp ebx, edx
jb 0x10020d06
mov eax, dword [ebp]
lea edx, [ecx + esi*8 + 4]
mov ecx, dword [ecx + esi*8 + 4]
mov dword [ebp + eax*8 + 4], ecx
mov edx, dword [edx + 4]
mov dword [ebp + eax*8 + 8], edx
mov eax, dword [ebp]
inc eax
mov dword [ebp], eax
mov ecx, dword [esp + 0x10]
xor ebx, ebx
mov eax, dword [ecx]
inc esi
cmp esi, eax
jb 0x10020cf5
call fcn.10020940
push eax
call fcn.10122540
mov edx, dword [esp + 0xbc]
add esp, 4
cmp edx, ebx
mov dword [esp + 0x54], eax
je 0x10020de2
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x7c]
mov dword [esp + 0x78], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x78]
push eax
push 0x38
push ecx
push 0xa
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, 2
lea edi, [esp + 0x80]
lea esi, [esp + 0x80]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x10020de2
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x80]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x84]
mov dword [eax + 0xc], edx
xor ecx, ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x64], ecx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x68], ecx
push edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
push ebx
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push ebp
push eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x18
lea ecx, [eax + 0x10]
add eax, 8
push ecx
push eax
push 1
push edx
lea eax, [esp + 0x44]
push 0xf01ff
push eax
call fcn.1001fb60
mov eax, dword [esp + 0x4c]
add esp, 0x34
cmp eax, ebx
je 0x10020eb7
mov edx, dword [esp + 0xb4]
lea ecx, [esp + 0x5c]
push ecx
push edx
mov dword [esp + 0x64], ebx
call fcn.10122ab0
add esp, 8
test eax, eax
je 0x10020e77
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.10122a80
add esp, 8
mov edx, dword [esp + 0x18]
push edx
call fcn.10122940
add esp, 4
mov dword [esp + 0x44], eax
mov edi, eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10020ebb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebx
jmp 0x10020ebb
lea edx, [ecx + esi*8 + 4]
mov eax, dword [ecx + esi*8 + 4]
mov dword [ebp + ebx*8 + 4], eax
mov ecx, dword [edx + 4]
mov dword [ebp + ebx*8 + 8], ecx
jmp 0x10020d5d
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x54]
pop ebp
cmp eax, ebx
je 0x10020ec9
call fcn.10122840
mov eax, dword [esp + 0xc]
push eax
call fcn.1001f980
mov ecx, dword [esp + 0x50]
push ecx
call fcn.1001f980
mov edx, dword [esp + 0x24]
push edx
call fcn.1001f980
mov eax, dword [esp + 0x44]
push eax
call fcn.1001f980
mov ecx, dword [esp + 0x28]
push ecx
call fcn.1001f980
mov edx, dword [esp + 0x58]
push edx
call fcn.1001f980
mov eax, dword [esp + 0x60]
push eax
call fcn.1001f980
mov ecx, dword [esp + 0x70]
push ecx
call fcn.1001f980
mov edx, dword [esp + 0x5c]
push edx
call fcn.1001f980
push ebx
call fcn.1001f980
mov eax, dword [esp + 0x4c]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
add esp, 0x28
cmp eax, ebx
je 0x10020f41
push eax
call esi
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x10020f50
push eax
call esi
mov dword [esp + 0x20], ebx
cmp dword [0x10282758], ebx
je 0x10020f9a
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xb8]
push eax
mov eax, dword [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0xb8]
push edx
push eax
push ecx
push edi
push str.CAdminTokenMgr::CreateAdminToken_____hAdminToken___08x___hToken___08x__hLinkedToken___08x__hSystemToken___08x__hQueryToken___08x___OnlyAdminGroup___d_
push str.AdminToken
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x28
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xa0
ret