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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea rax, [0x140131330]
mov qword [rcx], rax
lea rdi, [rcx + 0x10]
mov rax, qword [rcx + 0x10]
movsxd rcx, dword [rax + 4]
test byte [rsi + rcx + 0x30], 5
jne 0x140064352
mov rcx, qword [rdi + rcx + 0x28]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 0x10
lea rbx, [rsp + 0x90]
mov rdx, rbx
xor r8d, r8d
mov r9d, 1
call qword [rax + 0x18]
mov r15, qword [rbx + 8]
mov rax, qword [rdi]
movsxd rax, dword [rax + 4]
mov rbx, qword [rdi + rax + 0x30]
lock inc dword [rbx + 8]
lea rax, [0x140167360]
mov qword [rsp + 0x90], rax
lea rax, [0x140054e10]
mov qword [rsp + 0x98], rax
mov rax, qword [0x140167360]
cmp rax, 0xffffffffffffffff
jne 0x14006428b
movsxd rax, dword [0x140167368]
lea rdx, [rax - 1]
mov rcx, qword [rbx + 0x10]
mov rbp, qword [rbx + 0x18]
sub rbp, rcx
sar rbp, 3
cmp rbp, rdx
jbe 0x1400643e3
mov rcx, qword [rcx + rax*8 - 8]
test rcx, rcx
je 0x1400643e3
mov rax, qword [rcx]
mov dl, 0xa
call qword [rax + 0x38]
mov ebp, eax
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
test eax, eax
jne 0x140063f51
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, rdi
mov edx, ebp
call fcn.14003bba0
mov rcx, rdi
call fcn.14003b1d4
lea rcx, [rsi + 0x18]
lea rdi, [rsp + 0x78]
mov rdx, rdi
call fcn.1400381e8
test byte [0x1401641e0], 0x19
jne 0x1400642bb
mov eax, dword [0x140163cd8]
test al, 2
je 0x140063fa9
cmp byte [rsp + 0x8f], 0
jns 0x140063f9a
mov rdi, qword [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140163cd8]
test al, 4
jne 0x140063fb8
cmp eax, 1
ja 0x140063ffc
cmp dword [rsi + 8], 2
jl 0x140063ffc
mov ecx, 2
call fcn.1400f36c8
lea rcx, [rsp + 0x78]
movzx edx, byte [rcx + 0x17]
test dl, dl
cmovs rdx, qword [rcx + 8]
cmovs rcx, qword [rcx]
mov r8d, 1
mov r9, rax
call fcn.1401085b0
mov ecx, 2
call fcn.1400f36c8
mov rcx, rax
call fcn.1401079ec
mov eax, dword [0x140163cd8]
test al, 1
je 0x14006403d
call fcn.140063890
test al, al
je 0x14006403d
lea rdx, [rsp + 0x78]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x1401680c0]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
jne 0x14006409a
mov rcx, qword [0x14016a208]
lea rbx, [rsp + 0x78]
test rcx, rcx
je 0x140064077
movzx eax, byte [rbx + 0x17]
test al, al
mov rbp, qword [rbx]
cmovns rbp, rbx
lea rdx, [rsp + 0x50]
mov qword [rdx], rbp
cmovs rax, qword [rbx + 8]
mov qword [rdx + 8], rax
call fcn.1400cbe40
mov dword [rsp + 0x90], 0xbedead01
mov dword [rsp + 0x494], 0x5050dead
cmp byte [rbx + 0x17], 0
jns 0x1400640a4
mov rdx, qword [rsp + 0x78]
jmp 0x1400640a9
lea rbx, [rsp + 0x78]
jmp 0x1400641d6
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x94]
mov r8d, 0x400
call fcn.14006d340
lea rcx, [rsp + 0x90]
call fcn.140032c30
mov eax, dword [0x1401680e8]
mov ecx, dword [0x1401653f4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006436d
mov rax, qword [0x1401680d8]
cmp rax, qword [0x1401680e0]
je 0x1400643ef
mov eax, dword [0x1401680e8]
mov ecx, dword [0x1401653f4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400643a8
mov rdx, qword [0x1401680e0]
test rdx, rdx
mov rax, qword [0x1401680d0]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x1400643f2
shl rdx, 3
add rdx, qword [0x1401680c8]
lea rdi, [rsp + 0x60]
mov rcx, rdi
call fcn.14005cdf0
mov rdi, qword [rdi]
test rdi, rdi
je 0x1400641cc
cmp byte [rbx + 0x17], 0
jns 0x140064175
mov rbp, qword [rsp + 0x78]
jmp 0x14006417a
lea rbp, [rsp + 0x78]
lea rcx, [r15 + rbp]
mov qword [rsp + 0x40], rcx
test rbp, rbp
je 0x1400643e8
call fcn.14010d4d0
lea rcx, [rsp + 0x40]
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x118]
sub r15, rax
add rbp, rax
lea r9, [rsp + 0x30]
mov qword [r9], rbp
mov qword [r9 + 8], r15
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [rdi + 8]
lea rcx, [rsp + 0x60]
call fcn.14005cdd0
cmp byte [rbx + 0x17], 0
js 0x140064271
mov ecx, dword [rsi + 0x13c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [rsi + 0x138]
call fcn.1400fe56c
mov dword [rax], edi
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1401302e8]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x140130280]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
lea rsi, [rsi + 0x80]
js 0x140064280
lea rax, vtable.std::__1::basic_streambuf_char__struct_std::__1::char_traits_char__.0
mov qword [rsi - 0x68], rax
mov rcx, qword [rsi - 0x60]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x140064248
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, rsi
call fcn.14003ac70
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1400f0560
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x78]
call fcn.1400ef7cc
jmp 0x1400641e0
mov rcx, qword [rsi - 0x28]
call fcn.1400ef7cc
jmp 0x140064225
lea rax, [rsp + 0x90]
lea rcx, [rsp + 0x78]
mov qword [rcx], rax
lea rdx, [rsp + 0x60]
mov qword [rdx], rcx
lea rcx, [0x140167360]
lea r8, [0x1400585d0]
call fcn.140059737
jmp 0x140063eff
movzx eax, byte [rsp + 0x8f]
test al, al
mov rcx, qword [rsp + 0x78]
cmovns rcx, rdi
lea rbx, [rsi + 0x128]
cmovs rax, qword [rsp + 0x80]
lea rdx, [rsp + 0x60]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov r8, qword [rsi + 0x118]
lea r14, [rsp + 0x90]
mov rcx, r14
mov r9, 0xffffffffffffffff
call fcn.14006aea0
lea rdx, [rsi + 0x120]
lea rbp, [rsp + 0x70]
mov rcx, rbp
mov r8, r14
mov r9, rbx
call fcn.140064450
mov rcx, rbp
call fcn.140064400
mov rbx, qword [rbp]
xor eax, eax
mov qword [rbp], rax
test rbx, rbx
je 0x140063f81
mov rcx, rbx
call fcn.1400ccc10
mov rcx, rbx
call fcn.1400ef7cc
jmp 0x140063f81
movaps xmm0, xmmword [0x1401334e0]
movaps xmmword [rsp + 0x90], xmm0
mov r15, 0xffffffffffffffff
jmp 0x140063ec3
lea rcx, [0x1401680e8]
call fcn.1400ef8f0
cmp dword [0x1401680e8], 0xffffffff
jne 0x1400640ee
xorps xmm0, xmm0
movups xmmword [0x1401680d8], xmm0
movups xmmword [0x1401680c8], xmm0
lea rcx, [0x1401680e8]
call fcn.1400ef988
jmp 0x1400640ee
lea rcx, [0x1401680e8]
call fcn.1400ef8f0
cmp dword [0x1401680e8], 0xffffffff
jne 0x140064127
xorps xmm0, xmm0
movups xmmword [0x1401680d8], xmm0
movups xmmword [0x1401680c8], xmm0
lea rcx, [0x1401680e8]
call fcn.1400ef988
jmp 0x140064127
call fcn.140054ce5
xor eax, eax
jmp 0x140064191
int3
int3