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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5402ac
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x588088]
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 [0x58c9f8], 0
mov edi, dword [ebp + 8]
je 0x4d1076
push ecx
mov ecx, 0x58c9f8
call fcn.004be120
mov eax, dword [0x58c9f8]
cmp byte [eax + 0x54], 0
je 0x4d1076
cmp dword [eax + 0x58], 5
jb 0x4d1076
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x430]
call fcn.00402ac0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x430]
push edi
push esi
push str.handle_shake_start__p__p
push eax
call fcn.004bf1e0
add esp, 0x10
lea eax, [ebp - 0x430]
mov ecx, 0x58c9f8
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.004bece0
test bl, bl
je 0x4d1064
lea eax, [ebp - 0x430]
mov ecx, 0x58c9f8
push eax
call fcn.004bf030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.00402a60
push 0x400
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004e42f0
add esp, 0xc
lea ecx, [esi + 0x9c]
call fcn.00403390
push eax
lea eax, [ebp - 0x414]
push 0x200
push eax
call fcn.004f9e19
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 0x4d12ba
push 0x400
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004e42f0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
mov esi, 2
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x418], 0x400
jae 0x4d11bf
push 0x64
call ebx
sub esi, 1
jne 0x4d1100
cmp dword [0x58c9f8], 0
je 0x4d1379
push ecx
mov ecx, 0x58c9f8
call fcn.004be120
mov eax, dword [0x58c9f8]
cmp byte [eax + 0x54], 0
je 0x4d1379
cmp dword [eax + 0x58], 2
jb 0x4d1379
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x430]
call fcn.00402ac0
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x418], eax
call fcn.00402ae0
mov esi, dword [ebp - 0x438]
mov eax, dword [eax]
push eax
push edi
push esi
lea eax, [ebp - 0x430]
push str.read_srv_client_id_failed__p__p__err__d
push eax
call fcn.004bf1e0
add esp, 0x14
push 0x193
jmp 0x4d1335
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 0x4d1139
lea eax, [ebp - 0x414]
push eax
call fcn.00402d60
mov esi, dword [ebp - 0x438]
add esp, 4
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [esi + 0xb4]
call fcn.00402b50
cmp dword [0x58c9f8], 0
je 0x4d12b3
push ecx
mov ecx, 0x58c9f8
call fcn.004be120
mov eax, dword [0x58c9f8]
cmp byte [eax + 0x54], 0
je 0x4d12b3
cmp dword [eax + 0x58], 5
jb 0x4d12b3
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x430]
call fcn.00402ac0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x414]
push eax
push edi
push esi
lea eax, [ebp - 0x430]
push str.read_srv_client_id_success__p__p__s
push eax
call fcn.004bf1e0
add esp, 0x14
lea eax, [ebp - 0x430]
mov ecx, 0x58c9f8
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.004bece0
test bl, bl
je 0x4d12a1
lea eax, [ebp - 0x430]
mov ecx, 0x58c9f8
push eax
call fcn.004bf030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.00402a60
mov al, 1
jmp 0x4d137b
cmp dword [0x58c9f8], 0
je 0x4d1379
push ecx
mov ecx, 0x58c9f8
call fcn.004be120
mov eax, dword [0x58c9f8]
cmp byte [eax + 0x54], 0
je 0x4d1379
cmp dword [eax + 0x58], 2
jb 0x4d1379
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x430]
call fcn.00402ac0
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x438], eax
call fcn.00402ae0
mov eax, dword [eax]
push eax
push edi
push esi
lea eax, [ebp - 0x430]
push str.write_client_id_failed__p__p__err__d
push eax
call fcn.004bf1e0
add esp, 0x14
push 0x19d
push str.RC::RCNamePipeClient::HandleShake
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeclient.cpp
lea eax, [ebp - 0x430]
mov ecx, 0x58c9f8
push eax
push 2
call fcn.004bece0
test bl, bl
je 0x4d1367
lea eax, [ebp - 0x430]
mov ecx, 0x58c9f8
push eax
call fcn.004bf030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.00402a60
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.004e1a24
mov esp, ebp
pop ebp
ret 4