Function at 0x1400034e4
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x140021bb8]
xor rax, rsp
mov qword [rsp + 0x150], rax
cmp qword [0x1400225f8], 0
jne 0x14000364b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [0x140026610], rax
test rax, rax
je 0x140003664
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
lea r8, str..pipeDbg_d
mov edx, 0x100
mov r9d, eax
lea rcx, [rsp + 0x50]
call fcn.14000b52c
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x50]
or dword [rsp + 0x30], 0xffffffff
mov eax, 0x7d0
mov dword [rsp + 0x28], eax
mov edx, 0x40000003
mov r9d, 2
mov dword [rsp + 0x20], eax
call fcn.14000c568
mov qword [0x1400225f8], rax
cmp rax, 0xffffffffffffffff
je 0x140003690
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileA]
mov qword [0x140026618], rax
cmp rax, 0xffffffffffffffff
je 0x1400036bc
lea rax, [rsp + 0x40]
mov byte [0x14002260b], 0
mov qword [rsp + 0x28], rax
lea r8, [0x140003000]
xor r9d, r9d
mov dword [rsp + 0x20], 0x20
mov edx, 0x3e80
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x1400036e8
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadPriority]
test eax, eax
je 0x140003714
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x140003641
mov rcx, qword [0x140026638]
mov edx, 0x32
mov rax, qword [rcx]
mov rax, qword [rax + 0xe0]
call qword [0x140011380]
cmp qword [0x140022598], 0
je 0x140003625
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000e6b0
add rsp, 0x160
pop rbx
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, bx
lea rdx, str.Unable_to_create_input_event___d_n
or ecx, 0x80070000
mov r8d, eax
test ebx, ebx
cmovle ecx, ebx
call fcn.140002f30
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, bx
lea rdx, str.Failed_to_create_input_pipe___d_n
or ecx, 0x80070000
mov r8d, eax
test ebx, ebx
cmovle ecx, ebx
call fcn.140002f30
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, bx
lea rdx, str.Failed_to_create_read_pipe___d_n
or ecx, 0x80070000
mov r8d, eax
test ebx, ebx
cmovle ecx, ebx
call fcn.140002f30
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, bx
lea rdx, str.Failed_to_create_input_thread___d_n
or ecx, 0x80070000
mov r8d, eax
test ebx, ebx
cmovle ecx, ebx
call fcn.140002f30
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, bx
lea rdx, str.Failed_to_raise_the_input_thread_priority___d_n
or ecx, 0x80070000
mov r8d, eax
test ebx, ebx
cmovle ecx, ebx
call fcn.140002f30
int3