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

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
sub rsp, 0x68
cmp byte [rcx + 0x1f2], 2
jne 0x1400aeec9
movzx eax, byte [r8 + 0x24]
mov qword [r11 - 8], rbp
mov rbp, qword [r8 + 0x40]
mov qword [r11 - 0x10], rsi
mov rsi, qword [rcx]
mov qword [r11 - 0x18], rdi
mov edi, dword [rbp + 0x28]
mov qword [r11 - 0x28], r13
mov r13, qword [rcx + 0x10]
mov qword [r11 - 0x30], r14
imul r14, rax, 0x78
mov eax, dword [rcx + 0x200]
add r14, rdx
mov dword [rsp + 0x70], eax
bt edi, 0xd
jb 0x1400aeeb0
movzx eax, word [rsp + 0x98]
test al, 0x40
jne 0x1400aeeb0
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x20], r12
mov r12d, edi
and r12d, 0x30
jne 0x1400aebf0
bt edi, 0xa
jb 0x1400aebe8
cmp word [rbp + 0x18], r12w
ja 0x1400aebf0
test al, 3
jne 0x1400aebf0
xor eax, eax
jmp 0x1400aebf5
mov eax, 1
lea rcx, str.SEARCH
test eax, eax
lea r8, str.SCAN
cmovne r8, rcx
lea rdx, [0x140141188]
mov rcx, rsi
call fcn.140042860
cmp qword [r14 + 0x30], 0
mov rdx, rax
je 0x1400aec37
movzx ecx, byte [r14 + 0x4c]
mov r9, rax
lea r8, str._s_SUBQUERY__d
mov dword [rsp + 0x20], ecx
jmp 0x1400aec4a
mov rax, qword [r14 + 0x18]
mov r9, rdx
lea r8, str._s_TABLE__s
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.140042890
mov rbx, rax
mov rax, qword [r14 + 0x20]
test rax, rax
je 0x1400aec7b
lea r8, str._s_AS__s
mov r9, rbx
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140042890
mov rbx, rax
mov qword [rsp + 0x30], r15
test edi, 0x500
jne 0x1400aed2b
mov r15, qword [rbp + 0x20]
test r15, r15
je 0x1400aed2b
mov r8, qword [r14 + 0x28]
mov rdx, rbp
mov rcx, rsi
call fcn.1400ae710
mov rcx, qword [r14 + 0x28]
test byte [rcx + 0x48], 0x20
mov rbp, rax
je 0x1400aecd8
mov ecx, dword [r15 + 0x64]
and cl, 3
cmp cl, 2
jne 0x1400aecd8
lea rax, str._s_USING_PRIMARY_KEY_.0s_s
lea r8, str._s_.0s_s
test rbp, rbp
cmovne r8, rax
jmp 0x1400aecfd
bt edi, 0xe
jae 0x1400aece7
lea r8, str._s_USING_AUTOMATIC_COVERING_INDEX_.0s_s
jmp 0x1400aecfd
lea r8, str._s_USING_COVERING_INDEX__s_s
lea rax, str._s_USING_INDEX__s_s
test dil, 0x40
cmove r8, rax
mov rax, qword [r15]
mov r9, rbx
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.140042890
mov rdx, rbp
mov rcx, rsi
mov rbx, rax
call fcn.140040b80
jmp 0x1400aedfc
bt edi, 8
jae 0x1400aedce
test dil, 0xf
je 0x1400aedce
lea r8, str._s_USING_INTEGER_PRIMARY_KEY
mov r9, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.140042890
mov rbx, rax
test dil, 5
je 0x1400aed77
lea r8, str._s__rowid__
mov r9, rax
mov rdx, rax
mov rcx, rsi
call fcn.140042890
jmp 0x1400aedf9
cmp r12d, 0x30
jne 0x1400aed94
lea r8, str._s__rowid___AND_rowid___
mov r9, rax
mov rdx, rax
mov rcx, rsi
call fcn.140042890
jmp 0x1400aedf9
test dil, 0x20
je 0x1400aedb1
lea r8, [0x140145140]
mov r9, rax
mov rdx, rax
mov rcx, rsi
call fcn.140042890
jmp 0x1400aedf9
test dil, 0x10
je 0x1400aedfc
lea r8, str._s__rowid___
mov r9, rax
mov rdx, rax
mov rcx, rsi
call fcn.140042890
jmp 0x1400aedf9
bt edi, 0xa
jae 0x1400aedfc
mov rax, qword [rbp + 0x20]
lea r8, str._s_VIRTUAL_TABLE_INDEX__d:_s
mov r9, rbx
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x18]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.140042890
mov rbx, rax
lea r8, [0x140141188]
mov r9, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.140042890
mov ecx, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x88]
mov r8d, dword [rsp + 0x70]
mov dword [rsp + 0x20], ecx
mov edx, 0x9d
mov rcx, r13
mov rdi, rax
call fcn.1400608a0
mov r8, qword [r13 + 8]
mov rcx, qword [r13]
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x48]
test r8, r8
je 0x1400aeea0
cmp byte [rcx + 0x50], 0
jne 0x1400aeea0
test eax, eax
jns 0x1400aee60
mov eax, dword [r13 + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rbx, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbx + 0x10]
call fcn.140060e70
xor eax, eax
mov qword [rbx + 0x10], rax
test rdi, rdi
jne 0x1400aee8d
mov qword [rbx + 0x10], rax
mov byte [rbx + 1], al
jmp 0x1400aeeab
mov qword [rbx + 0x10], rdi
mov byte [rbx + 1], 0xff
jmp 0x1400aeeab
mov r8, rdi
or edx, 0xffffffff
call fcn.140060e70
mov rbx, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
add rsp, 0x68
ret