Function at 0x140370290
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, 0xa8
movzx ebp, byte [rdx]
cmp ebp, 0xb5
mov rdi, rcx
mov r13, rdx
mov qword [rsp + 0x58], 0
mov esi, r8d
mov ebx, r9d
mov r12d, r9d
je 0x1403702d0
cmp ebp, 0xae
jne 0x1403702e9
nop
mov r13, qword [r13 + 0x10]
movzx ebp, byte [r13]
cmp ebp, 0xae
je 0x1403702d0
cmp ebp, 0xb5
je 0x1403702d0
cmp ebp, 0xb0
jne 0x1403702f6
movzx ebp, byte [r13 + 2]
cmp ebp, 0x24
je 0x140370562
cmp ebp, 0xad
je 0x140370348
cmp ebp, 0x9b
jg 0x1403706dd
cmp ebp, 0x74
jle 0x1403705dc
lea r12, [0x14046c378]
mov r14d, 1
lea eax, [rbp - 0x75]
cmp eax, 0x26
ja case.0x140370343.118
lea rdx, [0x14046dc54]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov r13, qword [r13 + 0x10]
mov r14, 0xffffffffffffffff
lea r12, [0x14046d9fe]
movzx ebp, byte [r13]
mov eax, ebp
and eax, 0xfffffffd
cmp al, 0x99
je 0x140370329
mov rax, qword [rsp + 0x118]
movzx esi, sil
movzx r9d, bl
mov rdx, r13
mov r8d, esi
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call sym.valueFromExpr
mov rbp, qword [rsp + 0x58]
test eax, eax
mov r12d, eax
jne 0x1403704a0
test rbp, rbp
je 0x1403703e8
mov rcx, rbp
call sym.sqlite3VdbeMemNumerify.isra.0
movzx eax, word [rbp + 0x14]
test al, 8
je 0x1403708a9
movsd xmm0, qword [rbp]
xorpd xmm0, xmmword [0x1404783a0]
movsd qword [rbp], xmm0
mov rcx, rbp
movsx edx, bl
mov r8d, esi
call sym.applyAffinity
mov rbp, qword [rsp + 0x58]
nop dword [rax + rax]
mov rax, qword [rsp + 0x110]
mov qword [rax], rbp
mov eax, r12d
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsp + 0x118]
mov rcx, rdi
call sym.valueNew
test rax, rax
mov rcx, rax
mov qword [rsp + 0x58], rax
je 0x140370602
test byte [r13 + 5], 8
je 0x1403705e3
movsxd rdx, dword [r13 + 8]
imul rdx, r14
test word [rax + 0x14], 0x9000
jne 0x14037086a
mov r8d, 4
mov qword [rax], rdx
mov word [rax + 0x14], r8w
and ebp, 0xfffffffd
cmp ebp, 0x99
jne 0x14037046c
cmp bl, 0x41
je 0x1403708cc
movsx edx, bl
mov r8d, 1
call sym.applyAffinity
mov rbp, qword [rsp + 0x58]
movzx eax, word [rbp + 0x14]
test al, 0x2c
je 0x140370640
and eax, 0xfffffffd
cmp sil, 1
mov word [rbp + 0x14], ax
je 0x1403704a0
mov byte [rbp + 0x16], sil
nop dword [rax]
xor r12d, r12d
jmp 0x1403703e8
mov rdx, qword [rsp + 0x118]
mov rcx, rdi
call sym.valueNew
test rax, rax
mov qword [rsp + 0x58], rax
je 0x140370602
mov rsi, qword [r13 + 8]
xor r12d, r12d
add rsi, 2
mov rcx, rsi
call sym.strlen
mov rcx, rdi
mov rdx, rsi
lea rdi, [sym.sqlite3OomClear]
and eax, 0x3fffffff
lea ebx, [rax - 1]
mov r8d, ebx
call sym.sqlite3HexToBlob
mov edx, ebx
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
shr edx, 0x1f
mov qword [rsp + 0x20], rdi
lea r8d, [rdx + rbx]
mov rdx, rax
sar r8d, 1
movsxd r8, r8d
call sym.sqlite3VdbeMemSetStr
mov rbp, qword [rsp + 0x58]
jmp 0x1403703e8
mov rdx, qword [rsp + 0x118]
mov rcx, rdi
call sym.valueNew
test rax, rax
mov rbp, rax
mov qword [rsp + 0x58], rax
je 0x140370602
test word [rax + 0x14], 0x9000
jne 0x140370678
mov ecx, 1
xor r12d, r12d
mov word [rax + 0x14], cx
jmp 0x1403703e8
mov rcx, qword [r13 + 8]
xor edx, edx
movzx esi, sil
call sym.sqlite3AffinityType
mov rdx, qword [r13 + 0x10]
mov rcx, rdi
mov r8d, esi
movzx ebp, al
mov rax, qword [rsp + 0x118]
mov r9d, ebp
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x20], rax
call sym.valueFromExpr
mov r12d, eax
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax]
test rcx, rcx
je 0x1403703f3
mov r8d, esi
mov edx, ebp
call sym.sqlite3VdbeMemCast
mov rax, qword [rsp + 0x110]
movsx edx, bl
mov r8d, esi
mov rcx, qword [rax]
call sym.applyAffinity
jmp 0x1403703f3
xor ebp, ebp
jmp 0x1403704a0
mov r9, qword [r13 + 8]
lea rdx, str._s_s
mov r8, r12
mov rcx, rdi
call sym.sqlite3MPrintf
test rax, rax
jne 0x140370831
cmp qword [rsp + 0x118], 0
je 0x140370886
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov eax, dword [rax + 0x30]
test eax, eax
jne 0x14037062d
cmp byte [rdi + 0x67], 0
je 0x1403708e1
mov r12d, 7
jmp 0x1403703f3
xor r12d, r12d
cmp sil, 1
je 0x1403703e8
test al, 2
je 0x140370498
cmp byte [rbp + 0x16], sil
movzx edx, sil
je 0x1403704a0
mov rcx, rbp
call sym.sqlite3VdbeMemTranslate
mov rbp, qword [rsp + 0x58]
mov r12d, eax
jmp 0x1403703e8
mov rcx, rax
xor r12d, r12d
call sym.vdbeMemClearExternAndSetNull
mov rbp, qword [rsp + 0x58]
jmp 0x1403703e8
cmp ebp, 0xaa
jne 0x1403705dc
mov rdx, qword [rsp + 0x118]
mov rcx, rdi
call sym.valueNew
test rax, rax
mov rbp, rax
mov qword [rsp + 0x58], rax
je 0x1403704a0
mov edx, 4
mov word [rax + 0x14], dx
mov rax, qword [r13 + 8]
cmp byte [rax + 4], 0
sete al
movzx eax, al
mov qword [rbp], rax
jmp 0x1403704a0
cmp ebp, 0xac
jne case.0x140370343.118
cmp qword [rsp + 0x118], 0
je case.0x140370343.118
mov rdx, qword [r13 + 8]
xor r14d, r14d
mov r13, qword [r13 + 0x20]
test r13, r13
je 0x140370704
mov r14d, dword [r13]
movzx eax, sil
mov dword [rsp + 0x20], 0
mov r8d, r14d
mov rcx, rdi
mov r9d, eax
mov dword [rsp + 0x30], eax
call sym.sqlite3FindFunction
mov r9, rax
mov eax, dword [rax + 4]
test ah, 0x28
je 0x140370879
test al, 0x20
jne 0x140370879
test r13, r13
je 0x140370902
movsxd r8, r14d
mov rcx, rdi
mov qword [rsp + 0x48], r9
lea r15, [r8*8]
mov qword [rsp + 0x40], r8
mov rdx, r15
call sym.sqlite3DbMallocZero
test rax, rax
mov rbp, rax
je 0x140370a3e
add r15, rax
add r13, 8
movzx eax, r12b
mov r8, qword [rsp + 0x40]
test r14d, r14d
mov r9, qword [rsp + 0x48]
mov dword [rsp + 0x3c], eax
jle 0x1403708ff
mov eax, ebx
mov qword [rsp + 0x40], r9
mov rbx, r13
mov r12, r8
mov r13, rbp
mov esi, eax
jmp 0x1403707e8
mov r9d, dword [rsp + 0x3c]
mov qword [rsp + 0x20], r13
mov rcx, rdi
mov qword [rsp + 0x28], 0
mov r8d, dword [rsp + 0x30]
call sym.valueFromExpr
cmp qword [r13], 0
je 0x140370a5b
test eax, eax
jne 0x1403709e9
add r13, 8
add rbx, 0x20
cmp r15, r13
je 0x1403708f8
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1403707a4
cmp qword [r13], 0
jne 0x1403707d7
mov r8, r12
mov r13, rbp
xor r12d, r12d
xor ebp, ebp
lea rsi, [r13 + r8*8]
mov rbx, r13
nop word [rax + rax]
mov rcx, qword [rbx]
add rbx, 8
call sym.sqlite3ValueFree
cmp rbx, rsi
jne 0x140370810
mov rdx, r13
mov rcx, rdi
call sym.sqlite3DbFreeNN
jmp 0x1403703e8
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140370458
lea rdi, [sym.sqlite3OomClear]
mov r9d, 1
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rdi
mov rdx, rax
call sym.sqlite3VdbeMemSetStr
mov rcx, qword [rsp + 0x58]
jmp 0x140370458
call sym.vdbeReleaseAndSetInt64
mov rcx, qword [rsp + 0x58]
jmp 0x140370458
mov rbp, qword [rsp + 0x58]
xor r12d, r12d
jmp 0x1403703e8
cmp byte [rdi + 0x67], 0
jne 0x14037089a
cmp byte [rdi + 0x68], 0
jne 0x14037089a
mov rcx, rdi
call sym.sqlite3OomFault.part.0
mov rcx, qword [rsp + 0x58]
call sym.sqlite3ValueFree
jmp 0x14037062d
movabs rcx, 0x8000000000000000
mov rdx, qword [rbp]
cmp rdx, rcx
je 0x140370a08
neg rdx
mov qword [rbp], rdx
jmp 0x1403703d0
mov r8d, 1
mov edx, 0x43
call sym.applyAffinity
jmp 0x14037047a
cmp byte [rdi + 0x68], 0
jne 0x14037062d
mov rcx, rdi
call sym.sqlite3OomFault.part.0
jmp 0x14037062d
mov r9, qword [rsp + 0x40]
mov ebx, esi
mov r13, rbp
mov rdx, qword [rsp + 0x118]
mov rcx, rdi
mov qword [rsp + 0x30], r9
call sym.valueNew
test rax, rax
mov rbp, rax
je 0x140370a36
mov r9, qword [rsp + 0x30]
movq xmm0, rax
mov r8, r13
mov edx, r14d
movzx eax, byte [rdi + 0x64]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
movq xmm1, r9
mov qword [rsp + 0x80], 0
punpcklqdq xmm0, xmm1
mov byte [rsp + 0x88], al
mov qword [rsp + 0x90], 0
movaps xmmword [rsp + 0x60], xmm0
call qword [r9 + 0x18]
mov r12d, dword [rsp + 0x84]
test r12d, r12d
je 0x140370a23
mov rcx, rbp
call sym.sqlite3ValueText.constprop.0
lea rdx, [0x14046cd96]
mov r8, rax
mov rax, qword [rsp + 0x118]
mov rcx, qword [rax]
call sym.sqlite3ErrorMsg
mov rax, qword [rsp + 0x118]
xor ebp, ebp
mov rax, qword [rax]
mov dword [rax + 0x18], r12d
test r13, r13
je 0x1403703e8
test r14d, r14d
movsxd r8, r14d
jg 0x140370802
jmp 0x140370821
mov r8, r12
mov r12d, eax
mov rax, qword [rsp + 0x118]
mov r13, rbp
xor ebp, ebp
mov rax, qword [rax]
mov dword [rax + 0x18], r12d
jmp 0x140370802
mov rdi, qword [0x140478198]
and ax, 0xf240
or eax, 8
mov word [rbp + 0x14], ax
mov qword [rbp], rdi
jmp 0x1403703d0
movsx edx, bl
mov r8d, 1
mov rcx, rbp
call sym.applyAffinity
jmp 0x1403709cf
mov r12d, 7
jmp 0x1403709be
mov rax, qword [rsp + 0x118]
mov r12d, 7
mov rax, qword [rax]
mov dword [rax + 0x18], 7
jmp 0x1403703e8
test eax, eax
mov r8, r12
mov r12d, eax
je 0x1403707fa
jmp 0x1403709ef