Function at 0x542a80
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, 0x58
mov r8d, dword [rdx + 0x30]
mov rbx, qword [rcx + 0x10]
mov rsi, qword [rdx + 0x28]
mov qword [rsp + 0xa0], rcx
mov r13, rdx
test r8d, r8d
jle 0x542ca0
xor r15d, r15d
xor r14d, r14d
jmp 0x542b0e
xor r9d, r9d
test rbp, rbp
je 0x542acc
mov r9d, dword [rbp]
mov eax, dword [r13 + 0x20]
add eax, dword [r13 + 0xc]
mov dword [rsp + 0x20], r14d
mov rcx, rbx
lea r8d, [rax + r15]
mov edx, 0xa5
add r15d, 1
add rsi, 0x20
call dbg.sqlite3VdbeAddOp3
mov rdx, qword [rsi - 0x18]
mov r8d, 0xfffffff9
mov rcx, rbx
call sym.sqlite3VdbeAppendP4
cmp dword [r13 + 0x30], r15d
jle 0x542ca0
mov rax, qword [rsi]
mov ecx, dword [rsi + 0x18]
mov rbp, qword [rax + 0x20]
test ecx, ecx
js 0x542ac0
mov eax, dword [rbp]
mov rcx, qword [rsp + 0xa0]
xor edi, edi
mov edx, eax
mov dword [rsp + 0x38], eax
call sym.sqlite3GetTempRange
cmp byte [rsi + 0x1c], 0
mov dword [rsp + 0x3c], eax
je 0x542b52
mov rax, qword [rsi]
cmp byte [rsi + 0x1d], 1
mov rax, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
mov edi, dword [rax]
adc edi, 0
mov r8d, dword [rsi + 0x18]
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov rcx, rbx
mov edx, 0x24
call dbg.sqlite3VdbeAddOp3
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x38]
sub eax, 1
mov dword [rsp + 0x4c], eax
js 0x542bc2
lea r12d, [rdi + rax]
mov eax, dword [rsp + 0x3c]
mov qword [rsp + 0x40], rbp
mov ebp, r12d
sub eax, edi
mov r12d, eax
nop dword [rax]
lea eax, [r12 + rbp]
mov r8d, dword [rsi + 0x18]
mov r9d, ebp
mov edx, 0x5e
mov dword [rsp + 0x20], eax
mov rcx, rbx
call dbg.sqlite3VdbeAddOp3
mov eax, ebp
sub ebp, 1
cmp edi, eax
jne 0x542b98
mov rbp, qword [rsp + 0x40]
cmp byte [rsi + 0x1e], 0
jne 0x542cb8
mov eax, dword [r13 + 0x20]
add eax, dword [r13 + 0xc]
xor r8d, r8d
mov edx, 0xa2
add eax, r15d
mov r9d, dword [rsp + 0x3c]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call dbg.sqlite3VdbeAddOp3
mov rdx, qword [rsi + 8]
mov r8d, 0xfffffff9
mov rcx, rbx
call sym.sqlite3VdbeAppendP4
movsxd rax, dword [rbx + 0x90]
test eax, eax
jle 0x542c25
mov rdx, qword [rbx + 0x88]
lea rax, [rax + rax*2]
lea rax, [rdx + rax*8]
movzx edx, byte [rsp + 0x38]
mov word [rax - 0x16], dx
mov r8d, dword [rsi + 0x18]
mov edi, dword [rsp + 0x48]
mov dword [rsp + 0x20], r14d
mov rcx, rbx
mov edx, 0x27
lea r9d, [rdi + 1]
call dbg.sqlite3VdbeAddOp3
mov rcx, qword [rbx]
mov edx, dword [rbx + 0x90]
lea rax, [0x007e7180]
cmp byte [rcx + 0x67], 0
jne 0x542c6b
movsxd rax, edi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
cmp dword [rsp + 0x38], 1
mov dword [rax + 8], edx
je 0x542d90
mov rdi, qword [rsp + 0xa0]
mov eax, dword [rsp + 0x38]
cmp eax, dword [rdi + 0x28]
jle 0x542ac8
mov dword [rdi + 0x28], eax
mov rax, rdi
mov edi, dword [rsp + 0x3c]
mov dword [rax + 0x2c], edi
jmp 0x542ac8
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x1f]
test al, al
je 0x542db0
mov rcx, qword [rsp + 0xa0]
sub eax, 1
mov byte [rcx + 0x1f], al
movzx eax, al
mov r12d, dword [rcx + rax*4 + 0xe8]
xor eax, eax
cmp word [rsi + 0x1c], 0
sete al
add edi, dword [rsp + 0x38]
add eax, edi
mov edi, dword [rsp + 0x4c]
test edi, edi
js 0x542d6a
mov ecx, dword [rsp + 0x3c]
add edi, eax
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0xa8], r13
mov r13d, edi
sub ecx, eax
mov edi, ecx
nop dword [rax]
mov r8d, dword [rsi + 0x18]
mov dword [rsp + 0x20], r12d
mov r9d, r13d
mov rcx, rbx
mov edx, 0x5e
call dbg.sqlite3VdbeAddOp3
mov dword [rsp + 0x20], r14d
mov r8d, r12d
mov rcx, rbx
lea r9d, [rdi + r13]
mov edx, 0xb6
call dbg.sqlite3VdbeAddOp3
mov eax, r13d
sub r13d, 1
cmp eax, ebp
jne 0x542d20
mov rbp, qword [rsp + 0x40]
mov r13, qword [rsp + 0xa8]
test r12d, r12d
je 0x542bcc
mov rcx, qword [rsp + 0xa0]
mov edx, r12d
call sym.sqlite3ReleaseTempReg.part.0
jmp 0x542bcc
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0xa0]
call sym.sqlite3ReleaseTempRange.part.0
jmp 0x542ac8
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x38]
lea r12d, [rax + 1]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0x38], r12d
jmp 0x542ce5