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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x5be9c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
jmp 0x492d29
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0x20
jge 0x492d3e
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp + 0x10]
mov dword [edx + ecx*4], 0
jmp 0x492d20
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x60], 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x492dc2
jmp 0x49312e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x492de6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5830e8
call fcn.004c4ce5
add esp, 8
jmp 0x49312e
mov eax, dword [ebp - 0x34]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x492e1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x582d9c
call fcn.004c4ce5
add esp, 8
jmp 0x49312e
mov ecx, dword [ebp - 0x30]
shl ecx, 1
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x492e52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x582e2c
call fcn.004c4ce5
add esp, 8
jmp 0x49312e
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x492e94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupAccountName___failed._Error__d_n
call fcn.004c4ce5
add esp, 8
jmp 0x49312e
lea edx, [ebp - 0x2c]
push edx
push 0
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x492ebc
jmp 0x49312e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x492ee0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x583198
call fcn.004c4ce5
add esp, 8
jmp 0x49312e
mov eax, dword [ebp - 0x2c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x492f15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HeapAlloc___failed._Error__d_n
call fcn.004c4ce5
add esp, 8
jmp 0x49312e
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x492f51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSecurity___failed._Error__d_n
call fcn.004c4ce5
add esp, 8
jmp 0x49312e
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x492f84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSecurityDescriptorDacl___failed._Error__d_n
call fcn.004c4ce5
add esp, 8
jmp 0x49312e
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 8
cmp dword [ebp - 0x28], 0
jne 0x492fa6
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x492fdb
push 2
push 0xc
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x492fdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetAclInformation___failed._Error__d_n
call fcn.004c4ce5
add esp, 8
jmp 0x49312e
cmp dword [ebp - 8], 0
je 0x493127
cmp dword [ebp - 0x14], 0
je 0x493127
mov dword [ebp - 0x50], 0
jmp 0x493001
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [ebp - 0x14]
jae 0x493127
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x49303c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetAce___failed._Error__d_n
call fcn.004c4ce5
add esp, 8
jmp 0x49312e
mov dword [ebp - 0x5c], 1
mov edx, dword [ebp - 0x24]
add edx, 8
push edx
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x49311d
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx]
cmp edx, 1
jne 0x493070
mov dword [ebp - 0x5c], 2
jmp 0x493077
mov dword [ebp - 0x5c], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
xor edx, edx
push edx
push ecx
lea ecx, [ebp - 0x18]
call fcn.004955b0
mov dword [ebp - 0x48], 0
jmp 0x49309b
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x20
jge 0x49311b
mov ecx, dword [ebp - 0x48]
push ecx
lea edx, [ebp - 0x74]
push edx
lea ecx, [ebp - 0x18]
call fcn.00495570
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x54]
or eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x6c]
call fcn.00495630
movzx ecx, al
test ecx, ecx
je 0x4930e1
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 0x10]
cmp dword [eax + edx*4], 2
je 0x4930e1
mov dword [ebp - 0x64], 1
jmp 0x4930e8
mov dword [ebp - 0x64], 0
mov cl, byte [ebp - 0x64]
mov byte [ebp - 0x3d], cl
mov edx, dword [ebp - 0x54]
and edx, 1
je 0x493102
and dword [ebp - 0x54], 0xfffffffe
lea ecx, [ebp - 0x74]
call sym.xIns.exe_public_virtual:_void___thiscall_DuiLib::WindowImplBase::InitWindow_void_
movzx eax, byte [ebp - 0x3d]
test eax, eax
je 0x493116
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x5c]
mov dword [edx + ecx*4], eax
jmp 0x493092
jmp 0x493122
jmp 0x492ff8
jmp 0x492ff8
mov dword [ebp - 0x68], 1
cmp dword [ebp - 0x44], 0
je 0x493147
mov ecx, dword [ebp - 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x4c], 0
je 0x493160
mov edx, dword [ebp - 0x4c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x3c], 0
je 0x493179
mov eax, dword [ebp - 0x3c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2ee0
mov esp, ebp
pop ebp
ret