Function at 0x414340
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481103
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4b185c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x19], 1
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004141a0
add esp, 0x14
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x10], 0
jne 0x4143bd
jmp 0x4145ef
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00414290
add esp, 8
cmp dword [ebp - 0x30], 0
jbe 0x41444a
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclA]
test eax, eax
jne 0x41444a
mov dword [ebp - 0x3c], 0
jmp 0x4143fb
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x14]
jae 0x41444a
mov eax, dword [ebp - 0x3c]
shl eax, 5
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x18]
mov eax, dword [ecx + eax]
cmp eax, dword [edx]
jne 0x414448
mov ecx, dword [ebp - 0x3c]
shl ecx, 5
mov edx, dword [ebp - 0x24]
cmp dword [edx + ecx + 0x14], 0
jne 0x414448
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x3c]
shl ecx, 5
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + ecx + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x414448
mov byte [ebp - 0x19], 0
jmp 0x41444a
jmp 0x4143f2
movzx ecx, byte [ebp - 0x19]
test ecx, ecx
je 0x4144d1
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
test eax, eax
je 0x414471
jmp 0x4145b7
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x414489
jmp 0x4145b7
push 1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x41449e
jmp 0x4145b7
push 0
mov ecx, dword [ebp - 0x18]
push ecx
push 1
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x4144b9
jmp 0x4145b7
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004142d0
add esp, 0x10
movzx ecx, byte [ebp + 0x20]
test ecx, ecx
je 0x4145b7
lea ecx, [ebp - 0x50]
call fcn.0045544a
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00413810
mov byte [ebp - 4], 1
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x58]
call fcn.00413c70
lea ecx, [ebp - 0x58]
call fcn.00413930
mov dword [ebp - 0x5c], 0
jmp 0x41452a
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x50]
call fcn.0043fec0
cmp dword [ebp - 0x5c], eax
jge 0x41459c
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x60]
call fcn.0040e3e0
mov byte [ebp - 4], 2
push 0x48d2c0
lea ecx, [ebp - 0x60]
call fcn.00411310
mov edx, dword [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x50]
call fcn.0040e330
push eax
lea ecx, [ebp - 0x60]
call fcn.00414600
movzx eax, byte [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00414340
add esp, 0x1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0040e4c0
jmp 0x414521
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00413850
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00455806
cmp dword [ebp - 0x38], 0
je 0x4145cf
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
push edx
call fcn.004553b4
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x4145df
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x24], 0
je 0x4145ef
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret