Function at 0x46dd90
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5345e6
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x599850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x40], edi
mov eax, dword [ebp + 8]
push 0x14
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xa0], 0xc
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
call fcn.004ff716
mov esi, eax
add esp, 4
mov dword [ebp - 0xa4], esi
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x70], eax
push 1
push esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x4c], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x46def1
mov edi, dword [edi]
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
push 0x30
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
call fcn.00408dc0
movups xmm0, xmmword [str.Cannot_initalize_security_describer]
mov edx, eax
mov dword [ebp - 0x18], 0x23
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], 0x2f
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x5408a4]
movups xmmword [edx + 0x10], xmm0
mov cx, word [0x5408b4]
mov word [edx + 0x20], cx
mov al, byte [0x5408b6]
mov byte [edx + 0x22], al
mov byte [edx + 0x23], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
mov ecx, edi
call fcn.0046e7f0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0x35], al
cmp ecx, 0x10
jb 0x46e6fe
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46e5aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e7c8
jmp 0x46e5aa
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x46dfae
mov edi, dword [edi]
lea ecx, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], eax
push 0x20
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
call fcn.00408dc0
movups xmm0, xmmword [str.Cannot_open_process_token]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0x19
mov dword [ebp - 0x18], 0x1f
movups xmmword [eax], xmm0
movq xmm0, qword [0x5408c8]
movq qword [eax + 0x10], xmm0
mov cl, byte [0x5408d0]
mov byte [eax + 0x18], cl
mov byte [eax + 0x19], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
mov ecx, edi
call fcn.0046e7f0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x35], al
cmp ecx, 0x10
jb 0x46e6fe
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46e5aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e7cd
jmp 0x46e5aa
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x90]
call fcn.0046ef70
mov edi, dword [ebp - 0x90]
mov eax, dword [ebp - 0x8c]
sub eax, edi
mov dword [ebp - 0x60], edi
push eax
push 0
push edi
call fcn.00504e30
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
push edi
push 1
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x46e0b9
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x40]
xorps xmm0, xmm0
push 0x20
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov edi, dword [ecx]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
call fcn.00408dc0
movups xmm0, xmmword [str.Cannot_get_token_information]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0x1c
mov dword [ebp - 0x18], 0x1f
movups xmmword [eax], xmm0
movq xmm0, qword [0x5408e4]
movq qword [eax + 0x10], xmm0
mov ecx, dword [0x5408ec]
mov dword [eax + 0x18], ecx
mov byte [eax + 0x1c], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push eax
mov ecx, edi
call fcn.0046e7f0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x35], al
cmp ecx, 0x10
jb 0x46e6fe
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46e5aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e7d2
jmp 0x46e5aa
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
push 0
push 0
push 5
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x84]
call fcn.0046ef70
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x80]
sub eax, ecx
mov dword [ebp - 0x50], ecx
push eax
push 0
push ecx
call fcn.00504e30
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x50]
push 5
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x48]
test eax, eax
jne 0x46e195
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x40]
xorps xmm0, xmm0
push 0x20
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov edi, dword [ecx]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
call fcn.00408dc0
movups xmm0, xmmword [str.Cannot_open_process_token]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0x19
mov dword [ebp - 0x18], 0x1f
movups xmmword [eax], xmm0
movq xmm0, qword [0x5408c8]
movq qword [eax + 0x10], xmm0
mov cl, byte [0x5408d0]
mov byte [eax + 0x18], cl
mov byte [eax + 0x19], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.0046e7f0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x35], al
call fcn.004089c0
jmp 0x46e6fe
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x34], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x34]
mov word [ebp - 0x30], 0x100
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x46e261
mov ecx, dword [ebp - 0x40]
xorps xmm0, xmm0
push 0x20
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], eax
mov edi, dword [ecx]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
call fcn.00408dc0
movups xmm0, xmmword [str.Cannot_initalize_SID]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x14
mov dword [ebp - 0x14], 0x1f
movups xmmword [eax], xmm0
mov ecx, dword [0x540904]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
mov ecx, edi
call fcn.0046e7f0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0x35], al
cmp ecx, 0x10
jb 0x46e6fe
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46e5aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e7d7
jmp 0x46e5aa
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea edi, [eax + 0x28]
mov eax, dword [ebp - 0x50]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push dword [ebp - 0x4c]
add eax, 0xfffffffc
add edi, eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
dec eax
mov byte [ebp - 0x35], 0
add eax, edi
and eax, 0xfffffffc
mov dword [ebp - 0x44], eax
jbe 0x46e2b2
lea ecx, [ebp - 0x35]
push ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.0046cb70
mov eax, dword [ebp - 0x70]
mov edi, dword [ebp - 0x78]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x5c], edi
jmp 0x46e2b6
xor edi, edi
xor eax, eax
sub eax, edi
push eax
push 0
push edi
call fcn.00504e30
add esp, 0xc
push 4
push dword [ebp - 0x44]
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
push dword [ebp - 0x4c]
push 0x1f01ff
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x46e343
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 0x40]
xorps xmm0, xmm0
push 0x20
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov edi, dword [ecx]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
call fcn.00408dc0
movups xmm0, xmmword [str.Cannot_add_access]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x11
mov dword [ebp - 0x14], 0x1f
movups xmmword [eax], xmm0
mov cl, byte [0x54091c]
mov byte [eax + 0x10], cl
mov byte [eax + 0x11], 0
mov byte [ebp - 4], 9
jmp 0x46e3cc
mov eax, dword [ebp - 0x60]
push 0
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
mov eax, dword [ebp - 0x50]
push 0
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
push 0
push edi
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x46e3e7
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 0x40]
xorps xmm0, xmm0
push 0x20
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov edi, dword [ecx]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
call fcn.00408dc0
movups xmm0, xmmword [str.Cannot_set_security_DACL]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x18
mov dword [ebp - 0x14], 0x1f
movups xmmword [eax], xmm0
movq xmm0, qword [0x540930]
movq qword [eax + 0x10], xmm0
mov byte [eax + 0x18], 0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0046e7f0
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x35], al
call fcn.004089c0
jmp 0x46e6fe
push 0
push 1
push 1
push 0
mov dword [ebp - 0x9c], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x40]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x58]
mov dword [ecx + edx*4 + 0xe0], eax
test eax, eax
jne 0x46e4a0
mov edi, dword [ecx]
lea ecx, [ebp - 0x28]
push 0x30
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
call fcn.00408dc0
movups xmm0, xmmword [str.Cannon_create_event_for_listener]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x14], 0x2f
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x54094c]
movups xmmword [eax + 0x10], xmm0
mov byte [eax + 0x20], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
mov ecx, edi
call fcn.0046e7f0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0x35], al
cmp ecx, 0x10
jb 0x46e6fe
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46e5aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e7dc
jmp 0x46e5aa
lea eax, [edx + edx*2]
lea edx, [ecx + eax*8]
lea eax, [edx + 0x20]
mov dword [ebp - 0x54], edx
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [ecx + eax*4 + 0xe0]
add ecx, 8
mov dword [edx + 0x30], eax
cmp dword [ecx + 0x14], 8
jb 0x46e4d1
mov ecx, dword [ecx]
lea eax, [ebp - 0xa0]
push eax
push 0x1388
push 0x2000
push 0x2000
push 0xff
push 6
push 0x40000003
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x34], eax
cmp eax, 0xffffffff
jne 0x46e5b9
mov ecx, dword [ebp - 0x40]
xorps xmm0, xmm0
push 0x30
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov edi, dword [ecx]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
call fcn.00408dc0
movups xmm0, xmmword [str.Cannot_create_named_pipe_for_listener]
mov edx, eax
mov dword [ebp - 0x18], 0x25
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], 0x2f
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x540970]
movups xmmword [edx + 0x10], xmm0
mov ecx, dword [0x540980]
mov dword [edx + 0x20], ecx
mov al, byte [0x540984]
mov byte [edx + 0x24], al
mov byte [edx + 0x25], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xc
push eax
mov ecx, edi
call fcn.0046e7f0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0x35], al
cmp ecx, 0x10
jb 0x46e6fe
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46e5aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e7e1
push ecx
push edx
call fcn.004ff746
add esp, 8
jmp 0x46e6fe
push dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x46e6b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
cmp eax, 0x217
je 0x46e626
cmp eax, 0x3e5
jne 0x46e67c
call fcn.0045aa70
mov edx, eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x34]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], ecx
push eax
sub esp, 8
mov ecx, edx
mov eax, esp
mov dword [eax], str.Listener_____in_pending_state
mov dword [eax + 4], 0x21
call fcn.0046cc00
mov byte [ebp - 0x35], 1
jmp 0x46e701
call fcn.0045aa70
mov edx, eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x34]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], ecx
push eax
sub esp, 8
mov ecx, edx
mov eax, esp
mov dword [eax], str.Listener_____connected
mov dword [eax + 4], 0x1a
call fcn.0046cc00
mov eax, dword [ebp - 0x54]
push dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x46e67c
mov byte [ebp - 0x35], 1
jmp 0x46e701
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x40]
call fcn.0046dd20
call fcn.0045aa70
push dword [ebp - 0x68]
mov edi, eax
lea eax, [ebp - 0x28]
push eax
call fcn.00470b50
add esp, 8
push eax
sub esp, 8
mov byte [ebp - 4], 0xd
mov eax, esp
mov dword [eax], str.Cannot_connect_to_named_pipe:_
mov dword [eax + 4], 0x20
jmp 0x46e6eb
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x40]
call fcn.0046dd20
call fcn.0045aa70
mov edi, eax
lea eax, [ebp - 0x28]
push eax
call fcn.00470d30
add esp, 4
push eax
sub esp, 8
mov byte [ebp - 4], 0xe
mov eax, esp
mov dword [eax], str.Overlapped_ConnectNamedPipe_return_NON_zero:_
mov dword [eax + 4], 0x2f
mov ecx, edi
call fcn.004307f0
lea ecx, [ebp - 0x28]
call fcn.004089c0
mov byte [ebp - 0x35], 0
mov edi, dword [ebp - 0x5c]
test edi, edi
je 0x46e732
mov ecx, dword [ebp - 0x64]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x46e728
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e7e6
push ecx
push edi
call fcn.004ff746
add esp, 8
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x46e766
mov ecx, dword [ebp - 0x7c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x46e75c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e7e6
push ecx
push edx
call fcn.004ff746
add esp, 8
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x46e799
mov ecx, dword [ebp - 0x88]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x46e78f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e7e6
push ecx
push edx
call fcn.004ff746
add esp, 8
test esi, esi
je 0x46e7a8
push 0x14
push esi
call fcn.004ff746
add esp, 8
mov al, byte [ebp - 0x35]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ff754
mov esp, ebp
pop ebp
ret 4
call fcn.00508363
call fcn.00508363
call fcn.00508363
call fcn.00508363
call fcn.00508363
call fcn.00508363
call fcn.00508363
int3