Function at 0x1400b9320
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 0x1400b9400
mov dword [rsp + 0x3c], 0
call sym.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 sym.walTryBeginRead
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400b9368
or eax, dword [rsp + 0x3c]
je 0x1400b9406
mov rax, qword [rsi + 0x70]
add dword [rsi + 0x84], 1
test rax, rax
je 0x1400b93b0
nop word [rax + rax]
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x1400b93a0
mov rcx, qword [rsi + 0x120]
xor edx, edx
call sym.sqlite3PcacheTruncate
cmp byte [rsi + 0x1b], 0
je 0x1400b93d6
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 0x1400b9450
test ebx, ebx
je 0x1400b9430
mov rcx, rsi
call sym.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 0x1400b9460
movabs rax, 0xff00000000ff
and rax, qword [rsi + 0x10]
jne 0x1400b9430
lea rdx, [rsi + 0x20]
mov rcx, rsi
call sym.pagerPagecount
mov ebx, eax
jmp 0x1400b93e6
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 0x1400b93ea
jmp 0x1400b9416
mov edx, 1
mov rcx, rsi
call sym.pager_wait_on_lock
mov ebx, eax
test eax, eax
jne 0x1400b93ea
cmp byte [rsi + 0x16], 1
jbe 0x1400b9509
cmp byte [rsi + 0x12], 0
mov ebx, 0x308
jne 0x1400b93ea
mov edx, 4
mov rcx, rsi
call sym.pagerLockDb
mov ebx, eax
test eax, eax
jne 0x1400b93ea
mov rax, qword [rsi + 0x50]
cmp qword [rax], 0
je 0x1400b96c0
mov rcx, rsi
call sym.pagerSyncHotJournal
mov ebx, eax
test eax, eax
jne 0x1400b94de
xor edx, edx
cmp byte [rsi + 0x10], 0
mov rcx, rsi
sete dl
call sym.pager_playback
mov byte [rsi + 0x15], 0
mov ebx, eax
test ebx, ebx
je 0x1400b9551
movzx eax, bl
cmp bl, 0xd
je 0x1400b94ef
cmp eax, 0xa
jne 0x1400b93ea
lea rax, [sym.getPageError]
mov dword [rsi + 0x30], ebx
mov byte [rsi + 0x15], 6
mov qword [rsi + 0x110], rax
jmp 0x1400b93ea
mov rax, qword [rsi + 0x50]
mov r12, qword [rsi]
mov dword [rsp + 0x34], 1
mov rdi, qword [rax]
test rdi, rdi
je 0x1400b9687
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 0x1400b93ea
mov ebx, dword [rsp + 0x38]
test ebx, ebx
je 0x1400b9799
cmp byte [rsi + 0x10], 0
jne 0x1400b9657
cmp byte [rsi + 0x1c], 0
je 0x1400b9606
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 0x1400b959d
cmp eax, 0x20a
jne 0x1400b93ea
pxor xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov rdx, qword [rsi + 0x88]
mov rax, qword [rsi + 0x90]
xor rdx, qword [rsp + 0x40]
xor rax, qword [rsp + 0x48]
or rax, rdx
je 0x1400b9600
mov rax, qword [rsi + 0x70]
add dword [rsi + 0x84], 1
test rax, rax
je 0x1400b95da
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x1400b95ca
mov rcx, qword [rsi + 0x120]
xor edx, edx
call sym.sqlite3PcacheTruncate
cmp byte [rsi + 0x1b], 0
je 0x1400b9600
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 0x1400b9657
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 0x1400b9676
mov edx, dword [rsp + 0x3c]
test edx, edx
jne 0x1400b9740
cmp byte [rsi + 9], 5
mov rcx, qword [rsi + 0x128]
je 0x1400b9810
test rcx, rcx
je 0x1400b9406
lea rdi, [rsp + 0x40]
jmp 0x1400b9347
mov rcx, qword [rsi + 0x128]
test rcx, rcx
je 0x1400b9406
lea rbp, [rsp + 0x3c]
lea rdi, [rsp + 0x40]
jmp 0x1400b9347
mov rcx, qword [rsi + 0x128]
test rcx, rcx
jne 0x1400b964d
jmp 0x1400b93ea
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 0x1400b93ea
mov ebp, dword [rsp + 0x34]
test ebp, ebp
je 0x1400b9551
jmp 0x1400b9524
cmp byte [rsi + 9], 2
je 0x1400b9702
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 0x1400b9827
mov ebx, dword [rsp + 0x3c]
mov r8, qword [rsi + 0x50]
test ebx, ebx
jne 0x1400b9870
cmp qword [r8], 0
jne 0x1400b94b5
cmp byte [rsi + 8], 0
jne 0x1400b9551
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x1400b9990
cmp byte [rsi + 0x11], 0
jne 0x1400b972a
mov edx, 1
call qword [rax + 0x40]
cmp byte [rsi + 0x16], 5
je 0x1400b9734
mov byte [rsi + 0x16], 1
movzx eax, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
jmp 0x1400b94da
lea rdi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call sym.pagerPagecount
mov ebx, eax
test eax, eax
jne 0x1400b98cc
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1400b98bb
mov rcx, qword [rsi]
mov rdx, qword [rsi + 0x130]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1400b985b
xor r8d, r8d
call rax
mov ebx, eax
mov rcx, qword [rsi + 0x128]
test rcx, rcx
jne 0x1400b9347
jmp 0x1400b93d6
lea rbp, [rsp + 0x3c]
mov rcx, rsi
mov rdx, rbp
call sym.pagerPagecount
mov ebx, eax
test eax, eax
jne 0x1400b93ea
cmp dword [rsp + 0x3c], 0
jne 0x1400b98e1
test rdi, rdi
je 0x1400b999c
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
jne 0x1400b9a31
xor eax, eax
cmp byte [rsp + 0x40], 0
setne al
test eax, eax
jne 0x1400b9481
jmp 0x1400b9551
mov byte [rsi + 9], 0
lea rdi, [rsp + 0x40]
test rcx, rcx
jne 0x1400b9347
jmp 0x1400b9406
mov rax, qword [rsi + 0x50]
cmp qword [rax], 0
jne 0x1400b94b5
cmp byte [rsi + 8], 0
jne 0x1400b94de
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
test rax, rax
jne 0x1400b971c
movzx eax, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
jmp 0x1400b94de
mov rcx, qword [rsi + 0x128]
test rcx, rcx
jne 0x1400b9347
jmp 0x1400b9406
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 0x1400b9827
mov ebx, dword [rsp + 0x40]
and ebx, 1
jne 0x1400b992d
mov rax, qword [rsi + 0x50]
cmp qword [rax], 0
jne 0x1400b94b5
jmp 0x1400b9702
xor edx, edx
mov rcx, rsi
call sym.sqlite3PagerOpenWal
mov ebx, eax
jmp 0x1400b9784
mov rcx, qword [rsi + 0x128]
test rcx, rcx
jne 0x1400b9347
jmp 0x1400b93ea
test rdi, rdi
jne 0x1400b97c7
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 0x1400b99f5
cmp eax, 0xe
jne 0x1400b93ea
jmp 0x1400b9481
lea rax, [0x14015efa4]
mov r9d, 0xf249
lea r8, str.cannot_open_file
mov ecx, 0xe
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
call sym.sqlite3_log
mov rbx, qword [rsi + 0x50]
mov rax, qword [rbx]
test rax, rax
je 0x1400b997c
mov rcx, rbx
call qword [rax + 8]
mov rax, qword [rsi + 0x50]
xor ecx, ecx
mov qword [rbx], rcx
cmp qword [rax], 0
jne 0x1400b94b5
cmp byte [rsi + 8], 0
je 0x1400b9a4b
mov ebx, 0xe
jmp 0x1400b93ea
movzx eax, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
jmp 0x1400b9551
mov rax, qword [0x14018a510]
test rax, rax
je 0x1400b99aa
call rax
mov edx, 2
mov rcx, rsi
call sym.pagerLockDb
test eax, eax
jne 0x1400b99de
mov rax, qword [r12 + 0x30]
test rax, rax
je 0x1400b99d4
mov rdx, qword [rsi + 0xe0]
xor r8d, r8d
mov rcx, r12
call rax
cmp byte [rsi + 8], 0
je 0x1400b9a6c
mov rax, qword [0x14018a518]
test rax, rax
je 0x1400b9551
call rax
jmp 0x1400b9551
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 ebx, eax
cmp eax, 0x20a
je 0x1400b9a7e
mov rdi, qword [rsi + 0x50]
mov rax, qword [rdi]
test rax, rax
je 0x1400b9a31
mov rcx, rdi
call qword [rax + 8]
xor r10d, r10d
mov qword [rdi], r10
movzx eax, byte [rsp + 0x40]
test ebx, ebx
jne 0x1400b93ea
test al, al
jne 0x1400b9481
jmp 0x1400b9551
mov rcx, qword [rsi + 0x48]
mov ebx, 0xe
mov rax, qword [rcx]
test rax, rax
jne 0x1400b971c
movzx eax, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
jmp 0x1400b9986
mov edx, 1
mov rcx, rsi
call sym.pagerUnlockDb
jmp 0x1400b99de
mov rbx, qword [rsi + 0x50]
mov rax, qword [rbx]
test rax, rax
je 0x1400b97f4
mov rcx, rbx
call qword [rax + 8]
xor r11d, r11d
mov qword [rbx], r11
movzx eax, byte [rsp + 0x40]
jmp 0x1400b9a3e