Function at 0x437303
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [0x47e3a4]
mov dword [ebp - 0xc], ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4374ff
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 4
push 4
push dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
jne 0x4374f6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclA]
test eax, eax
jne 0x4374ed
push esi
xor esi, esi
cmp dword [ebp - 0x20], ebx
push edi
jbe 0x437448
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
add eax, ecx
cmp dword [eax], 2
mov dword [ebp - 0x28], eax
jne 0x43743a
cmp dword [eax + 4], 3
jne 0x43743a
cmp dword [eax + 0x18], ebx
jne 0x43743a
cmp dword [eax + 0x14], ebx
jne 0x43743a
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi]
cmp ecx, ebx
jne 0x43742b
lea eax, [ebp - 0x10]
push eax
push 8
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x437422
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 1
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [ebp - 8], ebx
jbe 0x437419
push dword [ebp - 8]
call fcn.00444a58
pop ecx
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 8]
mov dword [edi], eax
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x437419
push dword [edi]
call fcn.00445bdd
pop ecx
mov dword [edi], ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
cmp ecx, ebx
je 0x43743a
mov eax, dword [ebp - 0x28]
push dword [ecx]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x437448
add dword [ebp - 0x1c], 0x20
inc esi
cmp esi, dword [ebp - 0x20]
jb 0x437381
cmp esi, dword [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
mov byte [ebp - 1], bl
jae 0x43749a
mov eax, esi
shl eax, 5
add eax, dword [ebp - 0x18]
xor ecx, ecx
inc ecx
lea edx, [ebp - 0x1c]
push edx
mov dword [eax + 4], ecx
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
push eax
push ecx
call edi
test eax, eax
jne 0x43749a
push ebx
push dword [ebp - 0x1c]
push ebx
push ebx
push 4
push 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
jne 0x437491
mov byte [ebp - 1], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 0xc]
call dword [ebp + 8]
cmp byte [ebp - 1], bl
pop ecx
je 0x4374e2
shl esi, 5
add esi, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
mov dword [esi + 4], 3
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
push esi
push 1
call edi
test eax, eax
jne 0x4374e2
push ebx
push dword [ebp - 0x1c]
push ebx
push ebx
push 4
push 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret