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

Disassembly:
test rdx, rdx
je 0x1400083bb
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xf8
mov qword [rbp - 0x79], 0xfffffffffffffffe
mov rax, qword [0x1400416b0]
xor rax, rsp
mov qword [rbp + 7], rax
mov qword [rsp + 0x50], r9
mov rsi, r8
mov qword [rsp + 0x40], r8
mov r12, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor r14d, r14d
mov rcx, qword [rdx + 0x18]
lea r13, [0x1400362a8]
test rcx, rcx
je 0x140007e26
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x140007e29
mov rcx, qword [rcx]
jmp 0x140007e29
mov rcx, r13
call fcn.140015094
test rax, rax
je 0x14000839c
mov rcx, qword [r12 + 0x18]
test rcx, rcx
je 0x140007e46
mov eax, dword [rcx + 0x30]
jmp 0x140007e49
mov eax, r14d
movzx edi, word [r12 + 0x10]
shl edi, 0xa
test edi, edi
je 0x140007e5e
cmp eax, edi
jae 0x14000839c
test rcx, rcx
je 0x140007e73
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x140007e76
mov rcx, qword [rcx]
jmp 0x140007e76
mov rcx, r13
call fcn.140007b5c
mov r14, rax
mov r15, qword [rbx + 0xb0]
xor r8d, r8d
test r15, r15
je 0x140007e9c
mov r15, qword [r15 + 0x18]
test r15, r15
je 0x140007e9c
add r15, 0x38
jmp 0x140007ea7
mov r15, qword [rbx + 0x108]
add r15, 0x30
test rsi, rsi
jne 0x140007eb6
mov esi, r8d
mov qword [rsp + 0x58], rsi
jmp 0x140007ec9
mov rcx, rsi
call fcn.140015094
mov rsi, rax
mov qword [rsp + 0x58], rax
xor r8d, r8d
mov rbx, qword [r15 + 0x10]
test rbx, rbx
cmove ebx, r8d
mov qword [rsp + 0x38], rbx
mov rax, qword [rsp + 0x50]
test rax, rax
jne 0x140007ee8
mov eax, r8d
jmp 0x140007ef3
mov rcx, rax
call fcn.140015094
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea ecx, [rax + rbx]
lea eax, [rcx + rsi + 3]
cmp r14, 0xffffffffffffffff
je 0x1400080ff
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
test edi, edi
je 0x140007f2b
cmp eax, edi
jae 0x1400080f1
mov rdx, r14
mov r13, qword [rsp + 0x30]
mov rcx, r13
call fcn.140007bfc
add esi, eax
mov rax, qword [rsp + 0x58]
test eax, eax
je 0x140007f6b
lea r8d, [rax + rax]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140007f6b
add esi, dword [rsp + 0x30]
test ebx, ebx
je 0x140007fa1
cmp qword [r15 + 0x18], 8
jb 0x140007f79
mov r15, qword [r15]
lea r8d, [rbx + rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r15d, r15d
test eax, eax
je 0x140007fa4
add esi, dword [rsp + 0x30]
jmp 0x140007fa4
xor r15d, r15d
mov rax, qword [rsp + 0x48]
test eax, eax
je 0x140007ff9
lea r8d, [rax + rax]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x30]
mov rdx, qword [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140007fd1
add esi, dword [rsp + 0x30]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x30]
mov r8d, 4
lea rdx, [0x140036940]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140007ff9
add esi, dword [rsp + 0x30]
test edi, edi
je 0x1400080e2
cmp esi, edi
jb 0x1400080e2
mov edx, 0x80
lea rcx, [rbp - 0x71]
call fcn.140009c84
nop
lea r9, [r13 + 8]
cmp qword [r9 + 0x18], 8
jb 0x140008026
mov r9, qword [r9]
lea r8, str._FILE_SIZE_LIMIT_REACHED__LOGGING_DISABLED_FOR__s_MODULE_
mov edx, 0x104
lea rcx, [r13 + 0x138]
call fcn.1400150b0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [r13 + 0x138]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [r13 + 0x138]
lea rcx, [rbp - 0x71]
call fcn.14000444c
mov edx, dword [rbp - 0x61]
lea r8d, [rdx + rdx]
mov dword [rsp + 0x30], r8d
lea rdx, [rbp - 0x71]
cmp qword [rbp - 0x59], 8
cmovae rdx, qword [rbp - 0x71]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000809a
add esi, dword [rsp + 0x30]
test dword [r12 + 0x10], 0x10000
je 0x1400080c0
test dword [r12 + 0x10], 0x20000
je 0x1400080c0
mov rax, qword [r12 + 0x18]
test rax, rax
je 0x1400080c0
mov byte [rax], 1
mov esi, r15d
cmp qword [rbp - 0x59], 8
jb 0x1400080d0
mov rcx, qword [rbp - 0x71]
call fcn.140014720
mov ebx, 7
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x61], r15
mov word [rbp - 0x71], r15w
cmp qword [r12 + 0x18], r15
je 0x1400080f1
mov rax, qword [r12 + 0x18]
mov dword [rax + 0x30], esi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000839c
mov ebx, 7
mov qword [rbp - 0x31], rbx
mov qword [rbp - 0x39], r8
mov word [rbp - 0x49], r8w
mov edx, eax
mov rdi, qword [rbp - 0x39]
cmp rdi, rdx
ja 0x14000814c
cmp qword [rbp - 0x31], rdx
je 0x14000814c
mov r8b, 1
lea rcx, [rbp - 0x49]
call fcn.140004724
xor r8d, r8d
test al, al
je 0x14000814c
mov qword [rbp - 0x39], rdi
lea rax, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rax, qword [rbp - 0x49]
mov word [rax + rdi*2], r8w
mov r14, qword [rsp + 0x30]
cmp qword [r14 + 0x380], r8
jne 0x1400081af
mov qword [rbp - 9], rbx
mov qword [rbp - 0x11], r8
mov word [rbp - 0x21], r8w
mov r8d, 0x1c
lea rdx, str.____Queued_Lines_Start_____r_n
lea rcx, [rbp - 0x21]
call fcn.14000444c
nop
lea rcx, [r14 + 0x360]
lea rdx, [rbp - 0x21]
call fcn.14000a098
nop
cmp qword [rbp - 9], 8
jb 0x14000819f
mov rcx, qword [rbp - 0x21]
call fcn.140014720
mov qword [rbp - 9], rbx
xor r8d, r8d
mov qword [rbp - 0x11], r8
mov word [rbp - 0x21], r8w
test esi, esi
je 0x1400081c4
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp - 0x49]
call fcn.140004020
xor r8d, r8d
cmp dword [rsp + 0x38], r8d
jbe 0x1400081de
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x49]
call fcn.14000418c
mov rax, qword [rsp + 0x48]
xor r15d, r15d
test eax, eax
je 0x1400081f8
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x49]
call fcn.140004020
lea rdx, [0x140036940]
lea rcx, [rbp - 0x49]
call fcn.140004020
mov rax, qword [r14 + 0x380]
inc rax
cmp qword [r14 + 0x370], rax
ja 0x140008227
lea rcx, [r14 + 0x360]
call fcn.14000a60c
mov rsi, qword [r14 + 0x378]
add rsi, qword [r14 + 0x380]
cmp qword [r14 + 0x370], rsi
ja 0x140008245
sub rsi, qword [r14 + 0x370]
mov rax, qword [r14 + 0x368]
cmp qword [rax + rsi*8], r15
jne 0x14000829e
mov ecx, 0x28
call fcn.140014af4
test rax, rax
je 0x14000826e
mov rcx, qword [r14 + 0x368]
mov qword [rcx + rsi*8], rax
jmp 0x14000829e
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x21]
call fcn.14001495c
nop
lea rax, vtable.std::bad_alloc.0
mov qword [rbp - 0x21], rax
lea rdx, [0x14003f340]
lea rcx, [rbp - 0x21]
call fcn.140017110
int3
mov rax, qword [r14 + 0x368]
mov rcx, qword [rax + rsi*8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
test rcx, rcx
je 0x1400082d5
mov qword [rcx + 0x18], rbx
mov qword [rcx + 0x10], r15
mov word [rcx], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x49]
call fcn.140003aec
nop
inc qword [r14 + 0x380]
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x61], r15
mov word [rbp - 0x71], r15w
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140008304
lea r9, [rbp - 0x71]
xor r8d, r8d
mov edx, eax
mov rcx, r14
call fcn.14000937c
lea rcx, str.Unable_to_open_log_file:_r_n_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [r12 + 0x18]
test rdx, rdx
je 0x14000832a
lea r13, [rdx + 8]
cmp qword [r13 + 0x18], 8
jb 0x14000832a
mov r13, qword [r13]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x1400369c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x71]
cmp qword [rbp - 0x59], 8
cmovae rcx, qword [rbp - 0x71]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x140036940]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
cmp qword [rbp - 0x59], 8
jb 0x140008372
mov rcx, qword [rbp - 0x71]
call fcn.140014720
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x61], r15
mov word [rbp - 0x71], r15w
cmp qword [rbp - 0x31], 8
jb 0x14000838f
mov rcx, qword [rbp - 0x49]
call fcn.140014720
mov qword [rbp - 0x31], rbx
mov qword [rbp - 0x39], r15
mov word [rbp - 0x49], r15w
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140014700
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret