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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x118
mov r12d, 7
mov rax, qword [rcx]
mov rax, qword [rax]
mov word [rsp + 0x58], r9w
mov r13, rcx
mov r14, rdx
mov r15, r8
mov qword [rsp + 0x90], rax
mov rax, qword [rax]
mov dword [rsp + 0x9c], r9d
cmp byte [rax + 0x63], 0
mov qword [rsp + 0x78], rax
jne 0x1403473a4
mov rbx, qword [rcx + 0x18]
movzx esi, word [rbx + 0x1a]
mov eax, dword [rbx + 0x28]
movzx edi, word [rbx + 0x18]
mov word [rsp + 0x5a], si
movzx esi, word [rbx + 0x1c]
mov dword [rsp + 0x54], eax
and eax, 0x20
mov r9d, edi
mov word [rsp + 0x98], si
mov rsi, qword [rbx + 0x16]
cmp eax, 1
sbb eax, eax
mov word [rsp + 0x50], di
mov qword [rsp + 0x88], rsi
movzx esi, word [rbx + 0x2e]
and eax, 0x1a7
add eax, 0x18
mov dword [rsp + 0x6c], edi
lea rdi, [rsp + 0xa0]
mov word [rsp + 0x9a], si
mov rsi, qword [rbx + 0x28]
mov edx, eax
and edx, 0xffffffc3
test byte [r8 + 0x64], 4
mov qword [rsp + 0x80], rsi
movzx esi, word [rbx + 0x2c]
cmovne eax, edx
mov rdx, qword [rcx + 8]
mov rcx, rdi
mov word [rsp + 0x52], si
mov rsi, qword [rbx]
mov qword [rsp + 0x48], rsi
movzx esi, word [rbx + 0x16]
mov qword [rsp + 0x28], r8
mov r8d, dword [r14 + 0x44]
mov dword [rsp + 0x20], eax
mov word [rsp + 0x44], si
call dbg.whereScanInit
xor edx, edx
xor r8d, r8d
mov rsi, rax
mov rax, qword [r15 + 0x10]
mov word [rbx + 0x12], dx
mov word [rsp + 0x46], r8w
movsx rax, word [rax]
mov dword [rsp + 0x68], eax
mov rcx, rax
cmp ax, 0xa
jg 0x140347860
test rsi, rsi
je 0x140347930
mov qword [rsp + 0x60], 0
movzx ebp, word [rsp + 0x50]
mov qword [rsp + 0x70], 0
lea rax, [rbp + rbp]
mov qword [rsp + 0x38], rax
movzx eax, word [rsp + 0x52]
add eax, 1
mov dword [rsp + 0x5c], eax
nop dword [rax]
movzx r12d, word [rsi + 0x14]
cmp r12w, 0x100
je 0x1403470e3
test byte [rsi + 0x12], 0x80
je 0x140347105
mov rax, qword [r15 + 8]
mov rcx, qword [rsp + 0x38]
movsx rdx, word [rax + rcx]
mov rax, rdx
test edx, edx
jns 0x1403473c0
cmp edx, 0xffffffff
je 0x1403473e0
mov rdx, qword [rsi + 0x28]
mov r8, qword [rbx + 8]
test rdx, r8
jne 0x1403473e0
cmp r12w, 0x10
sete bpl
and bpl, byte [rsi + 0x13]
jne 0x1403473e5
test byte [r14 + 0x3c], 8
je 0x14034713d
mov rax, qword [rsi]
test byte [rax + 4], 1
je 0x1403473e0
cmp byte [r15 + 0x62], 0
movzx eax, byte [r13 + 0x28]
je 0x14034715b
movzx ecx, word [r15 + 0x5e]
sub ecx, 1
cmp dword [rsp + 0x6c], ecx
je 0x140347560
or eax, 1
movzx r9d, word [rsp + 0x52]
mov ecx, dword [rsp + 0x5c]
mov byte [r13 + 0x28], al
mov eax, dword [rsp + 0x54]
mov word [rbx + 0x2c], r9w
mov dword [rbx + 0x28], eax
movzx eax, word [rsp + 0x50]
mov word [rbx + 0x18], ax
movzx eax, word [rsp + 0x5a]
mov word [rbx + 0x1a], ax
movzx eax, word [rsp + 0x98]
mov word [rbx + 0x1c], ax
movzx eax, word [rbx + 0x30]
cmp ecx, eax
jle 0x1403471c3
mov r8d, ecx
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
call sym.whereLoopResize.part.0
test eax, eax
jne 0x140347930
movzx r9d, word [rbx + 0x2c]
mov rdx, qword [rsi + 0x28]
mov r8, qword [rbx + 8]
mov rax, qword [rbx + 0x38]
or rdx, qword [rsp + 0x48]
not r8
lea ecx, [r9 + 1]
and rdx, r8
mov ebp, r12d
mov word [rbx + 0x2c], cx
mov qword [rax + r9*8], rsi
mov qword [rbx], rdx
and bp, 1
je 0x1403473f0
movzx r9d, byte [r15 + 0x64]
mov r8, qword [rsi]
shr r9b, 7
cmp word [rsp + 0x46], 9
setg dl
and r9d, edx
test byte [r8 + 5], 8
jne 0x140347690
mov rax, qword [r8 + 0x20]
test rax, rax
je 0x140347225
movsxd rcx, dword [rax]
test ecx, ecx
jne 0x1403476e0
test r9b, r9b
jne 0x1403478d8
mov r8d, dword [rbx + 0x28]
xor ebp, ebp
mov r10d, r8d
or r10d, 4
mov dword [rbx + 0x28], r10d
test r10b, 2
jne 0x140347468
movzx eax, word [rbx + 0x18]
movzx edx, word [rsi + 0x10]
movzx r11d, word [rbx + 0x16]
add eax, 1
mov word [rbx + 0x18], ax
test dx, dx
jle 0x140347510
mov rdx, qword [r15 + 0x10]
movzx eax, ax
add r11w, word [rdx + rax*2]
sub r11w, word [rdx + rax*2 - 2]
test r12w, 0x100
je 0x140347284
add r11d, 0xa
mov word [rbx + 0x16], r11w
mov esi, r11d
movsx ecx, word [r15 + 0x5c]
mov rdx, qword [r14 + 0x20]
mov eax, ecx
shl eax, 4
sub eax, ecx
movsx ecx, word [rdx + 0x4c]
cdq
idiv ecx
movsx ecx, word [rsp + 0x46]
lea eax, [r11 + rax + 1]
movsx edx, ax
call sym.sqlite3LogEstAdd
and r10d, 0x140
jne 0x1403472cd
lea edx, [r11 + 0x10]
movsx ecx, ax
movsx edx, dx
call sym.sqlite3LogEstAdd
add bp, word [rsp + 0x58]
mov rcx, qword [r13 + 8]
mov rdx, rbx
add eax, ebp
add r11d, ebp
mov r8d, dword [rsp + 0x68]
mov word [rbx + 0x14], ax
mov word [rbx + 0x16], r11w
call dbg.whereLoopOutputAdjust
mov rdx, rbx
mov rcx, r13
call dbg.whereLoopInsert
mov r12d, eax
mov eax, dword [rbx + 0x28]
test al, 2
cmovne si, word [rsp + 0x44]
mov word [rbx + 0x16], si
test al, 0x10
jne 0x140347348
movzx eax, word [rbx + 0x18]
cmp ax, word [r15 + 0x60]
jae 0x140347348
cmp ax, word [r15 + 0x5e]
jb 0x140347330
movzx eax, byte [r15 + 0x64]
and eax, 3
cmp al, 2
je 0x140347348
movsx r9d, bp
mov r8, r15
mov rdx, r14
mov rcx, r13
call dbg.whereLoopAddBtreeIndex
nop word [rax + rax]
movzx eax, word [rsp + 0x44]
test r12d, r12d
sete bpl
mov word [rbx + 0x16], ax
mov rcx, rdi
call dbg.whereScanNext
mov rsi, rax
test rax, rax
je 0x140347371
test bpl, bpl
jne 0x1403470d0
mov rax, qword [rsp + 0x48]
movzx edi, word [rsp + 0x9a]
mov qword [rbx], rax
mov rax, qword [rsp + 0x88]
mov qword [rbx + 0x16], rax
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x28], rax
cmp word [rsp + 0x50], di
je 0x140347720
mov eax, r12d
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [r15 + 0x18]
shl rax, 5
add rax, qword [rdx + 8]
cmp byte [rax + 0x18], 0
je 0x140347105
nop word cs:[rax + rax]
mov ebp, 1
xor r12d, r12d
jmp 0x140347358
mov eax, dword [rbx + 0x28]
test r12b, 0x82
je 0x140347540
mov rdx, qword [r15 + 8]
mov rcx, qword [rsp + 0x38]
mov r10d, eax
or r10d, 1
movsx edx, word [rdx + rcx]
mov dword [rbx + 0x28], r10d
cmp edx, 0xffffffff
je 0x140347668
test edx, edx
js 0x14034743e
cmp word [rsp + 0x58], 0
jne 0x14034743e
movzx edx, word [r15 + 0x5e]
mov ecx, edx
sub edx, 1
cmp dword [rsp + 0x6c], edx
je 0x14034762c
cmp byte [rsp + 0xc2], 1
jbe 0x14034723f
or r10d, 0x200000
mov dword [rbx + 0x28], r10d
test r10b, 2
je 0x140347249
nop dword [rax]
movsx r11d, word [rbx + 0x16]
xor edx, edx
cmp qword [rsp + 0x60], 0
mov eax, r11d
je 0x14034749f
mov rsi, qword [rsp + 0x60]
movzx edx, word [rsi + 0x10]
test dx, dx
jle 0x140347620
mov rsi, qword [rsp + 0x60]
mov edx, 1
test byte [rsi + 0x12], 0x80
jne 0x14034749f
sub eax, 0x14
cmp qword [rsp + 0x70], 0
je 0x1403474e9
mov rsi, qword [rsp + 0x70]
movzx ecx, word [rsi + 0x10]
test cx, cx
jle 0x140347610
mov rsi, qword [rsp + 0x70]
lea r9d, [rax - 0x14]
test byte [rsi + 0x12], 0x80
cmove eax, r9d
mov rsi, qword [rsp + 0x60]
add edx, 1
test rsi, rsi
je 0x1403474e9
cmp word [rsi + 0x10], 0
jle 0x1403474e9
lea r9d, [rax - 0x14]
test cx, cx
cmovg eax, r9d
sub r11d, edx
cmp ax, 0xa
mov edx, 0xa
cmovl eax, edx
cwde
cmp eax, r11d
cmovle r11d, eax
mov word [rbx + 0x16], r11w
mov esi, r11d
jmp 0x14034728c
mov rcx, qword [r15 + 8]
mov rsi, qword [rsp + 0x38]
cmp word [rcx + rsi], 0
js 0x140347266
add r11d, edx
sub r11d, ebp
mov word [rbx + 0x16], r11w
mov esi, r11d
jmp 0x14034728c
mov ebp, r12d
and bp, 0x100
je 0x140347570
or eax, 8
xor ebp, ebp
mov dword [rbx + 0x28], eax
mov r10d, eax
jmp 0x14034723f
or eax, 2
jmp 0x14034715e
mov edx, dword [r14 + 0x44]
test r12b, 0x24
je 0x140347878
or eax, 0x22
mov r9d, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x90]
mov r8, r15
mov dword [rbx + 0x28], eax
mov qword [rsp + 0x20], rsi
call dbg.whereRangeVectorLen
mov word [rbx + 0x1a], ax
test byte [rsi + 0x13], 1
je 0x140347960
movzx r8d, word [rbx + 0x2c]
lea rax, [rsi + 0x38]
movzx edx, word [rbx + 0x30]
mov qword [rsp + 0x70], rax
mov rax, r8
add r8d, 1
cmp r8d, edx
jg 0x140347984
lea ecx, [rax + 1]
mov r10d, dword [rbx + 0x28]
mov rdx, qword [rbx + 0x38]
mov word [rbx + 0x2c], cx
mov rcx, qword [rsp + 0x70]
or r10d, 0x10
mov qword [rdx + rax*8], rcx
mov eax, 1
mov dword [rbx + 0x28], r10d
mov word [rbx + 0x1c], ax
test r10b, 2
jne 0x140347972
mov qword [rsp + 0x60], rsi
jmp 0x140347249
add eax, ecx
jmp 0x1403474ca
add eax, edx
mov edx, 1
jmp 0x14034749f
test byte [r15 + 0x64], 8
jne 0x140347668
cmp cx, 1
je 0x140347657
or eax, 0x10001
cmp byte [rsp + 0xc2], 1
mov dword [rbx + 0x28], eax
mov r10d, eax
ja 0x14034744c
jmp 0x14034723f
cmp byte [r15 + 0x62], 0
je 0x140347639
cmp r12w, 2
jne 0x140347639
nop dword [rax]
or eax, 0x1001
cmp byte [rsp + 0xc2], 1
mov dword [rbx + 0x28], eax
mov r10d, eax
ja 0x14034744c
jmp 0x14034723f
cmp cx, 1
jbe 0x14034799e
movzx ecx, cx
xor ebp, ebp
lea edx, [rcx - 2]
mov ecx, 0x2e
lea r11, [rax + rdx*8 + 8]
nop dword [rax]
mov rdx, qword [rax]
test rdx, rdx
je 0x1403476bf
cmp qword [rdx], r8
cmove rcx, rbp
add rax, 8
cmp r11, rax
jne 0x1403476b0
mov ebp, ecx
test r9b, r9b
jne 0x1403476f0
mov r8d, dword [rbx + 0x28]
jmp 0x140347234
call dbg.sqlite3LogEst
movsx rcx, ax
mov ebp, ecx
test r9b, r9b
je 0x1403476cf
mov rax, qword [r15 + 0x10]
mov rdx, qword [rsp + 0x38]
movzx r9d, word [rax + rdx]
xor eax, eax
cmp ecx, 0xa
jle 0x1403478ea
call dbg.sqlite3LogEst
sub eax, 0x21
jmp 0x1403478ea
mov eax, dword [rsp + 0x6c]
movzx edx, word [r15 + 0x5e]
add eax, 1
cmp eax, edx
jge 0x1403473a4
movzx edi, word [rsp + 0x52]
cmp word [rsp + 0x50], di
jne 0x1403473a4
movzx eax, byte [r15 + 0x64]
and eax, 0xffffffc0
cmp al, 0x80
jne 0x1403473a4
mov rcx, qword [rsp + 0x78]
test byte [rcx + 0x5d], 0x40
jne 0x1403473a4
movzx edx, word [rsp + 0x50]
mov rax, qword [r15 + 0x10]
lea rsi, [rdx + rdx + 2]
lea r9, [rax + rsi]
cmp word [r9], 0x29
jle 0x1403473a4
movzx r8d, di
movzx edx, word [rbx + 0x30]
add r8d, 1
cmp r8d, edx
jle 0x1403479ce
mov rdx, rbx
call sym.whereLoopResize.part.0
mov r12d, eax
test eax, eax
jne 0x1403473a4
movzx eax, word [rbx + 0x2c]
movzx ecx, word [rbx + 0x18]
movzx edx, word [rbx + 0x2e]
mov r8d, dword [rbx + 0x28]
mov word [rsp + 0x52], ax
mov rax, qword [r15 + 0x10]
movzx r10d, word [rbx + 0x16]
lea r9, [rax + rsi]
movzx edi, word [rsp + 0x52]
add ecx, 1
add edx, 1
xor r12d, r12d
mov word [rbx + 0x18], cx
mov rcx, qword [rbx + 0x38]
or r8d, 0x8000
mov word [rbx + 0x2e], dx
lea edx, [rdi + 1]
mov word [rbx + 0x2c], dx
movzx edx, di
movzx eax, word [rax + rsi - 2]
mov qword [rcx + rdx*8], 0
movzx ecx, word [r9]
movzx edi, word [rsp + 0x9c]
mov dword [rbx + 0x28], r8d
mov r8, r15
lea edx, [r10 + rcx]
sub edx, eax
lea eax, [rax + rdi + 5]
mov word [rbx + 0x16], dx
sub eax, ecx
mov rdx, r14
mov rcx, r13
movsx r9d, ax
call dbg.whereLoopAddBtreeIndex
movzx eax, word [rsp + 0x44]
mov word [rbx + 0x16], ax
movzx eax, word [rsp + 0x50]
mov word [rbx + 0x18], ax
movzx eax, word [rsp + 0x9a]
mov word [rbx + 0x2e], ax
mov eax, dword [rsp + 0x54]
mov dword [rbx + 0x28], eax
jmp 0x1403473a4
call dbg.sqlite3LogEst
sub eax, 0x21
mov word [rsp + 0x46], ax
jmp 0x140347097
or eax, 0x12
mov r9d, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x90]
mov r8, r15
mov dword [rbx + 0x28], eax
mov qword [rsp + 0x20], rsi
call dbg.whereRangeVectorLen
mov r10d, dword [rbx + 0x28]
mov word [rbx + 0x1c], ax
test r10b, 0x20
jne 0x140347940
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x60], 0
test r10b, 2
je 0x140347249
movsx r11d, word [rbx + 0x16]
xor edx, edx
mov eax, r11d
jmp 0x1403474a7
mov rax, qword [r15 + 0x10]
mov rcx, qword [rsp + 0x38]
xor ebp, ebp
movzx r9d, word [rax + rcx]
xor eax, eax
sub ax, word [rsp + 0x46]
lea r9d, [r9 + rax + 0xa]
cmp r9w, bp
jns 0x1403476cf
cmp word [rsp + 0x58], 1
jg 0x1403473e0
mov rax, qword [rsp + 0x78]
test byte [rax + 0x5e], 2
jne 0x1403473e0
mov r8d, dword [rbx + 0x28]
or r8d, 0x100000
jmp 0x140347234
xor r12d, r12d
jmp 0x140347371
movzx edx, word [rbx + 0x2c]
mov rax, qword [rbx + 0x38]
mov qword [rsp + 0x70], rsi
mov rax, qword [rax + rdx*8 - 0x10]
mov qword [rsp + 0x60], rax
jmp 0x14034723f
mov qword [rsp + 0x70], 0
mov r10d, dword [rbx + 0x28]
jmp 0x1403475f7
movsx r11d, word [rbx + 0x16]
mov qword [rsp + 0x60], rsi
mov eax, r11d
jmp 0x14034747a
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
call sym.whereLoopResize.part.0
test eax, eax
jne 0x140347930
movzx eax, word [rbx + 0x2c]
jmp 0x1403475ce
test r9b, r9b
jne 0x1403479b1
mov r8d, dword [rbx + 0x28]
mov ebp, 0x2e
jmp 0x140347234
mov rcx, qword [rsp + 0x38]
mov rax, qword [r15 + 0x10]
mov ebp, 0x2e
movzx r9d, word [rax + rcx]
mov ecx, 0x2e
jmp 0x140347709
movzx ecx, word [rsp + 0x50]
movzx r10d, word [rsp + 0x44]
mov r8d, dword [rsp + 0x54]
mov edx, ecx
jmp 0x1403477ca