Function at 0x100077f0
Capabilities:
Read file on windows
Read pipe
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023dab
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x10032048]
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 dword [ebp - 0x454], ebx
push str.listenerStdErrEvent
push 0
push 0x1f0003
mov dword [ebp - 0x41c], 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
push dword [ebx + 0x8c]
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x450], 0x103
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x401
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.1000a7b0
add esp, 0xc
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push dword [ebx + 0x84]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x10007ba2
nop dword [eax]
mov eax, dword [ebp - 0x418]
mov byte [ebp - 0x455], 0
test eax, eax
je 0x10007901
push 0
lea eax, [ebp - 0x418]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push dword [ebx + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10007bac
mov eax, dword [ebp - 0x418]
test eax, eax
setne byte [ebp - 0x455]
test eax, eax
je 0x10007bac
cmp eax, 0x401
jae 0x10007cb3
mov byte [ebp + eax - 0x414], 0
lea eax, [ebp - 0x414]
mov dword [ebp - 0x44c], 0
lea edx, [eax + 1]
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10007940
sub eax, edx
lea ecx, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.10006410
mov dword [ebp - 4], 0
lea edx, [ebp - 0x44c]
mov edi, dword [ebp - 0x438]
mov ecx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x43c]
cmp edi, 0x10
jb 0x10007987
mov edx, ecx
lea esi, [eax + ecx]
jmp 0x10007990
lea esi, [edx + eax]
lea edx, [ebp - 0x44c]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
cmp edx, esi
jne 0x100079d1
xor edx, edx
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 7
mov word [ebp - 0x434], dx
jmp 0x100079f0
push esi
push edx
lea ecx, [ebp - 0x434]
call fcn.10007f60
mov edi, dword [ebp - 0x438]
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x44c]
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44c]
cmp edi, 0x10
jb 0x10007a03
add eax, ecx
jmp 0x10007a0b
add eax, edx
lea ecx, [ebp - 0x44c]
push eax
push ecx
lea ecx, [ebp - 0x434]
call fcn.10007cf0
cmp dword [ebp - 0x420], 8
lea esi, [ebx + 0x64]
mov ecx, dword [esi + 0x14]
lea edx, [ebp - 0x434]
cmovae edx, dword [ebp - 0x434]
mov eax, ecx
mov ebx, dword [esi + 0x10]
sub eax, ebx
mov edi, dword [ebp - 0x424]
cmp edi, eax
ja 0x10007a6c
lea eax, [edi + ebx]
mov dword [esi + 0x10], eax
cmp ecx, 8
jb 0x10007a50
mov esi, dword [esi]
lea eax, [edi + edi]
push eax
lea ecx, [esi + ebx*2]
push edx
push ecx
call fcn.1000a230
add esp, 0xc
lea eax, [edi + ebx]
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x10007a7c
push edi
push edx
push dword [ebp - 0x45c]
mov ecx, esi
push edi
call fcn.10006960
cmp byte [ebp - 0x455], 0
mov ebx, dword [ebp - 0x454]
jne 0x10007ab2
lea eax, [ebp - 0x450]
push eax
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x10007ab2
cmp dword [ebp - 0x450], 0x103
jne 0x10007c1b
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x420]
cmp ecx, 8
jb 0x10007af6
mov edx, dword [ebp - 0x434]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10007aec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007cb8
push ecx
push edx
call fcn.10008d64
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x438]
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 7
mov word [ebp - 0x434], ax
cmp ecx, 0x10
jb 0x10007b54
mov edx, dword [ebp - 0x44c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10007b4a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007cb8
push ecx
push edx
call fcn.10008d64
add esp, 8
push 0x401
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.1000a7b0
add esp, 0xc
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push dword [ebx + 0x84]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x100078b0
mov dword [ebp - 0x41c], 0
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x10007bff
push eax
push eax
lea eax, [ebp - 0x454]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x10
push str.Thread_stdout_listener
push dword [ebp - 0x454]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_LocalFree]
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.10008d1c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x420]
cmp ecx, 8
jb 0x10007c57
mov edx, dword [ebp - 0x434]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10007c4d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007cb8
push ecx
push edx
call fcn.10008d64
add esp, 8
mov ecx, dword [ebp - 0x438]
xor eax, eax
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 7
mov word [ebp - 0x434], ax
cmp ecx, 0x10
jb 0x10007bac
mov edx, dword [ebp - 0x44c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10007ca4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007cb8
push ecx
push edx
call fcn.10008d64
add esp, 8
jmp 0x10007bac
call fcn.10008ec0
call fcn.100105f0
int3