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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov qword [rbp - 0x40], rax
mov word [rbp - 0x1e], 0
mov dword [rbp - 0x24], 0
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x20]
mov qword [rbp - 0x50], rax
mov dword [rbp - 0xc], 0
mov eax, dword [rbp - 0xc]
mov dword [rbp - 4], eax
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rbp - 0x18], rax
jmp 0x4ba7f8
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x12]
and eax, 0xffffffbf
mov edx, eax
mov rax, qword [rbp - 0x18]
mov word [rax + 0x12], dx
mov rax, qword [rbp - 0x18]
mov edx, dword [rax + 0x1c]
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x44]
cmp edx, eax
jne 0x4ba7e2
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x28]
and rax, qword [rbp + 0x20]
test rax, rax
jne 0x4ba7e5
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx eax, ax
and ah, 0xf7
test eax, eax
je 0x4ba7e8
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x12]
movzx eax, ax
and eax, 0x80
test eax, eax
jne 0x4ba7eb
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax + 0x3c]
movzx eax, al
and eax, 0x58
test eax, eax
je 0x4ba7c7
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call dbg.constraintCompatibleWithOuterJoin
test eax, eax
je 0x4ba7ee
add dword [rbp - 0xc], 1
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x12]
or eax, 0x40
mov edx, eax
mov rax, qword [rbp - 0x18]
mov word [rax + 0x12], dx
jmp 0x4ba7ef
nop
jmp 0x4ba7ef
nop
jmp 0x4ba7ef
nop
jmp 0x4ba7ef
nop
jmp 0x4ba7ef
nop
add dword [rbp - 4], 1
add qword [rbp - 0x18], 0x38
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 0x14]
cmp dword [rbp - 4], eax
jl 0x4ba743
mov dword [rbp - 0x1c], 0
cmp qword [rbp - 0x48], 0
je 0x4ba9ee
mov rax, qword [rbp - 0x48]
mov eax, dword [rax]
mov dword [rbp - 0x54], eax
mov dword [rbp - 4], 0
jmp 0x4ba96d
mov rdx, qword [rbp - 0x48]
mov eax, dword [rbp - 4]
cdqe
shl rax, 5
add rax, rdx
add rax, 8
mov rax, qword [rax]
mov qword [rbp - 0x60], rax
mov rax, qword [rbp - 0x60]
mov rdx, rax
mov ecx, 0
call dbg.sqlite3ExprIsConstant
test eax, eax
jne 0x4ba962
mov rdx, qword [rbp - 0x48]
mov eax, dword [rbp - 4]
cdqe
shl rax, 5
add rax, rdx
add rax, 0x18
movzx eax, byte [rax]
movzx eax, al
and eax, 2
test eax, eax
jne 0x4ba97b
mov rax, qword [rbp - 0x60]
movzx eax, byte [rax]
cmp al, 0xa7
jne 0x4ba8a9
mov rax, qword [rbp - 0x60]
mov edx, dword [rax + 0x2c]
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x44]
cmp edx, eax
je 0x4ba965
mov rax, qword [rbp - 0x60]
movzx eax, byte [rax]
cmp al, 0x71
jne 0x4ba97e
mov rax, qword [rbp - 0x60]
mov rax, qword [rax + 0x10]
mov qword [rbp - 0x68], rax
mov rax, qword [rbp - 0x68]
movzx eax, byte [rax]
cmp al, 0xa7
jne 0x4ba97e
mov rax, qword [rbp - 0x68]
mov edx, dword [rax + 0x2c]
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x44]
cmp edx, eax
jne 0x4ba97e
mov rax, qword [rbp - 0x68]
movzx edx, word [rax + 0x30]
mov rax, qword [rbp - 0x60]
mov word [rax + 0x30], dx
mov rax, qword [rbp - 0x68]
movzx eax, word [rax + 0x30]
test ax, ax
js 0x4ba968
mov rax, qword [rbp - 0x50]
mov rcx, qword [rax + 8]
mov rax, qword [rbp - 0x68]
movzx eax, word [rax + 0x30]
movsx rdx, ax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 3
add rax, rcx
mov rcx, rax
call dbg.sqlite3ColumnColl
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
jne 0x4ba948
lea rax, [0x004e997e]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x60]
mov rax, qword [rax + 8]
mov rdx, qword [rbp - 0x30]
mov rcx, rax
call dbg.sqlite3_stricmp
test eax, eax
jne 0x4ba97e
jmp 0x4ba969
nop
jmp 0x4ba969
nop
jmp 0x4ba969
nop
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, dword [rbp - 0x54]
jl 0x4ba82f
jmp 0x4ba97f
nop
jmp 0x4ba97f
nop
mov eax, dword [rbp - 4]
cmp eax, dword [rbp - 0x54]
jne 0x4ba9ee
mov eax, dword [rbp - 0x54]
mov dword [rbp - 0x1c], eax
mov rax, qword [rbp + 0x10]
movzx eax, word [rax + 0x3c]
movzx eax, ax
and eax, 0x80
test eax, eax
je 0x4ba9d5
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax + 0x41]
and eax, 0x40
test al, al
jne 0x4ba9d5
mov rax, qword [rbp + 0x10]
movzx eax, word [rax + 0x3c]
movzx eax, ax
and eax, 0x200
test eax, eax
je 0x4ba9cb
mov eax, 3
jmp 0x4ba9d0
mov eax, 2
mov dword [rbp - 0x24], eax
jmp 0x4ba9ee
mov rax, qword [rbp + 0x10]
movzx eax, word [rax + 0x3c]
movzx eax, ax
and eax, 0x40
test eax, eax
je 0x4ba9ee
mov dword [rbp - 0x24], 1
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 2
mov rdx, rax
mov eax, dword [rbp - 0x1c]
cdqe
shl rax, 3
add rdx, rax
mov eax, dword [rbp - 0xc]
cdqe
shl rax, 3
add rax, rdx
lea rdx, [rax + 0x88]
mov rax, qword [rbp - 0x40]
mov rax, qword [rax]
mov rcx, rax
call dbg.sqlite3DbMallocZero
mov qword [rbp - 0x70], rax
cmp qword [rbp - 0x70], 0
jne 0x4baa5b
mov rax, qword [rbp - 0x40]
lea rdx, [0x004e9e6c]
mov rcx, rax
call dbg.sqlite3ErrorMsg
mov eax, 0
jmp 0x4bae3c
mov rax, qword [rbp - 0x70]
add rax, 0x60
mov qword [rbp - 0x78], rax
mov eax, dword [rbp - 0xc]
cdqe
add rax, 4
lea rdx, [rax*8]
mov rax, qword [rbp - 0x78]
add rax, rdx
mov qword [rbp - 0x80], rax
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp - 0x80]
add rax, rdx
mov qword [rbp - 0x88], rax
mov eax, dword [rbp - 0x1c]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp - 0x88]
add rax, rdx
mov qword [rbp - 0x90], rax
mov rax, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x80]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x88]
mov qword [rax + 0x18], rdx
mov rax, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x90]
mov qword [rax + 0x20], rdx
mov rax, qword [rbp - 0x78]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
mov rax, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x40]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x78]
mov edx, dword [rbp - 0x24]
mov dword [rax + 0x10], edx
mov rax, qword [rbp - 0x78]
mov dword [rax + 0x14], 0
mov dword [rbp - 8], 0
mov eax, dword [rbp - 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rbp - 0x18], rax
jmp 0x4bad4f
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x12]
movzx eax, ax
and eax, 0x40
test eax, eax
je 0x4bad45
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp - 0x80]
add rax, rdx
mov rdx, qword [rbp - 0x18]
mov edx, dword [rdx + 0x20]
mov dword [rax], edx
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp - 0x80]
add rax, rdx
mov edx, dword [rbp - 4]
mov dword [rax + 8], edx
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
and ax, 0x3fff
mov word [rbp - 0x32], ax
cmp word [rbp - 0x32], 1
jne 0x4babf0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x12]
test ax, ax
js 0x4babea
mov rax, qword [rbp - 0x78]
mov edx, dword [rax + 0x14]
cmp dword [rbp - 8], 0x1f
jg 0x4babdc
mov eax, dword [rbp - 8]
mov r8d, 1
mov ecx, eax
shl r8d, cl
mov eax, r8d
jmp 0x4babe1
mov eax, 0
or edx, eax
mov rax, qword [rbp - 0x78]
mov dword [rax + 0x14], edx
mov word [rbp - 0x32], 2
cmp word [rbp - 0x32], 0x40
jne 0x4bac24
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp - 0x80]
add rdx, rax
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x17]
mov byte [rdx + 4], al
jmp 0x4bad3f
movzx eax, word [rbp - 0x32]
and eax, 0x180
test eax, eax
je 0x4bac85
cmp word [rbp - 0x32], 0x100
jne 0x4bac5f
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp - 0x80]
add rax, rdx
mov byte [rax + 4], 0x47
jmp 0x4bad3f
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp - 0x80]
add rax, rdx
mov byte [rax + 4], 0x48
jmp 0x4bad3f
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp - 0x80]
add rax, rdx
movzx edx, word [rbp - 0x32]
mov byte [rax + 4], dl
movzx eax, word [rbp - 0x32]
and eax, 0x3c
test eax, eax
je 0x4bad3f
mov rax, qword [rbp - 0x18]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov rcx, rax
call dbg.sqlite3ExprIsVector
test eax, eax
je 0x4bad3f
cmp dword [rbp - 8], 0xf
jg 0x4bacef
mov eax, dword [rbp - 8]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
mov edx, eax
movzx eax, word [rbp - 0x1e]
or eax, edx
mov word [rbp - 0x1e], ax
cmp word [rbp - 0x32], 0x10
jne 0x4bad17
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp - 0x80]
add rax, rdx
mov byte [rax + 4], 8
cmp word [rbp - 0x32], 4
jne 0x4bad3f
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp - 0x80]
add rax, rdx
mov byte [rax + 4], 0x20
add dword [rbp - 8], 1
jmp 0x4bad46
nop
add dword [rbp - 4], 1
add qword [rbp - 0x18], 0x38
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 0x14]
cmp dword [rbp - 4], eax
jl 0x4bab39
mov rax, qword [rbp - 0x70]
mov edx, dword [rbp - 8]
mov dword [rax], edx
mov dword [rbp - 8], 0
mov eax, dword [rbp - 8]
mov dword [rbp - 4], eax
jmp 0x4bae17
mov rdx, qword [rbp - 0x48]
mov eax, dword [rbp - 4]
cdqe
shl rax, 5
add rax, rdx
add rax, 8
mov rax, qword [rax]
mov qword [rbp - 0x98], rax
mov rax, qword [rbp - 0x98]
mov rdx, rax
mov ecx, 0
call dbg.sqlite3ExprIsConstant
test eax, eax
jne 0x4bae12
mov rax, qword [rbp - 0x98]
movzx ecx, word [rax + 0x30]
mov eax, dword [rbp - 8]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp - 0x88]
add rdx, rax
movsx eax, cx
mov dword [rdx], eax
mov rdx, qword [rbp - 0x48]
mov eax, dword [rbp - 4]
cdqe
shl rax, 5
add rax, rdx
add rax, 0x18
movzx eax, byte [rax]
mov edx, dword [rbp - 8]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp - 0x88]
add rdx, rcx
and eax, 1
mov byte [rdx + 4], al
add dword [rbp - 8], 1
jmp 0x4bae13
nop
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, dword [rbp - 0x1c]
jl 0x4bad7a
mov rax, qword [rbp - 0x70]
mov edx, dword [rbp - 8]
mov dword [rax + 0x10], edx
mov rax, qword [rbp + 0x30]
movzx edx, word [rbp - 0x1e]
mov word [rax], dx
mov rax, qword [rbp - 0x70]
add rsp, 0xc0
pop rbp
ret