Function at 0x1400bee70
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x98], rbx
mov rax, qword [0x140176810]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15, r8
mov r14, rdx
mov rsi, rcx
cmp qword [rcx], 0
jne 0x1400beef5
mov eax, dword [0x140184200]
test al, 1
jne 0x1400beed1
or eax, 1
mov dword [0x140184200], eax
call fcn.14003bda0
lea rcx, [0x140123810]
call fcn.1400dd8d0
nop
lea r8, str.OPM_db_is_not_initialized_in_opd_getOpdSchemaVersion
lea rdx, [0x14013d788]
lea rcx, [0x140184130]
call fcn.14003d0c0
mov eax, 1
jmp 0x1400bf1cb
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], 0
mov byte [rbp - 0x28], 0
lea rdi, str.SELECT_value_FROM_opm_meta_WHERE_keyschema_version
mov rcx, rdi
call fcn.1400dd0e0
mov rbx, rax
lea rcx, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r8, qword [rbp - 0x10]
cmp r8, 0x10
cmovae rcx, r9
mov rdx, qword [rbp - 0x18]
cmp rdi, rcx
jb 0x1400befb7
lea rax, [rbp - 0x28]
cmp r8, 0x10
cmovae rax, r9
add rax, rdx
cmp rax, rdi
jbe 0x1400befb7
lea rax, [rbp - 0x28]
cmp r8, 0x10
cmovae rax, r9
sub rdi, rax
cmp rdx, rdi
jae 0x1400bef6d
lea rcx, str.invalid_string_position
call fcn.1400db848
int3
mov rax, rdx
sub rax, rdi
cmp rbx, rax
cmovb rax, rbx
lea rcx, [rax + rdi]
cmp rdx, rcx
jae 0x1400bef90
lea rcx, str.invalid_string_position
call fcn.1400db848
int3
mov qword [rbp - 0x18], rcx
lea rax, [rbp - 0x28]
cmp r8, 0x10
cmovae rax, r9
mov byte [rax + rcx], 0
mov r8, rdi
xor edx, edx
lea rcx, [rbp - 0x28]
call fcn.140008dd0
jmp 0x1400bf03c
cmp rbx, 0xfffffffffffffffe
jbe 0x1400befca
lea rcx, str.string_too_long
call fcn.1400db810
int3
cmp r8, rbx
jae 0x1400befe0
mov r8, rdx
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.14000bfd4
jmp 0x1400beff7
test rbx, rbx
jne 0x1400bf004
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp r8, 0x10
cmovae rax, r9
mov byte [rax], bl
mov r9, qword [rbp - 0x28]
mov r8, qword [rbp - 0x10]
test rbx, rbx
je 0x1400bf044
lea rcx, [rbp - 0x28]
cmp r8, 0x10
cmovae rcx, r9
test rbx, rbx
je 0x1400bf028
mov r8, rbx
mov rdx, rdi
call fcn.1400dc430
mov r8, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp r8, 0x10
cmovae rax, r9
mov byte [rax + rbx], 0
mov r9, qword [rbp - 0x28]
mov r8, qword [rbp - 0x10]
lea rdx, [rbp - 0x28]
cmp r8, 0x10
cmovae rdx, r9
mov r8, r14
mov rcx, qword [rsi]
call fcn.1400bde80
mov ebx, eax
test eax, eax
jne 0x1400bf1b9
lea rdi, str.SELECT_value_FROM_opm_meta_WHERE_keyschema_compatibility_version
mov rcx, rdi
call fcn.1400dd0e0
mov rbx, rax
lea rcx, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r8, qword [rbp - 0x10]
cmp r8, 0x10
cmovae rcx, r9
mov rdx, qword [rbp - 0x18]
cmp rdi, rcx
jb 0x1400bf113
lea rax, [rbp - 0x28]
cmp r8, 0x10
cmovae rax, r9
add rax, rdx
cmp rax, rdi
jbe 0x1400bf113
lea rax, [rbp - 0x28]
cmp r8, 0x10
cmovae rax, r9
sub rdi, rax
cmp rdx, rdi
jae 0x1400bf0c9
lea rcx, str.invalid_string_position
call fcn.1400db848
int3
mov rax, rdx
sub rax, rdi
cmp rbx, rax
cmovb rax, rbx
lea rcx, [rax + rdi]
cmp rdx, rcx
jae 0x1400bf0ec
lea rcx, str.invalid_string_position
call fcn.1400db848
int3
mov qword [rbp - 0x18], rcx
lea rax, [rbp - 0x28]
cmp r8, 0x10
cmovae rax, r9
mov byte [rax + rcx], 0
mov r8, rdi
xor edx, edx
lea rcx, [rbp - 0x28]
call fcn.140008dd0
jmp 0x1400bf198
cmp rbx, 0xfffffffffffffffe
jbe 0x1400bf126
lea rcx, str.string_too_long
call fcn.1400db810
int3
cmp r8, rbx
jae 0x1400bf13c
mov r8, rdx
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.14000bfd4
jmp 0x1400bf153
test rbx, rbx
jne 0x1400bf160
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp r8, 0x10
cmovae rax, r9
mov byte [rax], bl
mov r9, qword [rbp - 0x28]
mov r8, qword [rbp - 0x10]
test rbx, rbx
je 0x1400bf1a0
lea rcx, [rbp - 0x28]
cmp r8, 0x10
cmovae rcx, r9
test rbx, rbx
je 0x1400bf184
mov r8, rbx
mov rdx, rdi
call fcn.1400dc430
mov r8, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp r8, 0x10
cmovae rax, r9
mov byte [rbx + rax], 0
mov r9, qword [rbp - 0x28]
mov r8, qword [rbp - 0x10]
lea rdx, [rbp - 0x28]
cmp r8, 0x10
cmovae rdx, r9
mov r8, r15
mov rcx, qword [rsi]
call fcn.1400bde80
mov ebx, eax
cmp qword [rbp - 0x10], 0x10
jb 0x1400bf1c9
mov rcx, qword [rbp - 0x28]
call fcn.1400400f0
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400dc400
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret