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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015b43c
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 0x10055602
push ecx
mov ecx, 0x101be120
call fcn.100ab450
mov eax, dword [0x101be120]
cmp byte [eax + 0x54], 0
je 0x10055602
cmp dword [eax + 0x58], 5
jb 0x10055602
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.100ac300
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.100abe60
test bl, bl
je 0x1005559e
lea eax, [ebp - 0x42c]
mov ecx, 0x101be120
push eax
call fcn.100ac180
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x418]
cmp edx, 8
jb 0x100555e5
mov ecx, dword [ebp - 0x42c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100555db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10055a54
push edx
push ecx
call fcn.1010a295
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.10121fd0
lea eax, [esi + 0x9c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10055626
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x414]
push 0x200
push eax
call fcn.10129f15
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 0x10055959
push 0x400
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10121fd0
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 0x100557d9
push 0x64
call ebx
sub esi, 1
jne 0x10055690
cmp dword [0x101be120], 0
je 0x10055a34
push ecx
mov ecx, 0x101be120
call fcn.100ab450
mov eax, dword [0x101be120]
cmp byte [eax + 0x54], 0
je 0x10055a34
cmp dword [eax + 0x58], 2
jb 0x10055a34
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.100ac300
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.100abe60
test bl, bl
je 0x1005578f
lea eax, [ebp - 0x42c]
mov ecx, 0x101be120
push eax
call fcn.100ac180
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x418]
cmp edx, 8
jb 0x10055a1b
mov ecx, dword [ebp - 0x42c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10055a11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10055a59
jmp 0x10055a11
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 0x100556c9
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10055806
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.10003600
cmp dword [0x101be120], 0
je 0x10055952
push ecx
mov ecx, 0x101be120
call fcn.100ab450
mov eax, dword [0x101be120]
cmp byte [eax + 0x54], 0
je 0x10055952
cmp dword [eax + 0x58], 5
jb 0x10055952
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.100ac300
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.100abe60
test bl, bl
je 0x100558ee
lea eax, [ebp - 0x42c]
mov ecx, 0x101be120
push eax
call fcn.100ac180
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x418]
cmp edx, 8
jb 0x10055935
mov ecx, dword [ebp - 0x42c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005592b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10055a5e
push edx
push ecx
call fcn.1010a295
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 0x10055a36
cmp dword [0x101be120], 0
je 0x10055a34
push ecx
mov ecx, 0x101be120
call fcn.100ab450
mov eax, dword [0x101be120]
cmp byte [eax + 0x54], 0
je 0x10055a34
cmp dword [eax + 0x58], 2
jb 0x10055a34
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.100ac300
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.100abe60
test bl, bl
je 0x1005578f
jmp 0x1005577e
push edx
push ecx
call fcn.1010a295
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.10109ef1
mov esp, ebp
pop ebp
ret 4
call fcn.10129e39
call fcn.10129e39
call fcn.10129e39
int3