Function at 0x1400f64f0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
mov r13, rdx
mov rdi, rcx
cmp r9b, 0xa
je 0x1400f6519
cmp r9b, 0x10
jne 0x1400f6ac6
mov r14b, byte [rsp + 0x1a0]
cmp r9b, 0xa
je 0x1400f6530
test r14b, r14b
jne 0x1400f68b9
test r8, r8
jne 0x1400f653e
test r14b, r14b
jne 0x1400f694f
mov r10b, byte [rsp + 0x190]
cmp r10b, 0x1e
jae 0x1400f69e5
mov r15b, byte [rsp + 0x198]
test r10b, r10b
setne al
and al, r14b
xor r12d, r12d
test r15b, r15b
je 0x1400f6583
test r14b, r14b
je 0x1400f6583
mov rcx, qword [rdi]
mov r12d, 1
cmp rcx, r13
jae 0x1400f6583
mov byte [rcx], 0x2d
add qword [rdi], 1
mov bl, byte [rsp + 0x1a8]
sub r10b, al
xor r14b, 1
movzx esi, r9b
mov ebp, 1
jmp 0x1400f65b9
mov rax, rcx
xor edx, edx
div rsi
mov r8, rax
mov qword [rsp + rbp*8 + 0x30], rdx
add rbp, 2
cmp rcx, rsi
jb 0x1400f6623
cmp rbp, 0x1f
je 0x1400f6823
mov rax, r8
shr rax, 0x20
je 0x1400f65f0
mov rax, r8
xor edx, edx
div rsi
mov rcx, rax
mov qword [rsp + rbp*8 + 0x28], rdx
cmp r8, rsi
jae 0x1400f6603
jmp 0x1400f6627
mov eax, r8d
xor edx, edx
div esi
mov ecx, eax
mov qword [rsp + rbp*8 + 0x28], rdx
cmp r8, rsi
jb 0x1400f6627
mov rax, rcx
shr rax, 0x20
jne 0x1400f65a0
mov eax, ecx
xor edx, edx
div esi
mov r8d, eax
mov qword [rsp + rbp*8 + 0x30], rdx
add rbp, 2
cmp rcx, rsi
jae 0x1400f65b9
add rbp, 0xffffffffffffffff
movzx esi, r10b
mov eax, esi
sub eax, ebp
jbe 0x1400f66d3
mov ecx, eax
or ecx, ebp
shl ecx, 3
test cl, 8
jne 0x1400f6682
movsxd rcx, eax
movabs rax, 0x1fffffffffffffff
and rax, rcx
je 0x1400f66d1
lea rcx, [rsp + rbp*8]
add rcx, 0x30
lea rax, [rcx + rax*8]
lea r8, [rsp + rbp*8]
add r8, 0x40
cmp rax, r8
cmova r8, rax
sub r8, rcx
add r8, 0xf
and r8, 0xfffffffffffffff0
xor edx, edx
call sub.msvcrt.dll_memset
jmp 0x1400f66d1
test eax, eax
je 0x1400f66d1
movzx eax, r10b
shl rax, 3
shl rbp, 3
nop word cs:[rax + rax]
nop dword [rax]
mov byte [rsp + rbp + 0x30], 0
mov byte [rsp + rbp + 0x31], 0
mov byte [rsp + rbp + 0x32], 0
mov byte [rsp + rbp + 0x33], 0
mov byte [rsp + rbp + 0x34], 0
mov byte [rsp + rbp + 0x35], 0
mov byte [rsp + rbp + 0x36], 0
mov byte [rsp + rbp + 0x37], 0
add rbp, 8
cmp rax, rbp
jne 0x1400f66a0
mov ebp, esi
add ebp, 0xffffffff
jmp 0x1400f66ed
add r12d, 1
lea eax, [rbp - 1]
test ebp, ebp
mov ebp, eax
jle 0x1400f6717
mov eax, ebp
cmp qword [rsp + rax*8 + 0x30], 0
jne 0x1400f6715
mov rax, qword [rdi]
cmp rax, r13
jae 0x1400f66e0
test ebp, ebp
sete cl
or cl, r15b
shl cl, 4
or cl, 0x20
mov byte [rax], cl
add qword [rdi], 1
jmp 0x1400f66e0
mov eax, ebp
or r14b, r15b
jne 0x1400f672f
mov rcx, qword [rdi]
cmp rcx, r13
jae 0x1400f672b
mov byte [rcx], 0x2d
add qword [rdi], 1
add r12d, 1
test eax, eax
js 0x1400f680c
mov rcx, qword [rdi]
cmp rcx, r13
jae 0x1400f6805
xor bl, 1
shl bl, 5
add bl, 0x37
mov edx, eax
test al, 1
jne 0x1400f677f
cmp rcx, r13
jae 0x1400f677b
mov r8b, byte [rsp + rdx*8 + 0x30]
cmp r8b, 0xa
movzx ebp, bl
mov esi, 0x30
cmovge esi, ebp
add sil, r8b
mov byte [rcx], sil
mov rcx, qword [rdi]
add rcx, 1
mov qword [rdi], rcx
add rdx, 0xffffffffffffffff
test eax, eax
je 0x1400f6805
add rdx, 2
movzx r9d, bl
mov r8d, 0x30
jmp 0x1400f67aa
add rdx, 0xfffffffffffffffe
cmp rdx, 1
jle 0x1400f6805
cmp rcx, r13
jb 0x1400f67c0
cmp rcx, r13
jae 0x1400f67a0
jmp 0x1400f67e4
movzx ebx, byte [rsp + rdx*8 + 0x20]
cmp bl, 0xa
mov ebp, r9d
cmovl ebp, r8d
add bpl, bl
mov byte [rcx], bpl
mov rcx, qword [rdi]
add rcx, 1
mov qword [rdi], rcx
cmp rcx, r13
jae 0x1400f67a0
movzx ebx, byte [rsp + rdx*8 + 0x18]
cmp bl, 0xa
mov esi, r9d
cmovl esi, r8d
add sil, bl
mov byte [rcx], sil
mov rcx, qword [rdi]
add rcx, 1
mov qword [rdi], rcx
jmp 0x1400f67a0
add r12d, eax
add r12d, 1
mov eax, r12d
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, qword [0x140121520]
mov al, 1
xchg byte [rsi], al
test al, al
jne 0x1400f6a7b
lea rcx, [0x140121520]
call method.__sanitizer::ReportFile.ReopenIfNecessary__
mov rcx, qword [0x140121528]
cmp rcx, 0xffffffffffffffff
je 0x1400f6b58
lea rax, [rcx - 1]
cmp rax, 1
ja 0x1400f6879
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x1400f68a4
mov qword [rsp + 0x20], 0
lea rdx, str.AppendNumber_buffer_overflow
lea r9, [rsp + 0x2c]
mov r8d, 0x1c
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400f68b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.AppendNumber_buffer_overflow
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [rsi], 0
call method.__sanitizer.Die__
mov rsi, qword [0x140121520]
mov al, 1
xchg byte [rsi], al
test al, al
jne 0x1400f6b7c
lea rcx, [0x140121520]
call method.__sanitizer::ReportFile.ReopenIfNecessary__
mov rcx, qword [0x140121528]
cmp rcx, 0xffffffffffffffff
je 0x1400f6b58
lea rax, [rcx - 1]
cmp rax, 1
ja 0x1400f690f
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x1400f693a
mov qword [rsp + 0x20], 0
lea rdx, str.base__10___negative_n
lea r9, [rsp + 0x30]
mov r8d, 0x18
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400f6947
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.base__10___negative_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [rsi], 0
call method.__sanitizer.Die__
mov rsi, qword [0x140121520]
mov al, 1
xchg byte [rsi], al
test al, al
jne 0x1400f6bc6
lea rcx, [0x140121520]
call method.__sanitizer::ReportFile.ReopenIfNecessary__
mov rcx, qword [0x140121528]
cmp rcx, 0xffffffffffffffff
je 0x1400f6b58
lea rax, [rcx - 1]
cmp rax, 1
ja 0x1400f69a5
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x1400f69d0
mov qword [rsp + 0x20], 0
lea rdx, str.absolute_value___negative_n
lea r9, [rsp + 0x30]
mov r8d, 0x1c
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400f69dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.absolute_value___negative_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [rsi], 0
call method.__sanitizer.Die__
mov rsi, qword [0x140121520]
mov al, 1
xchg byte [rsi], al
test al, al
jne 0x1400f6c16
lea rcx, [0x140121520]
call method.__sanitizer::ReportFile.ReopenIfNecessary__
mov rcx, qword [0x140121528]
cmp rcx, 0xffffffffffffffff
je 0x1400f6b58
lea rax, [rcx - 1]
cmp rax, 1
ja 0x1400f6a3b
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x1400f6a66
mov qword [rsp + 0x20], 0
lea rdx, str.minimal_num_length___kMaxLen_n
lea r9, [rsp + 0x30]
mov r8d, 0x1d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400f6a73
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.minimal_num_length___kMaxLen_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [rsi], 0
call method.__sanitizer.Die__
xor edi, edi
mov rbx, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400f6a93
add edi, 1
cmp edi, 0x63
ja 0x1400f6ab0
pause
cmp byte [rsi], 0
jne 0x1400f6a90
jmp 0x1400f6ab9
xor ecx, ecx
call rbx
cmp byte [rsi], 0
jne 0x1400f6a90
mov al, 1
xchg byte [rsi], al
test al, al
jne 0x1400f6a90
jmp 0x1400f6836
mov rsi, qword [0x140121520]
mov al, 1
xchg byte [rsi], al
test al, al
jne 0x1400f6c66
lea rcx, [0x140121520]
call method.__sanitizer::ReportFile.ReopenIfNecessary__
mov rcx, qword [0x140121528]
cmp rcx, 0xffffffffffffffff
je 0x1400f6b58
lea rax, [rcx - 1]
cmp rax, 1
ja 0x1400f6b18
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x1400f6b43
mov qword [rsp + 0x20], 0
lea rdx, str.base__10__base__16_n
lea r9, [rsp + 0x30]
mov r8d, 0x19
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400f6b50
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.base__10__base__16_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [rsi], 0
call method.__sanitizer.Die__
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__fd_____fd_t__1_______0_
mov edx, 0x24a7
xor r9d, r9d
call method.__sanitizer.CheckFailed_char_const__int__char_const__unsigned_long_long__unsigned_long_long_
xor edi, edi
mov rbx, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400f6b93
add edi, 1
cmp edi, 0x63
ja 0x1400f6bb0
pause
cmp byte [rsi], 0
jne 0x1400f6b90
jmp 0x1400f6bb9
xor ecx, ecx
call rbx
cmp byte [rsi], 0
jne 0x1400f6b90
mov al, 1
xchg byte [rsi], al
test al, al
jne 0x1400f6b90
jmp 0x1400f68cc
xor edi, edi
mov rbx, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400f6be3
add edi, 1
cmp edi, 0x63
ja 0x1400f6c00
pause
cmp byte [rsi], 0
jne 0x1400f6be0
jmp 0x1400f6c09
xor ecx, ecx
call rbx
cmp byte [rsi], 0
jne 0x1400f6be0
mov al, 1
xchg byte [rsi], al
test al, al
jne 0x1400f6be0
jmp 0x1400f6962
xor edi, edi
mov rbx, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400f6c33
add edi, 1
cmp edi, 0x63
ja 0x1400f6c50
pause
cmp byte [rsi], 0
jne 0x1400f6c30
jmp 0x1400f6c59
xor ecx, ecx
call rbx
cmp byte [rsi], 0
jne 0x1400f6c30
mov al, 1
xchg byte [rsi], al
test al, al
jne 0x1400f6c30
jmp 0x1400f69f8
xor edi, edi
mov rbx, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400f6c74
add edi, 1
cmp edi, 0x63
ja 0x1400f6c7d
pause
jmp 0x1400f6c81
xor ecx, ecx
call rbx
cmp byte [rsi], 0
jne 0x1400f6c71
mov al, 1
xchg byte [rsi], al
test al, al
jne 0x1400f6c71
jmp 0x1400f6ad9