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

Disassembly:
lea r12, [rsp - 0x20]
cmp r12, qword [r14 + 0x10]
jbe 0x659832
push rbp
mov rbp, rsp
sub rsp, 0x98
movq qword [rsp + 0x90], xmm15
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rbx
mov byte [rsp + 0x37], 0
mov dword [rsp + 0x38], 0
mov ebx, 0x70
call sym.modernc.org_libc._TLS_.Alloc
lea rcx, [sym.modernc.org_sqlite_lib._whereShortCut.deferwrap1]
mov qword [rsp + 0x80], rcx
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x88], rcx
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x90], rdx
mov byte [rsp + 0x37], 1
mov rdx, qword [rsp + 0xb0]
mov rsi, qword [rdx]
mov rdi, rsi
movzx r8d, word [rsi + 0x3c]
bt r8d, 5
jb 0x659505
mov r10, qword [rsi + 8]
lea r11, [r10 + 8]
mov r12, r11
mov r13, qword [r11 + 0x20]
mov r15, r13
movzx r13d, byte [r13 + 0x3f]
cmp r13d, 1
je 0x6594de
add r10, 0x48
movzx r10d, word [r10]
mov r13d, r10d
and r10d, 2
shr r10w, 1
movzx r10d, r10w
test r10d, r10d
jne 0x6594b7
bt r13d, 0
nop
jb 0x6594b7
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r15
mov r10d, dword [r11 + 0x44]
mov dword [rsp + 0x44], r10d
lea r11, [rdi + 0x68]
mov qword [rsp + 0x48], r11
mov rdx, qword [rdx + 0x10]
mov qword [rsp + 0x50], rdx
mov r12, rdx
mov dword [rdx + 0x30], 0
mov word [r12 + 0x36], 0
mov rbx, rax
mov esi, 0xffffffff
mov r8d, 0x82
xor r9d, r9d
mov rax, rcx
mov rcx, r11
mov edi, r10d
nop dword [rax]
call sym.modernc.org_sqlite_lib._whereScanInit
mov rdx, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x58]
jmp 0x659544
mov dword [rsp + 0x38], 0
mov byte [rsp + 0x37], 0
mov rdx, qword [rsp + 0x90]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x38]
add rsp, 0x98
pop rbp
ret
mov dword [rsp + 0x38], 0
mov byte [rsp + 0x37], 0
mov rdx, qword [rsp + 0x90]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x38]
add rsp, 0x98
pop rbp
ret
mov dword [rsp + 0x38], 0
mov byte [rsp + 0x37], 0
mov rdx, qword [rsp + 0x90]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x38]
add rsp, 0x98
pop rbp
ret
mov rax, rdx
call sym.modernc.org_sqlite_lib._whereScanNext
mov rcx, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x58]
mov rdx, rcx
test rax, rax
je 0x65958f
mov r10, rax
cmp qword [rax + 0x28], 0
jne 0x65952c
test r10, r10
je 0x65958f
mov rax, qword [rsp + 0x50]
mov rcx, rax
mov dword [rax + 0x30], 0x1101
mov rax, rcx
mov rcx, qword [rcx + 0x40]
mov qword [rcx], r10
mov rcx, rax
mov word [rax + 0x34], 1
mov rax, rcx
mov word [rcx + 0x18], 1
mov word [rax + 0x14], 0x21
mov edi, dword [rsp + 0x44]
jmp 0x65960e
mov r10, qword [rsp + 0x68]
mov r10, qword [r10 + 0x10]
mov rcx, qword [rsp + 0x48]
mov edi, dword [rsp + 0x44]
jmp 0x6595a7
mov r10, qword [r9 + 0x28]
test r10, r10
je 0x65960e
mov r9, r10
movzx r11d, byte [r10 + 0x62]
test r11d, r11d
je 0x6595a3
cmp qword [r10 + 0x48], 0
nop
jne 0x6595a3
movzx r10d, word [r10 + 0x5e]
cmp r10d, 3
jg 0x6595a3
mov qword [rsp + 0x68], r9
lea r10, [r9 + 0x64]
mov qword [rsp + 0x60], r10
mov r11, r10
movzx r10d, word [r10]
and r10d, 8
shr r10w, 3
movzx r10d, r10w
test r10d, r10d
mov r8d, 2
mov r10d, 0x82
cmovne r8d, r10d
mov dword [rsp + 0x3c], r8d
xor eax, eax
jmp 0x659715
mov rax, qword [rsp + 0x50]
mov rcx, rax
cmp dword [rax + 0x30], 0
nop word [rax + rax]
je 0x6596b6
mov word [rax + 0x16], 1
mov rax, qword [rsp + 0x78]
lea rsi, [rax + 0x358]
mov r8, rsi
mov qword [rsi + 0x58], rcx
mov rsi, rcx
mov qword [rcx + 8], 1
mov dword [r8 + 4], edi
mov rcx, rax
mov word [rax + 0x46], 1
mov rax, rcx
mov rdi, qword [rcx + 0x10]
nop
test rdi, rdi
je 0x65966b
mov edi, dword [rdi]
mov byte [rcx + 0x41], dil
movzx ecx, word [rax + 0x3c]
bt ecx, 8
jae 0x659679
mov byte [rax + 0x43], 1
movzx eax, byte [rbx + 0x29]
nop dword [rax]
cmp eax, 1
jle 0x65968f
lea rax, [rsi + 0x30]
or dword [rax], 0x200000
mov dword [rsp + 0x38], 1
mov byte [rsp + 0x37], 0
mov rdx, qword [rsp + 0x90]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x38]
add rsp, 0x98
pop rbp
ret
mov dword [rsp + 0x38], 0
mov byte [rsp + 0x37], 0
mov rdx, qword [rsp + 0x90]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x38]
add rsp, 0x98
pop rbp
ret
mov r12, qword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
movsxd r15, eax
shl r15, 3
add r15, qword [r12 + 0x40]
mov qword [r15], r10
inc eax
mov rcx, qword [rsp + 0x48]
mov edi, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x3c]
mov r9, qword [rsp + 0x68]
mov r10d, 0x82
mov r11, qword [rsp + 0x60]
mov r12, r9
movzx r12d, word [r12 + 0x5e]
nop
cmp eax, r12d
jge 0x65974f
mov dword [rsp + 0x40], eax
mov esi, eax
mov rax, rdx
call sym.modernc.org_sqlite_lib._whereScanInit
mov rdx, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x58]
jmp 0x6597e6
test r10, r10
jne 0x6596dd
jmp 0x6597fa
mov r12, r9
movzx r13d, word [r9 + 0x5e]
cmp eax, r13d
je 0x659765
mov r9, r12
nop
jmp 0x6595a3
mov rcx, qword [rsp + 0x50]
mov rsi, rcx
mov dword [rcx + 0x30], 0x1201
movzx ecx, word [r11]
and ecx, 0x20
shr cx, 5
movzx ecx, cx
test ecx, ecx
jne 0x6597a2
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x50]
mov r8, r12
mov r9, qword [r12 + 0x98]
test r9, rcx
jne 0x6597ab
mov r12, r8
lea rcx, [rsi + 0x30]
or dword [rcx], 0x40
jmp 0x6597ae
mov r12, r8
mov rcx, rsi
mov word [rsi + 0x34], ax
mov rsi, rcx
mov word [rcx + 0x18], ax
mov rax, rsi
mov qword [rsi + 0x20], r12
mov word [rax + 0x14], 0x27
jmp 0x65960e
mov rax, rdx
call sym.modernc.org_sqlite_lib._whereScanNext
mov rcx, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x58]
mov rdx, rcx
test rax, rax
je 0x6597fa
mov r10, rax
cmp qword [rax + 0x28], 0
jne 0x6597ce
jmp 0x659745
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov edi, dword [rsp + 0x44]
mov r9, qword [rsp + 0x68]
mov r10d, 0x82
mov r11, qword [rsp + 0x60]
jmp 0x65974f
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
nop dword [rax]
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.modernc.org_sqlite_lib._whereShortCut