Function at 0x48afc0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
push edi
mov ecx, 9
push esi
push ebx
mov edi, 0x502f40
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
jne 0x48b160
lea eax, [ebx + 9]
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x48b019
mov dword [esp + 8], 0x17
mov dword [esp + 4], str._MoTTY_windows_named_pipe_client.c
mov dword [esp], 0x502f9c
call fcn.004d8b40
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x48b059
call edi
cmp eax, 0xe7
jne 0x48b130
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
sub esp, 8
test eax, eax
je 0x48b181
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x40000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], ebx
call ebp
sub esp, 0x1c
cmp eax, 0xffffffff
mov esi, eax
je 0x48b030
call fcn.004d4fe0
test eax, eax
mov edi, eax
je 0x48b22c
lea eax, [esp + 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 1
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], 6
mov dword [esp], esi
mov dword [esp + 0xc], eax
call dword [0x5226fc]
sub esp, 0x20
test eax, eax
jne 0x48b1b0
mov eax, dword [esp + 0x28]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
sub esp, 8
test eax, eax
je 0x48b1f0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, esi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
call edi
mov dword [esp], eax
call fcn.004d5ed0
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], str.Unable_to_open_named_pipe__s:__s
call fcn.004cc080
mov edx, dword [esp + 0x54]
mov dword [edx], eax
add esp, 0x3c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x16
mov dword [esp + 4], str._MoTTY_windows_named_pipe_client.c
mov dword [esp], 0x502f70
call fcn.004d8b40
jmp 0x48afe6
call edi
mov dword [esp], eax
call fcn.004d5ed0
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], str.Error_waiting_for_named_pipe__s:__s
call fcn.004cc080
mov edx, dword [esp + 0x54]
mov dword [edx], eax
add esp, 0x3c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
mov esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.004d5ed0
mov dword [esp], str.Unable_to_get_named_pipe_security_information:__s
mov dword [esp + 4], eax
call fcn.004cc080
mov edx, dword [esp + 0x54]
mov dword [edx], eax
add esp, 0x3c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
mov esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], str.Owner_of_named_pipe__s_is_not_us
call fcn.004cc080
mov edx, dword [esp + 0x54]
mov dword [edx], eax
jmp 0x48b154
mov dword [esp], esi
mov esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.004d5ed0
mov dword [esp], str.Unable_to_get_user_SID:__s
mov dword [esp + 4], eax
call fcn.004cc080
mov edx, dword [esp + 0x54]
mov dword [edx], eax
jmp 0x48b154