Function at 0x485ab0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x659780]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 1
mov eax, dword [ebp + 8]
push eax
call fcn.0045a8f0
add esp, 4
mov dword [ebp - 0x34], eax
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00535430
add esp, 8
test eax, eax
je 0x485b24
mov eax, dword [ebp - 0x20]
jmp 0x485e4c
push 0xffffffffffffffff
mov edx, dword [ebp - 0x34]
push edx
call fcn.004854e0
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x485b43
mov eax, dword [ebp - 0x20]
jmp 0x485e4c
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
cmp dword [ebp - 0x24], 0
jne 0x485b9d
push 0
lea edx, [ebp - 0x10]
push edx
push 0
call fcn.004843e0
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call fcn.00427ac0
add esp, 4
push eax
push 0x5b3124
call fcn.0041dcf0
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x485e1d
mov edx, dword [ebp - 0x24]
push edx
call fcn.0051f5d0
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x485bc7
push str.add_remove_write_acl
call fcn.00402660
add esp, 4
mov dword [ebp - 0x20], eax
jmp 0x485e1d
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
test eax, eax
jne 0x485c1c
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
call fcn.004843e0
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call fcn.00427ac0
add esp, 4
push eax
push str._GetFileSecurity:__s_
call fcn.0041dcf0
add esp, 8
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x485e1d
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x485c6f
push 0
lea edx, [ebp - 0x10]
push edx
push 0
call fcn.004843e0
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call fcn.00427ac0
add esp, 4
push eax
push str._GetSecurityDescriptorDacl:__s_
call fcn.0041dcf0
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x485e1d
cmp dword [ebp - 0x44], 0
je 0x485c7b
cmp dword [ebp - 0x28], 0
jne 0x485c80
jmp 0x485e1d
lea edx, [ebp - 0x40]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x485cdd
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
call fcn.004843e0
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call fcn.00427ac0
add esp, 4
push eax
push str._AllocateAndInitializeSid:__s_
call fcn.0041dcf0
add esp, 8
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x485e1d
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0
jmp 0x485cf6
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x28]
movzx eax, word [edx + 4]
cmp dword [ebp - 0x2c], eax
jge 0x485d47
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x485d45
mov ecx, dword [ebp - 0x38]
movzx edx, byte [ecx]
test edx, edx
jne 0x485d45
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 8
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x485d45
jmp 0x485d47
jmp 0x485ced
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx + 4]
cmp dword [ebp - 0x2c], edx
jge 0x485e13
mov dword [ebp - 0x30], 0
cmp dword [ebp + 0xc], 0
je 0x485d97
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
and ecx, 6
cmp ecx, 6
je 0x485d95
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
mov dword [edx], ecx
mov dword [ebp - 0x30], 1
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
or eax, 0x120116
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], eax
jmp 0x485da9
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [edx + 4], ecx
mov dword [ebp - 0x30], 1
cmp dword [ebp - 0x30], 0
je 0x485e13
mov edx, dword [ebp - 0x1c]
push edx
push 4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x485e13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
cmp dword [ebp + 0xc], 0
je 0x485ddd
cmp dword [ebp - 0x3c], 5
je 0x485e13
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.004843e0
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call fcn.00427ac0
add esp, 4
push eax
push str._SetFileSecurity:__s_
call fcn.0041dcf0
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x18], 0
je 0x485e2f
mov eax, dword [ebp - 0x18]
push eax
call fcn.0051f5a0
add esp, 4
xor ecx, ecx
jne 0x485e1d
cmp dword [ebp - 0x1c], 0
je 0x485e45
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0051f5a0
add esp, 4
xor eax, eax
jne 0x485e33
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050d210
mov esp, ebp
pop ebp
ret