Function at 0x1400023a8
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x140021bb8]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r15d, r15d
mov dil, r8b
mov r8, qword [0x140026798]
mov rbx, rcx
mov dword [rsp + 0x30], r15d
test r8, r8
je 0x140002444
lea rdx, [0x140014b58]
lea rcx, str._s:_Reading_initial_command__s_n
call fcn.140002b34
mov rdx, qword [0x140026798]
mov r8d, 0x1000
mov rcx, rbx
call fcn.14000b57c
mov qword [0x140026798], r15
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000e6b0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
or esi, 0xffffffff
cmp qword [0x1400267a0], r15
je 0x14000250d
xor ecx, ecx
call fcn.14000ee48
mov rcx, qword [0x1400267a0]
cmp rcx, rax
je 0x140002508
mov r8, rcx
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_fgetws]
test rax, rax
jne 0x1400024c2
mov rcx, qword [0x1400267a0]
call qword [sym.imp.msvcrt.dll_fclose]
mov eax, dword [0x140026790]
test eax, eax
je 0x1400024ad
add eax, esi
lea rcx, [0x140026690]
mov dword [0x140026790], eax
mov rax, qword [rcx + rax*8]
jmp 0x1400024b4
xor ecx, ecx
call fcn.14000ee48
mov qword [0x1400267a0], rax
test rax, rax
jne 0x140002454
jmp 0x14000250d
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rbx + rdi*2], r15w
jne 0x1400024c6
mov rdx, rbx
lea rcx, [0x140012204]
call fcn.140002b34
test edi, edi
je 0x1400024f7
lea eax, [rdi - 1]
cmp word [rbx + rax*2], 0xa
jne 0x1400024f7
mov word [rbx + rax*2], r15w
jmp 0x140002419
lea rcx, [0x14001220c]
call fcn.140002b34
jmp 0x140002419
test rcx, rcx
jne 0x14000251b
xor ecx, ecx
call fcn.14000ee48
mov qword [0x1400267a0], rax
mov eax, dword [0x140028410]
test eax, eax
je 0x140002582
cmp eax, 2
jbe 0x14000253a
cmp eax, 3
jne 0x140002419
xor al, al
jmp 0x14000241b
test dil, dil
je 0x140002533
mov rax, qword [0x140026650]
lea rdx, [rsp + 0x40]
mov r8d, 0x200
lea rcx, [0x14001272e]
call qword [0x140011380]
or r9, 0xffffffffffffffff
mov dword [rsp + 0x28], 0x1000
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
test eax, eax
jmp 0x14000252d
mov rdx, qword [0x140026618]
cmp rdx, qword [0x140026628]
jne 0x14000265c
test dil, dil
je 0x140002533
test rdx, rdx
jne 0x1400025aa
mov edi, 0x8000ffff
jmp 0x1400026e3
cmp byte [0x14002260b], r15b
je 0x1400025ce
mov rcx, qword [0x140026640]
lea rax, [rsp + 0x30]
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.1400016b8
jmp 0x1400025e3
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x1000
mov rcx, rbx
call fcn.140001a30
mov edi, eax
test eax, eax
jne 0x1400026e3
mov edi, dword [rsp + 0x30]
cmp edi, 2
jb 0x140002611
lea edx, [rdi - 2]
cmp word [rbx + rdx*2], 0xd
jne 0x140002611
lea eax, [rdi - 1]
cmp word [rbx + rax*2], 0xa
jne 0x140002611
mov word [rbx + rdx*2], r15w
mov edi, edx
mov esi, r15d
test edi, edi
je 0x140002419
cmp esi, 0x1000
jae 0x140002419
mov rdx, qword [0x140026660]
mov rcx, qword [0x140026638]
mov r14d, esi
movzx r8d, word [rbx + r14*2]
call fcn.14000216c
test eax, eax
je 0x140002651
mov eax, 0x20
mov word [rbx + r14*2], ax
inc esi
cmp esi, edi
jb 0x14000261c
jmp 0x140002419
cmp dword [0x140022600], r15d
jne 0x1400026b0
mov rcx, qword [0x140026610]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x1400026a7
test dil, dil
je 0x140002533
mov rcx, qword [0x140026638]
mov edx, esi
mov rax, qword [rcx]
mov rax, qword [rax + 0xe0]
call qword [0x140011380]
test eax, eax
jne 0x1400026d1
cmp dword [0x140026630], 6
jne 0x140002533
cmp dword [0x140022600], r15d
je 0x140002674
lea r9, [rsp + 0x30]
mov r8b, 1
mov edx, 0x1000
mov rcx, rbx
call fcn.140001a30
mov ebx, eax
test eax, eax
je 0x140002419
jmp 0x1400026f8
lea rcx, str.Unable_to_dispatch_callbacks_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
jmp 0x140002533
lea rcx, [0x140012210]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov ecx, edi
call fcn.140002e94
int3
lea rcx, [0x140012210]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov ecx, ebx
call fcn.140002e94
int3