Function at 0x10055400
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015b35c
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x101b900c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x438], esi
cmp dword [0x101be120], 0
mov edi, dword [ebp + 8]
je 0x10055552
push ecx
mov ecx, 0x101be120
call fcn.100ab390
mov eax, dword [0x101be120]
cmp byte [eax + 0x54], 0
je 0x10055552
cmp dword [eax + 0x58], 5
jb 0x10055552
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 7
mov word [ebp - 0x42c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x42c]
push edi
push esi
push str.handle_shake_start__p__p
push eax
call fcn.100ac240
add esp, 0x10
lea eax, [ebp - 0x42c]
mov ecx, 0x101be120
push 0x16b
push str.RC::RCNamePipeClient::HandleShake
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeclient.cpp
push eax
push 5
call fcn.100abda0
test bl, bl
je 0x100554ee
lea eax, [ebp - 0x42c]
mov ecx, 0x101be120
push eax
call fcn.100ac0c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x418]
cmp edx, 8
jb 0x10055535
mov ecx, dword [ebp - 0x42c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005552b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100559a4
push edx
push ecx
call fcn.1010a1d5
add esp, 8
xor eax, eax
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 7
mov word [ebp - 0x42c], ax
push 0x400
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10121f10
lea eax, [esi + 0x9c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10055576
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x414]
push 0x200
push eax
call fcn.10129e55
add esp, 0xc
mov dword [ebp - 0x434], 0
lea eax, [ebp - 0x434]
push 0
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100558a9
push 0x400
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10121f10
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
mov esi, 2
nop word [eax + eax]
push 0
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x430], 0x400
jae 0x10055729
push 0x64
call ebx
sub esi, 1
jne 0x100555e0
cmp dword [0x101be120], 0
je 0x10055984
push ecx
mov ecx, 0x101be120
call fcn.100ab390
mov eax, dword [0x101be120]
cmp byte [eax + 0x54], 0
je 0x10055984
cmp dword [eax + 0x58], 2
jb 0x10055984
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 7
mov word [ebp - 0x42c], ax
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x438]
push eax
push edi
push esi
lea eax, [ebp - 0x42c]
push str.read_srv_client_id_failed__p__p__err__d
push eax
call fcn.100ac240
add esp, 0x14
lea eax, [ebp - 0x42c]
mov ecx, 0x101be120
push 0x193
push str.RC::RCNamePipeClient::HandleShake
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeclient.cpp
push eax
push 2
call fcn.100abda0
test bl, bl
je 0x100556df
lea eax, [ebp - 0x42c]
mov ecx, 0x101be120
push eax
call fcn.100ac0c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x418]
cmp edx, 8
jb 0x1005596b
mov ecx, dword [ebp - 0x42c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10055961
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100559a9
jmp 0x10055961
push 0
lea eax, [ebp - 0x434]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10055619
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10055756
mov esi, dword [ebp - 0x438]
lea eax, [ebp - 0x414]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0xb4]
call fcn.10003610
cmp dword [0x101be120], 0
je 0x100558a2
push ecx
mov ecx, 0x101be120
call fcn.100ab390
mov eax, dword [0x101be120]
cmp byte [eax + 0x54], 0
je 0x100558a2
cmp dword [eax + 0x58], 5
jb 0x100558a2
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 7
mov word [ebp - 0x42c], ax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x414]
push eax
push edi
push esi
lea eax, [ebp - 0x42c]
push str.read_srv_client_id_success__p__p__s
push eax
call fcn.100ac240
add esp, 0x14
lea eax, [ebp - 0x42c]
mov ecx, 0x101be120
push 0x189
push str.RC::RCNamePipeClient::HandleShake
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeclient.cpp
push eax
push 5
call fcn.100abda0
test bl, bl
je 0x1005583e
lea eax, [ebp - 0x42c]
mov ecx, 0x101be120
push eax
call fcn.100ac0c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x418]
cmp edx, 8
jb 0x10055885
mov ecx, dword [ebp - 0x42c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005587b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100559ae
push edx
push ecx
call fcn.1010a1d5
add esp, 8
xor eax, eax
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 7
mov word [ebp - 0x42c], ax
mov al, 1
jmp 0x10055986
cmp dword [0x101be120], 0
je 0x10055984
push ecx
mov ecx, 0x101be120
call fcn.100ab390
mov eax, dword [0x101be120]
cmp byte [eax + 0x54], 0
je 0x10055984
cmp dword [eax + 0x58], 2
jb 0x10055984
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 7
mov word [ebp - 0x42c], ax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
lea eax, [ebp - 0x42c]
push str.write_client_id_failed__p__p__err__d
push eax
call fcn.100ac240
add esp, 0x14
lea eax, [ebp - 0x42c]
mov ecx, 0x101be120
push 0x19d
push str.RC::RCNamePipeClient::HandleShake
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeclient.cpp
push eax
push 2
call fcn.100abda0
test bl, bl
je 0x100556df
jmp 0x100556ce
push edx
push ecx
call fcn.1010a1d5
add esp, 8
xor eax, eax
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], eax
mov word [ebp - 0x42c], ax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10109e31
mov esp, ebp
pop ebp
ret 4
call fcn.10129d79
call fcn.10129d79
call fcn.10129d79
int3