Function at 0x410e3f
Capabilities:
Create pipe
Create thread

Disassembly:
push 0x1c
mov eax, 0x470607
call fcn.00452eb4
push str.StartServer...
lea ecx, [ebp - 0x14]
call fcn.004012e2
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.00411806
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
push 0xc
pop esi
push esi
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.00450cb0
add esp, 0xc
push 0x47c9d8
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ebx
call fcn.004012e2
xor esi, esi
inc esi
mov dword [ebp - 4], esi
call fcn.00434ad0
test eax, eax
je 0x410ebe
push str.S:_ML__NW___LW_
lea ecx, [ebp - 0x10]
call fcn.00407601
lea eax, [ebp - 0x28]
test eax, eax
jne 0x410ed8
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017df
xor esi, esi
jmp 0x410efb
push ebx
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 0x10]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004017df
cmp esi, ebx
jne 0x410f2b
push str.Create_DACL_failed___using_default_security
lea ecx, [ebp - 0x10]
call fcn.004012e2
push 2
pop eax
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.00411806
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov dword [ebp - 0x10], 7
call fcn.00434ad0
test eax, eax
je 0x410f42
mov dword [ebp - 0x10], 0xf
mov eax, dword [edi + 0x14]
neg esi
sbb esi, esi
lea ecx, [ebp - 0x28]
and esi, ecx
push esi
push ebx
push 4
pop esi
push esi
push esi
push 0xff
push dword [ebp - 0x10]
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
je 0x410fc4
lea esi, [edi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
push 0x410588
push ebx
push ebx
mov dword [ebp - 0x1c], ebx
call fcn.00451732
add esp, 0x18
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x410fbb
push dword [edi + 8]
mov dword [ebp - 0x14], ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi + 8], 0xffffffff
push str._beginthreadex_failed_in_StartServer
lea ecx, [ebp - 0x10]
call fcn.004012e2
mov dword [ebp - 4], 3
jmp 0x410fd4
mov dword [ebp - 0x14], 1
jmp 0x410ff2
push str.Create_ARM_Server_failed
lea ecx, [ebp - 0x10]
call fcn.004012e2
mov dword [ebp - 4], esi
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
call fcn.00411806
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x24], ebx
je 0x411000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x14], ebx
je 0x411064
push str.ARM_Server_started
lea ecx, [ebp - 0x10]
call fcn.004012e2
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
mov dword [ebp - 4], 5
call fcn.00411806
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
push str.Listener
lea ecx, [ebp - 0x18]
call fcn.004012e2
lea eax, [ebp - 0x18]
push eax
push 0x4b76d8
mov dword [ebp - 4], 6
call fcn.00402ed9
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, dword [ebp - 0x14]
call fcn.00452f8c
ret