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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5891a8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x634384]
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 ebx, ecx
mov ecx, dword [ebx + 4]
mov esi, dword [ebp + 8]
add esi, 4
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
cmp eax, vtable.CPipeIpcTransportEndpoint.0
jne 0x47cc2f
mov edx, dword [ecx + 0x1c]
cmp edx, 0xffffffff
je 0x47ca76
mov ecx, dword [esi]
lea edi, [ebp - 0x2c]
mov eax, dword [esi + 4]
push 0
push edi
sub eax, ecx
mov dword [ebp - 0x2c], 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x47ca80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
je 0x47cc14
jmp 0x47cbe2
push str.invalid_endpoint
jmp 0x47cc19
mov ebx, dword [ebx + 4]
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
cmp eax, vtable.CPipeIpcTransportEndpoint.0
jne 0x47cc3b
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0xffffffff
je 0x47ca76
mov eax, dword [esi + 4]
xor edi, edi
mov edx, dword [esi]
sub eax, edx
mov dword [ebp - 0x2c], 0
cmp eax, 0x2000
jae 0x47cac4
push esi
push 0x2000
mov ecx, esi
call fcn.0044ab60
mov edx, dword [esi]
mov ecx, dword [ebx + 0x1c]
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x2000
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x47cae9
push esi
push dword [ebp - 0x2c]
mov ecx, esi
call fcn.0044ab60
jmp 0x47cb61
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x47cb3a
mov eax, dword [esi + 4]
mov ecx, esi
sub eax, dword [esi]
add eax, 0x2000
push esi
push eax
call fcn.0044ab60
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
push 0
push ecx
add edi, 0x2000
push 0x2000
add eax, edi
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
je 0x47cb53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x47caf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x47cbce
push str.unable_to_read_message
jmp 0x47cc19
mov eax, dword [ebp - 0x2c]
mov ecx, esi
add eax, edi
push esi
push eax
call fcn.0044ab60
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
cmp eax, 0xb
jbe 0x47cbf6
push 0xb
push str._EXCEPTION_
push ecx
call fcn.0055cd46
add esp, 0xc
test eax, eax
jne 0x47cbf6
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.0047cc60
mov edx, eax
mov ecx, esi
push 0xb
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0047cc70
mov ecx, eax
call fcn.0047cc50
push ecx
push dword [edx]
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.0047cc80
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.00410610
push 0x630794
jmp 0x47cc26
push str.Unable_to_read_function_return_parameters
lea ecx, [ebp - 0x38]
call fcn.00410660
push 0x630794
jmp 0x47cc26
push str.Unable_to_write_function_parameters_
lea ecx, [ebp - 0x38]
call fcn.00410660
push 0x630794
jmp 0x47cc26
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.005395e6
mov esp, ebp
pop ebp
ret 4
push str.unable_to_write_message
lea ecx, [ebp - 0x38]
call fcn.004807f0
push 0x630964
lea eax, [ebp - 0x38]
push eax
call fcn.005510b1
push esi
call edx
test al, al
je 0x47cbe2
jmp 0x47ca80
push esi
mov ecx, ebx
call edx
test al, al
je 0x47cbce
jmp 0x47cb61