Function at 0x14001a330
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 [0x1405b7098]
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 0x14001a929
mov rcx, qword [rdx + 0x18]
lea r12, [0x1402208bc]
test rcx, rcx
je 0x14001a3a5
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x14001a3a8
mov rcx, qword [rcx]
jmp 0x14001a3a8
mov rcx, r12
call fcn.14010a230
test rax, rax
jne 0x14001a3bf
cmp qword [r14 + 0x360], r15
je 0x14001a929
mov rdx, qword [rdi + 0x18]
test rdx, rdx
je 0x14001a3cd
mov eax, dword [rdx + 0x28]
jmp 0x14001a3d0
mov eax, r15d
movzx esi, word [rdi + 0x10]
shl esi, 0xa
test esi, esi
je 0x14001a3e3
cmp eax, esi
jae 0x14001a929
test rdx, rdx
je 0x14001a3f8
add rdx, 8
cmp qword [rdx + 0x18], 8
jb 0x14001a3fb
mov rdx, qword [rdx]
jmp 0x14001a3fb
mov rdx, r12
call fcn.14001a130
mov r15, rax
mov rdi, qword [r14 + 0x90]
xor r9d, r9d
test rdi, rdi
je 0x14001a421
mov rdi, qword [rdi + 0x18]
test rdi, rdi
je 0x14001a421
add rdi, 0x30
jmp 0x14001a42c
mov rdi, qword [r14 + 0xe0]
add rdi, 0x28
test rbx, rbx
jne 0x14001a436
mov r13d, r9d
jmp 0x14001a444
mov rcx, rbx
call fcn.14010a230
mov r13, rax
xor r9d, r9d
cmp qword [rdi + 0x10], r9
mov ebx, r9d
jbe 0x14001a450
mov ebx, dword [rdi + 0x10]
mov dword [rsp + 0x38], ebx
mov rdx, qword [rbp - 0x79]
test rdx, rdx
jne 0x14001a462
mov eax, r9d
jmp 0x14001a471
mov rcx, rdx
call fcn.14010a230
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 0x14001a4a7
cmp qword [rdi + 0x18], 8
jb 0x14001a495
mov r8, qword [rdi]
jmp 0x14001a498
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 0x14001a6ae
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 0x14001a4d4
cmp eax, esi
jae 0x14001a6a0
mov rdx, r15
mov r12, qword [rsp + 0x30]
mov rcx, r12
call fcn.14001a1d0
add ebx, eax
test r13d, r13d
je 0x14001a517
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 0x14001a51a
add ebx, dword [rsp + 0x30]
jmp 0x14001a51a
xor r13d, r13d
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14001a54e
cmp qword [rdi + 0x18], 8
jb 0x14001a52c
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 0x14001a54e
add ebx, dword [rsp + 0x30]
mov rax, qword [rbp - 0x61]
test eax, eax
je 0x14001a5a1
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 0x14001a579
add ebx, dword [rsp + 0x30]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x30]
mov r8d, 4
lea rdx, [0x140494ec8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001a5a1
add ebx, dword [rsp + 0x30]
test esi, esi
je 0x14001a690
cmp ebx, esi
jb 0x14001a690
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.14001d2c4
nop
lea r9, [r12 + 8]
cmp qword [r9 + 0x18], 8
jb 0x14001a5ea
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.140016580
cmp word [rdi], r13w
jne 0x14001a611
mov r14, r13
jmp 0x14001a61b
inc r14
cmp word [rdi + r14*2], r13w
jne 0x14001a611
mov r8, r14
mov rdx, rdi
lea rcx, [rbp - 0x51]
call fcn.14000fde0
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 0x14001a65f
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 0x14001a680
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14001a680
mov byte [rax], 1
mov ebx, r13d
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x51]
call fcn.14000f964
jmp 0x14001a694
mov rdi, qword [rbp - 0x71]
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14001a6a0
mov dword [rax + 0x28], ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001a929
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 0x14001a703
cmp qword [rbp - 0x39], rdx
je 0x14001a703
mov r8b, 1
lea rcx, [rbp - 0x51]
call fcn.14000ff00
xor r9d, r9d
test al, al
je 0x14001a703
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 0x14001a75f
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.14000fde0
nop
lea rcx, [r15 + 0x338]
lea rdx, [rbp - 0x11]
call fcn.14001c4c4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x11]
call fcn.14000f964
xor r9d, r9d
test r13d, r13d
je 0x14001a78f
mov rax, qword [rbp - 0x69]
cmp word [rax], r9w
jne 0x14001a773
mov r8, r9
jmp 0x14001a780
mov r8, r14
inc r8
cmp word [rax + r8*2], r9w
jne 0x14001a776
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.14000fae0
xor r9d, r9d
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14001a7ac
mov r9, r14
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x51]
call fcn.14000fc3c
xor r9d, r9d
mov rax, qword [rbp - 0x61]
test eax, eax
je 0x14001a7dc
mov rax, qword [rbp - 0x79]
cmp word [rax], r9w
jne 0x14001a7c3
mov r8, r9
jmp 0x14001a7d0
mov r8, r14
inc r8
cmp word [rax + r8*2], r9w
jne 0x14001a7c6
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.14000fae0
mov r8d, 2
lea rdx, [0x140494ec8]
lea rcx, [rbp - 0x51]
call fcn.14000fae0
lea rbx, [r15 + 0x338]
mov rax, qword [rbx + 0x20]
inc rax
cmp qword [rbx + 0x10], rax
ja 0x14001a80e
mov rcx, rbx
call fcn.14001e284
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 0x14001a849
lea ecx, [r13 + 0x20]
call fcn.1400fd2a4
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 0x14001a87a
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.14000ff84
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.14001ba70
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 0x14001a8d4
lea r12, [rax + 8]
cmp qword [r12 + 0x18], 8
jb 0x14001a8d4
mov r12, qword [r12]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x140494f48]
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, [0x140494ec8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x31]
call fcn.14000f964
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x51]
call fcn.14000f964
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400fcfd0
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret