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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023d5b
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.listenerEvent
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 - 0x420], 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 + 0x80]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x100076c2
nop dword [eax]
mov eax, dword [ebp - 0x418]
mov byte [ebp - 0x455], 0
test eax, eax
je 0x10007421
push 0
lea eax, [ebp - 0x418]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push dword [ebx + 0x80]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100076cc
mov eax, dword [ebp - 0x418]
test eax, eax
setne byte [ebp - 0x455]
test eax, eax
je 0x100076cc
cmp eax, 0x401
jae 0x100077dc
mov byte [ebp + eax - 0x414], 0
lea eax, [ebp - 0x414]
mov dword [ebp - 0x450], 0
lea edx, [eax + 1]
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10007460
sub eax, edx
lea ecx, [ebp - 0x450]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.10006410
mov dword [ebp - 4], 0
lea edx, [ebp - 0x450]
mov edi, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x450]
mov eax, dword [ebp - 0x440]
cmp edi, 0x10
jb 0x100074a7
mov edx, ecx
lea esi, [eax + ecx]
jmp 0x100074b0
lea esi, [edx + eax]
lea edx, [ebp - 0x450]
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
cmp edx, esi
jne 0x100074f1
xor edx, edx
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], dx
jmp 0x10007510
push esi
push edx
lea ecx, [ebp - 0x438]
call fcn.10007f60
mov edi, dword [ebp - 0x43c]
mov eax, dword [ebp - 0x440]
mov ecx, dword [ebp - 0x450]
mov byte [ebp - 4], 2
lea edx, [ebp - 0x450]
cmp edi, 0x10
jb 0x10007523
add eax, ecx
jmp 0x1000752b
add eax, edx
lea ecx, [ebp - 0x450]
push eax
push ecx
lea ecx, [ebp - 0x438]
call fcn.10007cf0
cmp dword [ebp - 0x424], 8
lea esi, [ebx + 0x4c]
mov ecx, dword [esi + 0x14]
lea edx, [ebp - 0x438]
cmovae edx, dword [ebp - 0x438]
mov eax, ecx
mov ebx, dword [esi + 0x10]
sub eax, ebx
mov edi, dword [ebp - 0x428]
cmp edi, eax
ja 0x1000758c
lea eax, [edi + ebx]
mov dword [esi + 0x10], eax
cmp ecx, 8
jb 0x10007570
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 0x1000759c
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 0x100075d2
lea eax, [ebp - 0x420]
push eax
push dword [ebx + 0x88]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x100075d2
cmp dword [ebp - 0x420], 0x103
jne 0x10007744
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x424]
cmp ecx, 8
jb 0x10007616
mov edx, dword [ebp - 0x438]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000760c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100077e1
push ecx
push edx
call fcn.10008d64
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x43c]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
cmp ecx, 0x10
jb 0x10007674
mov edx, dword [ebp - 0x450]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000766a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100077e1
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 + 0x80]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x100073d0
mov dword [ebp - 0x41c], 0
mov eax, dword [ebp - 0x420]
push dword [ebp - 0x45c]
mov dword [ebx + 0x7c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x10007728
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_listenerStdOut
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 - 0x424]
cmp ecx, 8
jb 0x10007780
mov edx, dword [ebp - 0x438]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10007776
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100077e1
push ecx
push edx
call fcn.10008d64
add esp, 8
mov ecx, dword [ebp - 0x43c]
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
cmp ecx, 0x10
jb 0x100076cc
mov edx, dword [ebp - 0x450]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100077cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100077e1
push ecx
push edx
call fcn.10008d64
add esp, 8
jmp 0x100076cc
call fcn.10008ec0
call fcn.100105f0
int3