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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015e36c
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x101bd00c]
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 [0x101c2170], 0
mov edi, dword [ebp + 8]
je 0x10056502
push ecx
mov ecx, 0x101c2170
call fcn.100ac670
mov eax, dword [0x101c2170]
cmp byte [eax + 0x54], 0
je 0x10056502
cmp dword [eax + 0x58], 5
jb 0x10056502
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.100ad520
add esp, 0x10
lea eax, [ebp - 0x42c]
mov ecx, 0x101c2170
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.100ad080
test bl, bl
je 0x1005649e
lea eax, [ebp - 0x42c]
mov ecx, 0x101c2170
push eax
call fcn.100ad3a0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x418]
cmp edx, 8
jb 0x100564e5
mov ecx, dword [ebp - 0x42c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100564db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056954
push edx
push ecx
call fcn.1010cf95
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.10124cd0
lea eax, [esi + 0x9c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10056526
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x414]
push 0x200
push eax
call fcn.1012cc15
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 0x10056859
push 0x400
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10124cd0
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 0x100566d9
push 0x64
call ebx
sub esi, 1
jne 0x10056590
cmp dword [0x101c2170], 0
je 0x10056934
push ecx
mov ecx, 0x101c2170
call fcn.100ac670
mov eax, dword [0x101c2170]
cmp byte [eax + 0x54], 0
je 0x10056934
cmp dword [eax + 0x58], 2
jb 0x10056934
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.100ad520
add esp, 0x14
lea eax, [ebp - 0x42c]
mov ecx, 0x101c2170
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.100ad080
test bl, bl
je 0x1005668f
lea eax, [ebp - 0x42c]
mov ecx, 0x101c2170
push eax
call fcn.100ad3a0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x418]
cmp edx, 8
jb 0x1005691b
mov ecx, dword [ebp - 0x42c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10056911
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056959
jmp 0x10056911
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 0x100565c9
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10056706
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 [0x101c2170], 0
je 0x10056852
push ecx
mov ecx, 0x101c2170
call fcn.100ac670
mov eax, dword [0x101c2170]
cmp byte [eax + 0x54], 0
je 0x10056852
cmp dword [eax + 0x58], 5
jb 0x10056852
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.100ad520
add esp, 0x14
lea eax, [ebp - 0x42c]
mov ecx, 0x101c2170
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.100ad080
test bl, bl
je 0x100567ee
lea eax, [ebp - 0x42c]
mov ecx, 0x101c2170
push eax
call fcn.100ad3a0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x418]
cmp edx, 8
jb 0x10056835
mov ecx, dword [ebp - 0x42c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005682b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005695e
push edx
push ecx
call fcn.1010cf95
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 0x10056936
cmp dword [0x101c2170], 0
je 0x10056934
push ecx
mov ecx, 0x101c2170
call fcn.100ac670
mov eax, dword [0x101c2170]
cmp byte [eax + 0x54], 0
je 0x10056934
cmp dword [eax + 0x58], 2
jb 0x10056934
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.100ad520
add esp, 0x14
lea eax, [ebp - 0x42c]
mov ecx, 0x101c2170
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.100ad080
test bl, bl
je 0x1005668f
jmp 0x1005667e
push edx
push ecx
call fcn.1010cf95
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.1010cbf1
mov esp, ebp
pop ebp
ret 4
call fcn.1012cb39
call fcn.1012cb39
call fcn.1012cb39
int3