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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x208
mov r14, rdx
mov rsi, rcx
mov r15, qword [rdx]
mov rbx, qword [rdx + 8]
mov r8, qword [r15 + 0xa0]
mov rdi, qword [rdx + 0x10]
mov rcx, rbx
mov rdx, rdi
call fcn.0050d6c0
mov dword [rsp + 0xf0], eax
cmp eax, 0x28
jne 0x516bc8
lea r12, [r15 + 0xa0]
lea rcx, [rsp + 0xc0]
mov rdx, r14
call fcn.0050dfa0
mov rcx, r14
call fcn.0050e0a0
mov rcx, r14
call fcn.0050d300
mov r8, qword [r12]
mov rax, rdi
test r8, r8
je 0x5161a3
mov rax, rdi
sub rax, r8
jbe 0x51619d
cmp byte [rbx + r8], 0xbf
jg 0x5161a3
jmp 0x5163fe
jne 0x5163fe
cmp rax, 2
jb 0x5161b9
movzx eax, word [rbx + r8]
cmp eax, 0x3d3f
je 0x5162d9
mov rax, rdi
test r8, r8
je 0x5161db
mov rax, rdi
sub rax, r8
jbe 0x5161d5
cmp byte [rbx + r8], 0xbf
jg 0x5161db
jmp 0x5163fe
jne 0x5163fe
cmp rax, 2
jb 0x5161f1
movzx eax, word [rbx + r8]
cmp eax, 0x213f
je 0x5162d9
mov rax, rdi
test r8, r8
je 0x516213
mov rax, rdi
sub rax, r8
jbe 0x51620d
cmp byte [rbx + r8], 0xbf
jg 0x516213
jmp 0x5163fe
jne 0x5163fe
cmp rax, 3
jb 0x516235
movzx eax, word [rbx + r8]
xor eax, 0x3c3f
movzx ecx, byte [rbx + r8 + 2]
xor ecx, 0x3d
or cx, ax
je 0x5162d1
mov rax, rdi
test r8, r8
je 0x516257
mov rax, rdi
sub rax, r8
jbe 0x516251
cmp byte [rbx + r8], 0xbf
jg 0x516257
jmp 0x5163fe
jne 0x5163fe
cmp rax, 3
jb 0x516275
movzx eax, word [rbx + r8]
xor eax, 0x3c3f
movzx ecx, byte [rbx + r8 + 2]
xor ecx, 0x21
or cx, ax
je 0x5162d1
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x1a8], rax
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x198], xmm0
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x180], xmm0
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x190], rax
mov rax, rdi
test r8, r8
je 0x5163c5
mov rax, rdi
sub rax, r8
jbe 0x5163c3
cmp byte [rbx + r8], 0xbf
jg 0x5163c5
jmp 0x5163fe
mov rcx, r14
call fcn.0050e0a0
mov rcx, r14
call fcn.0050e0a0
mov rcx, r14
call fcn.0050e0a0
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0xc0]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x48], xmm0
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x58], rax
test rdi, rdi
je 0x51636a
js 0x516bf3
movzx eax, byte [0x009bf181]
mov rcx, qword [0x009bf100]
test rcx, rcx
jne 0x516349
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x51635b
mov rcx, rax
mov qword [0x009bf100], rax
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapAlloc
mov r14, rax
test rax, rax
jne 0x516370
mov ecx, 1
mov rdx, rdi
call fcn.0044dfd0
ud2
mov r14d, 1
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmm2, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x58], xmm0
movups xmmword [rsi + 0x68], xmm1
movups xmmword [rsi + 0x78], xmm2
mov dword [rsi + 8], 0x21
mov qword [rsi + 0x40], r14
mov qword [rsi + 0x48], rdi
mov qword [rsi + 0x50], rdi
mov byte [rsi], 4
add rsp, 0x208
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jne 0x5163fe
cmp rax, 3
jb 0x5163e7
movzx eax, word [rbx + r8]
xor eax, 0x503f
movzx ecx, byte [rbx + r8 + 2]
xor ecx, 0x3c
or cx, ax
je 0x516504
mov rax, rdi
test r8, r8
je 0x51641c
mov rax, rdi
sub rax, r8
jbe 0x51641a
cmp byte [rbx + r8], 0xbf
jg 0x51641c
lea rax, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_regex_syntax_0.8.2_src_ast_parse.rs
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rdi
mov r9, rdi
call fcn.00454cc0
ud2
jne 0x5163fe
cmp rax, 2
jb 0x516432
movzx eax, word [rbx + r8]
cmp eax, 0x3c3f
je 0x516704
lea rdx, [0x00937268]
mov r8d, 1
mov rcx, r14
call fcn.00514d00
test al, al
je 0x51649e
cmp qword [r12], rdi
jne 0x516514
mov rcx, rdi
call fcn.005283a0
mov r14, rax
mov r15, rdx
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
movups xmm0, xmmword [rsp + 0xc0]
movups xmm1, xmmword [rsp + 0xd0]
movups xmm2, xmmword [rsp + 0xe0]
movups xmmword [rsi + 0x58], xmm0
movups xmmword [rsi + 0x68], xmm1
movups xmmword [rsi + 0x78], xmm2
mov dword [rsi + 8], 0x15
jmp 0x5164f7
mov ebp, dword [r15 + 0xb8]
inc ebp
jne 0x516668
mov rcx, rdi
call fcn.005283a0
mov r14, rax
mov r15, rdx
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
movups xmm0, xmmword [rsp + 0xc0]
movups xmm1, xmmword [rsp + 0xd0]
movups xmm2, xmmword [rsp + 0xe0]
movups xmmword [rsi + 0x58], xmm0
movups xmmword [rsi + 0x68], xmm1
movups xmmword [rsi + 0x78], xmm2
mov dword [rsi + 8], 0
mov dword [rsi + 0xc], ebp
mov qword [rsi + 0x40], r14
mov qword [rsi + 0x48], r15
jmp 0x5163a8
mov rcx, r14
call fcn.0050e0a0
mov r13b, 1
jmp 0x516707
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.00516c40
mov eax, dword [rsp + 0x30]
cmp eax, 0x22
jne 0x516999
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xb0], rax
mov r13, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
movups xmm0, xmmword [rsp + 0x70]
movups xmm1, xmmword [rsp + 0x60]
movups xmm2, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x150], xmm2
movaps xmmword [rsp + 0x160], xmm1
movaps xmmword [rsp + 0x170], xmm0
mov r8, qword [r12]
mov rcx, rbx
mov rdx, rdi
call fcn.0050d6c0
mov ebp, eax
mov dword [rsp + 0xbc], eax
mov rcx, r14
call fcn.0050e0a0
cmp ebp, 0x29
je 0x516a70
cmp ebp, 0x3a
jne 0x516c0b
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x48], xmm0
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
call fcn.005025e0
mov rdi, rax
movzx eax, byte [0x009bf181]
mov ecx, 0x10
mov edx, 8
call fcn.0041ba60
test rax, rax
je 0x516bfa
mov qword [rax], 0
mov qword [rax + 8], rdi
movups xmm0, xmmword [rsp + 0xc0]
movups xmm1, xmmword [rsp + 0xd0]
movups xmm2, xmmword [rsp + 0xe0]
movups xmmword [rsi + 0x80], xmm2
movups xmmword [rsi + 0x70], xmm1
movups xmmword [rsi + 0x60], xmm0
mov rcx, qword [rsp + 0xb0]
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r15
movaps xmm0, xmmword [rsp + 0x150]
movaps xmm1, xmmword [rsp + 0x160]
movaps xmm2, xmmword [rsp + 0x170]
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm1
movups xmmword [rsi + 0x40], xmm2
mov byte [rsi], 2
mov qword [rsi + 0x58], rax
jmp 0x5163af
mov dword [r15 + 0xb8], ebp
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x48], xmm0
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
call fcn.005025e0
mov rdi, rax
movzx eax, byte [0x009bf181]
mov ecx, 0x10
mov edx, 8
call fcn.0041ba60
test rax, rax
je 0x516bfa
mov qword [rax], 0
mov qword [rax + 8], rdi
movups xmm0, xmmword [rsp + 0xc0]
movups xmm1, xmmword [rsp + 0xd0]
movups xmm2, xmmword [rsp + 0xe0]
movups xmmword [rsi + 0x80], xmm2
movups xmmword [rsi + 0x70], xmm1
movups xmmword [rsi + 0x60], xmm0
mov byte [rsi], 0
mov dword [rsi + 4], ebp
mov qword [rsi + 0x58], rax
jmp 0x5163af
xor r13d, r13d
mov rcx, r14
call fcn.0050e0a0
mov rcx, r14
call fcn.0050e0a0
mov ebp, dword [r15 + 0xb8]
inc ebp
jne 0x516777
test rdi, rdi
je 0x516a29
js 0x516bf3
movzx eax, byte [0x009bf181]
mov rcx, qword [0x009bf100]
test rcx, rcx
jne 0x51675c
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x51635b
mov rcx, rax
mov qword [0x009bf100], rax
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapAlloc
mov r14, rax
test rax, rax
jne 0x516a2f
jmp 0x51635b
mov dword [r15 + 0xb8], ebp
lea rcx, [rsp + 0x30]
mov rdx, r14
mov r8d, ebp
call fcn.00517450
mov eax, dword [rsp + 0x30]
cmp eax, 0x22
jne 0x5168d8
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rsp + 0x134], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmm2, xmmword [rsp + 0x48]
movups xmm3, xmmword [rsp + 0x58]
movups xmm4, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x1b0], xmm1
movaps xmmword [rsp + 0x1c0], xmm2
movaps xmmword [rsp + 0x1d0], xmm3
movaps xmmword [rsp + 0x1e0], xmm4
movaps xmmword [rsp + 0x1f0], xmm0
movups xmmword [rsp + 0x76], xmm0
movups xmmword [rsp + 0x66], xmm4
movups xmmword [rsp + 0x56], xmm3
movups xmmword [rsp + 0x46], xmm2
movups xmmword [rsp + 0x36], xmm1
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x118], rax
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x108], xmm0
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0xf0], xmm0
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x100], rax
lea rcx, [rsp + 0xf0]
call fcn.005025e0
mov rdi, rax
movzx eax, byte [0x009bf181]
mov ecx, 0x10
mov edx, 8
call fcn.0041ba60
test rax, rax
je 0x516bfa
mov qword [rax], 0
mov qword [rax + 8], rdi
movups xmm0, xmmword [rsp + 0xc0]
movups xmm1, xmmword [rsp + 0xd0]
movups xmm2, xmmword [rsp + 0xe0]
movups xmmword [rsi + 0x80], xmm2
movups xmmword [rsi + 0x70], xmm1
movups xmmword [rsi + 0x60], xmm0
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmm2, xmmword [rsp + 0x50]
movups xmm3, xmmword [rsp + 0x60]
movups xmmword [rsi + 2], xmm0
movups xmmword [rsi + 0x12], xmm1
movups xmmword [rsi + 0x22], xmm2
movups xmmword [rsi + 0x32], xmm3
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x42], xmm0
mov rcx, qword [rsp + 0x7e]
mov qword [rsi + 0x50], rcx
mov byte [rsi], 1
mov byte [rsi + 1], r13b
mov qword [rsi + 0x58], rax
jmp 0x5163af
mov ecx, dword [rsp + 0x84]
mov dword [rsp + 0x140], ecx
movups xmm0, xmmword [rsp + 0x74]
movaps xmmword [rsp + 0x130], xmm0
movups xmm0, xmmword [rsp + 0x34]
movups xmm1, xmmword [rsp + 0x44]
movups xmm2, xmmword [rsp + 0x54]
movups xmm3, xmmword [rsp + 0x64]
movaps xmmword [rsp + 0x120], xmm3
movaps xmmword [rsp + 0x110], xmm2
movaps xmmword [rsp + 0x100], xmm1
movaps xmmword [rsp + 0xf0], xmm0
mov rcx, qword [rsp + 0xa8]
mov qword [rsi + 0x80], rcx
movups xmm0, xmmword [rsp + 0x98]
movups xmmword [rsi + 0x70], xmm0
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rsi + 0x60], xmm0
mov ecx, dword [rsp + 0x140]
mov dword [rsi + 0x5c], ecx
movaps xmm0, xmmword [rsp + 0x130]
movups xmmword [rsi + 0x4c], xmm0
movaps xmm0, xmmword [rsp + 0xf0]
movaps xmm1, xmmword [rsp + 0x100]
movaps xmm2, xmmword [rsp + 0x110]
movaps xmm3, xmmword [rsp + 0x120]
movups xmmword [rsi + 0x3c], xmm3
movups xmmword [rsi + 0x2c], xmm2
movups xmmword [rsi + 0x1c], xmm1
movups xmmword [rsi + 0xc], xmm0
jmp 0x516a21
mov ecx, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x38]
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0xf0], xmm0
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x100], xmm0
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x110], xmm0
movups xmm0, xmmword [rsp + 0xa0]
movups xmmword [rsi + 0x78], xmm0
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rsi + 0x68], xmm0
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rsi + 0x58], xmm0
movups xmm0, xmmword [rsp + 0x40]
mov dword [rsi + 0xc], ecx
mov qword [rsi + 0x10], rdx
movups xmmword [rsi + 0x18], xmm0
movaps xmm0, xmmword [rsp + 0xf0]
movaps xmm1, xmmword [rsp + 0x100]
movaps xmm2, xmmword [rsp + 0x110]
movups xmmword [rsi + 0x28], xmm0
movups xmmword [rsi + 0x38], xmm1
movups xmmword [rsi + 0x48], xmm2
mov dword [rsi + 8], eax
jmp 0x5163ac
mov r14d, 1
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
movups xmm0, xmmword [rsp + 0xc0]
movups xmm1, xmmword [rsp + 0xd0]
movups xmm2, xmmword [rsp + 0xe0]
movups xmmword [rsi + 0x58], xmm0
movups xmmword [rsi + 0x68], xmm1
movups xmmword [rsi + 0x78], xmm2
mov dword [rsi + 8], 0
mov dword [rsi + 0xc], ebp
jmp 0x5163a0
test r15, r15
je 0x516b4e
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x48], xmm0
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0xc0]
movaps xmmword [rsp + 0xf0], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x118], rax
mov byte [rsi], 3
mov rax, qword [rsp + 0xb0]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r15
movaps xmm0, xmmword [rsp + 0x150]
movaps xmm1, xmmword [rsp + 0x160]
movaps xmm2, xmmword [rsp + 0x170]
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm1
movups xmmword [rsi + 0x40], xmm2
movaps xmm0, xmmword [rsp + 0xf0]
movaps xmm1, xmmword [rsp + 0x100]
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x118]
movups xmmword [rsi + 0x50], xmm0
movups xmmword [rsi + 0x60], xmm1
mov qword [rsi + 0x70], rax
mov qword [rsi + 0x78], rcx
jmp 0x5163af
mov rcx, rdi
call fcn.005283a0
mov r14, rax
mov r12, rdx
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
movaps xmm0, xmmword [rsp + 0x180]
movaps xmm1, xmmword [rsp + 0x190]
movaps xmm2, xmmword [rsp + 0x1a0]
movups xmmword [rsi + 0x58], xmm0
movups xmmword [rsi + 0x68], xmm1
movups xmmword [rsi + 0x78], xmm2
mov dword [rsi + 8], 0x1b
mov qword [rsi + 0x40], r14
mov qword [rsi + 0x48], r12
mov qword [rsi + 0x50], rdi
mov byte [rsi], 4
test r13, r13
je 0x5163af
mov rcx, qword [0x009bf100]
xor edx, edx
mov r8, qword [rsp + 0xb0]
call sub.KERNEL32.dll_HeapFree
jmp 0x5163af
mov qword [rsp + 0x30], 0
lea rdx, [0x008c7128]
lea r9, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_regex_syntax_0.8.2_src_ast_parse.rs
lea rcx, [rsp + 0xf0]
lea r8, [rsp + 0x30]
call fcn.00504f70
ud2
call fcn.0044df90
ud2
mov ecx, 8
mov edx, 0x10
call fcn.0044dfd0
ud2
mov qword [rsp + 0x30], 0
lea rdx, [0x008c7458]
lea r9, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_regex_syntax_0.8.2_src_ast_parse.rs
lea rcx, [rsp + 0xbc]
lea r8, [rsp + 0x30]
call fcn.00504f70
ud2