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

Disassembly:
test rdx, rdx
je 0x140009849
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 [0x14027eb40]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov qword [rbp - 0x71], r9
mov rbx, r8
mov qword [rbp - 0x79], rbx
mov rdi, rdx
mov qword [rbp - 0x69], rdx
mov r14, rcx
mov qword [rsp + 0x30], rcx
mov rcx, qword [rdx + 0x18]
lea r12, [0x140234670]
test rcx, rcx
je 0x14000925d
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x140009260
mov rcx, qword [rcx]
jmp 0x140009260
mov rcx, r12
call fcn.14019a0c8
test rax, rax
jne 0x140009277
cmp qword [r14 + 0x360], rax
je 0x14000982a
mov rdx, qword [rdi + 0x18]
test rdx, rdx
je 0x140009285
mov eax, dword [rdx + 0x28]
jmp 0x140009287
xor eax, eax
movzx esi, word [rdi + 0x10]
shl esi, 0xa
test esi, esi
je 0x14000929a
cmp eax, esi
jae 0x14000982a
test rdx, rdx
je 0x1400092af
add rdx, 8
cmp qword [rdx + 0x18], 8
jb 0x1400092b2
mov rdx, qword [rdx]
jmp 0x1400092b2
mov rdx, r12
call fcn.140008fc4
mov r15, rax
mov rdi, qword [r14 + 0x90]
xor r9d, r9d
test rdi, rdi
je 0x1400092d8
mov rdi, qword [rdi + 0x18]
test rdi, rdi
je 0x1400092d8
add rdi, 0x30
jmp 0x1400092e3
mov rdi, qword [r14 + 0xe0]
add rdi, 0x28
test rbx, rbx
jne 0x1400092ed
mov r13d, r9d
jmp 0x1400092fb
mov rcx, rbx
call fcn.14019a0c8
mov r13, rax
xor r9d, r9d
cmp qword [rdi + 0x10], r9
mov ebx, r9d
jbe 0x140009307
mov ebx, dword [rdi + 0x10]
mov dword [rsp + 0x38], ebx
mov rdx, qword [rbp - 0x71]
test rdx, rdx
jne 0x140009319
mov eax, r9d
jmp 0x140009328
mov rcx, rdx
call fcn.14019a0c8
mov rdx, qword [rbp - 0x71]
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 0x14000935e
cmp qword [rdi + 0x18], 8
jb 0x14000934c
mov r8, qword [rdi]
jmp 0x14000934f
mov r8, rdi
mov rax, qword [rcx]
mov r9, rdx
mov rdx, qword [rbp - 0x79]
call qword [rax]
xor r9d, r9d
or r14, 0xffffffffffffffff
cmp r15, r14
je 0x140009578
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 0x14000938b
cmp eax, esi
jae 0x14000956a
mov rdx, r15
mov r12, qword [rsp + 0x30]
mov rcx, r12
call fcn.140009064
add ebx, eax
test r13d, r13d
je 0x1400093ce
lea r8d, [r13*2]
xor r13d, r13d
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 0x1400093d1
add ebx, dword [rsp + 0x30]
jmp 0x1400093d1
xor r13d, r13d
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140009405
cmp qword [rdi + 0x18], 8
jb 0x1400093e3
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 0x140009405
add ebx, dword [rsp + 0x30]
mov rax, qword [rbp - 0x61]
test eax, eax
je 0x140009458
lea r8d, [rax + rax]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x30]
mov rdx, qword [rbp - 0x71]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140009430
add ebx, dword [rsp + 0x30]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x30]
mov r8d, 4
lea rdx, [0x140234c90]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140009458
add ebx, dword [rsp + 0x30]
test esi, esi
je 0x14000955a
cmp ebx, esi
jb 0x14000955a
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.14000be00
nop
lea r9, [r12 + 8]
cmp qword [r9 + 0x18], 8
jb 0x1400094a1
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.14019a644
cmp word [rdi], r13w
jne 0x1400094c8
mov r14, r13
jmp 0x1400094d2
inc r14
cmp word [rdi + r14*2], r13w
jne 0x1400094c8
mov r8, r14
mov rdx, rdi
lea rcx, [rbp - 0x51]
call fcn.140004e30
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 0x140009516
add ebx, dword [rsp + 0x30]
mov rdi, qword [rbp - 0x69]
test dword [rdi + 0x10], 0x10000
je 0x14000953b
test dword [rdi + 0x10], 0x20000
je 0x14000953b
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14000953b
mov byte [rax], 1
mov ebx, r13d
cmp qword [rbp - 0x39], 8
jb 0x14000954b
mov rcx, qword [rbp - 0x51]
call fcn.14001ae84
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x41], r13
mov word [rbp - 0x51], r13w
jmp 0x14000955e
mov rdi, qword [rbp - 0x69]
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14000956a
mov dword [rax + 0x28], ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000982a
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 0x1400095cd
cmp qword [rbp - 0x39], rdx
je 0x1400095cd
mov r8b, 1
lea rcx, [rbp - 0x51]
call fcn.140004d50
xor r9d, r9d
test al, al
je 0x1400095cd
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 0x140009638
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.140004e30
nop
lea rcx, [r15 + 0x338]
lea rdx, [rbp - 0x11]
call fcn.14000b7e8
nop
cmp qword [rbp + 7], 8
jb 0x140009628
mov rcx, qword [rbp - 0x11]
call fcn.14001ae84
mov qword [rbp + 7], rsi
xor r9d, r9d
mov qword [rbp - 1], r9
mov word [rbp - 0x11], r9w
test r13d, r13d
je 0x140009668
mov rax, qword [rbp - 0x79]
cmp word [rax], r9w
jne 0x14000964c
mov r8, r9
jmp 0x140009659
mov r8, r14
inc r8
cmp word [rax + r8*2], r9w
jne 0x14000964f
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.140005f60
xor r9d, r9d
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140009685
mov r9, r14
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x51]
call fcn.1400060c0
xor r9d, r9d
mov rax, qword [rbp - 0x61]
test eax, eax
je 0x1400096b5
mov rax, qword [rbp - 0x71]
cmp word [rax], r9w
jne 0x14000969c
mov r8, r9
jmp 0x1400096a9
mov r8, r14
inc r8
cmp word [rax + r8*2], r9w
jne 0x14000969f
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.140005f60
mov r8d, 2
lea rdx, [0x140234c90]
lea rcx, [rbp - 0x51]
call fcn.140005f60
lea rbx, [r15 + 0x338]
mov rax, qword [rbx + 0x20]
inc rax
cmp qword [rbx + 0x10], rax
ja 0x1400096e7
mov rcx, rbx
call fcn.14000c02c
mov rdi, qword [rbx + 0x10]
dec rdi
and qword [rbx + 0x18], rdi
mov rdx, qword [rbx + 0x18]
add rdx, qword [rbx + 0x20]
and rdi, rdx
mov rax, qword [rbx + 8]
xor r13d, r13d
cmp qword [rax + rdi*8], r13
jne 0x140009729
lea ecx, [r13 + 0x20]
call fcn.14001ae40
mov rcx, rax
test rax, rax
jne 0x140009721
call fcn.1401b759c
int3
mov rax, qword [rbx + 8]
mov qword [rax + rdi*8], rcx
mov rax, qword [rbx + 8]
mov rcx, qword [rax + rdi*8]
mov qword [rbp - 0x61], rcx
mov qword [rbp - 0x79], rcx
test rcx, rcx
je 0x14000975a
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.140004a80
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]
test eax, eax
je 0x14000978e
lea r9, [rbp - 0x31]
xor r8d, r8d
mov edx, eax
mov rcx, r15
call fcn.14000aa78
lea rcx, str.Unable_to_open_log_file:_r_n_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rbp - 0x69]
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1400097b8
lea r12, [rax + 8]
cmp qword [r12 + 0x18], 8
jb 0x1400097b8
mov r12, qword [r12]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x140234d10]
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, [0x140234c90]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
cmp qword [rbp - 0x19], 8
jb 0x140009800
mov rcx, qword [rbp - 0x31]
call fcn.14001ae84
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x21], r13
mov word [rbp - 0x31], r13w
cmp qword [rbp - 0x39], 8
jb 0x14000981d
mov rcx, qword [rbp - 0x51]
call fcn.14001ae84
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x41], r13
mov word [rbp - 0x51], r13w
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140199450
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret