Function at 0x452e10
Capabilities:
Compare security identifiers
Get user security identifier
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x5a65ab
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x148]
mov edi, dword [esp + 0x150]
xor ebp, ebp
push 0x63
lea eax, [esp + 0x35]
push ebp
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov byte [esp + 0x3c], 0
call fcn.004e5fc0
add esp, 0xc
mov dword [esp + 0x20], 0x64
mov dword [esp + 0x24], 0x50
cmp ebx, ebp
jne 0x452e98
lea eax, [ebp + 0x57]
jmp 0x45302f
mov eax, dword [esp + 0x14c]
lea ecx, [esp + 0x1c]
push ecx
push ebp
lea edx, [esp + 0x20]
push edx
push ebp
push ebp
push 4
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
mov esi, eax
test esi, esi
jne 0x45300a
cmp dword [esp + 0x18], ebp
je 0x45300a
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x453015
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 2]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x453015
mov edx, dword [esp + 0x18]
movzx eax, word [edx + 2]
push 2
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x453015
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp cx, word [eax + 4]
jae 0x452fba
mov ebx, dword [sym.imp.ADVAPI32.dll_GetAce]
mov edi, dword [sym.imp.ADVAPI32.dll_AddAce]
lea ebx, [ebx]
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov dword [esp + 0x20], 0
call ebx
test eax, eax
je 0x452fa9
mov eax, dword [esp + 0x14]
test byte [eax + 1], 0x10
jne 0x452f92
add eax, 8
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
mov eax, dword [esp + 0x14]
je 0x452f92
mov ecx, dword [esp + 0x154]
cmp ecx, dword [eax + 4]
je 0x452fa9
movzx edx, word [eax + 2]
push edx
push eax
push 0xffffffffffffffff
push 2
push ebp
call edi
test eax, eax
jne 0x452fa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 4]
inc esi
cmp esi, ecx
jl 0x452f50
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x14c]
push 0
push ebp
push 0
push 0
push 4
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test esi, esi
je 0x453015
lea ecx, [esp + 0x14]
call fcn.0040c120
push esi
lea eax, [esp + 0x18]
push 0x5c6b38
push eax
mov dword [esp + 0x14c], 0
call fcn.0040cbe0
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.0040c150
jmp 0x453015
push str.GetSecurityInfo_Error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x453026
push eax
call edi
test ebp, ebp
je 0x45302d
push ebp
call edi
mov eax, esi
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x130
ret 0x18