Function at 0x55ce50
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, 0xf8
mov ebp, 0xffffffff
mov rax, qword [rcx]
mov rbx, qword [rcx + 0x10]
mov qword [rsp + 0x148], rdx
mov rdx, qword [rax + 8]
mov r14, rcx
mov qword [rsp + 0x60], rax
movzx eax, byte [rbx + 0x10]
mov word [rsp + 0x72], bp
lea rcx, [rax + rax*2]
lea rax, [rax + rcx*4]
lea r12, [rdx + rax*8 + 8]
mov rax, qword [r12 + 0x20]
movzx edx, byte [r12 + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [r14 + 8]
mov qword [rsp + 0x40], rax
test dl, 2
je 0x55d460
mov rdi, qword [r12 + 0x60]
test rdi, rdi
setne r15b
xor eax, eax
cmp qword [r14 + 0x18], 0
je 0x55d487
test r15b, r15b
je 0x55d0fc
mov r9, qword [rdi + 0x48]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x3c], 1
mov qword [rsp + 0x68], rax
nop dword [rax + rax]
test r9, r9
je 0x55cf1a
movzx edx, byte [r12 + 0x3c]
mov ecx, dword [r12 + 0x44]
mov r8, qword [rsp + 0x40]
call dbg.whereUsablePartialIndex
test eax, eax
je 0x55d228
movzx eax, byte [rdi + 0x65]
and eax, 2
mov byte [rsp + 0x30], al
jne 0x55d228
mov rax, qword [rdi + 0x10]
mov rcx, qword [rsp + 0x148]
xor r8d, r8d
xor r9d, r9d
movzx eax, word [rax]
mov dword [rbx + 0x3c], 0
mov byte [rbx + 0x11], 0
mov word [rsp + 0x3a], ax
mov word [rbx + 0x16], ax
movzx eax, byte [rdi + 0x64]
mov dword [rbx + 0x18], 0
mov word [rbx + 0x1c], r8w
mov word [rbx + 0x12], r9w
mov qword [rbx], rcx
mov qword [rbx + 0x20], rdi
test al, 4
jne 0x55d280
mov rdx, qword [r14]
mov r13, qword [rdx + 0x10]
test r13, r13
je 0x55d280
mov ecx, dword [r13]
test ecx, ecx
jle 0x55d008
mov r8d, dword [r12 + 0x44]
mov qword [rsp + 0x50], rbx
xor ebp, ebp
mov qword [rsp + 0x58], r12
mov r12, r13
mov ebx, r8d
nop word [rax + rax]
mov rax, rbp
shl rax, 5
mov rsi, qword [r12 + rax + 8]
nop dword [rax]
test rsi, rsi
je 0x55cff0
mov eax, dword [rsi + 4]
test eax, 0x82000
je 0x55d120
test eax, 0x80000
je 0x55d110
mov rax, qword [rsi + 0x20]
mov rsi, qword [rax + 8]
test rsi, rsi
jne 0x55cfc5
nop dword [rax + rax]
add rbp, 1
cmp dword [r12], ebp
jg 0x55cfb0
mov rbx, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
movzx eax, byte [rdi + 0x64]
mov edx, eax
and edx, 3
cmp dl, 3
je 0x55d77d
xor esi, esi
nop dword [rax + rax]
test al, 0x20
je 0x55d2e0
mov qword [rsp + 0x78], 0
xor r9d, r9d
mov dword [rbx + 0x38], 0x240
test esi, esi
jne 0x55d2c8
mov rax, qword [rsp + 0x48]
test byte [rax + 0x30], 0x80
jne 0x55d060
cmp qword [rdi + 0x48], 0
je 0x55d628
nop dword [rax]
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
mov byte [rbx + 0x11], al
movsx edx, word [rdi + 0x5c]
movsx ecx, word [rcx + 0x3c]
mov eax, edx
shl eax, 4
sub eax, edx
cdq
idiv ecx
movzx edx, word [rsp + 0x3a]
lea eax, [rdx + rax + 1]
mov word [rbx + 0x14], ax
test r9, r9
jne 0x55d360
movsx r8d, word [rsp + 0x3a]
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
mov esi, r8d
call dbg.whereLoopOutputAdjust
test byte [r12 + 0x3c], 0x10
je 0x55d2a0
cmp qword [rdi + 0x50], 0
je 0x55d2a0
mov word [rbx + 0x16], si
mov byte [r14 + 0x20], 0
xor r9d, r9d
mov r8, rdi
mov rdx, r12
mov rcx, r14
call dbg.whereLoopAddBtreeIndex
cmp byte [r14 + 0x20], 1
jne 0x55d0f0
mov rcx, qword [rsp + 0x48]
or dword [rcx + 0x30], 0x100
nop
test byte [r12 + 0x40], 2
je 0x55d200
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, qword [rsi + 0x10]
jmp 0x55cfc0
cmp byte [rsi], 0xa7
je 0x55d230
mov r13, qword [rdi + 0x50]
test r13, r13
je 0x55cff0
cmp word [rdi + 0x5e], 0
je 0x55cff0
xor r15d, r15d
jmp 0x55d161
movzx eax, word [rdi + 0x5e]
add r15, 1
cmp eax, r15d
jle 0x55cff0
mov rax, qword [rdi + 8]
cmp word [rax + r15*2], 0xfffe
jne 0x55d150
mov rax, r15
mov r8d, ebx
mov rcx, rsi
shl rax, 5
mov rdx, qword [r13 + rax + 8]
call dbg.sqlite3ExprCompareSkip
test eax, eax
jne 0x55d150
movzx eax, byte [rdi + 0x64]
mov rbx, qword [rsp + 0x50]
mov esi, 1
mov r12, qword [rsp + 0x58]
mov edx, eax
and edx, 3
cmp dl, 3
jne 0x55d020
movzx eax, byte [rsp + 0x3c]
mov dword [rbx + 0x38], 0x100
mov byte [rsp + 0x30], al
movsx r8d, word [rsp + 0x3a]
movzx eax, byte [rsp + 0x30]
mov rdx, rbx
mov rcx, qword [rsp + 0x40]
mov byte [rbx + 0x11], al
lea eax, [r8 + 0x10]
mov esi, r8d
mov word [rbx + 0x14], ax
call dbg.whereLoopOutputAdjust
mov rdx, rbx
mov rcx, r14
call dbg.whereLoopInsert
mov word [rbx + 0x16], si
test eax, eax
je 0x55d0c6
jmp 0x55d0fc
add dword [rsp + 0x3c], 1
mov rdi, qword [rdi + 0x28]
test eax, eax
jne 0x55d0fc
test rdi, rdi
je 0x55d0fc
mov r9, qword [rdi + 0x48]
jmp 0x55cef8
xor eax, eax
jmp 0x55d0f0
cmp ebx, dword [rsi + 0x2c]
jne 0x55d129
movzx edx, word [rsi + 0x30]
test dx, dx
js 0x55d188
movzx ecx, word [rdi + 0x5e]
test cx, cx
je 0x55cff0
mov rax, qword [rdi + 8]
sub ecx, 1
lea rcx, [rax + rcx*2 + 2]
jmp 0x55d275
add rax, 2
cmp rcx, rax
je 0x55cff0
cmp dx, word [rax]
jne 0x55d268
jmp 0x55d188
mov edx, eax
xor esi, esi
and edx, 3
cmp dl, 3
jne 0x55d020
mov dword [rbx + 0x38], 0x100
jmp 0x55d1b9
mov rcx, r14
mov rdx, rbx
call dbg.whereLoopInsert
movzx ecx, word [rsp + 0x3a]
mov word [rbx + 0x16], cx
test eax, eax
je 0x55d0c6
jmp 0x55d0fc
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x30], al
jmp 0x55d060
mov r8, qword [rdi + 0x48]
mov r9, qword [r12 + 0x50]
and r9, qword [rdi + 0x68]
mov qword [rsp + 0x78], r9
test r8, r8
je 0x55d322
mov rax, qword [rsp + 0x60]
mov dword [rsp + 0x20], 0
mov rdx, rdi
mov qword [rsp + 0x28], 0
mov r9, qword [rsp + 0x68]
mov rcx, qword [rax]
call dbg.wherePartIdxExpr
mov r9, qword [rsp + 0x78]
movabs rax, 0x8000000000000000
mov dword [rbx + 0x38], 0x200
cmp r9, rax
je 0x55d428
movzx eax, byte [rdi + 0x65]
and eax, 0x18
cmp al, 0x10
jne 0x55d450
test r9, r9
jne 0x55d428
mov dword [rbx + 0x38], 0x240
jmp 0x55d03b
mov ecx, edx
mov r15d, dword [r12 + 0x44]
lea esi, [rcx + 0x10]
mov rcx, qword [rsp + 0x60]
mov edx, dword [rcx + 0x84]
test edx, edx
jle 0x55d411
xor ebp, ebp
xor r10d, r10d
mov qword [rsp + 0x30], rbx
mov ebx, r15d
mov qword [rsp + 0x50], r12
mov r15, rcx
mov r12, rdi
mov edi, ebp
mov rbp, r10
jmp 0x55d3be
lea eax, [rsi - 1]
sub esi, 0x14
test byte [r13 + 0x14], 0x82
cmove esi, eax
add edi, 1
add rbp, 0x38
cmp dword [r15 + 0x84], edi
jle 0x55d400
mov r13, qword [r15 + 0x90]
mov r8, r12
mov edx, ebx
add r13, rbp
mov rcx, qword [r13]
call dbg.sqlite3ExprCoveredByIndex
test eax, eax
je 0x55d400
movzx eax, word [r13 + 0x10]
test ax, ax
jg 0x55d3a0
add esi, eax
add edi, 1
add rbp, 0x38
cmp dword [r15 + 0x84], edi
jg 0x55d3be
nop word cs:[rax + rax]
mov rbx, qword [rsp + 0x30]
mov rdi, r12
mov r12, qword [rsp + 0x50]
movzx eax, word [rbx + 0x14]
movsx edx, si
movsx ecx, ax
call sym.sqlite3LogEstAdd
mov word [rbx + 0x14], ax
jmp 0x55d095
mov rax, qword [rsp + 0x60]
mov r8d, dword [r12 + 0x44]
mov rdx, rdi
mov rcx, qword [rax + 0x20]
call sym.whereIsCoveringIndex.isra.0
test eax, eax
jne 0x55d610
mov r9, qword [rsp + 0x78]
jmp 0x55d03b
test r9, r9
jne 0x55d03b
jmp 0x55d354
mov rax, qword [rsp + 0x48]
test byte [rax + 0x30], 0x80
je 0x55d6b0
mov rdi, qword [rax + 0x10]
test rdi, rdi
setne r15b
xor eax, eax
cmp qword [r14 + 0x18], 0
jne 0x55ced4
mov rcx, qword [rsp + 0x48]
movzx ebp, word [rcx + 0x3a]
mov rcx, qword [rsp + 0x60]
test word [rcx + 0x3c], 0x1020
jne 0x55ced4
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov rcx, qword [rcx]
test byte [rcx + 0x31], 0x80
je 0x55ced4
xor eax, eax
test dl, 3
jne 0x55ced4
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x30]
mov dword [rsp + 0x30], ecx
and ecx, 0x80
jne 0x55ced4
and edx, 0x48
mov eax, ecx
jne 0x55ced4
test byte [r12 + 0x3c], 0x10
jne 0x55ced4
mov rax, qword [rsp + 0x40]
xor esi, esi
movsxd rdx, dword [rax + 0x14]
mov r13, qword [rax + 0x20]
lea rax, [rdx*8]
sub rax, rdx
lea rax, [r13 + rax*8]
mov qword [rsp + 0x30], rax
cmp bp, 0xa
jle 0x55d524
movsx ecx, bp
call sym.estLog.part.0
mov esi, eax
cmp r13, qword [rsp + 0x30]
jae 0x55d7a0
add ebp, esi
lea eax, [rbp - 0x19]
mov word [rsp + 0x3a], ax
jmp 0x55d5f9
xor r8d, r8d
mov rdx, r12
mov rcx, r13
call sym.termCanDriveIndex
test eax, eax
je 0x55d607
mov rax, qword [rbx + 0x48]
mov r11d, 1
mov qword [rbx + 0x20], 0
mov word [rbx + 0x18], r11w
mov dword [rbx + 0x3c], 1
mov qword [rax], r13
mov rax, qword [rsp + 0x48]
cmp byte [rax + 0x3f], 2
je 0x55d78e
test byte [rax + 0x31], 0x40
jne 0x55d78e
lea eax, [rbp + 0x1c]
test ax, ax
mov ecx, 0
mov r10d, 0x2b
mov edx, 0x2b
cmovs eax, ecx
mov word [rbx + 0x16], r10w
movsx ecx, si
mov word [rbx + 0x12], ax
call sym.sqlite3LogEstAdd
mov dword [rbx + 0x38], 0x4000
mov rdx, rbx
mov rcx, r14
mov word [rbx + 0x14], ax
mov rax, qword [rsp + 0x148]
or rax, qword [r13 + 0x28]
mov qword [rbx], rax
call dbg.whereLoopInsert
test eax, eax
sete dl
add r13, 0x38
cmp qword [rsp + 0x30], r13
jbe 0x55d798
test dl, dl
je 0x55d798
mov rax, qword [r13 + 0x28]
test qword [rbx + 8], rax
je 0x55d53e
mov edx, 1
xor eax, eax
jmp 0x55d5e2
or dword [rbx + 0x38], eax
xor r9d, r9d
mov qword [rsp + 0x78], 0
jmp 0x55d03b
test byte [r12 + 0x40], 2
jne 0x55d060
test r9, r9
jne 0x55d0c6
test byte [rdi + 0x64], 4
jne 0x55d0c6
mov rcx, qword [rsp + 0x48]
movzx eax, word [rdi + 0x5c]
movzx edx, word [rcx + 0x3c]
cmp ax, dx
jge 0x55d0c6
mov rcx, qword [rsp + 0x60]
test byte [rcx + 0x3c], 4
jne 0x55d0c6
cmp byte [0x0060b1a7], 0
je 0x55d0c6
mov rcx, qword [rcx]
mov rcx, qword [rcx]
test byte [rcx + 0x60], 0x20
jne 0x55d0c6
movsx ecx, ax
mov byte [rbx + 0x11], 0
mov eax, ecx
shl eax, 4
sub eax, ecx
movsx ecx, dx
cdq
idiv ecx
movzx ecx, word [rsp + 0x3a]
lea eax, [rcx + rax + 1]
mov word [rbx + 0x14], ax
jmp 0x55d095
lea r8, [rsp + 0x80]
xor eax, eax
mov ecx, 0xe
mov esi, 1
mov rdi, r8
rep stosq qword [rdi], rax
lea rax, [rsp + 0x72]
mov byte [rsp + 0xe2], 5
xor edi, edi
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0xdc], 0x10003
movzx edx, byte [r12 + 0x40]
mov byte [rsp + 0xe4], 3
movzx ebp, word [rax + 0x3a]
mov qword [rsp + 0x98], rax
mov word [rsp + 0xe0], si
mov word [rsp + 0x74], bp
mov word [rsp + 0x76], di
test dl, 1
jne 0x55d740
mov rax, qword [r12 + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xa8], rax
xor r9d, r9d
cmp qword [r14 + 0x18], 0
mov rdi, r8
jne 0x55cee1
mov rax, qword [rsp + 0x60]
test word [rax + 0x3c], 0x1020
jne 0x55cedd
mov rax, qword [rax]
mov r15d, 1
mov rax, qword [rax]
test byte [rax + 0x31], 0x80
jne 0x55d4b6
jmp 0x55cedd
mov dword [rbx + 0x38], 0x100
mov byte [rsp + 0x30], 0
jmp 0x55d1b9
movzx eax, word [rsp + 0x3a]
jmp 0x55d591
and r15d, edx
jmp 0x55ced4
xor eax, eax
jmp 0x55ced4