Function at 0x100ced50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017e821
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x101f0014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x414], 0
lea eax, [ebp - 0x414]
push 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100cefe0
cmp dword [ebp - 0x414], 0x400
jne 0x100cefe0
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100cede0
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
lea edi, [esi + 0x40]
push ecx
push eax
mov ecx, edi
call fcn.10007cf0
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x410]
push str._d__p__p
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov dword [ebp - 0x414], 0
lea eax, [ebp - 0x414]
push 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100cef48
cmp dword [ebp - 0x414], 0x400
jne 0x100cef48
lea ecx, [ebp - 0x410]
mov bh, 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100cee80
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10007cf0
cmp dword [0x101f4a2c], 0
je 0x100cf0bb
push 0
mov ecx, 0x101f4a2c
call fcn.1014c4b0
mov eax, dword [0x101f4a2c]
cmp byte [eax + 0x54], 0
je 0x100cf0bb
cmp dword [eax + 0x58], 5
jb 0x100cf0bb
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
cmp dword [edi + 0x14], 8
jb 0x100cef13
mov edi, dword [edi]
push edi
push dword [esi]
lea eax, [ebp - 0x42c]
push esi
push str.read_client_id_and_write_srv_client_id_success__p__p__s
push eax
call fcn.100b1860
add esp, 0x14
lea eax, [ebp - 0x42c]
push 0x8b
push str.RC::RCNamePipeServer::RCPipeClientNode::HandleShake
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeserver.cpp
push eax
push 5
jmp 0x100cf08a
xor bh, bh
cmp dword [0x101f4a2c], 0
je 0x100cf0bb
push 0
mov ecx, 0x101f4a2c
call fcn.1014c4b0
mov eax, dword [0x101f4a2c]
cmp byte [eax + 0x54], bh
je 0x100cf0bb
cmp dword [eax + 0x58], 2
jb 0x100cf0bb
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x414]
lea eax, [ebp - 0x42c]
push dword [esi]
push esi
push str.write_srv_client_id_failed__p__p__d___d
push eax
call fcn.100b1860
add esp, 0x18
push 0x82
jmp 0x100cf077
xor bh, bh
cmp dword [0x101f4a2c], 0
je 0x100cf0bb
push 0
mov ecx, 0x101f4a2c
call fcn.1014c4b0
mov eax, dword [0x101f4a2c]
cmp byte [eax + 0x54], bh
je 0x100cf0bb
cmp dword [eax + 0x58], 2
jb 0x100cf0bb
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]
push eax
push dword [ebp - 0x414]
lea eax, [ebp - 0x42c]
push dword [esi]
push esi
push str.read_client_id_failed__p__p__d___d
push eax
call fcn.100b1860
add esp, 0x18
push 0x95
push str.RC::RCNamePipeServer::RCPipeClientNode::HandleShake
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeserver.cpp
lea eax, [ebp - 0x42c]
push eax
push 2
mov ecx, 0x101f4a2c
call fcn.1014ce30
test bl, bl
je 0x100cf0a9
lea eax, [ebp - 0x42c]
mov ecx, 0x101f4a2c
push eax
call fcn.1014d150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.10007c90
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101606b4
mov esp, ebp
pop ebp
ret