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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1060
call fcn.1400943e0
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x1400eb280]
xor rax, rsp
mov qword [rsp + 0x1058], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rax, [0x1400ccb38]
mov qword [rcx], rax
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0xf
mov byte [rsp + 0x80], 0
mov eax, dword [rcx + 0x88]
mov ecx, eax
and ecx, 0x22
cmp ecx, 2
je 0x140019ec4
mov rcx, qword [rsi + 0x58]
mov rdi, qword [rcx]
test rdi, rdi
je 0x140019ec4
lea rax, [rsi + 0x38]
mov rcx, qword [rsi + 0x80]
cmp rdi, rcx
cmovb rdi, rcx
jmp 0x140019ee2
test al, 4
jne 0x140019f2b
mov rax, qword [rsi + 0x50]
mov rdi, qword [rax]
test rdi, rdi
je 0x140019f2b
lea rax, [rsi + 0x30]
mov rcx, qword [rsi + 0x68]
movsxd rcx, dword [rcx]
add rdi, rcx
mov rax, qword [rax]
mov r9, qword [rax]
test r9, r9
je 0x140019f2b
sub rdi, r9
cmp rdi, 0xf
jbe 0x140019f08
lea rcx, [rsp + 0x80]
mov rdx, rdi
call fcn.140004ba0
jmp 0x140019f2b
mov qword [rsp + 0x90], rdi
lea rcx, [rsp + 0x80]
mov rdx, r9
mov r8, rdi
call fcn.1400beaa0
mov byte [rsp + rdi + 0x80], 0
mov r15, qword [rsp + 0x90]
mov rax, qword [rsp + 0x98]
cmp rax, 0x10
jb 0x140019f7a
mov rcx, qword [rsp + 0x80]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140019f75
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14001a923
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140093b30
lea rdi, [rsi + 0x10]
cmp dword [rsi + 8], 3
jne 0x14001a1d1
call fcn.140033fd0
test al, al
jne 0x14001a1d1
lea rbx, [rsp + 0x870]
mov r8d, 0x7d8
mov rcx, rbx
mov dl, 0xaa
call fcn.1400bf140
mov rcx, rbx
call fcn.140033ff0
mov rax, qword [rdi]
movsxd rax, dword [rax + 4]
mov rax, qword [rdi + rax + 0x40]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x88], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400c48f0]
lea rcx, [rsp + 0x80]
call fcn.1400520d8
mov rcx, qword [rax]
mov r8, qword [rcx + 0x40]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x1400c48f0]
mov ebx, eax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14001a034
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400c48f0]
test rax, rax
je 0x14001a034
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov edx, 1
mov rax, r8
call qword [0x1400c48f0]
mov rcx, rdi
mov edx, ebx
call fcn.14001b990
mov rcx, rdi
call fcn.140054b24
lea rcx, [rsp + 0x870]
mov rdx, rdi
call fcn.140034060
lea rbx, [rsp + 0x80]
mov r8d, 0x7f0
mov rcx, rbx
mov dl, 0xaa
call fcn.1400bf140
mov rcx, rbx
call fcn.140034090
mov rcx, rbx
call fcn.140034180
test al, al
jne 0x14001a092
lea rcx, [rsp + 0x80]
mov rdx, rdi
call fcn.140034190
call fcn.140034330
test rax, rax
je 0x14001a1c9
mov r14, rax
cmp dword [rax + 0x68], 0
je 0x14001a1c9
lea rdx, str.IPC_message_handler_context:
mov rcx, rdi
call fcn.140055b38
mov rbx, rax
mov r8d, dword [r14 + 0x68]
lea rdx, str.0x_08X
lea r14, [rsp + 0x60]
mov rcx, r14
call fcn.1400140e0
mov r8, qword [rsp + 0x70]
cmp qword [rsp + 0x78], 0x10
jb 0x14001a0e9
mov r14, qword [rsp + 0x60]
mov rcx, rbx
mov rdx, r14
call fcn.1400152b0
mov rbx, rax
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rax, qword [rbx + rax + 0x40]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x1050], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400c48f0]
lea rcx, [rsp + 0x1048]
call fcn.1400520d8
mov rcx, qword [rax]
mov r8, qword [rcx + 0x40]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x1400c48f0]
mov ebp, eax
mov rcx, qword [rsp + 0x1050]
test rcx, rcx
je 0x14001a176
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400c48f0]
test rax, rax
je 0x14001a176
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov edx, 1
mov rax, r8
call qword [0x1400c48f0]
mov rcx, rbx
mov edx, ebp
call fcn.14001b990
mov rcx, rbx
call fcn.140054b24
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x14001a1c9
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14001a1c4
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14001a923
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140093b30
mov rcx, rdi
call fcn.140017d10
mov rax, qword [rdi]
movsxd rax, dword [rax + 4]
mov rax, qword [rdi + rax + 0x40]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x88], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400c48f0]
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.1400520d8
mov rcx, qword [rax]
mov r8, qword [rcx + 0x40]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x1400c48f0]
mov ebp, eax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14001a253
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400c48f0]
test rax, rax
je 0x14001a253
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov edx, 1
mov rax, r8
call qword [0x1400c48f0]
mov rcx, rdi
mov edx, ebp
call fcn.14001b990
mov rcx, rdi
call fcn.140054b24
mov qword [rsp + 0x878], r12
mov qword [rsp + 0x870], 0
mov qword [rsp + 0x880], 0
mov qword [rsp + 0x888], 0xf
mov byte [rsp + 0x870], 0
mov eax, dword [rsi + 0x88]
mov ecx, eax
and ecx, 0x22
cmp ecx, 2
je 0x14001a2c9
mov rcx, qword [rsi + 0x58]
mov rdi, qword [rcx]
test rdi, rdi
je 0x14001a2c9
lea rax, [rsi + 0x38]
mov rcx, qword [rsi + 0x80]
cmp rdi, rcx
cmovb rdi, rcx
jmp 0x14001a2e7
test al, 4
jne 0x14001a30f
mov rax, qword [rsi + 0x50]
mov rdi, qword [rax]
test rdi, rdi
je 0x14001a30f
lea rax, [rsi + 0x30]
mov rcx, qword [rsi + 0x68]
movsxd rcx, dword [rcx]
add rdi, rcx
mov rax, qword [rax]
mov r9, qword [rax]
test r9, r9
je 0x14001a30f
sub rdi, r9
cmp rdi, 0xf
jbe 0x14001a41c
lea rcx, [rsp + 0x870]
mov rdx, rdi
call fcn.140004ba0
cmp dword [rsi + 8], 3
jne 0x14001a449
cmp byte [0x1400ef1fc], 0
jne 0x14001a449
movaps xmm0, xmmword [0x1400cb8d0]
movaps xmmword [rsp + 0x60], xmm0
lea rax, [0x1400ef1fc]
mov qword [rsp + 0x60], rax
movzx eax, byte [0x1400ef1fc]
mov byte [0x1400ef1fc], 1
mov byte [rsp + 0x68], al
mov eax, dword [0x1400ef208]
mov ecx, dword [0x1400ee910]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x10]
jg 0x14001a9bc
mov rcx, rsi
mov rdx, rbx
call fcn.14001aa10
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x98], 0x10
jb 0x14001a39b
mov rbx, qword [rsp + 0x80]
mov qword [rsp + 0x1048], rbx
mov qword [rsp + 0x1050], rax
mov rcx, qword [0x1400ef200]
lea rdx, [rsp + 0x1048]
call fcn.140017cb0
mov rax, qword [rsp + 0x98]
cmp rax, 0x10
jb 0x14001a406
mov rcx, qword [rsp + 0x80]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14001a401
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14001a923
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140093b30
cmp qword [rsp + 0x60], 0
je 0x14001a449
movzx eax, byte [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov byte [rcx], al
jmp 0x14001a449
mov qword [rsp + 0x880], rdi
lea rcx, [rsp + 0x870]
mov rdx, r9
mov r8, rdi
call fcn.1400beaa0
mov byte [rsp + rdi + 0x870], 0
cmp dword [rsi + 8], 3
je 0x14001a319
mov rax, qword [0x1400ef1b0]
test rax, rax
je 0x14001a488
mov r9, qword [rsi + 0xf8]
mov r8d, dword [rsi + 0x108]
mov rdx, qword [rsi + 0x100]
mov ecx, dword [rsi + 8]
lea r10, [rsp + 0x870]
mov qword [rsp + 0x20], r10
call qword [0x1400c48f0]
test al, al
jne 0x14001a808
mov eax, dword [0x1400eb330]
test al, 2
je 0x14001a4bb
cmp qword [rsp + 0x888], 0x10
jb 0x14001a4a7
mov rcx, qword [rsp + 0x870]
jmp 0x14001a4af
lea rcx, [rsp + 0x870]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400eb330]
test al, 4
jne 0x14001a4ca
cmp dword [rsi + 8], 2
jl 0x14001a528
cmp eax, 1
ja 0x14001a528
mov rdi, qword [rsp + 0x880]
cmp qword [rsp + 0x888], 0x10
jb 0x14001a4ec
mov rbx, qword [rsp + 0x870]
test rdi, rdi
jne 0x14001a4f9
jmp 0x14001a528
lea rbx, [rsp + 0x870]
test rdi, rdi
je 0x14001a528
xor r14d, r14d
nop dword [rax]
mov r8d, edi
sub r8d, r14d
lea rdx, [rbx + r14]
mov ecx, 2
call fcn.1400ac414
test eax, eax
js 0x14001a522
mov eax, eax
add r14, rax
cmp r14, rdi
jb 0x14001a500
mov eax, dword [0x1400eb330]
test al, 1
je 0x14001a583
call fcn.1400192e0
test al, al
je 0x14001a583
mov dword [rsp + 0x80], 0xaaaaaaaa
mov r8d, dword [rsp + 0x880]
cmp qword [rsp + 0x888], 0x10
jb 0x14001a55d
mov rdx, qword [rsp + 0x870]
jmp 0x14001a565
lea rdx, [rsp + 0x870]
mov rcx, qword [0x1400ef1c8]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
jne 0x14001a808
mov rcx, qword [0x1400ef178]
test rcx, rcx
je 0x14001a5d2
mov rax, qword [rsp + 0x880]
cmp qword [rsp + 0x888], 0x10
jb 0x14001a5b6
mov rdx, qword [rsp + 0x870]
jmp 0x14001a5be
lea rdx, [rsp + 0x870]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
call fcn.140018be0
lea rdi, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bf140
cmp qword [rsp + 0x888], 0x10
jb 0x14001a5ff
mov rdx, qword [rsp + 0x870]
jmp 0x14001a607
lea rdx, [rsp + 0x870]
mov r8d, 0x400
mov rcx, rdi
call fcn.140031240
mov rcx, rdi
call fcn.140013120
mov eax, dword [0x1400ef1f8]
mov ecx, dword [0x1400ee910]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x10]
jg 0x14001a928
mov rax, qword [0x1400ef1e8]
cmp rax, qword [0x1400ef1f0]
je 0x14001a9fe
mov qword [rsp + 0x1048], r12
mov eax, dword [0x1400ef1f8]
mov ecx, dword [0x1400ee910]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x10]
jg 0x14001a972
mov rdx, qword [0x1400ef1f0]
lea rax, [0x1400ef1d8]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
test rdx, rdx
jne 0x14001a6a9
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 8]
dec rdx
mov qword [rsp + 0x68], rdx
mov rcx, qword [rsp + 0x60]
call fcn.14001b8d0
lea rcx, [rsp + 0x1048]
mov rdx, rax
call fcn.1400321d0
mov rdi, qword [rsp + 0x1048]
test rdi, rdi
je 0x14001a7fb
mov r14, qword [rsp + 0x870]
mov r12, qword [rsp + 0x888]
cmp r12, 0x10
lea rbx, [rsp + 0x870]
mov rcx, rbx
cmovae rcx, r14
add rcx, r15
mov qword [rsp + 0x40], rcx
je 0x14001a715
call fcn.1400a10c0
mov qword [rsp + 0x48], rax
jmp 0x14001a767
mov qword [rsp + 0x48], 0
lea rdx, str....._base_strings_string_piece.h
lea r9, [0x1400cc494]
lea rdi, [rsp + 0x60]
mov rcx, rdi
mov r8d, 0x7d
call fcn.140005370
mov rcx, rdi
call fcn.140005500
mov rcx, rdi
call fcn.140005510
mov r14, qword [rsp + 0x870]
mov r12, qword [rsp + 0x888]
mov rdi, qword [rsp + 0x1048]
mov rax, qword [rsi + 0xf8]
sub r15, rax
cmp r12, 0x10
cmovae rbx, r14
add rbx, rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
mov ebx, dword [rsi + 0x108]
mov r14, qword [rsi + 0x100]
test rdi, rdi
je 0x14001a7d6
mov rcx, rdi
call fcn.140019020
mov rcx, qword [rsp + 0x1048]
mov rax, qword [rcx + 8]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x30]
mov rdx, r14
mov r8d, ebx
call qword [0x1400c48f0]
lock dec dword [rdi]
jne 0x14001a7fb
mov rcx, rdi
call fcn.140032170
jmp 0x14001a7fb
mov rax, qword [8]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
xor ecx, ecx
mov rdx, r14
mov r8d, ebx
call qword [0x1400c48f0]
lea rcx, [rsp + 0x1048]
call fcn.1400321b0
mov rax, qword [rsp + 0x888]
cmp rax, 0x10
jb 0x14001a84f
mov rcx, qword [rsp + 0x870]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14001a84a
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14001a923
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140093b30
lea rcx, [rsi + 0x10c]
call fcn.14002f450
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsi + rax + 0x10], rcx
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0x88]
mov dword [rsi + rax + 0xc], ecx
lea rcx, [rsi + 0x18]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsi + 0x18], rax
call fcn.1400604dc
lea rax, vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov qword [rsi + 0x18], rax
mov rdi, qword [rsi + 0x78]
test rdi, rdi
je 0x14001a8e3
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14001a8db
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400c48f0]
test rax, rax
je 0x14001a8db
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov edx, 1
mov rax, r8
call qword [0x1400c48f0]
mov rcx, rdi
call fcn.140093e30
lea rax, vtable.std::ios_base.0
mov qword [rsi + 0x98], rax
add rsi, 0x98
mov rcx, rsi
call fcn.1400704e0
mov rcx, qword [rsp + 0x1058]
xor rcx, rsp
call fcn.140093e10
nop
add rsp, 0x1060
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.14009afa0
lea rcx, [0x1400ef1f8]
call fcn.140093ea4
cmp dword [0x1400ef1f8], 0xffffffff
jne 0x14001a642
mov qword [0x1400ef1d8], 0
xorps xmm0, xmm0
movups xmmword [0x1400ef1e0], xmm0
mov qword [0x1400ef1f0], 0
lea rcx, [0x1400ef1f8]
call fcn.140093e38
jmp 0x14001a642
lea rcx, [0x1400ef1f8]
call fcn.140093ea4
cmp dword [0x1400ef1f8], 0xffffffff
jne 0x14001a683
mov qword [0x1400ef1d8], 0
xorps xmm0, xmm0
movups xmmword [0x1400ef1e0], xmm0
mov qword [0x1400ef1f0], 0
lea rcx, [0x1400ef1f8]
call fcn.140093e38
jmp 0x14001a683
lea rcx, [0x1400ef208]
call fcn.140093ea4
cmp dword [0x1400ef208], 0xffffffff
jne 0x14001a375
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140017c80
mov qword [0x1400ef200], rax
lea rcx, [0x1400ef208]
call fcn.140093e38
jmp 0x14001a375
int3