Function at 0x2103f8a9
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
cmp dword [0x2107bdb8], 0
jne 0x2103f8e0
cmp dword [ebp + 8], 0
je 0x2103f8c7
mov eax, dword [ebp + 8]
mov dword [eax], 1
cmp dword [ebp + 0xc], 0
je 0x2103f8d6
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x3000
mov eax, 1
jmp 0x2103fb00
cmp dword [ebp + 8], 0
je 0x2103f8ef
mov edx, dword [ebp + 8]
mov dword [edx], 0
cmp dword [ebp + 0xc], 0
je 0x2103f8fe
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 5
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0xffffffff
push 8
call fcn.21044f16
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x2103f94e
jmp 0x2103fafe
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 2
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x2103f972
jmp 0x2103fafc
mov eax, dword [ebp - 4]
push eax
call fcn.21058728
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x2103f992
jmp 0x2103fafa
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 2
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x2103f9b3
jmp 0x2103faf8
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x2103f9df
jmp 0x2103faf6
cmp dword [0x2107bdb8], 5
jl 0x2103f9fc
cmp dword [ebp + 0xc], 0
je 0x2103f9fc
mov edx, dword [ebp - 0x24]
push edx
call fcn.2103f607
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x2103fa12
mov edx, dword [ebp + 8]
mov dword [edx], 0
mov dword [ebp - 0x20], 0
jmp 0x2103fa24
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ecx]
jae 0x2103faab
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*8 + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x2103fa49
jmp 0x2103fa1b
mov dword [ebp - 0xc], 1
cmp dword [ebp + 8], 0
je 0x2103fa5f
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
cmp dword [0x2107bdb8], 5
jl 0x2103faab
mov dword [ebp - 4], 4
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x28]
push ecx
push 0x14
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x2103fa8d
jmp 0x2103faf4
cmp dword [ebp - 0x28], 0
jne 0x2103faab
cmp dword [ebp + 8], 0
jne 0x2103faa2
mov dword [ebp - 0xc], 0
jmp 0x2103faab
mov eax, dword [ebp + 8]
mov dword [eax], 0
cmp dword [ebp - 0x24], 0
je 0x2103fabb
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x2103facb
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.21058751
add esp, 4
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.21058751
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x2103fb00
jmp 0x2103faab
jmp 0x2103faab
jmp 0x2103faab
jmp 0x2103faab
jmp 0x2103faab
jmp 0x2103faab
mov esp, ebp
pop ebp
ret 8