Function at 0x415fa0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
push edi
mov ecx, 9
push esi
push ebx
mov edi, 0x45bb00
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 0x416140
lea eax, [ebx + 9]
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x415ff9
mov dword [esp + 8], 0x17
mov dword [esp + 4], str._MoTTY_windows_named_pipe_client.c
mov dword [esp], 0x45bb5c
call fcn.00455fa0
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x416039
call edi
cmp eax, 0xe7
jne 0x416110
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
sub esp, 8
test eax, eax
je 0x416161
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 0x416010
call fcn.00454030
test eax, eax
mov edi, eax
je 0x41620c
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 [fcn.00465e94]
sub esp, 0x20
test eax, eax
jne 0x416190
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 0x4161d0
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.00454bc0
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], str.Unable_to_open_named_pipe__s:__s
call fcn.0044f440
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], 0x45bb30
call fcn.00455fa0
jmp 0x415fc6
call edi
mov dword [esp], eax
call fcn.00454bc0
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], str.Error_waiting_for_named_pipe__s:__s
call fcn.0044f440
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.00454bc0
mov dword [esp], str.Unable_to_get_named_pipe_security_information:__s
mov dword [esp + 4], eax
call fcn.0044f440
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.0044f440
mov edx, dword [esp + 0x54]
mov dword [edx], eax
jmp 0x416134
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.00454bc0
mov dword [esp], str.Unable_to_get_user_SID:__s
mov dword [esp + 4], eax
call fcn.0044f440
mov edx, dword [esp + 0x54]
mov dword [edx], eax
jmp 0x416134