Function at 0x449520
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57fc30
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], edx
mov ebx, ecx
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
test ebx, ebx
je 0x44983d
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x44983d
call fcn.00449fe0
mov esi, eax
mov dword [ebp - 0x30], esi
lea edi, [esi + 0xc]
push edi
mov dword [ebp - 0x64], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
mov esi, dword [eax]
cmp eax, esi
je 0x4495c5
mov ebx, dword [esi + 8]
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
je 0x4495b8
push dword [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
test al, al
jne 0x44970e
mov eax, dword [ebp - 0x30]
mov esi, dword [esi]
cmp dword [eax + 4], esi
jne 0x449597
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x4d]
mov dword [ebp - 0x34], 0x64
mov dword [ebp - 0x2c], 0x64
mov dword [ebp - 0x30], 0
call fcn.0041c120
push eax
lea eax, [ebp - 0x30]
push eax
push 0x64
lea ecx, [ebp - 0x4c]
call fcn.00449eb0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x4e]
mov dword [ebp - 0x30], 0
call fcn.0041c120
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
call fcn.00449eb0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x5c]
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x5c], 8
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x4c]
push ebx
push 0
call esi
test eax, eax
jne 0x4496ab
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x34]
sar eax, 1
cmp eax, ecx
jb 0x449671
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
sar eax, 1
cmp eax, dword [ebp - 0x2c]
jae 0x449769
lea eax, [ecx + 1]
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.00439720
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
inc eax
push ecx
push eax
call fcn.00439720
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x4c]
push ebx
push 0
call esi
test eax, eax
je 0x449769
mov ecx, dword [ebp - 0x34]
cmp ecx, 2
jb 0x449769
mov eax, dword [ebp - 0x4c]
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x2c]
mov word [ecx + eax*2], dx
mov esi, dword [ebp - 0x4c]
push esi
call fcn.0041bea0
mov edi, dword [ebp - 0x54]
add esp, 4
mov ecx, edi
push eax
push esi
call fcn.0041bc10
mov esi, dword [ebp - 0x40]
push esi
call fcn.0041bea0
add esp, 4
push eax
push esi
mov esi, dword [ebp - 0x60]
mov ecx, esi
call fcn.0041bc10
push esi
push edi
push ebx
call fcn.00449fe0
mov ecx, eax
call fcn.00449ca0
jmp 0x44979c
mov esi, dword [ebp - 0x54]
lea ecx, [ebx + 0xc]
cmp esi, ecx
je 0x449732
call fcn.0041bb30
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x449727
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.0041bc10
mov esi, dword [ebp - 0x60]
lea ecx, [ebx + 0x24]
cmp esi, ecx
je 0x449756
call fcn.0041bb30
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x44974b
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, esi
push edx
call fcn.0041bc10
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x44983d
mov esi, dword [ebp - 0x54]
mov ecx, ebx
mov edx, esi
call fcn.00449180
lea ecx, [ebp - 0x28]
call fcn.0041bb10
mov byte [ebp - 4], 3
push eax
push esi
push ebx
call fcn.00449fe0
mov ecx, eax
call fcn.00449ca0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0041ba60
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4497ee
mov eax, dword [ebp - 0x38]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
mov eax, ecx
cmp edx, 0x1000
jb 0x4497cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x449859
push edx
push ecx
call fcn.00539070
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x44983d
mov ecx, dword [ebp - 0x44]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x44981e
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44985e
push ecx
push edx
call fcn.00539070
add esp, 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005395e6
mov esp, ebp
pop ebp
ret
call fcn.00555b08
call fcn.00555b08
int3