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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1068
call fcn.14005d570
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x1060], rax
lea rax, [0x140082e20]
mov qword [rcx], rax
lea rdi, [rcx + 0x10]
lea rdx, [rsp + 0x80]
mov rcx, rdi
call fcn.14001fc00
mov r14, qword [rsp + 0x88]
add r14, qword [rsp + 0x80]
cmp dword [rsi + 8], 3
jne 0x14001f57b
call fcn.140037400
test al, al
jne 0x14001f57b
lea rbx, [rsp + 0x878]
mov r8d, 0x7d8
mov rcx, rbx
mov dl, 0xaa
call fcn.14005ee60
mov rcx, rbx
call fcn.140037420
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 [0x140081790]
lea rcx, [rsp + 0x80]
call fcn.1400594c0
mov rcx, qword [rax]
mov rbp, qword [rcx + 0x40]
mov rcx, rax
mov dl, 0xa
mov rax, rbp
call qword [0x140081790]
mov ebx, eax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14001f3de
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140081790]
test rax, rax
je 0x14001f3de
mov rcx, qword [rax]
mov rbp, qword [rcx]
mov rcx, rax
mov edx, 1
mov rax, rbp
call qword [0x140081790]
mov rcx, rdi
mov edx, ebx
call fcn.140020c10
mov rcx, rdi
call fcn.14005ad80
lea rcx, [rsp + 0x878]
mov rdx, rdi
call fcn.140037490
lea rbx, [rsp + 0x80]
mov r8d, 0x7f0
mov rcx, rbx
mov dl, 0xaa
call fcn.14005ee60
mov rcx, rbx
call fcn.1400374c0
mov rcx, rbx
call fcn.1400375a0
test al, al
jne 0x14001f43c
lea rcx, [rsp + 0x80]
mov rdx, rdi
call fcn.1400375b0
call fcn.140037750
test rax, rax
je 0x14001f573
mov rbp, rax
cmp dword [rax + 0x68], 0
je 0x14001f573
lea rdx, str.IPC_message_handler_context:
mov rcx, rdi
call fcn.140059780
mov rbx, rax
mov r8d, dword [rbp + 0x68]
lea rdx, str.0x_08X
lea rbp, [rsp + 0x60]
mov rcx, rbp
call fcn.14001b630
mov r8, qword [rsp + 0x70]
cmp qword [rsp + 0x78], 0x10
jb 0x14001f493
mov rbp, qword [rsp + 0x60]
mov rcx, rbx
mov rdx, rbp
call fcn.14005b2b0
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 + 0x1058], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140081790]
lea rcx, [rsp + 0x1050]
call fcn.1400594c0
mov rcx, qword [rax]
mov rbp, qword [rcx + 0x40]
mov rcx, rax
mov dl, 0xa
mov rax, rbp
call qword [0x140081790]
mov ebp, eax
mov rcx, qword [rsp + 0x1058]
test rcx, rcx
je 0x14001f520
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140081790]
test rax, rax
je 0x14001f520
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov edx, 1
mov rax, r8
call qword [0x140081790]
mov rcx, rbx
mov edx, ebp
call fcn.140020c10
mov rcx, rbx
call fcn.14005ad80
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x14001f573
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14001f56e
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x14001fbf6
add rax, 0x28
mov rdx, rax
mov rcx, rbp
call fcn.14005cdb0
mov rcx, rdi
call fcn.14001d4a0
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 [0x140081790]
lea rcx, [rsp + 0x80]
call fcn.1400594c0
mov rcx, qword [rax]
mov rbp, qword [rcx + 0x40]
mov rcx, rax
mov dl, 0xa
mov rax, rbp
call qword [0x140081790]
mov ebx, eax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14001f5fa
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140081790]
test rax, rax
je 0x14001f5fa
mov rcx, qword [rax]
mov rbp, qword [rcx]
mov rcx, rax
mov edx, 1
mov rax, rbp
call qword [0x140081790]
movabs r15, 0xaaaaaaaaaaaaaaaa
mov rcx, rdi
mov edx, ebx
call fcn.140020c10
mov rcx, rdi
call fcn.14005ad80
mov qword [rsp + 0x880], r15
mov qword [rsp + 0x878], 0
movaps xmm0, xmmword [0x140081c20]
movups xmmword [rsp + 0x888], xmm0
mov byte [rsp + 0x878], 0
mov eax, dword [rsi + 0x88]
mov ecx, eax
and ecx, 0x22
cmp ecx, 2
je 0x14001f671
mov rcx, qword [rsi + 0x58]
mov rdi, qword [rcx]
test rdi, rdi
je 0x14001f671
lea rax, [rsi + 0x38]
mov rcx, qword [rsi + 0x80]
cmp rdi, rcx
cmovb rdi, rcx
jmp 0x14001f68f
test al, 4
jne 0x14001f6d8
mov rax, qword [rsi + 0x50]
mov rdi, qword [rax]
test rdi, rdi
je 0x14001f6d8
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 0x14001f6d8
sub rdi, r9
cmp rdi, 0xf
jbe 0x14001f6b5
lea rcx, [rsp + 0x878]
mov rdx, rdi
call fcn.140007a10
jmp 0x14001f6d8
mov qword [rsp + 0x888], rdi
lea rcx, [rsp + 0x878]
mov rdx, r9
mov r8, rdi
call fcn.14005f230
mov byte [rsp + rdi + 0x878], 0
mov rax, qword [0x14009e5d8]
test rax, rax
je 0x14001f717
mov r9, qword [rsi + 0xf8]
mov r8d, dword [rsi + 0x108]
mov rdx, qword [rsi + 0x100]
mov ecx, dword [rsi + 8]
lea rbp, [rsp + 0x878]
mov qword [rsp + 0x20], rbp
call qword [0x140081790]
test al, al
jne 0x14001fa4d
mov eax, dword [0x14009d030]
test al, 2
je 0x14001f74a
cmp qword [rsp + 0x890], 0x10
jb 0x14001f736
mov rcx, qword [rsp + 0x878]
jmp 0x14001f73e
lea rcx, [rsp + 0x878]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14009d030]
test al, 4
jne 0x14001f759
cmp dword [rsi + 8], 2
jl 0x14001f7b8
cmp eax, 1
ja 0x14001f7b8
mov rdi, qword [rsp + 0x888]
cmp qword [rsp + 0x890], 0x10
jb 0x14001f77b
mov rbx, qword [rsp + 0x878]
test rdi, rdi
jne 0x14001f788
jmp 0x14001f7b8
lea rbx, [rsp + 0x878]
test rdi, rdi
je 0x14001f7b8
xor ebp, ebp
nop word [rax + rax]
mov r8d, edi
sub r8d, ebp
lea rdx, [rbx + rbp]
mov ecx, 2
call fcn.1400684d8
test eax, eax
js 0x14001f7b2
mov eax, eax
add rbp, rax
cmp rbp, rdi
jb 0x14001f790
mov eax, dword [0x14009d030]
test al, 1
je 0x14001f813
call fcn.14001e7b0
test al, al
je 0x14001f813
mov dword [rsp + 0x80], 0xaaaaaaaa
mov r8d, dword [rsp + 0x888]
cmp qword [rsp + 0x890], 0x10
jb 0x14001f7ed
mov rdx, qword [rsp + 0x878]
jmp 0x14001f7f5
lea rdx, [rsp + 0x878]
mov rcx, qword [0x14009e5f0]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
jne 0x14001fa4d
mov rcx, qword [0x14009e5b8]
test rcx, rcx
je 0x14001f862
mov rax, qword [rsp + 0x888]
cmp qword [rsp + 0x890], 0x10
jb 0x14001f846
mov rdx, qword [rsp + 0x878]
jmp 0x14001f84e
lea rdx, [rsp + 0x878]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
call fcn.14001e350
lea rdi, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rdi
mov dl, 0xaa
call fcn.14005ee60
cmp qword [rsp + 0x890], 0x10
jb 0x14001f88f
mov rdx, qword [rsp + 0x878]
jmp 0x14001f897
lea rdx, [rsp + 0x878]
mov r8d, 0x400
mov rcx, rdi
call fcn.1400316f0
mov rcx, rdi
call fcn.140016290
mov eax, dword [0x14009e620]
mov ecx, dword [0x1400a06a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001fb62
mov rax, qword [0x14009e610]
cmp rax, qword [0x14009e618]
je 0x14001fbfb
mov qword [rsp + 0x1050], r15
mov eax, dword [0x14009e620]
mov ecx, dword [0x1400a06a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001fbac
mov rdx, qword [0x14009e618]
lea rax, [0x14009e600]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
test rdx, rdx
jne 0x14001f939
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 8]
dec rdx
mov qword [rsp + 0x68], rdx
mov rcx, qword [rsp + 0x60]
call fcn.140020b50
lea rcx, [rsp + 0x1050]
mov rdx, rax
call fcn.1400309c0
mov rdi, qword [rsp + 0x1050]
test rdi, rdi
je 0x14001fa40
mov r15, qword [rsp + 0x878]
mov rbp, qword [rsp + 0x890]
cmp rbp, 0x10
lea rbx, [rsp + 0x878]
mov rcx, rbx
cmovae rcx, r15
add rcx, r14
mov qword [rsp + 0x40], rcx
je 0x14001f9a5
call fcn.140067560
mov qword [rsp + 0x48], rax
jmp 0x14001f9f7
mov qword [rsp + 0x48], 0
lea rdx, str....._base_strings_string_piece.h
lea r9, [0x140081ce4]
lea rdi, [rsp + 0x60]
mov rcx, rdi
mov r8d, 0x7c
call fcn.1400080e0
mov rcx, rdi
call fcn.140008160
mov rcx, rdi
call fcn.140008170
mov r15, qword [rsp + 0x878]
mov rbp, qword [rsp + 0x890]
mov rdi, qword [rsp + 0x1050]
mov rax, qword [rsi + 0xf8]
sub r14, rax
cmp rbp, 0x10
cmovae rbx, r15
add rbx, rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r14
mov r8d, dword [rsi + 0x108]
mov rdx, qword [rsi + 0x100]
mov rax, qword [rdi + 8]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
mov rcx, rdi
call qword [0x140081790]
lea rcx, [rsp + 0x1050]
call fcn.1400309a0
mov rax, qword [rsp + 0x890]
cmp rax, 0x10
jb 0x14001fa94
mov rcx, qword [rsp + 0x878]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14001fa8f
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x14001fbf6
add rax, 0x28
mov rdx, rax
mov rcx, rbp
call fcn.14005cdb0
lea rcx, [rsi + 0x10c]
call fcn.140034680
lea rdi, [rsi + 0x98]
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1400827d0]
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.140058a80
lea rax, vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov qword [rsi + 0x18], rax
mov rsi, qword [rsi + 0x78]
test rsi, rsi
je 0x14001fb2f
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14001fb27
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140081790]
test rax, rax
je 0x14001fb27
mov rcx, qword [rax]
mov rbp, qword [rcx]
mov rcx, rax
mov edx, 1
mov rax, rbp
call qword [0x140081790]
mov rcx, rsi
call fcn.14005d094
lea rax, vtable.std::ios_base.0
mov qword [rdi], rax
mov rcx, rdi
call fcn.14005c3bc
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.14005cd90
nop
add rsp, 0x1068
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14009e620]
call fcn.14005d444
cmp dword [0x14009e620], 0xffffffff
jne 0x14001f8d2
mov qword [0x14009e600], 0
xorps xmm0, xmm0
movups xmmword [0x14009e608], xmm0
mov qword [0x14009e618], 0
lea rcx, [0x14009e620]
call fcn.14005d3e4
jmp 0x14001f8d2
lea rcx, [0x14009e620]
call fcn.14005d444
cmp dword [0x14009e620], 0xffffffff
jne 0x14001f913
mov qword [0x14009e600], 0
xorps xmm0, xmm0
movups xmmword [0x14009e608], xmm0
mov qword [0x14009e618], 0
lea rcx, [0x14009e620]
call fcn.14005d3e4
jmp 0x14001f913
call fcn.1400674bc
int3