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

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [0x1400a2318]
xor rax, rbp
mov qword [rbp + 0x410], rax
lea rdi, [rcx + 8]
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.140023b10
mov r14, qword [rbp - 0x10]
add r14, qword [rbp - 0x18]
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
mov rax, qword [rsi + rax + 0x48]
mov rcx, qword [rax + 8]
mov qword [rbp - 0x10], rcx
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rbp - 0x18]
call fcn.1400108d0
mov rbx, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [rbx + 0x40]
mov ebx, eax
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400236b6
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400236b6
mov r8, qword [rax]
mov rcx, rax
mov edx, 1
call qword [r8]
mov rcx, rdi
mov edx, ebx
call fcn.140024ad0
mov rcx, rdi
call fcn.14000dfd0
lea r15, [rsi + 0x10]
lea rbx, [rbp + 0x3f0]
mov rcx, r15
mov rdx, rbx
call fcn.1400249d0
mov rax, qword [0x1400a51e0]
test rax, rax
je 0x140023710
mov r9, qword [rsi + 0xf0]
mov r8d, dword [rsi + 0x100]
mov rdx, qword [rsi + 0xf8]
mov ecx, dword [rsi]
mov qword [rsp + 0x20], rbx
call rax
test al, al
jne 0x1400239f6
test byte [0x1400a2330], 2
jne 0x140023746
cmp dword [rsi], 2
jl 0x1400237b4
mov ecx, 2
call fcn.1400600d0
mov rdx, qword [rbp + 0x400]
cmp qword [rbp + 0x408], 0xf
jbe 0x14002378d
mov rcx, qword [rbp + 0x3f0]
jmp 0x140023794
cmp qword [rbp + 0x408], 0xf
mov rcx, rbx
jbe 0x14002375a
mov rcx, qword [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 2
call fcn.1400600d0
mov rdx, qword [rbp + 0x400]
cmp qword [rbp + 0x408], 0xf
jbe 0x140023782
mov rbx, qword [rbp + 0x3f0]
mov r8d, 1
mov rcx, rbx
jmp 0x14002379a
lea rcx, [rbp + 0x3f0]
mov r8d, 1
mov r9, rax
call fcn.1400696b0
mov ecx, 2
call fcn.1400600d0
mov rcx, rax
call fcn.140068710
test byte [0x1400a2330], 1
je 0x140023801
call fcn.140022cc0
test al, al
je 0x140023801
mov r8d, dword [rbp + 0x400]
cmp qword [rbp + 0x408], 0xf
jbe 0x1400237e0
mov rdx, qword [rbp + 0x3f0]
jmp 0x1400237e7
lea rdx, [rbp + 0x3f0]
mov rcx, qword [0x1400a5220]
mov qword [rsp + 0x20], 0
lea r9, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi], 3
jne 0x1400239f6
mov rcx, qword [0x1400a54d8]
test rcx, rcx
je 0x140023848
mov rax, qword [rbp + 0x400]
cmp qword [rbp + 0x408], 0xf
jbe 0x140023830
mov rdx, qword [rbp + 0x3f0]
jmp 0x140023837
lea rdx, [rbp + 0x3f0]
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x28]
call fcn.140032bb0
mov dword [rbp - 0x18], 0xbedead01
mov dword [rbp + 0x3ec], 0x5050dead
cmp qword [rbp + 0x408], 0xf
jbe 0x14002386c
mov rdx, qword [rbp + 0x3f0]
jmp 0x140023873
lea rdx, [rbp + 0x3f0]
lea rcx, [rbp - 0x14]
mov r8d, 0x400
call fcn.1400219d0
lea rcx, [rbp - 0x18]
call fcn.140002d90
mov rax, qword [0x1400a51f8]
test rax, rax
je 0x140023af6
mov rbx, qword [0x1400a51f8]
cmp rbx, 1
ja 0x1400238ee
lea rcx, [0x1400a51f8]
call fcn.14003b940
test al, al
je 0x1400238e7
xorps xmm0, xmm0
movups xmmword [0x1400a5210], xmm0
movups xmmword [0x1400a5200], xmm0
lea rbx, [0x1400a5200]
lea rcx, [0x1400a51f8]
mov rdx, rbx
xor r8d, r8d
mov r9, rcx
call fcn.14003b9f0
jmp 0x1400238ee
mov rbx, qword [0x1400a51f8]
mov rax, qword [rbx + 0x10]
cmp rax, qword [rbx + 0x18]
je 0x140023af6
mov rbx, qword [0x1400a51f8]
cmp rbx, 1
ja 0x14002394f
lea rcx, [0x1400a51f8]
call fcn.14003b940
test al, al
je 0x140023948
xorps xmm0, xmm0
movups xmmword [0x1400a5210], xmm0
movups xmmword [0x1400a5200], xmm0
lea rbx, [0x1400a5200]
lea rcx, [0x1400a51f8]
mov rdx, rbx
xor r8d, r8d
mov r9, rcx
call fcn.14003b9f0
jmp 0x14002394f
mov rbx, qword [0x1400a51f8]
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x18]
test rdx, rdx
cmove rdx, rax
add rdx, 0xffffffffffffffff
cmp rax, rdx
jb 0x140023afd
shl rdx, 3
add rdx, qword [rbx]
lea rcx, [rbp - 0x30]
call fcn.1400208e0
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x1400239ed
cmp qword [rbp + 0x408], 0xf
jbe 0x140023997
mov rdi, qword [rbp + 0x3f0]
jmp 0x14002399e
lea rdi, [rbp + 0x3f0]
mov rcx, rdi
add rcx, r14
mov qword [rbp - 0x40], rcx
je 0x1400239b1
call fcn.14006d740
jmp 0x1400239b3
xor eax, eax
mov qword [rbp - 0x38], rax
mov rax, qword [rsi + 0xf0]
sub r14, rax
add rdi, rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], r14
mov r8d, dword [rsi + 0x100]
mov rdx, qword [rsi + 0xf8]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
mov rcx, rbx
call qword [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.1400208c0
mov rax, qword [rbp + 0x408]
cmp rax, 0x10
jb 0x140023a3b
mov rcx, qword [rbp + 0x3f0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140023a36
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140023b04
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.14005a6e0
lea rcx, [rsi + 0x104]
call fcn.14003c080
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
lea rcx, [0x14007fdc8]
mov qword [rsi + rax + 8], rcx
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0x88]
mov dword [rsi + rax + 4], ecx
lea rax, [0x14007f6d0]
mov qword [rsi + 0x10], rax
mov rcx, r15
call fcn.14001d240
lea rax, vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov qword [rsi + 0x10], rax
mov rdi, qword [rsi + 0x70]
lea rsi, [rsi + 0x90]
test rdi, rdi
je 0x140023ac4
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140023abc
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140023abc
mov rbx, qword [rax]
mov rcx, rax
mov edx, 1
call qword [rbx]
mov rcx, rdi
call fcn.14005a6d0
lea rax, vtable.std::ios_base.0
mov qword [rsi], rax
mov rcx, rsi
call fcn.14005be10
mov rcx, qword [rbp + 0x410]
xor rcx, rbp
call fcn.14005aa40
nop
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
int3
int3
call fcn.140066430
ud2