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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd8
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov rax, qword [0x1406ca7c8]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov qword [rbp - 0x79], r9
mov rbx, r8
mov qword [rbp - 0x69], rbx
mov rdi, rdx
mov qword [rbp - 0x71], rdx
mov r14, rcx
mov qword [rsp + 0x30], rcx
xor r15d, r15d
test rdx, rdx
je 0x14000df67
mov rcx, qword [rdx + 0x18]
lea r12, [0x1403ca788]
test rcx, rcx
je 0x14000d9dd
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x14000d9e0
mov rcx, qword [rcx]
jmp 0x14000d9e0
mov rcx, r12
call fcn.140255170
test rax, rax
jne 0x14000d9f7
cmp qword [r14 + 0x360], r15
je 0x14000df67
mov rdx, qword [rdi + 0x18]
test rdx, rdx
je 0x14000da05
mov eax, dword [rdx + 0x28]
jmp 0x14000da08
mov eax, r15d
movzx esi, word [rdi + 0x10]
shl esi, 0xa
test esi, esi
je 0x14000da1b
cmp eax, esi
jae 0x14000df67
test rdx, rdx
je 0x14000da30
add rdx, 8
cmp qword [rdx + 0x18], 8
jb 0x14000da33
mov rdx, qword [rdx]
jmp 0x14000da33
mov rdx, r12
call fcn.14000d768
mov r15, rax
mov rdi, qword [r14 + 0x90]
xor r9d, r9d
test rdi, rdi
je 0x14000da59
mov rdi, qword [rdi + 0x18]
test rdi, rdi
je 0x14000da59
add rdi, 0x30
jmp 0x14000da64
mov rdi, qword [r14 + 0xe0]
add rdi, 0x28
test rbx, rbx
jne 0x14000da6e
mov r13d, r9d
jmp 0x14000da7c
mov rcx, rbx
call fcn.140255170
mov r13, rax
xor r9d, r9d
cmp qword [rdi + 0x10], r9
mov ebx, r9d
jbe 0x14000da88
mov ebx, dword [rdi + 0x10]
mov dword [rsp + 0x38], ebx
mov rdx, qword [rbp - 0x79]
test rdx, rdx
jne 0x14000da9a
mov eax, r9d
jmp 0x14000daa9
mov rcx, rdx
call fcn.140255170
mov rdx, qword [rbp - 0x79]
xor r9d, r9d
mov qword [rbp - 0x61], rax
add ebx, 3
add ebx, eax
add ebx, r13d
mov rcx, qword [r14 + 0x360]
test rcx, rcx
je 0x14000dadf
cmp qword [rdi + 0x18], 8
jb 0x14000dacd
mov r8, qword [rdi]
jmp 0x14000dad0
mov r8, rdi
mov rax, qword [rcx]
mov r9, rdx
mov rdx, qword [rbp - 0x69]
call qword [rax]
xor r9d, r9d
or r14, 0xffffffffffffffff
cmp r15, r14
je 0x14000dce6
lea r9d, [r14 + 3]
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
test esi, esi
je 0x14000db0c
cmp eax, esi
jae 0x14000dcd8
mov rdx, r15
mov r12, qword [rsp + 0x30]
mov rcx, r12
call fcn.14000d808
add ebx, eax
test r13d, r13d
je 0x14000db4f
lea r8d, [r13*2]
xor r13d, r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x30]
mov rdx, qword [rbp - 0x69]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000db52
add ebx, dword [rsp + 0x30]
jmp 0x14000db52
xor r13d, r13d
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14000db86
cmp qword [rdi + 0x18], 8
jb 0x14000db64
mov rdi, qword [rdi]
lea r8d, [rax + rax]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x30]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000db86
add ebx, dword [rsp + 0x30]
mov rax, qword [rbp - 0x61]
test eax, eax
je 0x14000dbd9
lea r8d, [rax + rax]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x30]
mov rdx, qword [rbp - 0x79]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000dbb1
add ebx, dword [rsp + 0x30]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x30]
mov r8d, 4
lea rdx, [0x1403ce090]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000dbd9
add ebx, dword [rsp + 0x30]
test esi, esi
je 0x14000dcc8
cmp ebx, esi
jb 0x14000dcc8
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], r13
mov esi, 7
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x41], r13
mov word [rbp - 0x51], r13w
xor r8d, r8d
lea edx, [rsi + 0x79]
lea rcx, [rbp - 0x51]
call fcn.140010098
nop
lea r9, [r12 + 8]
cmp qword [r9 + 0x18], 8
jb 0x14000dc22
mov r9, qword [r9]
lea rdi, [r12 + 0x110]
lea r8, str._FILE_SIZE_LIMIT_REACHED__LOGGING_DISABLED_FOR__s_MODULE_
mov edx, 0x104
mov rcx, rdi
call fcn.140009c3c
cmp word [rdi], r13w
jne 0x14000dc49
mov r14, r13
jmp 0x14000dc53
inc r14
cmp word [rdi + r14*2], r13w
jne 0x14000dc49
mov r8, r14
mov rdx, rdi
lea rcx, [rbp - 0x51]
call fcn.140009144
mov eax, dword [rbp - 0x41]
lea r8d, [rax + rax]
mov dword [rsp + 0x30], r8d
lea rdx, [rbp - 0x51]
cmp qword [rbp - 0x39], 8
cmovae rdx, qword [rbp - 0x51]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000dc97
add ebx, dword [rsp + 0x30]
mov rdi, qword [rbp - 0x71]
mov eax, dword [rdi + 0x10]
mov ecx, 0x30000
and eax, ecx
cmp eax, ecx
jne 0x14000dcb8
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14000dcb8
mov byte [rax], 1
mov ebx, r13d
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x51]
call fcn.140008e38
jmp 0x14000dccc
mov rdi, qword [rbp - 0x71]
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14000dcd8
mov dword [rax + 0x28], ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000df67
mov qword [rbp - 0x41], r9
mov qword [rbp - 0x39], r9
mov esi, 7
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x41], r9
mov word [rbp - 0x51], r9w
mov edx, ebx
mov rbx, qword [rbp - 0x41]
cmp rbx, rdx
ja 0x14000dd3b
cmp qword [rbp - 0x39], rdx
je 0x14000dd3b
mov r8b, 1
lea rcx, [rbp - 0x51]
call fcn.140009264
xor r9d, r9d
test al, al
je 0x14000dd3b
mov qword [rbp - 0x41], rbx
lea rax, [rbp - 0x51]
cmp qword [rbp - 0x39], 8
cmovae rax, qword [rbp - 0x51]
mov word [rax + rbx*2], r9w
mov r15, qword [rsp + 0x30]
cmp qword [r15 + 0x358], r9
jne 0x14000dd97
mov qword [rbp - 1], r9
mov qword [rbp + 7], r9
mov qword [rbp + 7], rsi
mov qword [rbp - 1], r9
mov word [rbp - 0x11], r9w
mov r8d, 0x1c
lea rdx, str.____Queued_Lines_Start_____r_n
lea rcx, [rbp - 0x11]
call fcn.140009144
nop
lea rcx, [r15 + 0x338]
lea rdx, [rbp - 0x11]
call fcn.14000fb24
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x11]
call fcn.140008e38
xor r9d, r9d
test r13d, r13d
je 0x14000ddc7
mov rax, qword [rbp - 0x69]
cmp word [rax], r9w
jne 0x14000ddab
mov r8, r9
jmp 0x14000ddb8
mov r8, r14
inc r8
cmp word [rax + r8*2], r9w
jne 0x14000ddae
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.140008eb8
xor r9d, r9d
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14000dde4
mov r9, r14
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x51]
call fcn.140009014
xor r9d, r9d
mov rax, qword [rbp - 0x61]
test eax, eax
je 0x14000de14
mov rax, qword [rbp - 0x79]
cmp word [rax], r9w
jne 0x14000ddfb
mov r8, r9
jmp 0x14000de08
mov r8, r14
inc r8
cmp word [rax + r8*2], r9w
jne 0x14000ddfe
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.140008eb8
mov r8d, 2
lea rdx, [0x1403ce090]
lea rcx, [rbp - 0x51]
call fcn.140008eb8
lea rbx, [r15 + 0x338]
mov rax, qword [rbx + 0x20]
inc rax
cmp qword [rbx + 0x10], rax
ja 0x14000de46
mov rcx, rbx
call fcn.14001078c
mov rax, qword [rbx + 0x10]
dec rax
and qword [rbx + 0x18], rax
mov rdx, qword [rbx + 0x18]
add rdx, qword [rbx + 0x20]
mov rdi, qword [rbx + 0x10]
dec rdi
and rdi, rdx
mov rax, qword [rbx + 8]
xor r13d, r13d
cmp qword [rax + rdi*8], r13
jne 0x14000de87
mov r8b, 1
lea edx, [r13 + 0x20]
lea ecx, [rdx - 0x1f]
call fcn.1400099b0
mov rcx, qword [rbx + 8]
mov qword [rcx + rdi*8], rax
mov rax, qword [rbx + 8]
mov rcx, qword [rax + rdi*8]
mov qword [rbp - 0x61], rcx
mov qword [rbp - 0x69], rcx
test rcx, rcx
je 0x14000deb8
mov qword [rcx + 0x18], rsi
mov qword [rcx + 0x10], r13
mov word [rcx], r13w
mov r9, r14
xor r8d, r8d
lea rdx, [rbp - 0x51]
call fcn.1400092e8
nop
inc qword [rbx + 0x20]
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], r13
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x21], r13
mov word [rbp - 0x31], r13w
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r9, [rbp - 0x31]
xor r8d, r8d
mov rcx, r15
call fcn.14000f0b8
lea rcx, str.Unable_to_open_log_file:_r_n_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rbp - 0x71]
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14000df12
lea r12, [rax + 8]
cmp qword [r12 + 0x18], 8
jb 0x14000df12
mov r12, qword [r12]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x1403ce110]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x1403ce090]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x31]
call fcn.140008e38
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x51]
call fcn.140008e38
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.14024cd60
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret