Function at 0x14003bc00
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.14031e1c0
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x1405bdab8]
xor rax, rsp
mov qword [rsp + 0x1058], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rax, [0x1404c23d0]
mov qword [rcx], rax
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], recv
mov byte [rsp + 0x80], 0
mov eax, dword [rcx + 0x88]
mov ecx, eax
and ecx, 0x22
cmp ecx, 2
je 0x14003bca4
mov rcx, qword [rsi + 0x58]
mov rdi, qword [rcx]
test rdi, rdi
je 0x14003bca4
lea rax, [rsi + 0x38]
mov rcx, qword [rsi + 0x80]
cmp rdi, rcx
cmovb rdi, rcx
jmp 0x14003bcc2
test al, 4
jne 0x14003bd0b
mov rax, qword [rsi + 0x50]
mov rdi, qword [rax]
test rdi, rdi
je 0x14003bd0b
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 0x14003bd0b
sub rdi, r9
cmp rdi, 0xf
jbe 0x14003bce8
lea rcx, [rsp + 0x80]
mov rdx, rdi
call fcn.14003ab60
jmp 0x14003bd0b
mov qword [rsp + 0x90], rdi
lea rcx, [rsp + 0x80]
mov rdx, r9
mov r8, rdi
call fcn.140320ff0
mov byte [rsp + rdi + 0x80], 0
mov r15, qword [rsp + 0x90]
mov rax, qword [rsp + 0x98]
cmp rax, 0x10
jb 0x14003bd5a
mov rcx, qword [rsp + 0x80]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14003bd55
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14003c6a6
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14031dc44
lea rdi, [rsi + 0x10]
cmp dword [rsi + 8], 3
jne 0x14003bfb1
call fcn.140043460
test al, al
jne 0x14003bfb1
lea rbx, [rsp + 0x870]
mov r8d, 0x7d8
mov rcx, rbx
mov dl, 0xaa
call fcn.1403224b0
mov rcx, rbx
call fcn.140043480
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 [0x140482108]
lea rcx, [rsp + 0x80]
call fcn.140112180
mov rcx, qword [rax]
mov r8, qword [rcx + 0x40]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x140482108]
mov ebx, eax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14003be14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140482108]
test rax, rax
je 0x14003be14
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov edx, 1
mov rax, r8
call qword [0x140482108]
mov rcx, rdi
mov edx, ebx
call fcn.14003e240
mov rcx, rdi
call fcn.140239930
lea rcx, [rsp + 0x870]
mov rdx, rdi
call fcn.1400434f0
lea rbx, [rsp + 0x80]
mov r8d, 0x7f0
mov rcx, rbx
mov dl, 0xaa
call fcn.1403224b0
mov rcx, rbx
call fcn.140043520
mov rcx, rbx
call fcn.140043610
test al, al
jne 0x14003be72
lea rcx, [rsp + 0x80]
mov rdx, rdi
call fcn.140043620
call fcn.1400437c0
test rax, rax
je 0x14003bfa9
mov r14, rax
cmp dword [rax + 0x68], 0
je 0x14003bfa9
lea rdx, str.IPC_message_handler_context:
mov rcx, rdi
call fcn.1400f6f80
mov rbx, rax
mov r8d, dword [r14 + 0x68]
lea rdx, str.0x_08X
lea r14, [rsp + 0x60]
mov rcx, r14
call fcn.140043830
mov r8, qword [rsp + 0x70]
cmp qword [rsp + 0x78], 0x10
jb 0x14003bec9
mov r14, qword [rsp + 0x60]
mov rcx, rbx
mov rdx, r14
call fcn.1402796d0
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 [0x140482108]
lea rcx, [rsp + 0x1048]
call fcn.140112180
mov rcx, qword [rax]
mov r8, qword [rcx + 0x40]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x140482108]
mov ebp, eax
mov rcx, qword [rsp + 0x1050]
test rcx, rcx
je 0x14003bf56
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140482108]
test rax, rax
je 0x14003bf56
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov edx, 1
mov rax, r8
call qword [0x140482108]
mov rcx, rbx
mov edx, ebp
call fcn.14003e240
mov rcx, rbx
call fcn.140239930
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x14003bfa9
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14003bfa4
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14003c6a6
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14031dc44
mov rcx, rdi
call fcn.140044090
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 [0x140482108]
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.140112180
mov rcx, qword [rax]
mov r8, qword [rcx + 0x40]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x140482108]
mov ebp, eax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14003c033
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140482108]
test rax, rax
je 0x14003c033
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov edx, 1
mov rax, r8
call qword [0x140482108]
mov rcx, rdi
mov edx, ebp
call fcn.14003e240
mov rcx, rdi
call fcn.140239930
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 0x14003c0a9
mov rcx, qword [rsi + 0x58]
mov rdi, qword [rcx]
test rdi, rdi
je 0x14003c0a9
lea rax, [rsi + 0x38]
mov rcx, qword [rsi + 0x80]
cmp rdi, rcx
cmovb rdi, rcx
jmp 0x14003c0c7
test al, 4
jne 0x14003c0ef
mov rax, qword [rsi + 0x50]
mov rdi, qword [rax]
test rdi, rdi
je 0x14003c0ef
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 0x14003c0ef
sub rdi, r9
cmp rdi, 0xf
jbe 0x14003c1fc
lea rcx, [rsp + 0x870]
mov rdx, rdi
call fcn.14003ab60
cmp dword [rsi + 8], 3
jne 0x14003c229
cmp byte [0x140754864], 0
jne 0x14003c229
movaps xmm0, xmmword [0x1404c2310]
movaps xmmword [rsp + 0x60], xmm0
lea rax, [0x140754864]
mov qword [rsp + 0x60], rax
movzx eax, byte [0x140754864]
mov byte [0x140754864], 1
mov byte [rsp + 0x68], al
mov eax, dword [0x140754870]
mov ecx, dword [0x140756750]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x480]
jg 0x14003c73f
mov rcx, rsi
mov rdx, rbx
call fcn.14003c8d0
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x98], 0x10
jb 0x14003c17b
mov rbx, qword [rsp + 0x80]
mov qword [rsp + 0x1048], rbx
mov qword [rsp + 0x1050], rax
mov rcx, qword [0x140754868]
lea rdx, [rsp + 0x1048]
call fcn.140044030
mov rax, qword [rsp + 0x98]
cmp rax, 0x10
jb 0x14003c1e6
mov rcx, qword [rsp + 0x80]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14003c1e1
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14003c6a6
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14031dc44
cmp qword [rsp + 0x60], 0
je 0x14003c229
movzx eax, byte [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov byte [rcx], al
jmp 0x14003c229
mov qword [rsp + 0x880], rdi
lea rcx, [rsp + 0x870]
mov rdx, r9
mov r8, rdi
call fcn.140320ff0
mov byte [rsp + rdi + 0x870], 0
cmp dword [rsi + 8], 3
je 0x14003c0f9
mov rax, qword [0x140754818]
test rax, rax
je 0x14003c268
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 [0x140482108]
test al, al
jne 0x14003c58b
mov eax, dword [0x1405bd868]
test al, 2
je 0x14003c29b
cmp qword [rsp + 0x888], 0x10
jb 0x14003c287
mov rcx, qword [rsp + 0x870]
jmp 0x14003c28f
lea rcx, [rsp + 0x870]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1405bd868]
test al, 4
jne 0x14003c2aa
cmp dword [rsi + 8], 2
jl 0x14003c308
cmp eax, 1
ja 0x14003c308
mov rdi, qword [rsp + 0x880]
cmp qword [rsp + 0x888], 0x10
jb 0x14003c2cc
mov rbx, qword [rsp + 0x870]
test rdi, rdi
jne 0x14003c2d9
jmp 0x14003c308
lea rbx, [rsp + 0x870]
test rdi, rdi
je 0x14003c308
xor r14d, r14d
nop dword [rax]
mov r8d, edi
sub r8d, r14d
lea rdx, [rbx + r14]
mov ecx, 2
call fcn.14033ba88
test eax, eax
js 0x14003c302
mov eax, eax
add r14, rax
cmp r14, rdi
jb 0x14003c2e0
mov eax, dword [0x1405bd868]
test al, 1
je 0x14003c363
call fcn.14003b080
test al, al
je 0x14003c363
mov dword [rsp + 0x80], 0xaaaaaaaa
mov r8d, dword [rsp + 0x880]
cmp qword [rsp + 0x888], 0x10
jb 0x14003c33d
mov rdx, qword [rsp + 0x870]
jmp 0x14003c345
lea rdx, [rsp + 0x870]
mov rcx, qword [0x140754830]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
jne 0x14003c58b
mov rcx, qword [0x140754a18]
test rcx, rcx
je 0x14003c3b2
mov rax, qword [rsp + 0x880]
cmp qword [rsp + 0x888], 0x10
jb 0x14003c396
mov rdx, qword [rsp + 0x870]
jmp 0x14003c39e
lea rdx, [rsp + 0x870]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
call fcn.140044f70
lea rdi, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rdi
mov dl, 0xaa
call fcn.1403224b0
cmp qword [rsp + 0x888], 0x10
jb 0x14003c3df
mov rdx, qword [rsp + 0x870]
jmp 0x14003c3e7
lea rdx, [rsp + 0x870]
mov r8d, 0x400
mov rcx, rdi
call fcn.1400461e0
mov rcx, rdi
call fcn.1400464d0
mov eax, dword [0x140754860]
mov ecx, dword [0x140756750]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x480]
jg 0x14003c6ab
mov rax, qword [0x140754850]
cmp rax, qword [0x140754858]
je 0x14003c781
mov qword [rsp + 0x1048], r12
mov eax, dword [0x140754860]
mov ecx, dword [0x140756750]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x480]
jg 0x14003c6f5
mov rax, qword [0x140754858]
lea rcx, [0x140754840]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x14003c489
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
dec rax
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x60]
call fcn.14003e190
lea rcx, [rsp + 0x1048]
mov rdx, rax
call fcn.140039b90
cmp qword [rsp + 0x1048], 0
je 0x14003c57e
mov rdi, qword [rsp + 0x870]
mov r14, qword [rsp + 0x888]
cmp r14, 0x10
lea rbx, [rsp + 0x870]
mov rcx, rbx
cmovae rcx, rdi
add rcx, r15
mov qword [rsp + 0x40], rcx
je 0x14003c4f3
call fcn.14033d970
mov qword [rsp + 0x48], rax
jmp 0x14003c535
mov qword [rsp + 0x48], 0
lea rdx, str....._base_strings_string_piece.h
lea r9, [0x1404c2474]
lea rdi, [rsp + 0x60]
mov rcx, rdi
mov r8d, 0x7d
call fcn.14003ae20
mov rcx, rdi
call fcn.14003afc0
mov rdi, qword [rsp + 0x870]
mov r14, qword [rsp + 0x888]
mov rax, qword [rsi + 0xf8]
sub r15, rax
cmp r14, 0x10
cmovae rbx, rdi
add rbx, rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
mov r8d, dword [rsi + 0x108]
mov rdx, qword [rsi + 0x100]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x1048]
lea r9, [rsp + 0x30]
call fcn.14003c790
lea rcx, [rsp + 0x1048]
call fcn.140039b70
mov rax, qword [rsp + 0x888]
cmp rax, 0x10
jb 0x14003c5d2
mov rcx, qword [rsp + 0x870]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14003c5cd
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14003c6a6
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14031dc44
lea rcx, [rsi + 0x10c]
call fcn.1400429a0
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.14003a840
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 0x14003c666
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003c65e
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140482108]
test rax, rax
je 0x14003c65e
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov edx, 1
mov rax, r8
call qword [0x140482108]
mov rcx, rdi
call fcn.14031e6f8
lea rax, vtable.std::ios_base.0
mov qword [rsi + 0x98], rax
add rsi, 0x98
mov rcx, rsi
call fcn.14031fc88
mov rcx, qword [rsp + 0x1058]
xor rcx, rsp
call fcn.14031e660
nop
add rsp, 0x1060
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.14032c23c
lea rcx, [0x140754860]
call fcn.14031e094
cmp dword [0x140754860], 0xffffffff
jne 0x14003c422
mov qword [0x140754840], 0
xorps xmm0, xmm0
movups xmmword [0x140754848], xmm0
mov qword [0x140754858], 0
lea rcx, [0x140754860]
call fcn.14031e034
jmp 0x14003c422
lea rcx, [0x140754860]
call fcn.14031e094
cmp dword [0x140754860], 0xffffffff
jne 0x14003c463
mov qword [0x140754840], 0
xorps xmm0, xmm0
movups xmmword [0x140754848], xmm0
mov qword [0x140754858], 0
lea rcx, [0x140754860]
call fcn.14031e034
jmp 0x14003c463
lea rcx, [0x140754870]
call fcn.14031e094
cmp dword [0x140754870], 0xffffffff
jne 0x14003c155
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140044000
mov qword [0x140754868], rax
lea rcx, [0x140754870]
call fcn.14031e034
jmp 0x14003c155
int3