Function at 0x401370
Capabilities:
Compare security identifiers

Disassembly:
mov eax, dword [0x453554]
sub esp, 0x524
push ebp
mov ebp, dword [esp + 0x52c]
push esi
xor esi, esi
test eax, eax
jbe 0x4013ae
mov eax, dword [0x453550]
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40146f
mov eax, dword [0x453554]
inc esi
cmp esi, eax
jb 0x40138a
push ebx
push edi
push 0x1c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
push ebp
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, esi
mov esi, ebp
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebx], eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [0x44b2b0]
mov cl, byte [0x44b2b2]
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], cl
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1b]
lea esi, [ebx + 0x18]
rep stosd dword es:[edi], eax
mov eax, 0x104
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
push esi
lea eax, [esp + 0x1e]
push edx
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x548]
lea edx, [esp + 0x12c]
push ecx
push edx
push ebp
push eax
call edi
test eax, eax
je 0x4014f0
mov esi, dword [esi]
lea eax, [esi - 1]
cmp eax, 5
ja case.0x40152a.2
jmp dword [eax*4 + 0x40164c]
lea ecx, [esp + 0x120]
lea edx, [esp + 0x228]
push ecx
push 0x44b2ac
push edx
jmp 0x4014ce
mov eax, dword [0x453550]
mov eax, dword [eax + esi*4]
pop esi
pop ebp
add esp, 0x524
ret
lea eax, [esp + 0x120]
lea ecx, [esp + 0x1a]
push eax
push ecx
push str._s_s_Deleted_
lea edx, [esp + 0x234]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x4014d7
mov al, byte [esp + 0x1a]
test al, al
lea eax, [esp + 0x120]
push eax
je 0x4014c1
lea ecx, [esp + 0x1e]
push ecx
push 0x44b294
jmp 0x401492
lea ecx, [esp + 0x22c]
push 0x44b2ac
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x228]
push edx
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 4
mov dword [ebx + 4], eax
jmp 0x4015b2
mov eax, dword [esp + 0x53c]
test eax, eax
je 0x401548
lea eax, [esp + 0x10]
push esi
lea ecx, [esp + 0x1e]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x12c]
push edx
push eax
push ebp
push 0
call edi
test eax, eax
je 0x401548
mov esi, dword [esi]
lea eax, [esi - 1]
cmp eax, 5
ja case.0x40152a.2
jmp dword [eax*4 + 0x401664]
lea eax, [esp + 0x120]
lea ecx, [esp + 0x1a]
push eax
push ecx
push 0x44b294
jmp 0x401492
call fcn.004010a0
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x401598
mov edi, str.Power_Users
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x228]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x228]
push ecx
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 4
mov dword [ebx + 4], eax
jmp 0x4015b2
push ebp
call fcn.00401260
mov dword [ebx + 4], eax
mov dword [esi], 8
add esp, 4
mov byte [esp + 0x228], 0
mov eax, dword [ebx + 0x18]
xor esi, esi
cmp eax, 1
mov dword [ebx + 8], esi
mov dword [ebx + 0x10], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x14], esi
jne 0x4015ea
mov eax, dword [esp + 0x53c]
cmp eax, esi
je 0x4015ea
push eax
lea edx, [esp + 0x434]
push str._s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov eax, dword [0x453558]
mov ecx, dword [0x453554]
cmp ecx, eax
jb 0x401624
cmp eax, esi
je 0x401601
add eax, eax
jmp 0x401606
mov eax, 0x400
mov ecx, dword [0x453550]
mov dword [0x453558], eax
shl eax, 2
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
mov dword [0x453550], eax
mov edx, dword [0x453550]
mov eax, dword [0x453554]
pop edi
mov dword [edx + eax*4], ebx
mov eax, dword [0x453554]
inc eax
mov dword [0x453554], eax
mov eax, ebx
pop ebx
pop esi
pop ebp
add esp, 0x524
ret