Function at 0x49be68
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
mov esi, eax
mov eax, dword [0x4fdf4c]
cmp dword [eax], 2
je 0x49be85
mov byte [ebp - 1], 1
jmp 0x49c08a
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0x20
push 2
push 0x4fbb50
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x49c08a
xor edx, edx
push ebp
push 0x49c083
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
call sub.KERNEL32.DLL_GetVersion
and eax, 0xff
cmp ax, 5
jb 0x49beec
push 0x49c094
push 0x49c0ac
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov ebx, eax
call fcn.004328f8
test al, al
je 0x49bf50
cmp esi, 0x220
jne 0x49bf50
push 0x49c0bc
push 0x49c0ac
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov esi, eax
test esi, esi
je 0x49bf50
call fcn.0049be18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x49bf50
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x13
mov eax, dword [ebp - 0x10]
push eax
call esi
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x49bf47
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
test ebx, ebx
je 0x49bf79
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call ebx
test eax, eax
je 0x49c06c
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x49c06c
xor eax, eax
mov dword [ebp - 0x18], eax
call fcn.0049be18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x49bf96
call fcn.004044b8
jmp 0x49c08a
xor eax, eax
push ebp
push 0x49c065
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x49bfd9
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
je 0x49bfd9
call fcn.004044b8
call fcn.004044b8
jmp 0x49c08a
mov eax, dword [ebp - 0x14]
call fcn.00402754
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x49c00b
call fcn.004044b8
call fcn.004044b8
jmp 0x49c08a
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x49c046
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x49c042
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x49c042
mov byte [ebp - 1], 1
jmp 0x49c046
inc ebx
dec esi
jne 0x49c018
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c06c
mov eax, dword [ebp - 0x18]
call fcn.00402774
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c08a
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret