Function at 0x4ca260
Capabilities:
Compare security identifiers
Get user security identifier

Disassembly:
sub esp, 0x34
mov eax, dword [0x5938b4]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
mov esi, dword [esp + 0x48]
cmp dword [ebx + 0x10], 0
push edi
mov edi, ecx
je 0x4ca4e8
cmp dword [esi + 0x10], 0
je 0x4ca4e8
mov byte [esp + 0x10], 0
call fcn.004ca8f0
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
jb 0x4ca2b4
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push dword [edi + 0xc]
lea ecx, [esp + 0x28]
push ecx
push dword [edi + 8]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4ca4e8
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x7a
jne 0x4ca4e8
push dword [esp + 0x1c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 8], eax
test eax, eax
je 0x4ca4e8
mov eax, dword [esp + 0x18]
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 0xc], eax
test eax, eax
je 0x4ca4e8
cmp dword [esi + 0x14], 8
jb 0x4ca332
mov esi, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
push dword [edi + 8]
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x4ca4e8
cmp dword [ebx + 0x14], 8
mov eax, ebx
mov dword [esp + 0x14], 0
jb 0x4ca368
mov eax, dword [ebx]
mov esi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
lea ecx, [esp + 0x14]
push ecx
push 0
push dword [edi + 0x10]
push 4
push eax
call esi
test eax, eax
jne 0x4ca4e8
call ebp
cmp eax, 0x7a
jne 0x4ca4e8
push dword [esp + 0x14]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 0x10], eax
test eax, eax
je 0x4ca4e8
cmp dword [ebx + 0x14], 8
jb 0x4ca3b6
mov ebx, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x18]
push eax
push 4
push ebx
call esi
test eax, eax
je 0x4ca4e8
lea eax, [esp + 0x30]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x38], 0
push eax
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x4ca4e8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 8
test eax, eax
je 0x4ca4a0
cmp dword [esp + 0x20], 0
je 0x4ca4a0
push 2
push 0xc
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x4ca4e8
cmp dword [esp + 0x20], 0
je 0x4ca4a0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4ca4a0
xor esi, esi
test eax, eax
je 0x4ca4a0
mov ebx, dword [sym.imp.ADVAPI32.dll_GetAce]
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
nop word [eax + eax]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push esi
push dword [esp + 0x2c]
call ebx
test eax, eax
je 0x4ca4e8
mov eax, dword [esp + 0x28]
add eax, 8
push eax
push dword [edi + 8]
call ebp
test eax, eax
jne 0x4ca4b9
inc esi
cmp esi, dword [esp + 0x34]
jb 0x4ca470
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004f8545
add esp, 0x34
ret 0xc
mov ecx, dword [esp + 0x28]
mov edx, 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov ecx, dword [ecx + 4]
cmp ecx, dword [esp + 0x48]
movzx eax, al
pop ebp
cmove eax, edx
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004f8545
add esp, 0x34
ret 0xc
mov ecx, dword [esp + 0x40]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f8545
add esp, 0x34
ret 0xc