Function at 0x1400043e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x178
mov rax, qword [0x14007bb58]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rsi, qword [0x14007bc30]
mov r10d, 0xc8
xor r12d, r12d
mov qword [rsp + 0x48], r9
cmp rdx, r10
mov rax, rdx
mov r15, rcx
mov ebx, 0xffffffff
cmova rax, r10
lea rcx, str.this_text:_n_n
mov qword [rsp + 0x58], rax
cmp rdx, r10
lea rax, str.text_that_starts:_n_n
mov r13d, r8d
lea ebp, [rbx + 2]
mov r8, qword [rsp + 0x1e0]
lea r10, [0x140000000]
cmovbe rax, rcx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x50], rax
test rsi, rsi
je 0x140004681
movsxd r14, edx
mov rax, qword [0x14007bcb8]
mov r8, r14
mov rcx, qword [rsi + 0x18]
mov rdx, r15
mov qword [rsp + 0x30], rax
mov rax, qword [0x14007bcc0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
call fcn.140022390
mov r9d, dword [0x14007bcf8]
mov edi, eax
cmp eax, 0xffffffff
je 0x140004528
test eax, eax
js 0x140004558
test r9d, r9d
je 0x140004547
lea r10, [0x140000000]
test ebx, ebx
js 0x1400044ee
mov r8, qword [0x14007bcd8]
movsxd rax, ebx
mov rdx, qword [r10 + rax*8 + 0x7bce0]
mov rax, qword [r8]
cmp rax, qword [rdx]
jb 0x1400044ee
jne 0x14000452f
mov rax, qword [rdx + 8]
cmp qword [r8 + 8], rax
jbe 0x14000452f
mov ebx, dword [0x14007bcf0]
mov r12d, edi
mov ecx, ebx
xor ecx, 1
movsxd rax, ecx
mov dword [0x14007bcf0], ecx
mov rax, qword [r10 + rax*8 + 0x7bcc8]
mov qword [0x14007bcc0], rax
movsxd rax, ecx
mov rax, qword [r10 + rax*8 + 0x7bce0]
mov qword [0x14007bcd8], rax
jmp 0x14000452f
lea r10, [0x140000000]
mov rsi, qword [rsi]
inc ebp
test rsi, rsi
je 0x14000468a
mov r9, qword [rsp + 0x48]
jmp 0x140004472
mov rcx, qword [rsp + 0x40]
mov eax, 1
mov dword [rcx], edi
jmp 0x1400046d3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, edi
lea rdx, str.pcre2grep:_pcre2_match___gave_error__d_while_matching
mov rcx, rax
call fcn.140002190
mov rax, qword [0x14007bc30]
cmp qword [rax], 0
je 0x14000459f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebp
lea rdx, str.pattern_number__d_to
mov rcx, rax
call fcn.140002190
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x50]
lea rdx, [0x140056978]
mov rcx, rax
call fcn.140002190
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x58]
mov edx, 1
mov r9, rax
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x14005697c]
call fcn.140002190
lea eax, [rdi + 0x17]
cmp eax, 0x14
ja 0x140004644
mov rcx, qword [0x14007bcc0]
call fcn.1400128d0
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, edi
mov rbx, rax
call fcn.14004dd60
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [rsp + 0x60]
mov rcx, rax
lea rdx, str._s_at_offset__zu_n_n
call fcn.140002190
add edi, 0x3f
cmp edi, 0x11
ja 0x140004660
mov eax, 0x30401
bt eax, edi
jae 0x140004660
mov dword [0x14007bd28], 1
mov eax, dword [0x14007bc9c]
mov edx, eax
inc eax
mov dword [0x14007bc9c], eax
cmp edx, 0x14
jg 0x1400046f7
mov eax, dword [0x14007bd10]
jmp 0x1400046d3
mov r9d, dword [0x14007bcf8]
jmp 0x14000468f
mov r8, qword [rsp + 0x40]
test r9d, r9d
je 0x1400046d1
test ebx, ebx
js 0x1400046d1
movsxd rax, ebx
mov dword [0x14007bcf0], ebx
mov dword [r8], r12d
lea rcx, [rax*8]
mov rax, qword [rcx + r10 + 0x7bcc8]
mov qword [0x14007bcc0], rax
mov rax, qword [rcx + r10 + 0x7bce0]
mov qword [0x14007bcd8], rax
mov eax, 1
jmp 0x1400046d3
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140053760
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.pcre2grep:_Too_many_errors___abandoned._n
call fcn.140002190
mov ecx, 2
call fcn.140005de0
int3