Function at 0x4118bd
Capabilities:
Connect pipe
Get common file path
Read pipe
Terminate process
Write pipe

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x24]
mov dword [0x513d24], eax
mov dword [esp + 8], 0x3811
push ebx
mov dword [esp + 0x10], 0x3929
mov ebx, 0x513bf0
mov dword [esp + 0x28], 0x3f68
push ebp
mov ebp, 0x3fdf
mov dword [esp + 0x1c], ebp
mov dword [esp + 8], 0
mov dword [esp + 0x18], 0x3aec
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
xor eax, 0x3f23
push esi
push edi
cmp dword [esp + 0x34], eax
jl 0x411a0a
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
add ebx, ebp
mov esi, dword [esp + 0x34]
xor edi, 0x3c5
mov edx, dword [esp + 0x24]
xor esi, 0x6f5
mov ecx, dword [esp + 0x18]
sub edx, 0x8c9
mov eax, dword [esp + 0x14]
add ecx, 0x379
add eax, 0x3f23
push eax
push ecx
push edx
push esi
push edi
push 0x513bf0
push ebx
call fcn.004045f9
mov dword [esp + 0x38], eax
add esp, 0x1c
xor dword [esp + 0x10], 0x3929
mov eax, dword [0x462934]
mov ecx, dword [0x513c80]
cmp dword [eax + 0x118], ecx
jae 0x411995
or ecx, dword [0x513cf8]
mov dword [0x513c80], ecx
jmp 0x4119ab
mov eax, dword [0x513c24]
xor eax, dword [0x513c68]
xor eax, 0xdd4
sub dword [0x513c3c], eax
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
xor ebx, 0x565
mov esi, dword [esp + 0x24]
xor edi, 0x15f
mov edx, dword [esp + 0x18]
sub esi, 0xe4
mov ecx, dword [esp + 0x20]
add edx, 0x6ea
mov eax, dword [esp + 0x18]
sub ecx, 0xbe
add eax, 0x4b1
push eax
push ecx
push edx
push esi
push 0x513bf0
push edi
push ebx
call fcn.00404baa
mov dword [esp + 0x30], eax
add esp, 0x1c
add dword [esp + 0x14], 0x252
mov ebx, 0x513bf0
mov eax, dword [esp + 0x24]
add eax, 0xffffff89
cmp dword [esp + 0x1c], eax
jg 0x411b5c
mov eax, dword [0x462934]
mov eax, dword [eax + 0xfc]
cmp eax, dword [0x513c4c]
jb 0x411a46
mov eax, dword [0x513c80]
add eax, 0x5a79
imul eax, dword [0x513ccc]
mov dword [0x513ccc], eax
jmp 0x411a56
mov eax, dword [0x513c6c]
add eax, 0x38cab36b
add dword [0x513c70], eax
add dword [esp + 0x34], 0xfffffc80
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
xor esi, 0x58b
mov ecx, dword [esp + 0x34]
add edx, 0x477
mov eax, dword [esp + 0x34]
xor ecx, 0x5ec
add eax, 0x349
push eax
push ecx
push edx
push ebx
push esi
call fcn.00403e99
mov dword [esp + 0x48], eax
mov dword [0x513ca4], 0x462938
xor dword [esp + 0x24], 0xfd5
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x28]
xor edi, 0x267
mov edx, dword [esp + 0x48]
xor esi, 0x2e2
mov ecx, dword [esp + 0x38]
sub edx, 0x2ef
mov eax, dword [esp + 0x34]
add eax, 0x437
push eax
push ecx
push edx
push ebx
push esi
push edi
call fcn.00403c0c
mov dword [esp + 0x60], eax
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x40]
xor edi, 0x533
mov edx, dword [esp + 0x48]
xor esi, 0x2db
mov ecx, dword [esp + 0x60]
add edx, 0x321
mov eax, dword [esp + 0x40]
xor ecx, 0x56
add eax, 0x593
push eax
push ecx
push ebx
push edx
push esi
push edi
call fcn.00411678
add esp, 0x44
mov dword [esp + 0x20], eax
mov eax, dword [0x513ca8]
add eax, dword [0x513d0c]
push dword [0x513d24]
push eax
mov eax, dword [0x462934]
push dword [0x513cf0]
call dword [eax + 0xb0]
mov dword [0x513ce0], eax
add dword [esp + 0x10], 0x22d
add dword [esp + 0x18], 0x5ca
jmp 0x411cd0
mov eax, dword [esp + 0x20]
or eax, dword [0x513c8c]
imul eax, dword [0x513cac]
cmp dword [esp + 0x18], eax
jne 0x411cd0
mov eax, dword [0x462934]
mov eax, dword [eax + 0xf4]
add eax, 0x3d9a
cmp dword [esp + 0x18], eax
jae 0x411c52
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, dword [esp + 0x1c]
mov esi, 0x3f31
mov eax, dword [esp + 0x18]
add ecx, 0x36fc
or eax, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x513cfc]
or ecx, dword [0x513c68]
or eax, ecx
xor dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
or eax, dword [0x513cd4]
imul eax, dword [0x513c58]
mov dword [0x513c58], eax
mov eax, dword [0x513d04]
sub eax, dword [0x513d00]
sub eax, ebp
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
xor ebx, dword [0x513c68]
mov edi, dword [0x513ce8]
and ebx, esi
mov esi, dword [esp + 0x14]
sub edi, dword [0x513cec]
xor esi, dword [0x513c18]
imul ebp, dword [0x513c34]
or edi, dword [0x513cfc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
sub edx, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [0x513c60]
xor edx, 0x39fc
sub ecx, eax
push ecx
push edx
push esi
push edi
push ebx
push ebp
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
jmp 0x411cd0
mov ecx, dword [esp + 0x20]
mov eax, dword [0x462934]
or ecx, dword [0x513d04]
cmp dword [eax + 0x34], ecx
jbe 0x411cd0
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
xor ebx, 0x3b8a
xor edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
xor eax, dword [0x513bf8]
mov ecx, dword [esp + 0x20]
and esi, eax
or ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
sub eax, dword [0x513cc8]
mov edx, dword [0x513c58]
sub edx, dword [0x513cac]
add edx, dword [0x513c28]
imul ebp, dword [0x513c30]
add ebx, dword [0x513c50]
imul eax, eax, 0x3cc2
push eax
push ecx
push edx
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
mov eax, dword [0x462934]
push dword [eax + 0xf0]
call dword [sym.imp.KERNEL32.dll_ExitProcess]