Function at 0x140333b70
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, 0xd8
mov r14d, dword [r9 + 0x28]
mov eax, dword [rsp + 0x140]
mov rsi, rcx
mov r15, rdx
mov rbx, r9
test r14d, 0x2000
jne 0x140333ccd
test al, 0x20
jne 0x140333ccd
mov edi, r14d
mov r12, qword [rcx + 0x10]
mov rdx, qword [rcx]
and edi, 0x30
mov dword [rsp + 0x30], edi
jne 0x140333cf4
test r14d, 0x400
je 0x140333ce8
test al, 3
lea rax, [rsp + 0x60]
mov r10d, 0x100
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rax
movabs rax, 0x3b9aca0000000064
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0
mov word [rsp + 0x5c], r10w
jne 0x140333d26
xor ebp, ebp
lea r10, str.SCAN
jmp 0x140333d32
test r14d, 0x100
jne 0x140333f00
and r14d, 0x400
jne 0x140334008
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140333c64
mov eax, dword [rsp + 0x58]
mov byte [rbx + rax], 0
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x140333c5f
test byte [rsp + 0x5d], 4
je 0x1403340e0
mov rbx, qword [rsp + 0x48]
mov r9d, dword [rsi + 0x120]
mov edx, dword [r12 + 0x90]
cmp edx, dword [r12 + 0x94]
jge 0x140333fc0
lea eax, [rdx + 1]
mov dword [r12 + 0x90], eax
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 4], edx
mov dword [rax + 8], r9d
mov dword [rax + 0xc], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0xb2
mov r9d, 0xfffffff9
mov r8, rbx
mov rcx, r12
call fcn.14031ddc0
nop
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp word [r9 + 0x18], 0
je 0x140333bd0
lea rax, [rsp + 0x60]
mov r9d, 0x100
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rax
movabs rax, 0x3b9aca0000000064
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0
mov word [rsp + 0x5c], r9w
mov ebp, 1
lea r10, str.SEARCH
movzx eax, r8b
lea r13, [rsp + 0x40]
movzx edi, r8b
mov r8, r10
lea rdx, [rax*8]
mov rcx, r13
sub rdx, rax
mov rax, rdx
lea rdx, str._s__S
shl rax, 4
lea r9, [r15 + rax + 8]
call fcn.1403302c0
test r14d, 0x500
jne 0x140333c20
lea rax, [rdi*8]
mov r9, qword [rbx + 0x20]
sub rax, rdi
shl rax, 4
mov rax, qword [r15 + rax + 0x28]
test byte [rax + 0x40], 0x80
jne 0x140333ed8
lea r15, str.AUTOMATIC_PARTIAL_COVERING_INDEX
test r14d, 0x20000
jne 0x140333dbb
lea r15, str.AUTOMATIC_COVERING_INDEX
test r14d, 0x4000
je 0x1403340c0
mov eax, dword [rsp + 0x58]
lea edx, [rax + 7]
cmp edx, dword [rsp + 0x50]
jae 0x140333fe0
add rax, qword [rsp + 0x48]
mov ecx, 0x474e
mov dword [rsp + 0x58], edx
mov dword [rax], 0x49535520
mov word [rax + 4], cx
mov byte [rax + 6], 0x20
mov r8, qword [r9]
mov rdx, r15
mov rcx, r13
call fcn.1403302c0
movzx edi, word [rbx + 0x18]
test di, di
jne 0x140333e09
test byte [rbx + 0x28], 0x30
je 0x140333c3a
mov eax, dword [rsp + 0x58]
mov r15, qword [rbx + 0x20]
movzx ebp, word [rbx + 0x2e]
lea edx, [rax + 2]
cmp edx, dword [rsp + 0x50]
jae 0x140334028
mov dword [rsp + 0x58], edx
add rax, qword [rsp + 0x48]
mov edx, 0x2820
mov word [rax], dx
test edi, edi
je 0x140333f50
xor r14d, r14d
jmp 0x140333e6c
cmp eax, ebp
lea rdx, str._s_
mov r8, r9
mov rcx, r13
lea rax, str.ANY__s_
cmovl rdx, rax
add r14, 1
call fcn.1403302c0
cmp edi, r14d
jle 0x140333f50
mov rax, qword [r15 + 8]
lea r9, [0x14075bd07]
movsx rdx, word [rax + r14*2]
mov rax, rdx
cmp dx, 0xfffe
je 0x140333ea0
lea r9, [0x14075bd0e]
cmp edx, 0xffffffff
je 0x140333ea0
mov rdx, qword [r15 + 0x18]
shl rax, 5
add rax, qword [rdx + 8]
mov r9, qword [rax]
mov eax, r14d
test r14, r14
je 0x140333e40
mov edx, dword [rsp + 0x58]
lea ecx, [rdx + 5]
cmp ecx, dword [rsp + 0x50]
jae 0x140333f90
add rdx, qword [rsp + 0x48]
mov dword [rsp + 0x58], ecx
mov dword [rdx], 0x444e4120
mov byte [rdx + 4], 0x20
jmp 0x140333e40
movzx eax, byte [r9 + 0x64]
and eax, 3
cmp al, 2
jne 0x140333d97
test ebp, ebp
je 0x140333c3a
lea r15, str.PRIMARY_KEY
jmp 0x140333dbb
test r14b, 0xf
je 0x140333c2d
lea r8, [0x14075c344]
test r14b, 5
jne 0x140333f3b
cmp dword [rsp + 0x30], 0x30
lea r8, str.___AND_rowid_
je 0x140333f3b
and r14d, 0x20
lea r8, [0x14075c342]
lea rax, [0x14075c354]
cmove r8, rax
lea rdx, str._USING_INTEGER_PRIMARY_KEY__rowid_s__
mov rcx, r13
call fcn.1403302c0
jmp 0x140333c3a
mov eax, dword [rbx + 0x28]
mov edx, edi
test al, 0x20
jne 0x140334090
test al, 0x10
jne 0x140334068
mov eax, dword [rsp + 0x58]
lea edx, [rax + 1]
cmp edx, dword [rsp + 0x50]
jae 0x140334048
add rax, qword [rsp + 0x48]
mov dword [rsp + 0x58], edx
mov byte [rax], 0x29
jmp 0x140333c3a
mov r8d, 5
lea rdx, [0x14075bd14]
mov rcx, r13
mov qword [rsp + 0x30], r9
mov dword [rsp + 0x3c], r14d
call fcn.140324ef0
mov r9, qword [rsp + 0x30]
mov eax, dword [rsp + 0x3c]
jmp 0x140333e40
mov dword [rsp + 0x20], 0
mov r8d, edx
mov rcx, r12
mov edx, 0xb2
call fcn.140322ee0
mov edx, eax
jmp 0x140333cbb
mov r8d, 7
lea rdx, str._USING
mov rcx, r13
mov qword [rsp + 0x30], r9
call fcn.140324ef0
mov r9, qword [rsp + 0x30]
jmp 0x140333de8
mov r9, qword [rbx + 0x20]
mov r8d, dword [rbx + 0x18]
lea rdx, str._VIRTUAL_TABLE_INDEX__d:_s
mov rcx, r13
call fcn.1403302c0
jmp 0x140333c3a
mov r8d, 2
lea rdx, [0x14075c364]
mov rcx, r13
call fcn.140324ef0
jmp 0x140333e33
mov r8d, 1
lea rdx, [0x14075bd1e]
mov rcx, r13
call fcn.140324ef0
jmp 0x140333c3a
lea rax, [0x14075c354]
mov dword [rsp + 0x20], edx
mov r9d, edi
mov rdx, r15
mov qword [rsp + 0x28], rax
movzx r8d, word [rbx + 0x1c]
mov rcx, r13
call fcn.140325010
jmp 0x140333f65
lea rax, [0x14075c342]
mov rdx, r15
mov r9d, edi
mov rcx, r13
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
movzx r8d, word [rbx + 0x1a]
call fcn.140325010
mov eax, dword [rbx + 0x28]
mov edx, 1
jmp 0x140333f5d
and r14d, 0x40
lea r15, str.COVERING_INDEX__s
lea rax, str.INDEX__s
cmove r15, rax
jmp 0x140333dbb
mov rcx, r13
call fcn.14031c260
mov rbx, rax
jmp 0x140333c64