Function at 0x140040cf0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x14005d040]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov esi, edx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140053940]
mov qword [rsp + 0x50], rax
lea rax, [0x1400538a8]
mov qword [rsp + 0x60], rax
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], r15
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x30], rbx
mov dword [rbp - 0x28], ebx
movd xmm1, esi
cvtdq2pd xmm1, xmm1
xorps xmm0, xmm0
ucomisd xmm0, xmm1
ja 0x140040dd7
sqrtpd xmm0, xmm1
jmp 0x140040ddf
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
cvttsd2si r14d, xmm0
lea rcx, [0x140053848]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test esi, esi
jle 0x140040e94
nop dword [rax]
mov eax, ebx
cdq
idiv r14d
test edx, edx
jne 0x140040e1b
test ebx, ebx
je 0x140040e1b
lea rcx, str.__n_t_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movsd xmm1, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.14003ffa0
cmp qword [rax + 0x18], 0xf
jbe 0x140040e33
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140040e79
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040e74
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040f0b
call fcn.1400449bc
lea rcx, [0x14004bc34]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
inc ebx
add rdi, 8
cmp ebx, esi
jl 0x140040e00
lea rcx, [0x140053854]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], r15
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x68]
call fcn.1400429e0
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140044700
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
int3