Function at 0x412ba9
Capabilities:
Create pipe

Disassembly:
push 0x18
mov eax, 0x4ab4c8
call fcn.00468fa8
mov ebx, ecx
push str.StartServer...
lea ecx, [ebp - 0x10]
call fcn.00402829
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push 0
push 2
pop ecx
call fcn.004137d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 0xc
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00481750
and dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x24], esi
push str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GRGWGX___AU__A_OICI_GA___BA_
call fcn.00402829
xor esi, esi
inc esi
mov dword [ebp - 4], esi
call fcn.0044030a
test eax, eax
je 0x412c27
push str.S:_ML__NW___LW_
lea ecx, [ebp - 0x10]
call fcn.0040259d
push 0
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
or dword [ebp - 4], 0xffffffff
mov esi, eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
lea ecx, [ecx - 0x10]
call fcn.00402e64
test esi, esi
jne 0x412c7d
push str.Create_DACL_failed___using_default_security
lea ecx, [ebp - 0x10]
call fcn.00402829
push 2
pop eax
push esi
lea edx, [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.004137d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 7
pop esi
call fcn.0044030a
push 0xf
pop ecx
test eax, eax
lea eax, [ebp - 0x24]
cmovne esi, ecx
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
cmove eax, ecx
push eax
push ecx
push 4
push 4
push 0xff
push esi
push 3
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebx + 8], eax
cmp eax, 0xffffffff
je 0x412d08
lea esi, [ebx + 4]
xor edi, edi
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push 0x412190
push edi
push edi
mov dword [ebp - 0x18], edi
call fcn.00489b2c
add esp, 0x18
mov dword [ebx + 0xc], eax
cmp eax, 0xffffffff
jne 0x412d03
push dword [ebx + 8]
and dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 8], 0xffffffff
lea ecx, [ebp - 0x10]
push str._beginthreadex_failed_in_StartServer
call fcn.00402829
mov dword [ebp - 4], 3
jmp 0x412d1c
xor edi, edi
inc edi
jmp 0x412d39
push str.Create_ARM_Server_failed
lea ecx, [ebp - 0x10]
call fcn.00402829
mov dword [ebp - 4], 4
push 0
push 2
lea edx, [ebp - 0x10]
pop ecx
call fcn.004137d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [ebp - 0x20], 0
je 0x412d48
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x412daa
push str.ARM_Server_started
lea ecx, [ebp - 0x10]
call fcn.00402829
push 0
push 2
lea edx, [ebp - 0x10]
mov dword [ebp - 4], 5
pop ecx
call fcn.004137d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push str.Listener
lea ecx, [ebp - 0x14]
call fcn.00402829
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 6
push eax
mov ecx, 0x514d30
call fcn.00404652
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, edi
call fcn.00468f71
ret