Function at 0x494410
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0xffffffff
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 8]
dec ebx
cmp ebx, 0
jl 0x49446e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, ebx
call fcn.0042d01c
mov eax, dword [eax + 4]
push eax
push edi
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x494468
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, ebx
call fcn.0042d01c
mov esi, eax
jmp 0x49446e
dec ebx
cmp ebx, 0xffffffff
jne 0x494439
test esi, esi
je 0x4944ed
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0xc]
call fcn.0040510c
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 8]
call fcn.0040510c
mov eax, dword [esi + 0x10]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 9], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 8]
dec edx
cmp edx, dword [ebp - 0x18]
jle 0x49463b
mov byte [eax + 0x10], 0
xor edx, edx
push ebp
push 0x4944e6
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 0x18]
call fcn.0041b414
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.0042cfd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49463b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov byte [eax + 0x10], 1
ret
mov dword [ebp - 0x10], pe_nt_image_headers32
mov dword [ebp - 0x14], pe_nt_image_headers32
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00405704
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00405704
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
call fcn.00405578
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
call fcn.00405578
push eax
push edi
push 0x494648
call sub.advapi32.dll_LookupAccountSidA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4945ab
mov dword [ebp - 0x10], pe_nt_image_headers32
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00405704
mov dword [ebp - 0x14], pe_nt_image_headers32
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00405704
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
call fcn.00405578
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
call fcn.00405578
push eax
push edi
mov eax, dword [ebp - 8]
call fcn.00405578
push eax
call sub.advapi32.dll_LookupAccountSidA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x494622
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
call fcn.00405578
mov edx, eax
mov eax, dword [ebp + 0xc]
call fcn.004052b0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
call fcn.00405578
mov edx, eax
mov eax, dword [ebp + 0x10]
call fcn.004052b0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
mov ecx, edi
mov dl, 1
mov eax, dword [0x492f40]
call fcn.0049464c
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.0042cfd8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 8]
jle 0x49463b
xor edx, edx
call fcn.0041b414
jmp 0x49463b
mov eax, dword [ebp + 0xc]
call fcn.004050b8
mov eax, dword [ebp + 0x10]
call fcn.004050b8
mov eax, dword [ebp + 8]
mov dword [eax], 7
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc