Function at 0x140124830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x160
mov rdi, qword [0x140207460]
xor ebp, ebp
mov r8d, dword [rdx + 0x3c]
mov rax, qword [rdi]
mov qword [rsp + 0x158], rax
xor eax, eax
mov rbx, rcx
mov rsi, rdx
test r8d, r8d
jne 0x14012456f
xor ebp, ebp
test byte [rcx + 0x94], 3
setne bpl
xor r8d, r8d
lea rdx, [0x140124140]
lea rcx, [0x1401241b0]
call qword [sym.imp.libpcre2_8_0.dll_pcre2_general_context_create_8]
mov qword [rbx + 0x80], rax
test rax, rax
je 0x1401247d6
mov ecx, dword [rsi + 0x3c]
mov eax, dword [rsi + 0x94]
test ecx, ecx
jne 0x140124668
mov r12d, 0x400
mov edx, dword [rsi + 0x94]
mov r8d, r12d
test edx, edx
jne 0x1401245d7
call fcn.14001ead0
test eax, eax
setne al
xor ebp, 1
and ebp, eax
neg ebp
and ebp, 0x40a0000
mov r8d, ebp
or r8d, r12d
mov rax, qword [rbx + 0x78]
mov rcx, qword [rbx + 0x18]
lea r9, [rsp + 0x3c]
mov rdx, qword [rbx + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.libpcre2_8_0.dll_pcre2_compile_8]
mov qword [rbx + 0x68], rax
mov rcx, rax
test rax, rax
je 0x1401247e2
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.libpcre2_8_0.dll_pcre2_match_data_create_from_pattern_8]
mov qword [rbx + 0x70], rax
test rax, rax
je 0x140124805
lea rdx, [rbx + 0x90]
mov ecx, 1
call qword [sym.imp.libpcre2_8_0.dll_pcre2_config_8]
mov eax, dword [rbx + 0x90]
test eax, eax
jne 0x140124698
mov rax, qword [rsp + 0x158]
sub rax, qword [rdi]
jne 0x1401247d1
add rsp, 0x160
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0x408
test eax, eax
jne 0x1401245d7
mov rcx, qword [rbx + 0x18]
call fcn.14003df60
test eax, eax
jne 0x140124750
mov r12d, 0x408
jmp 0x1401245ad
mov rcx, qword [rbx + 0x68]
mov edx, 1
call qword [sym.imp.libpcre2_8_0.dll_pcre2_jit_compile_8]
mov esi, eax
cmp eax, 0xffffffd0
je 0x1401246f0
test eax, eax
jne 0x14012479d
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x48]
mov edx, 0xa
call qword [sym.imp.libpcre2_8_0.dll_pcre2_pattern_info_8]
test eax, eax
jne 0x140124811
cmp qword [rsp + 0x48], 0
jne 0x140124643
mov dword [rbx + 0x90], 0
jmp 0x140124643
mov eax, dword [0x1401c7660]
cmp eax, 0xffffffff
je 0x140124790
test eax, eax
je 0x1401246de
mov rdi, qword [rbx + 0x20]
mov edx, 0x40
cmp rdi, rdx
cmovbe rdx, rdi
lea rcx, str._nPerhaps_prefix__NO_JIT__to_your_pattern_
mov qword [rsp + 0x28], rcx
cmp rdi, 0x41
lea r9, [0x1401edfc3]
lea rax, [0x1401edfc4]
mov dword [rsp + 0x20], esi
cmovae r9, rax
mov r8, qword [rbx + 0x18]
lea rcx, str.Couldnt_JIT_the_PCRE2_pattern__.s_s__got__d_s
call fcn.1400a08a0
nop dword [rax]
mov rcx, qword [rbx + 0x80]
call qword [sym.imp.libpcre2_8_0.dll_pcre2_maketables_8]
mov rcx, qword [rbx + 0x80]
mov qword [rbx + 0x88], rax
call qword [sym.imp.libpcre2_8_0.dll_pcre2_compile_context_create_8]
mov rdx, qword [rbx + 0x88]
mov qword [rbx + 0x78], rax
mov rcx, rax
call qword [sym.imp.libpcre2_8_0.dll_pcre2_set_character_tables_8]
jmp 0x140124687
call fcn.1401244a0
test eax, eax
je 0x1401246de
mov eax, dword [0x1401c7660]
mov rdi, qword [rbx + 0x20]
cmp eax, 0xffffffff
jne 0x1401247b1
call fcn.1401244a0
mov edx, 0x40
lea rcx, [0x1401edfc3]
cmp rdi, rdx
cmovbe rdx, rdi
test eax, eax
je 0x14012471a
jmp 0x140124713
call fcn.1401be670
lea rcx, str.Couldnt_allocate_PCRE2_general_context
call fcn.1400a08a0
lea rsi, [rsp + 0x50]
mov ecx, dword [rsp + 0x3c]
mov r8d, 0x100
mov rdx, rsi
call qword [sym.imp.libpcre2_8_0.dll_pcre2_get_error_message_8]
mov rdx, rsi
mov rcx, rbx
call fcn.1401241c0
lea rcx, str.Couldnt_allocate_PCRE2_match_data
call fcn.1400a08a0
mov r9d, eax
lea r8, str.pcre2_pattern_info___failed:__d
mov edx, 0x18f
lea rcx, str.grep.c
call fcn.1400a0ca0
nop
nop dword [rax]
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x458
mov rbp, qword [0x140207460]
mov rax, qword [rbp]
mov qword [rsp + 0x448], rax
xor eax, eax
mov rdi, rdx
mov edx, dword [rdx + 0x90]
mov rbx, rcx
test edx, edx
je 0x1401248e0
mov eax, dword [rdi + 0x3c]
mov rsi, qword [rbx + 0x20]
mov r12, qword [rbx + 0x18]
and eax, 1
shl eax, 2
cmp edx, 3
sete cl
or eax, ecx
mov ecx, dword [rdi + 0x50]
and ecx, 1
shl ecx, 3
or eax, ecx
movzx ecx, byte [rbx + 0x94]
and ecx, 0xfffffff2
or eax, ecx
mov byte [rbx + 0x94], al
cmp edx, 4
jne 0x140124920
test rsi, rsi
je 0x140124960
mov rcx, qword [str._________AA__A__________________]
mov rax, r12
lea r8, [rsi + r12]
jmp 0x1401248cd
add rax, 1
cmp r8, rax
je 0x140124960
movzx edx, byte [rax]
test byte [rcx + rdx], 0x18
je 0x1401248c0
xor edx, edx
jmp 0x140124965
cmp dword [rdi + 0x8c], 1
mov edx, dword [rdi + 0x3c]
sbb eax, eax
mov rsi, qword [rcx + 0x20]
mov r12, qword [rcx + 0x18]
add eax, 2
and edx, 1
mov dword [rdi + 0x90], eax
mov eax, dword [rdi + 0x50]
shl edx, 2
and eax, 1
shl eax, 3
or eax, edx
movzx edx, byte [rcx + 0x94]
and edx, 0xfffffff2
or eax, edx
mov byte [rcx + 0x94], al
xor edx, edx
mov r8, rsi
mov rcx, r12
call sub.msvcrt.dll_memchr
test rax, rax
je 0x1401248a3
mov rax, qword [0x1402078f0]
lea rcx, str.given_pattern_contains_NULL_byte__via__f__file__._This_is_only_supported_with__P_under_PCRE_v2
cmp dword [rax], 0
je 0x140124951
call sub.libintl_8.dll_libintl_gettext
mov rcx, rax
call fcn.1400a08a0
nop word cs:[rax + rax]
mov edx, 1
movzx eax, byte [rbx + 0x94]
add edx, edx
and eax, 0xfffffffd
or eax, edx
mov byte [rbx + 0x94], al
mov edx, eax
test al, 3
je 0x1401249b8
and edx, 2
je 0x140124a40
mov rax, qword [rsp + 0x448]
sub rax, qword [rbp]
jne 0x140124b46
mov rdx, rdi
mov rcx, rbx
add rsp, 0x458
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp 0x140124530
lea rdx, str._NO_JIT_
mov rcx, r12
call fcn.14007d6d0
test eax, eax
jne 0x140124ae0
movzx edx, byte [rbx + 0x94]
test dl, 3
jne 0x14012497f
mov eax, dword [rdi + 0x90]
cmp eax, 4
je 0x140124988
and edx, 4
lea rsi, [rbx + 0x30]
cmp dl, 1
mov rcx, rsi
sbb r8d, r8d
and r8d, 0xfffffffe
add r8d, 6
mov edx, r8d
or edx, 1
cmp eax, 2
cmove r8d, edx
mov rdx, qword [rbx + 0x18]
call fcn.1400d1890
test eax, eax
jne 0x140124b23
mov rax, qword [rsp + 0x448]
sub rax, qword [rbp]
jne 0x140124b46
add rsp, 0x458
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rax, qword [0x140207c90]
lea rsi, [rsp + 0x20]
mov r13, qword [rbx + 0x18]
mov r8d, 2
mov rcx, rsi
lea rdx, [0x1401ee0e1]
mov r12, qword [rbx + 0x20]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
call fcn.14007e800
mov rdx, qword [rbx + 0x18]
mov r8, qword [rbx + 0x20]
mov rcx, rsi
call fcn.14007e800
mov r8d, 2
mov rcx, rsi
lea rdx, [0x1401ee0e4]
call fcn.14007e800
mov rax, qword [rsp + 0x30]
mov rcx, rbx
mov rdx, rdi
mov qword [rbx + 0x18], rax
mov rax, qword [rsp + 0x28]
mov qword [rbx + 0x20], rax
call 0x140124530
mov qword [rbx + 0x18], r13
mov rcx, rsi
mov qword [rbx + 0x20], r12
call fcn.14007d7e0
jmp 0x140124a1c
mov rdx, qword [rbx + 0x20]
mov r8, qword [rbx + 0x18]
cmp rdx, 9
je 0x140124b17
lea rax, [r8 + 9]
mov rcx, qword [str._________AA__A__________________]
add r8, rdx
jmp 0x140124b09
add rax, 1
cmp rax, r8
je 0x140124b17
movzx edx, byte [rax]
test byte [rcx + rdx], 0x18
je 0x140124b00
jmp 0x1401249cf
or byte [rbx + 0x94], 2
jmp 0x1401249cf
lea rdi, [rsp + 0x40]
mov rdx, rsi
mov ecx, eax
mov r9d, 0x400
mov r8, rdi
call fcn.1400d19a0
mov rdx, rdi
mov rcx, rbx
call fcn.1401241c0
call fcn.1401be670
nop
nop dword [rax]