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

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1060
call fcn.140065df0
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x1058], rax
lea rax, [0x140092960]
mov qword [rcx], rax
lea rdi, [rcx + 0x10]
lea rdx, [rsp + 0x80]
mov rcx, rdi
call fcn.140002a60
mov r14, qword [rsp + 0x88]
add r14, qword [rsp + 0x80]
cmp dword [rsi + 8], 3
jne 0x1400024af
call fcn.14000ceb0
test al, al
jne 0x1400024af
lea rbx, [rsp + 0x870]
mov r8d, 0x7d8
mov rcx, rbx
mov dl, 0xaa
call fcn.140067c70
mov rcx, rbx
call fcn.14000cef0
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]
call qword [rax + 8]
lea rcx, [rsp + 0x80]
call fcn.140050050
mov rbp, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [rbp + 0x40]
mov ebx, eax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14000233b
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14000233b
mov rbp, qword [rax]
mov rcx, rax
mov edx, 1
call qword [rbp]
mov rcx, rdi
mov edx, ebx
call fcn.140004c90
mov rcx, rdi
call fcn.140060b80
lea rcx, [rsp + 0x870]
mov rdx, rdi
call fcn.14000cf60
lea rbx, [rsp + 0x80]
mov r8d, 0x7e8
mov rcx, rbx
mov dl, 0xaa
call fcn.140067c70
mov rcx, rbx
call fcn.14000d230
mov rcx, rbx
call fcn.14000d330
test al, al
jne 0x140002399
lea rcx, [rsp + 0x80]
mov rdx, rdi
call fcn.14000d340
call fcn.14000d4a0
test rax, rax
je 0x1400024af
mov rbp, rax
cmp dword [rax + 0x58], 0
je 0x1400024af
lea rdx, str.IPC_message_handler_context:
mov rcx, rdi
call fcn.14004eae0
mov rbx, rax
mov r8d, dword [rbp + 0x58]
lea rdx, str.0x_08X
lea rbp, [rsp + 0x60]
mov rcx, rbp
call fcn.14000d540
mov r8, qword [rsp + 0x70]
cmp qword [rsp + 0x78], 0xf
jbe 0x1400023f0
mov rbp, qword [rsp + 0x60]
mov rcx, rbx
mov rdx, rbp
call fcn.140004e10
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]
call qword [rax + 8]
lea rcx, [rsp + 0x1048]
call fcn.140050050
mov rbp, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [rbp + 0x40]
mov ebp, eax
mov rcx, qword [rsp + 0x1050]
test rcx, rcx
je 0x14000245c
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14000245c
mov r8, qword [rax]
mov rcx, rax
mov edx, 1
call qword [r8]
mov rcx, rbx
mov edx, ebp
call fcn.140004c90
mov rcx, rbx
call fcn.140060b80
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x1400024af
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1400024aa
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x140002a13
add rax, 0x28
mov rdx, rax
mov rcx, rbp
call fcn.1400659f8
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]
call qword [rax + 8]
lea rcx, [rsp + 0x80]
call fcn.140050050
mov rbp, qword [rax]
mov rcx, rax
mov dl, 0xa
call qword [rbp + 0x40]
mov ebx, eax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14000250d
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14000250d
mov rbp, qword [rax]
mov rcx, rax
mov edx, 1
call qword [rbp]
mov rcx, rdi
mov edx, ebx
call fcn.140004c90
mov rcx, rdi
call fcn.140060b80
mov qword [rsp + 0x870], 0
movaps xmm0, xmmword [0x140092950]
movups xmmword [rsp + 0x878], xmm0
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 0x14000257e
mov rcx, qword [rsi + 0x58]
mov rdi, qword [rcx]
test rdi, rdi
je 0x14000257e
lea rax, [rsi + 0x38]
mov rcx, qword [rsi + 0x80]
cmp rdi, rcx
cmovb rdi, rcx
jmp 0x14000259c
test al, 4
jne 0x1400025e5
mov rax, qword [rsi + 0x50]
mov rdi, qword [rax]
test rdi, rdi
je 0x1400025e5
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 0x1400025e5
sub rdi, r9
cmp rdi, 0xf
jbe 0x1400025c2
lea rcx, [rsp + 0x870]
mov rdx, rdi
call fcn.140004460
jmp 0x1400025e5
mov qword [rsp + 0x880], rdi
lea rcx, [rsp + 0x870]
mov rdx, r9
mov r8, rdi
call fcn.1400675c0
mov byte [rsp + rdi + 0x870], 0
mov rax, qword [0x1400b0e88]
test rax, rax
je 0x140002620
mov r9, qword [rsi + 0xf8]
mov r8d, dword [rsi + 0x108]
mov rdx, qword [rsi + 0x100]
mov ecx, dword [rsi + 8]
lea rbp, [rsp + 0x870]
mov qword [rsp + 0x20], rbp
call rax
test al, al
jne 0x1400028d5
mov eax, dword [0x1400af078]
test al, 2
je 0x140002653
cmp qword [rsp + 0x888], 0xf
jbe 0x14000263f
mov rcx, qword [rsp + 0x870]
jmp 0x140002647
lea rcx, [rsp + 0x870]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400af078]
test al, 4
jne 0x140002662
cmp dword [rsi + 8], 2
jl 0x1400026b7
cmp eax, 1
ja 0x1400026b7
mov ecx, 2
call fcn.140071c50
mov rdx, qword [rsp + 0x880]
cmp qword [rsp + 0x888], 0xf
jbe 0x140002689
mov rcx, qword [rsp + 0x870]
jmp 0x140002691
lea rcx, [rsp + 0x870]
mov r8d, 1
mov r9, rax
call fcn.140072cd4
mov ecx, 2
call fcn.140071c50
mov rcx, rax
call fcn.1400720f4
mov eax, dword [0x1400af078]
test al, 1
je 0x140002712
call fcn.140001910
test al, al
je 0x140002712
mov dword [rsp + 0x80], 0xaaaaaaaa
mov r8d, dword [rsp + 0x880]
cmp qword [rsp + 0x888], 0xf
jbe 0x1400026ec
mov rdx, qword [rsp + 0x870]
jmp 0x1400026f4
lea rdx, [rsp + 0x870]
mov rcx, qword [0x1400b0ea0]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
jne 0x1400028d5
mov rcx, qword [0x1400b1030]
test rcx, rcx
je 0x140002761
mov rax, qword [rsp + 0x880]
cmp qword [rsp + 0x888], 0xf
jbe 0x140002745
mov rdx, qword [rsp + 0x870]
jmp 0x14000274d
lea rdx, [rsp + 0x870]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
call fcn.14000eb50
lea rdi, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rdi
mov dl, 0xaa
call fcn.140067c70
cmp qword [rsp + 0x888], 0xf
jbe 0x14000278e
mov rdx, qword [rsp + 0x870]
jmp 0x140002796
lea rdx, [rsp + 0x870]
mov r8d, 0x400
mov rcx, rdi
call fcn.14000fc60
mov rcx, rdi
call fcn.14000ff80
mov eax, dword [0x1400b0ec8]
mov ecx, dword [0x1400b31f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400029d8
mov rax, qword [0x1400b0eb8]
cmp rax, qword [0x1400b0ec0]
jne 0x1400027eb
call fcn.14000ced0
jmp 0x1400028d5
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rax
mov eax, dword [0x1400b0ec8]
mov ecx, dword [0x1400b31f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140002a18
lea rcx, [0x1400b0ea8]
mov rdx, qword [0x1400b0ec0]
test rdx, rdx
jne 0x140002839
mov rdx, qword [0x1400b0eb0]
add rdx, 0xffffffffffffffff
call fcn.140004590
lea rcx, [rsp + 0x60]
mov rdx, rax
call fcn.14000c540
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x1400028cb
cmp qword [rsp + 0x888], 0xf
jbe 0x14000286e
mov rbx, qword [rsp + 0x870]
jmp 0x140002876
lea rbx, [rsp + 0x870]
mov rcx, rbx
add rcx, r14
mov qword [rsp + 0x40], rcx
je 0x14000288a
call fcn.140073720
jmp 0x14000288c
xor eax, eax
mov qword [rsp + 0x48], rax
mov rax, qword [rsi + 0xf8]
sub r14, rax
add rbx, rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r14
mov r8d, dword [rsi + 0x108]
mov rdx, qword [rsi + 0x100]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rcx, rdi
call qword [rdi + 8]
lea rcx, [rsp + 0x60]
call fcn.14000c520
mov rax, qword [rsp + 0x888]
cmp rax, 0x10
jb 0x14000291c
mov rcx, qword [rsp + 0x870]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140002917
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x140002a13
add rax, 0x28
mov rdx, rax
mov rcx, rbp
call fcn.1400659f8
lea rcx, [rsi + 0x118]
call fcn.14000c620
lea rdi, [rsi + 0x98]
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x140092a18]
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, [0x140092a30]
mov qword [rsi + 0x18], rax
call fcn.140003e70
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 0x1400029a7
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14000299f
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14000299f
mov rbp, qword [rax]
mov rcx, rax
mov edx, 1
call qword [rbp]
mov rcx, rsi
call fcn.1400657a0
lea rax, vtable.std::ios_base.0
mov qword [rdi], rax
mov rcx, rdi
call fcn.140064e04
mov rcx, qword [rsp + 0x1058]
xor rcx, rsp
call fcn.140065b10
nop
add rsp, 0x1060
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400b0ec8]
call fcn.140065628
cmp dword [0x1400b0ec8], 0xffffffff
jne 0x1400027d1
xorps xmm0, xmm0
movups xmmword [0x1400b0eb8], xmm0
movups xmmword [0x1400b0ea8], xmm0
lea rcx, [0x1400b0ec8]
call fcn.1400655c8
jmp 0x1400027d1
call fcn.14006c06c
lea rcx, [0x1400b0ec8]
call fcn.140065628
cmp dword [0x1400b0ec8], 0xffffffff
jne 0x14000281f
xorps xmm0, xmm0
movups xmmword [0x1400b0eb8], xmm0
movups xmmword [0x1400b0ea8], xmm0
lea rcx, [0x1400b0ec8]
call fcn.1400655c8
jmp 0x14000281f