Function at 0x451840
Capabilities:
Compare security identifiers

Disassembly:
push ebp
push edi
mov ecx, 9
push esi
push ebx
mov edi, 0x4b26c0
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 0x4519e0
lea eax, [ebx + 9]
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x451899
mov dword [esp + 8], 0x17
mov dword [esp + 4], str._MoTTY_windows_named_pipe_client.c
mov dword [esp], 0x4b271c
call fcn.0049d570
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4518d9
call edi
cmp eax, 0xe7
jne 0x4519b0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
sub esp, 8
test eax, eax
je 0x451a01
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 0x4518b0
call fcn.0049a2c0
test eax, eax
mov edi, eax
je 0x451aac
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 [0x4c2fa8]
sub esp, 0x20
test eax, eax
jne 0x451a30
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 0x451a70
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.0049ab10
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], str.Unable_to_open_named_pipe__s:__s
call fcn.00491fc0
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], 0x4b26f0
call fcn.0049d570
jmp 0x451866
call edi
mov dword [esp], eax
call fcn.0049ab10
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], str.Error_waiting_for_named_pipe__s:__s
call fcn.00491fc0
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.0049ab10
mov dword [esp], str.Unable_to_get_named_pipe_security_information:__s
mov dword [esp + 4], eax
call fcn.00491fc0
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.00491fc0
mov edx, dword [esp + 0x54]
mov dword [edx], eax
jmp 0x4519d4
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.0049ab10
mov dword [esp], str.Unable_to_get_user_SID:__s
mov dword [esp + 4], eax
call fcn.00491fc0
mov edx, dword [esp + 0x54]
mov dword [edx], eax
jmp 0x4519d4