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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rcx, qword [rcx + 0x128]
lea rbp, [rsp + 0x3c]
lea rdi, [rsp + 0x40]
test rcx, rcx
je 0x1401b9230
mov dword [rsp + 0x3c], 0
call dbg.sqlite3WalEndReadTransaction
mov dword [rsp + 0x40], 0
mov r12, qword [rsi + 0x128]
nop dword [rax + rax]
mov r9, rdi
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call dbg.walTryBeginRead
mov ebx, eax
cmp eax, 0xffffffff
je 0x1401b9198
or eax, dword [rsp + 0x3c]
je 0x1401b9236
mov rax, qword [rsi + 0x70]
add dword [rsi + 0x84], 1
test rax, rax
je 0x1401b91e0
nop word [rax + rax]
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x1401b91d0
mov rcx, qword [rsi + 0x120]
xor edx, edx
call dbg.sqlite3PcacheTruncate
cmp byte [rsi + 0x1b], 0
je 0x1401b9206
mov rcx, qword [rsi + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
movabs rax, 0xff00000000ff
and rax, qword [rsi + 0x10]
je 0x1401b9280
test ebx, ebx
je 0x1401b9260
mov rcx, rsi
call dbg.pager_unlock
mov eax, ebx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp byte [rsi + 0x15], 0
je 0x1401b9290
movabs rax, 0xff00000000ff
and rax, qword [rsi + 0x10]
jne 0x1401b9260
lea rdx, [rsi + 0x20]
mov rcx, rsi
call dbg.pagerPagecount
mov ebx, eax
jmp 0x1401b9216
xor ebx, ebx
mov byte [rsi + 0x15], 1
mov eax, ebx
mov byte [rsi + 0x1c], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
test ebx, ebx
jne 0x1401b921a
jmp 0x1401b9246
mov edx, 1
mov rcx, rsi
call dbg.pager_wait_on_lock
mov ebx, eax
test eax, eax
jne 0x1401b921a
cmp byte [rsi + 0x16], 1
jbe 0x1401b9339
cmp byte [rsi + 0x12], 0
mov ebx, 0x308
jne 0x1401b921a
mov edx, 4
mov rcx, rsi
call sym.pagerLockDb
mov ebx, eax
test eax, eax
jne 0x1401b921a
mov rax, qword [rsi + 0x50]
cmp qword [rax], 0
je 0x1401b94f0
mov rcx, rsi
call dbg.pagerSyncHotJournal
mov ebx, eax
test eax, eax
jne 0x1401b930e
xor edx, edx
cmp byte [rsi + 0x10], 0
mov rcx, rsi
sete dl
call dbg.pager_playback
mov byte [rsi + 0x15], 0
mov ebx, eax
test ebx, ebx
je 0x1401b9383
movzx eax, bl
cmp bl, 0xd
je 0x1401b931f
cmp eax, 0xa
jne 0x1401b921a
lea rax, [dbg.getPageError]
mov dword [rsi + 0x30], ebx
mov byte [rsi + 0x15], 6
mov qword [rsi + 0x110], rax
jmp 0x1401b921a
mov rax, qword [rsi + 0x50]
mov r12, qword [rsi]
mov dword [rsp + 0x34], 1
mov rdi, qword [rax]
test rdi, rdi
je 0x1401b94b9
mov rcx, qword [rsi + 0x48]
mov dword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
jne 0x1401b921a
mov r11d, dword [rsp + 0x38]
test r11d, r11d
je 0x1401b95c5
cmp byte [rsi + 0x10], 0
jne 0x1401b9489
cmp byte [rsi + 0x1c], 0
je 0x1401b9438
mov rcx, qword [rsi + 0x48]
lea rdi, [rsp + 0x40]
mov r9d, 0x18
mov r8d, 0x10
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ebx, eax
test eax, eax
je 0x1401b93cf
cmp eax, 0x20a
jne 0x1401b921a
pxor xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov rax, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
xor rax, qword [rsp + 0x40]
xor rdx, qword [rsp + 0x48]
or rax, rdx
je 0x1401b9432
mov rax, qword [rsi + 0x70]
add dword [rsi + 0x84], 1
test rax, rax
je 0x1401b940c
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x1401b93fc
mov rcx, qword [rsi + 0x120]
xor edx, edx
call dbg.sqlite3PcacheTruncate
cmp byte [rsi + 0x1b], 0
je 0x1401b9432
mov rcx, qword [rsi + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
cmp byte [rsi + 0x10], 0
jne 0x1401b9489
mov rax, qword [rsi]
lea rbp, [rsp + 0x3c]
mov rdx, qword [rsi + 0x130]
xor r8d, r8d
mov r9, rbp
mov rcx, rax
call qword [rax + 0x38]
mov ebx, eax
test eax, eax
jne 0x1401b94a8
mov edx, dword [rsp + 0x3c]
test edx, edx
jne 0x1401b9570
cmp byte [rsi + 9], 5
mov rcx, qword [rsi + 0x128]
je 0x1401b963f
test rcx, rcx
je 0x1401b9236
lea rdi, [rsp + 0x40]
jmp 0x1401b9177
mov rcx, qword [rsi + 0x128]
test rcx, rcx
je 0x1401b9236
lea rbp, [rsp + 0x3c]
lea rdi, [rsp + 0x40]
jmp 0x1401b9177
mov rcx, qword [rsi + 0x128]
test rcx, rcx
jne 0x1401b947f
jmp 0x1401b921a
mov rdx, qword [rsi + 0xe0]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rcx, r12
call qword [r12 + 0x38]
mov ebx, eax
test eax, eax
jne 0x1401b921a
mov ebx, dword [rsp + 0x34]
test ebx, ebx
je 0x1401b9383
jmp 0x1401b9354
cmp byte [rsi + 9], 2
je 0x1401b9532
mov rbp, qword [rsi]
mov rdx, qword [rsi + 0xe0]
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rcx, rbp
call qword [rbp + 0x38]
mov ebx, eax
test eax, eax
jne 0x1401b9656
mov ebx, dword [rsp + 0x3c]
mov r8, qword [rsi + 0x50]
test ebx, ebx
jne 0x1401b968a
cmp qword [r8], 0
jne 0x1401b92e5
cmp byte [rsi + 8], 0
jne 0x1401b9383
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x1401b97c6
cmp byte [rsi + 0x11], 0
jne 0x1401b955a
mov edx, 1
call qword [rax + 0x40]
cmp byte [rsi + 0x16], 5
je 0x1401b9564
mov byte [rsi + 0x16], 1
movzx eax, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
jmp 0x1401b930a
lea rdi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call dbg.pagerPagecount
mov ebx, eax
test eax, eax
jne 0x1401b96e6
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1401b96d5
mov rcx, qword [rsi]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1401b95b0
mov rdx, qword [rsi + 0x130]
xor r8d, r8d
call rax
mov ebx, eax
mov rcx, qword [rsi + 0x128]
test rcx, rcx
jne 0x1401b9177
jmp 0x1401b9206
lea rbp, [rsp + 0x3c]
mov rcx, rsi
mov rdx, rbp
call dbg.pagerPagecount
mov ebx, eax
test eax, eax
jne 0x1401b921a
cmp dword [rsp + 0x3c], 0
jne 0x1401b96fb
test rdi, rdi
je 0x1401b97e1
mov rcx, qword [rsi + 0x50]
mov byte [rsp + 0x40], 0
lea rdi, [rsp + 0x40]
xor r9d, r9d
mov r8d, 1
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ebx, eax
cmp eax, 0x20a
je 0x1401b97d2
xor eax, eax
cmp byte [rsp + 0x40], 0
setne al
test ebx, ebx
jne 0x1401b921a
test eax, eax
je 0x1401b9383
jmp 0x1401b92b1
mov byte [rsi + 9], 0
lea rdi, [rsp + 0x40]
test rcx, rcx
jne 0x1401b9177
jmp 0x1401b9236
mov rax, qword [rsi + 0x50]
cmp qword [rax], 0
jne 0x1401b92e5
cmp byte [rsi + 8], 0
jne 0x1401b930e
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
test rax, rax
jne 0x1401b954c
movzx eax, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
jmp 0x1401b930e
xor r9d, r9d
lea rdi, [rsp + 0x40]
mov rdx, qword [rsi + 0xe0]
mov rcx, rbp
mov dword [rsp + 0x40], r9d
mov r9d, 0x802
mov qword [rsp + 0x20], rdi
call qword [rbp + 0x28]
mov ebx, eax
test eax, eax
jne 0x1401b9656
mov ebx, dword [rsp + 0x40]
and ebx, 1
jne 0x1401b9747
mov rax, qword [rsi + 0x50]
cmp qword [rax], 0
jne 0x1401b92e5
jmp 0x1401b9532
xor edx, edx
mov rcx, rsi
call dbg.sqlite3PagerOpenWal
mov ebx, eax
jmp 0x1401b95b0
mov rcx, qword [rsi + 0x128]
test rcx, rcx
jne 0x1401b9177
jmp 0x1401b921a
test rdi, rdi
jne 0x1401b95f3
lea rdi, [rsp + 0x40]
mov rdx, qword [rsi + 0xe0]
mov r9d, 0x801
mov rcx, r12
mov qword [rsp + 0x20], rdi
mov r8, qword [rsi + 0x50]
mov dword [rsp + 0x40], 0x801
call qword [r12 + 0x28]
mov ebx, eax
test eax, eax
je 0x1401b9836
cmp eax, 0xe
jne 0x1401b921a
jmp 0x1401b92b1
lea rax, [0x14038c8ac]
mov r9d, 0xf239
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 [rsi + 0x50]
mov rax, qword [rbx]
test rax, rax
je 0x1401b9796
mov rcx, rbx
call qword [rax + 8]
mov rax, qword [rsi + 0x50]
xor ecx, ecx
mov qword [rbx], rcx
cmp qword [rax], 0
jne 0x1401b92e5
cmp byte [rsi + 8], 0
mov ebx, 0xe
jne 0x1401b921a
mov rcx, qword [rsi + 0x48]
mov ebx, 0xe
mov rax, qword [rcx]
test rax, rax
jne 0x1401b954c
movzx eax, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
jmp 0x1401b921a
movzx eax, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
jmp 0x1401b9383
xor eax, eax
cmp byte [rsp + 0x40], 0
setne al
jmp 0x1401b9632
mov rax, qword [0x140440810]
test rax, rax
je 0x1401b97ef
call rax
mov edx, 2
mov rcx, rsi
call sym.pagerLockDb
test eax, eax
jne 0x1401b981f
mov rax, qword [r12 + 0x30]
test rax, rax
je 0x1401b9819
mov rdx, qword [rsi + 0xe0]
xor r8d, r8d
mov rcx, r12
call rax
cmp byte [rsi + 8], 0
je 0x1401b987a
mov rax, qword [0x140440818]
test rax, rax
je 0x1401b9383
call rax
jmp 0x1401b9383
mov rcx, qword [rsi + 0x50]
mov byte [rsp + 0x40], 0
xor r9d, r9d
mov rdx, rdi
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdi, qword [rsi + 0x50]
cmp eax, 0x20a
cmovne ebx, eax
mov rax, qword [rdi]
test rax, rax
je 0x1401b9620
mov rcx, rdi
call qword [rax + 8]
xor r10d, r10d
mov qword [rdi], r10
jmp 0x1401b9620
mov edx, 1
mov rcx, rsi
call sym.pagerUnlockDb
jmp 0x1401b981f