Function at 0x455560
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb7b5
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push esi
push edi
mov eax, dword [0x6522a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov dword [ebp - 4], 0
call dword [eax + 0x44]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x50]
call fcn.0045e8d0
mov dword [ebp - 0x38], 9
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], str..pipe_
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x44]
call fcn.0045e8d0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0045e9f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00451610
mov eax, dword [ebp - 0x28]
lea ecx, [edi + 0x54]
mov dword [ecx], eax
or esi, 0xffffffff
add ecx, 4
mov byte [ebp - 4], 5
lea eax, [ebp - 0x24]
cmp eax, ecx
je 0x45564a
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x24]
cmp edx, ecx
je 0x45564d
test edx, edx
je 0x45562e
mov eax, esi
lock xadd dword [edx + 4], eax
dec eax
jne 0x45562b
mov dword [edi + 0x58], 0
mov ecx, edx
mov eax, dword [edx]
call dword [eax]
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x58], ecx
test ecx, ecx
je 0x45564d
lea esi, [ecx + 4]
mov edx, dword [esi]
mov eax, edx
lea ecx, [edx + 1]
lock cmpxchg dword [esi], ecx
cmp eax, edx
jne 0x455638
or esi, 0xffffffff
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x5c], eax
mov byte [ebp - 4], 6
test ecx, ecx
je 0x455670
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x455670
mov dword [ebp - 0x24], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x5c]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x455690
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x455690
mov dword [ebp - 0x5c], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x4556b0
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4556b0
mov dword [ebp - 0x44], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x4556d0
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4556d0
mov dword [ebp - 0x34], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x4556f0
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4556f0
mov dword [ebp - 0x50], 0
mov eax, dword [ecx]
call dword [eax]
push dword [ebp + 0x14]
lea eax, [edi + 0x28]
mov byte [ebp - 4], 0
mov ecx, eax
mov dword [ebp - 0x2c], eax
call fcn.00455e80
mov eax, dword [edi + 0x40]
lea esi, [edi + 0x3c]
mov ecx, eax
mov dword [ebp - 0x14], eax
sub ecx, dword [esi]
mov eax, 0x66666667
imul ecx
mov ecx, dword [ebp + 0x14]
sar edx, 3
mov eax, edx
mov dword [ebp - 0x10], esi
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x18], eax
cmp ecx, eax
jae 0x455739
mov edx, dword [esi]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
jmp 0x455794
jbe 0x455797
mov ecx, dword [esi + 8]
mov eax, 0x66666667
sub ecx, dword [esi]
imul ecx
mov ecx, dword [ebp + 0x14]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jbe 0x455769
lea eax, [ebp - 0x19]
push eax
push ecx
mov ecx, esi
call fcn.00453f80
mov ecx, dword [ebp + 0x14]
jmp 0x455797
mov eax, ecx
sub eax, dword [ebp - 0x18]
je 0x455791
lea esi, [eax + eax*4]
shl esi, 2
push esi
push 0
push dword [ebp - 0x14]
call fcn.00595080
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp + 0x14]
add eax, esi
lea esi, [edi + 0x3c]
jmp 0x455794
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
lea eax, [edi + 0x48]
push ecx
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.00455e80
mov ecx, dword [edi + 0x2c]
xor esi, esi
mov edx, dword [edi + 0x28]
mov eax, ecx
sub eax, edx
sar eax, 2
test eax, eax
je 0x455819
xor eax, eax
cmp byte [edi + 0x38], al
jne 0x4557c2
mov eax, dword [edi + 0x34]
push eax
push 0
push 0x2800
push 0x2800
push 0xff
push 6
push 0x40000003
lea ecx, [edi + 0x54]
call fcn.00453230
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov ecx, dword [edi + 0x28]
lea edx, [esi*4]
mov dword [ecx + edx], eax
mov eax, dword [edi + 0x28]
mov dword [ebp + 0x14], eax
cmp dword [eax + edx], 0xffffffff
je 0x455977
mov ecx, dword [edi + 0x2c]
inc esi
mov edx, dword [ebp + 0x14]
mov eax, ecx
sub eax, edx
sar eax, 2
cmp esi, eax
jb 0x4557b8
sub ecx, edx
mov dword [ebp + 0x14], 0
sar ecx, 2
test ecx, ecx
je 0x4558dd
mov edi, dword [ebp - 0x10]
xor esi, esi
mov eax, dword [edi]
xorps xmm0, xmm0
push 0
push 0
push 1
movups xmmword [eax + esi], xmm0
push 0
mov dword [eax + esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [edi]
mov dword [ecx + esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [edi]
lea edx, [eax*4]
mov eax, dword [ebp - 0x2c]
add ecx, esi
push ecx
mov dword [ebp - 0x18], edx
mov eax, dword [eax]
push dword [eax + edx]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4558c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp eax, 0x3e5
jne 0x45589d
mov eax, dword [edi]
mov ecx, dword [eax + esi + 0x10]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
mov dword [eax], ecx
jmp 0x4558c0
cmp eax, 0x217
jne 0x455914
mov eax, dword [edi]
mov ecx, dword [eax + esi + 0x10]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [edi]
push dword [eax + esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x2c]
add esi, 0x14
mov ecx, dword [ebp + 0x14]
inc ecx
mov dword [ebp + 0x14], ecx
mov eax, dword [edx + 4]
sub eax, dword [edx]
sar eax, 2
cmp ecx, eax
jb 0x455832
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xf
test ecx, ecx
je 0x455901
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x455901
mov dword [ebp + 0xc], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
mov ecx, edi
call fcn.00454700
mov eax, dword [eax + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2c
lea eax, [ebp - 0x74]
push str.C:Devgit_toolkitlibs_base_namedpipeio.cpp
push eax
call fcn.00448a50
mov esi, eax
push 0xc
lea eax, [ebp - 0x68]
push str.ENamedPipeIO
push eax
call fcn.00448a50
add esp, 0x18
push 0x19c
push esi
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xe
call fcn.00454150
push 0x63fe6c
lea eax, [ebp - 0xbc]
push eax
call fcn.00594600
push 0x2c
lea eax, [ebp - 0x68]
push str.C:Devgit_toolkitlibs_base_namedpipeio.cpp
push eax
call fcn.00448a50
mov edi, eax
push 0xc
lea eax, [ebp - 0x74]
push str.ENamedPipeIO
push eax
call fcn.00448a50
add esp, 0x18
mov esi, eax
mov byte [ebp - 4], 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x188
push edi
push esi
push eax
lea ecx, [ebp - 0x98]
call fcn.00454150
push 0x63fe6c
lea eax, [ebp - 0x98]
push eax
call fcn.00594600
int3