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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [ebp + 8]
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
push edi
call ebx
test eax, eax
jne 0x410fb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x34f
push str.pipe.cpp
call fcn.0043bd8c
push str.Failed_to_read_size_of_verification_secret_from_parent_pipe.
jmp 0x41111e
mov eax, dword [ebp - 8]
shr eax, 1
cmp eax, 0xff
jbe 0x410fde
mov edi, 0x8007000d
push edi
push 0x355
push str.pipe.cpp
mov esi, edi
call fcn.0043bd8c
push str.Verification_secret_from_parent_is_too_big.
push edi
jmp 0x41111f
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.00440168
mov esi, eax
test esi, esi
jns 0x410ff9
push str.Failed_to_allocate_buffer_for_verification_secret.
jmp 0x41111e
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push edi
call ebx
test eax, eax
jne 0x411044
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x35d
push str.pipe.cpp
call fcn.0043bd8c
push str.Failed_to_read_verification_secret_from_parent_pipe.
jmp 0x41111e
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x41107e
mov edi, 0x8007000d
push edi
push 0x364
push str.pipe.cpp
mov esi, edi
call fcn.0043bd8c
push str.Verification_secret_from_parent_does_not_match.
jmp 0x410fd8
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push edi
call ebx
test eax, eax
jne 0x4110c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x36a
push str.pipe.cpp
call fcn.0043bd8c
push str.Failed_to_read_verification_process_id_from_parent_pipe.
jmp 0x41111e
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
test eax, eax
jne 0x41113f
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x411126
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x37b
push str.pipe.cpp
call fcn.0043bd8c
push str.Failed_to_inform_parent_process_that_child_is_running.
push esi
call fcn.0043cb9d
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x411134
push dword [ebp - 4]
call fcn.004408e7
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, dword [ebp - 0x10]
je 0x4110d4
mov edi, 0x8007000d
push edi
push 0x375
push str.pipe.cpp
mov esi, edi
call fcn.0043bd8c
push str.Verification_process_id_from_parent_does_not_match.
jmp 0x410fd8