Function at 0x140123370
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, 0x88
mov rsi, r8
mov r8d, dword [rcx + 0x5c]
mov rbx, rcx
mov edi, edx
mov qword [rsp + 0xe8], r9
mov r9d, 0x206
mov dword [rsp + 0x44], 0
test r8d, r8d
jne 0x1401234b8
mov r14d, dword [rcx + 0x48]
lea r13, [0x14016dbe0]
xor ebp, ebp
lea eax, [r14 + 1]
mov dword [rcx + 0x48], eax
mov rcx, qword [rsi]
movzx eax, word [rcx + 0x14]
and eax, 0x3f
movzx r12d, byte [r13 + rax]
cmp r12d, 5
jne 0x1401234d0
cmp edi, 1
jle 0x1401234e1
mov rcx, qword [rsi + 8]
movzx eax, word [rcx + 0x14]
and eax, 0x3f
cmp byte [r13 + rax], 5
je 0x140123510
call sym.sqlite3VdbeIntValue
mov r14d, 1
mov r15, rax
mov qword [rsp + 0x50], r15
mov rdx, qword [rsi + 0x10]
cmp r12d, 5
je 0x140123430
movzx eax, word [rdx + 0x14]
and ax, 0x401
cmp ax, 0x401
jne 0x140123430
cmp rbp, r15
je 0x140123622
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x58]
xor ecx, ecx
call sym.geopolyBBox
mov r9d, dword [rsp + 0x44]
test r9d, r9d
jne 0x1401236d0
test r14d, r14d
jne 0x140123520
cmp r12d, 5
je 0x140123700
mov rdx, rbp
mov rcx, rbx
call sym.rtreeDeleteRowid
mov dword [rsp + 0x44], eax
mov r9d, eax
test eax, eax
jne 0x1401234a8
mov qword [rsp + 0x48], 0
xor edx, edx
test r14d, r14d
je 0x140123710
mov rax, qword [rsp + 0x50]
mov r9d, edx
mov rdx, qword [rsp + 0xe8]
mov qword [rdx], rax
test r9d, r9d
je 0x1401235a0
mov eax, dword [rbx + 0x48]
lea r14d, [rax - 1]
mov dword [rbx + 0x48], r14d
test r14d, r14d
je 0x1401234fc
mov eax, r9d
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sym.sqlite3VdbeIntValue
mov rbp, rax
cmp edi, 1
jg 0x1401233e5
mov qword [rsp + 0x50], 0
je 0x1401237b0
xor r9d, r9d
mov dword [rbx + 0x48], r14d
test r14d, r14d
jne 0x1401234b8
mov rcx, rbx
mov dword [rsp + 0x3c], r9d
call sym.rtreeRelease.part.0
mov r9d, dword [rsp + 0x3c]
jmp 0x1401234b8
xor r14d, r14d
xor r15d, r15d
jmp 0x14012340a
cmp r12d, 5
je 0x14012352f
cmp rbp, r15
je 0x140123462
mov r8, qword [rsp + 0x50]
mov rcx, qword [rbx + 0x88]
mov edx, 1
call sym.sqlite3_bind_int64
mov rcx, qword [rbx + 0x88]
call sym.sqlite3_step
mov rcx, qword [rbx + 0x88]
mov r15d, eax
call sym.sqlite3_reset
mov dword [rsp + 0x44], eax
mov r9d, eax
cmp r15d, 0x64
je 0x140123838
test eax, eax
jne 0x1401234a8
cmp r12d, 5
jne 0x140123462
mov r9d, dword [rsp + 0x44]
mov edx, r9d
test r9d, r9d
jne 0x1401234a8
xor eax, eax
mov qword [rsp + 0x48], rax
jmp 0x14012348c
lea r12, [rsp + 0x50]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rcx, rbx
mov rdx, r12
call sym.ChooseLeaf
mov dword [rsp + 0x44], eax
mov r9d, eax
test eax, eax
jne 0x1401234a8
mov rbp, qword [rsp + 0x48]
mov r8, r12
mov rcx, rbx
mov rdx, rbp
call sym.rtreeInsertCell
mov dword [rsp + 0x44], eax
mov r9d, eax
test rbp, rbp
je 0x140123798
sub dword [rbp + 0x10], 1
jne 0x140123798
mov rdx, rbp
mov rcx, rbx
mov dword [rsp + 0x3c], eax
call sym.nodeRelease.part.0
mov r9d, dword [rsp + 0x3c]
test r9d, r9d
jne 0x1401234a8
mov dword [rsp + 0x44], eax
test eax, eax
jne 0x1401238c5
mov r15, qword [rsp + 0x50]
mov rbp, qword [rbx + 0xb8]
mov edx, 1
mov r8, r15
lea r12d, [rdi - 2]
mov rcx, rbp
call sym.sqlite3_bind_int64
mov rdx, qword [rsi + 0x10]
movzx eax, word [rdx + 0x14]
mov ecx, eax
and cx, 0x401
cmp cx, 0x401
je 0x1401237d0
and eax, 0x3f
xor r14d, r14d
cmp byte [r13 + rax], 3
je 0x140123810
mov r8, rdx
mov rcx, rbp
mov edx, 2
call sym.sqlite3_bind_value
mov rcx, r14
call sym.sqlite3_free
cmp edi, 3
jle 0x1401236a9
mov edi, 1
nop dword [rax + rax]
mov r8, qword [rsi + rdi*8 + 0x10]
lea edx, [rdi + 2]
mov rcx, rbp
add rdi, 1
call sym.sqlite3_bind_value
cmp r12d, edi
jg 0x140123690
mov rcx, rbp
call sym.sqlite3_step
mov rcx, rbp
call sym.sqlite3_reset
mov r9d, eax
mov eax, dword [rbx + 0x48]
lea r14d, [rax - 1]
jmp 0x1401234f3
cmp r9d, 1
jne 0x1401234a8
lea rcx, str._shape_does_not_contain_a_valid_polygon
mov dword [rsp + 0x3c], r9d
call sym.sqlite3_mprintf
mov r9d, dword [rsp + 0x3c]
mov qword [rbx + 0x10], rax
mov eax, dword [rbx + 0x48]
lea r14d, [rax - 1]
jmp 0x1401234f3
xor ecx, ecx
mov qword [rsp + 0x48], rcx
nop word [rax + rax]
mov r12, qword [rbx + 0x90]
xor edx, edx
mov rcx, r12
call sym.vdbeUnbind
test eax, eax
jne 0x140123738
mov rax, qword [r12]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140123738
call qword [0x14014ef10]
mov r12, qword [rbx + 0x90]
mov edx, 1
mov rcx, r12
call sym.vdbeUnbind
test eax, eax
jne 0x140123763
mov rax, qword [r12]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140123763
call qword [0x14014ef10]
mov rcx, qword [rbx + 0x90]
call sym.sqlite3_step
mov rcx, qword [rbx + 0x90]
call sym.sqlite3_reset
mov r9d, eax
mov rax, qword [rbx + 0x18]
mov dword [rsp + 0x44], r9d
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x50], rax
jmp 0x140123494
test r9d, r9d
jne 0x1401234a8
mov dword [rsp + 0x44], 0
jmp 0x14012361d
mov rdx, rbp
mov rcx, rbx
call sym.rtreeDeleteRowid
mov dword [rsp + 0x44], eax
mov r9d, eax
jmp 0x1401234a8
mov edx, 1
mov rcx, rbp
call sym.vdbeUnbind
test eax, eax
jne 0x1401237f4
mov rax, qword [rbp]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1401237f4
call qword [0x14014ef10]
cmp edi, 3
jg 0x140123686
mov eax, dword [rbx + 0x48]
mov r9d, dword [rsp + 0x44]
lea r14d, [rax - 1]
jmp 0x1401234f3
lea r8, [rsp + 0x44]
xor ecx, ecx
call sym.geopolyFuncParam
mov r14, rax
test rax, rax
je 0x14012382c
mov edx, dword [rsp + 0x44]
test edx, edx
je 0x140123891
mov rdx, qword [rsi + 0x10]
jmp 0x140123669
mov rax, qword [rbx + 0x18]
lea rdx, [0x14016bae0]
movzx eax, byte [rax + 0x6c]
sub eax, 1
cdqe
cmp byte [rdx + rax], 5
je 0x140123870
xor edx, edx
mov rcx, rbx
call sym.rtreeConstraintError
mov dword [rsp + 0x44], eax
mov r9d, eax
test eax, eax
je 0x140123579
jmp 0x1401234a8
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call sym.rtreeDeleteRowid
mov dword [rsp + 0x44], eax
mov r9d, eax
test eax, eax
je 0x140123579
jmp 0x1401234a8
mov eax, dword [rax]
lea r8, [r14 + 4]
mov edx, 2
mov rcx, rbp
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0xffffffffffffffff
lea r9d, [rax*8 + 4]
movsxd r9, r9d
call sym.bindText
jmp 0x140123679
mov r9d, eax
jmp 0x1401234a8