Function at 0x140001aa0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rbx, rcx
lea r12, [rax + 0x10]
mov qword [rax - 0x78], r12
call fcn.140001140
mov r15, rax
mov rcx, qword [rax]
or rcx, 2
mov qword [rsp + 0x28], r12
xor ebp, ebp
mov qword [rsp + 0x20], rbp
mov r9, rbx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
mov r13, 0xffffffffffffffff
test eax, eax
cmovs eax, r13d
add eax, 1
movsxd r14, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbp
je 0x140001b99
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x140001cfe
lea rsi, [r14 + r14]
test rsi, rsi
jne 0x140001b3a
mov edi, ebp
jmp 0x140001b77
cmp rsi, 0x1000
jb 0x140001b6c
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x140001cf8
call fcn.140011d30
test rax, rax
je 0x140001cd8
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001b77
mov rcx, rsi
call fcn.140011d30
mov rdi, rax
mov qword [rsp + 0x50], rdi
lea rbx, [rsi + rdi]
mov qword [rsp + 0x60], rbx
mov r8, rsi
xor edx, edx
mov rcx, rdi
call fcn.1400168c0
mov qword [rsp + 0x58], rbx
jmp 0x140001b9e
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rbp
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9, r13
mov r8, r14
mov rdx, rdi
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnwprintf_s]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [0x140023a74]
mov qword [rsp + 0x48], rax
mov ebx, ebp
mov eax, 1
xchg dword [0x140023a74], eax
test eax, eax
je 0x140001c0f
nop dword [rax]
mov eax, ebx
inc ebx
test eax, 0x3ff
jne 0x140001c00
call sub.KERNEL32.dll_SwitchToThread
mov eax, 1
xchg dword [0x140023a74], eax
test eax, eax
jne 0x140001bf0
mov edi, 8
mov rax, qword gs:[0x58]
add rdi, qword [rax]
mov rax, qword [rdi]
test rax, rax
jne 0x140001c56
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbx, rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdx, rax
mov r8, rbx
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.140006270
jmp 0x140001c64
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [0x140018458]
cmp dword [0x140023a70], 0
je 0x140001c9d
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [0x140023a78]
cmp rcx, rax
jne 0x140001c8a
cmp qword [rdi], 0
je 0x140001c9d
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0xc0]
call fcn.1400061f0
nop
nop
mov dword [0x140023a74], ebp
test rbx, rbx
je 0x140001ce7
mov rdx, qword [rsp + 0x60]
sub rdx, rbx
sar rdx, 1
add rdx, rdx
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001cdf
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cdf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140011d6c
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140001250
int3
call fcn.140001f10
int3