Function at 0x411648
Capabilities:
Create pipe
Create thread

Disassembly:
push 0x1c
mov eax, 0x46160d
call fcn.00447d5b
push str.StartServer...
lea ecx, [ebp - 0x14]
call fcn.00402060
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.00411fad
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
push 0xc
pop edi
push edi
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.00445f90
add esp, 0xc
push str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GRGWGX___AU__A_OICI_GA___BA_
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], ebx
call fcn.00402060
xor edi, edi
inc edi
mov dword [ebp - 4], edi
call fcn.0042e535
test eax, eax
je 0x4116c7
push str.S:_ML__NW___LW_
lea ecx, [ebp - 0x10]
call fcn.00409019
lea eax, [ebp - 0x28]
test eax, eax
jne 0x4116e1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
xor edi, edi
jmp 0x411704
push ebx
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp - 0x10]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov edi, eax
call fcn.0040253e
cmp edi, ebx
jne 0x411734
push str.Create_DACL_failed___using_default_security
lea ecx, [ebp - 0x10]
call fcn.00402060
push 2
pop eax
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.00411fad
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, dword [esi + 0x14]
neg edi
sbb edi, edi
lea ecx, [ebp - 0x28]
and edi, ecx
push edi
push ebx
push 4
pop edi
push edi
push edi
push 0xff
push 7
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x4117b5
lea edi, [esi + 4]
mov dword [edi], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
push 0x410be3
push ebx
push ebx
mov dword [ebp - 0x1c], ebx
call fcn.00446a33
add esp, 0x18
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x4117ac
push dword [esi + 8]
mov dword [ebp - 0x14], ebx
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 8], 0xffffffff
push str._beginthreadex_failed_in_StartServer
lea ecx, [ebp - 0x10]
call fcn.00402060
mov dword [ebp - 4], 3
jmp 0x4117c5
mov dword [ebp - 0x14], 1
jmp 0x4117e3
push str.Create_ARM_Server_failed
lea ecx, [ebp - 0x10]
call fcn.00402060
mov dword [ebp - 4], edi
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
call fcn.00411fad
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp - 0x24], ebx
je 0x4117f1
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x14], ebx
je 0x411855
push str.ARM_Server_started
lea ecx, [ebp - 0x10]
call fcn.00402060
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
mov dword [ebp - 4], 5
call fcn.00411fad
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
push str.Listener
lea ecx, [ebp - 0x18]
call fcn.00402060
lea eax, [ebp - 0x18]
push eax
push 0x49c488
mov dword [ebp - 4], 6
call fcn.00406083
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, dword [ebp - 0x14]
call fcn.00447e33
ret