Function at 0x1401a2ad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x50
mov r13, rcx
mov rcx, qword [rcx + 0x128]
lea r14, [rsp + 0x3c]
test rcx, rcx
je 0x1401a2ba8
mov dword [rsp + 0x3c], 0
lea r15, [rsp + 0x40]
call dbg.sqlite3WalEndReadTransaction
mov dword [rsp + 0x40], 0
mov rbx, qword [r13 + 0x128]
nop word cs:[rax + rax]
mov r9, r15
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call dbg.walTryBeginRead
mov r12d, eax
cmp eax, 0xffffffff
je 0x1401a2b20
or eax, dword [rsp + 0x3c]
je 0x1401a2b75
mov rax, qword [r13 + 0x70]
add dword [r13 + 0x84], 1
test rax, rax
je 0x1401a2b60
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x1401a2b50
mov rcx, qword [r13 + 0x120]
xor edx, edx
call dbg.sqlite3PcacheTruncate
cmp byte [r13 + 0x1b], 0
jne 0x1401a2be8
movabs rax, 0xff00000000ff
and rax, qword [r13 + 0x10]
jne 0x1401a2bce
test r12d, r12d
je 0x1401a2bbf
mov rcx, r13
call dbg.pager_unlock
mov eax, r12d
add rsp, 0x50
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [r13 + 0x15], 0
je 0x1401a2c00
movabs rax, 0xff00000000ff
and rax, qword [r13 + 0x10]
jne 0x1401a2bd3
lea rdx, [r13 + 0x20]
mov rcx, r13
call dbg.pagerPagecount
mov r12d, eax
test r12d, r12d
jne 0x1401a2b8a
mov byte [r13 + 0x15], 1
xor r12d, r12d
mov byte [r13 + 0x1c], 1
jmp 0x1401a2b92
mov rcx, qword [r13 + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
jmp 0x1401a2b75
mov edx, 1
mov rcx, r13
call dbg.pager_wait_on_lock
mov r12d, eax
test eax, eax
jne 0x1401a2b8a
cmp byte [r13 + 0x16], 1
jbe 0x1401a2ca0
cmp byte [r13 + 0x12], 0
mov r12d, 0x308
jne 0x1401a2b8a
mov edx, 4
mov rcx, r13
call sym.pagerLockDb
mov r12d, eax
test eax, eax
jne 0x1401a2b8a
mov rax, qword [r13 + 0x50]
cmp qword [rax], 0
je 0x1401a2e50
mov rcx, r13
call dbg.pagerSyncHotJournal
mov r12d, eax
test eax, eax
je 0x1401a2f2c
movzx eax, r12b
cmp r12b, 0xd
je 0x1401a2c80
cmp eax, 0xa
jne 0x1401a2b8a
lea rax, [dbg.getPageError]
mov dword [r13 + 0x30], r12d
mov byte [r13 + 0x15], 6
mov qword [r13 + 0x110], rax
jmp 0x1401a2b8a
mov rax, qword [r13 + 0x50]
mov rbx, qword [r13]
mov dword [rsp + 0x34], 1
mov r15, qword [rax]
test r15, r15
je 0x1401a2e1a
mov rcx, qword [r13 + 0x48]
mov dword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r12d, eax
test eax, eax
jne 0x1401a2b8a
mov ecx, dword [rsp + 0x38]
test ecx, ecx
je 0x1401a2f48
cmp byte [r13 + 0x10], 0
jne 0x1401a2e00
cmp byte [r13 + 0x1c], 0
je 0x1401a2dae
mov rcx, qword [r13 + 0x48]
lea r15, [rsp + 0x40]
mov r9d, 0x18
mov r8d, 0x10
mov rdx, r15
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r12d, eax
test eax, eax
je 0x1401a2d42
cmp eax, 0x20a
jne 0x1401a2b8a
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov rax, qword [r13 + 0x88]
mov rdx, qword [r13 + 0x90]
xor rax, qword [rsp + 0x40]
xor rdx, qword [rsp + 0x48]
or rdx, rax
je 0x1401a2da7
mov rax, qword [r13 + 0x70]
add dword [r13 + 0x84], 1
test rax, rax
je 0x1401a2d80
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x1401a2d70
mov rcx, qword [r13 + 0x120]
xor edx, edx
call dbg.sqlite3PcacheTruncate
cmp byte [r13 + 0x1b], 0
je 0x1401a2da7
mov rcx, qword [r13 + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
cmp byte [r13 + 0x10], 0
jne 0x1401a2e00
mov rax, qword [r13]
lea r14, [rsp + 0x3c]
mov rdx, qword [r13 + 0x130]
xor r8d, r8d
mov r9, r14
mov rcx, rax
call qword [rax + 0x38]
mov r12d, eax
test eax, eax
jne 0x1401a2deb
mov r12d, dword [rsp + 0x3c]
test r12d, r12d
jne 0x1401a2ee0
cmp byte [r13 + 9], 5
jne 0x1401a2deb
mov byte [r13 + 9], 0
mov rcx, qword [r13 + 0x128]
test rcx, rcx
jne 0x1401a2af5
jmp 0x1401a2b75
mov rcx, qword [r13 + 0x128]
lea r14, [rsp + 0x3c]
test rcx, rcx
jne 0x1401a2af5
jmp 0x1401a2baf
mov rdx, qword [r13 + 0xe0]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rcx, rbx
call qword [rbx + 0x38]
mov r12d, eax
test eax, eax
jne 0x1401a2b8a
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x1401a2cea
jmp 0x1401a2cbc
cmp byte [r13 + 9], 2
je 0x1401a2e91
mov rbx, qword [r13]
xor r8d, r8d
lea r9, [rsp + 0x3c]
mov rdx, qword [r13 + 0xe0]
mov rcx, rbx
call qword [rbx + 0x38]
test eax, eax
jne 0x1401a2fb5
cmp dword [rsp + 0x3c], 0
mov r8, qword [r13 + 0x50]
jne 0x1401a2fe8
cmp qword [r8], 0
jne 0x1401a2c5a
cmp byte [r13 + 8], 0
jne 0x1401a2cea
mov rcx, qword [r13 + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x1401a2ec3
cmp byte [r13 + 0x11], 0
jne 0x1401a2eb7
mov edx, 1
call qword [rax + 0x40]
cmp byte [r13 + 0x16], 5
je 0x1401a2ec3
mov byte [r13 + 0x16], 1
movzx eax, byte [r13 + 0x10]
mov byte [r13 + 0x17], al
test r12d, r12d
je 0x1401a2cea
jmp 0x1401a2c6d
lea r15, [rsp + 0x40]
mov rcx, r13
mov rdx, r15
call dbg.pagerPagecount
mov r12d, eax
test eax, eax
jne 0x1401a2deb
mov edx, dword [rsp + 0x40]
test edx, edx
jne 0x1401a2fd6
mov rcx, qword [r13]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1401a2deb
mov rdx, qword [r13 + 0x130]
xor r8d, r8d
call rax
mov r12d, eax
jmp 0x1401a2deb
xor edx, edx
cmp byte [r13 + 0x10], 0
mov rcx, r13
sete dl
call dbg.pager_playback
mov byte [r13 + 0x15], 0
mov r12d, eax
jmp 0x1401a2ecc
lea r14, [rsp + 0x3c]
mov rcx, r13
mov rdx, r14
call dbg.pagerPagecount
mov r12d, eax
test eax, eax
jne 0x1401a2b8a
cmp dword [rsp + 0x3c], 0
jne 0x1401a302f
test r15, r15
je 0x1401a30db
mov rcx, qword [r13 + 0x50]
mov byte [rsp + 0x40], 0
lea r15, [rsp + 0x40]
xor r9d, r9d
mov r8d, 1
mov rdx, r15
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r12d, eax
cmp eax, 0x20a
jne 0x1401a30c0
cmp byte [rsp + 0x40], 0
je 0x1401a2cea
jmp 0x1401a2c23
mov r12d, eax
mov rax, qword [r13 + 0x50]
cmp qword [rax], 0
jne 0x1401a2c5a
cmp byte [r13 + 8], 0
jne 0x1401a2c6d
jmp 0x1401a2e9c
xor edx, edx
mov rcx, r13
call sym.sqlite3PagerOpenWal
mov r12d, eax
jmp 0x1401a2deb
lea r15, [rsp + 0x40]
mov rdx, qword [r13 + 0xe0]
mov r9d, 0x802
mov rcx, rbx
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], r15
call qword [rbx + 0x28]
test eax, eax
jne 0x1401a2fb5
test byte [rsp + 0x40], 1
jne 0x1401a3162
mov rax, qword [r13 + 0x50]
cmp qword [rax], 0
jne 0x1401a2c5a
jmp 0x1401a2e91
test r15, r15
jne 0x1401a2f77
lea r15, [rsp + 0x40]
mov rcx, rbx
mov r8, qword [r13 + 0x50]
mov dword [rsp + 0x40], 0x801
mov qword [rsp + 0x20], r15
mov rdx, qword [r13 + 0xe0]
mov r9d, 0x801
call qword [rbx + 0x28]
mov ebx, eax
test eax, eax
je 0x1401a3078
mov r12d, eax
cmp eax, 0xe
jne 0x1401a2b8a
jmp 0x1401a2c23
mov rcx, qword [r13 + 0x50]
mov byte [rsp + 0x40], 0
xor r9d, r9d
mov rdx, r15
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r12d, eax
cmp eax, 0x20a
je 0x1401a31c9
mov r14, qword [r13 + 0x50]
mov ebx, r12d
mov rax, qword [r14]
test rax, rax
je 0x1401a30c0
mov rcx, r14
mov r12d, ebx
call qword [rax + 8]
mov qword [r14], 0
movzx eax, byte [rsp + 0x40]
test r12d, r12d
jne 0x1401a2b8a
test al, al
je 0x1401a2cea
jmp 0x1401a2c23
mov rax, qword [0x1403f05d0]
test rax, rax
je 0x1401a30e9
call rax
mov edx, 2
mov rcx, r13
call sym.pagerLockDb
test eax, eax
jne 0x1401a3119
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x1401a3112
mov rdx, qword [r13 + 0xe0]
xor r8d, r8d
mov rcx, rbx
call rax
cmp byte [r13 + 8], 0
je 0x1401a3130
mov rax, qword [0x1403f05d8]
test rax, rax
je 0x1401a2cea
call rax
jmp 0x1401a2cea
mov rcx, qword [r13 + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x1401a3157
cmp byte [r13 + 0x11], 0
jne 0x1401a314b
mov edx, 1
call qword [rax + 0x40]
cmp byte [r13 + 0x16], 5
je 0x1401a3157
mov byte [r13 + 0x16], 1
movzx eax, byte [r13 + 0x10]
mov byte [r13 + 0x17], al
jmp 0x1401a3119
lea rax, [0x14037c6ec]
mov r9d, 0xf3d3
lea r8, str.cannot_open_file
mov ecx, 0xe
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
call dbg.sqlite3_log
mov rbx, qword [r13 + 0x50]
mov rax, qword [rbx]
test rax, rax
je 0x1401a31b3
mov rcx, rbx
call qword [rax + 8]
mov rax, qword [r13 + 0x50]
mov qword [rbx], 0
cmp qword [rax], 0
jne 0x1401a2c5a
cmp byte [r13 + 8], 0
mov r12d, 0xe
jne 0x1401a2b8a
jmp 0x1401a2e9c
mov r14, qword [r13 + 0x50]
mov rax, qword [r14]
test rax, rax
jne 0x1401a30b0
movzx eax, byte [rsp + 0x40]
jmp 0x1401a30ce