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

Disassembly:
lea r12, [rsp - 0x50]
cmp r12, qword [r14 + 0x10]
jbe 0x5490c7
push rbp
mov rbp, rsp
sub rsp, 0xc8
movq qword [rsp + 0xc0], xmm15
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rbx
mov dword [rsp + 0xe8], ecx
mov byte [rsp + 0x33], 0
mov dword [rsp + 0x3c], 0
mov ebx, 0x30
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x60], rax
lea rcx, [sym.modernc.org_sqlite_lib._pager_playback.deferwrap1]
mov qword [rsp + 0x90], rcx
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0x98], rcx
lea rdx, [rsp + 0x90]
mov qword [rsp + 0xc0], rdx
mov byte [rsp + 0x33], 1
mov rdx, qword [rsp + 0xe0]
mov rsi, rdx
lea rdi, [rax + 0xc]
mov qword [rsp + 0x80], rdi
lea r9, [rax + 0x10]
mov qword [rsp + 0x78], r9
lea r10, [rax + 0x14]
mov qword [rsp + 0x70], r10
mov rdx, qword [rdx]
mov qword [rsp + 0x58], rdx
mov dword [rdi], 0
mov dword [r9], 1
mov r11, rsi
mov rsi, qword [rsi + 0xc8]
mov dword [r10], esi
mov rbx, qword [r11 + 0x50]
mov r10, rbx
mov r10, qword [r10]
mov r10, qword [r10 + 0x30]
mov r11, qword [r10]
mov r12, rax
mov rax, rcx
mov rcx, r12
mov rdx, r10
call r11
test eax, eax
je 0x548b06
mov r9, qword [rsp + 0x78]
xor ecx, ecx
jmp 0x548ba7
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rdx + 0x118]
mov qword [rsp + 0x50], rcx
mov rbx, qword [rdx + 0x50]
mov rdx, qword [rdx]
mov edi, dword [rdx + 8]
inc edi
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._readSuperJournal
test eax, eax
jne 0x548b67
mov rcx, qword [rsp + 0x50]
mov r9, rcx
cmp byte [r9], 0
je 0x548b67
mov rbx, qword [rsp + 0x58]
mov r8, rbx
mov rdx, qword [r8 + 0x38]
mov r8, qword [rdx]
nop
mov rax, qword [rsp + 0xd8]
xor edi, edi
mov rsi, qword [rsp + 0x78]
call r8
test eax, eax
je 0x548b72
mov r9, qword [rsp + 0x78]
jmp 0x548ba5
mov rdx, qword [rsp + 0x78]
mov r9, rdx
cmp dword [rdx], 0
je 0x548ba5
mov rbx, qword [rsp + 0xe0]
mov rdx, rbx
mov qword [rdx + 0x60], 0
mov eax, dword [rsp + 0xe8]
xor ecx, ecx
nop dword [rax + rax]
jmp 0x548df4
xor ecx, ecx
mov dword [rsp + 0x44], ecx
test eax, eax
jne 0x548bd7
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x70]
mov edi, 0xffffffff
call sym.modernc.org_sqlite_lib._sqlite3PagerSetPagesize
mov ecx, dword [rsp + 0x44]
mov r9, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xe0]
mov rdx, rbx
movzx esi, byte [rdx + 0x10]
mov byte [rdx + 0x17], sil
test eax, eax
je 0x548bf2
xor edx, edx
jmp 0x548c35
mov rcx, qword [rbx + 0x118]
add rcx, 4
mov qword [rsp + 0x50], rcx
mov rsi, qword [rbx + 0x50]
mov r8, qword [rbx]
mov edi, dword [r8 + 8]
inc edi
mov rax, qword [rsp + 0xd8]
mov rbx, rsi
call sym.modernc.org_sqlite_lib._readSuperJournal
mov ecx, dword [rsp + 0x44]
mov rbx, qword [rsp + 0xe0]
mov r9, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rdx
test eax, eax
jne 0x548c73
mov rsi, rbx
movzx esi, byte [rsi + 0x15]
cmp esi, 4
jge 0x548c4e
test esi, esi
jne 0x548c73
mov rax, qword [rsp + 0xd8]
xor ecx, ecx
call sym.modernc.org_sqlite_lib._sqlite3PagerSync
mov ecx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0xe0]
mov r9, qword [rsp + 0x78]
test eax, eax
jne 0x548ca8
movsx rdx, byte [rdx]
test edx, edx
setne dl
movzx ecx, dl
mov rax, qword [rsp + 0xd8]
xor edi, edi
call sym.modernc.org_sqlite_lib._pager_end_transaction
mov ecx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0xe0]
mov r9, qword [rsp + 0x78]
test eax, eax
jne 0x548cf8
cmp byte [rdx], 0
je 0x548cf8
cmp dword [r9], 0
je 0x548cf8
mov rbx, qword [rbx + 0x118]
mov rax, qword [rsp + 0xd8]
xor ecx, ecx
mov edi, 4
call sym.modernc.org_libc.Xmemset
mov rax, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x50]
call sym.modernc.org_sqlite_lib._pager_delsuper
mov ecx, dword [rsp + 0x44]
mov rbx, qword [rsp + 0xe0]
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0xe8]
test edx, edx
je 0x548dbc
test ecx, ecx
je 0x548dbc
movups xmmword [rsp + 0xa0], xmm15
movups xmmword [rsp + 0xb0], xmm15
mov dword [rsp + 0x4c], ecx
lea rdx, [0x00728b40]
mov qword [rsp + 0xa0], rdx
mov rax, qword [rsp + 0x60]
add rax, 0x20
lea rdx, [rsp + 0x4c]
mov qword [rsp + 0xa8], rdx
mov rsi, qword [rbx + 0xe0]
mov qword [rsp + 0x88], rsi
lea rsi, [0x00728cc0]
mov qword [rsp + 0xb0], rsi
lea rsi, [rsp + 0x88]
mov qword [rsp + 0xb8], rsi
lea rbx, [rsp + 0xa0]
mov ecx, 2
mov rdi, rcx
call sym.modernc.org_libc.VaList
mov rcx, qword [0x00a30e10]
add rcx, 0x1530
mov ebx, 0x21b
mov rdi, rax
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib.Xsqlite3_log
mov rbx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._setSectorSize
mov ecx, dword [rsp + 0x38]
mov dword [rsp + 0x3c], ecx
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rdx]
call rcx
mov eax, dword [rsp + 0x3c]
add rsp, 0xc8
pop rbp
ret
mov eax, edx
mov ecx, edi
mov dword [rsp + 0x44], ecx
mov dword [rsp + 0x40], eax
mov rsi, qword [rsp + 0x60]
mov rdx, rsi
mov rdi, qword [rdx]
lea rdx, [rsi + 8]
mov qword [rsp + 0x68], rdx
mov r8, qword [rsp + 0x80]
mov rax, qword [rsp + 0xd8]
mov ecx, dword [rsp + 0xe8]
mov rsi, rdx
call sym.modernc.org_sqlite_lib._readJournalHdr
test eax, eax
jne 0x548feb
mov rdx, qword [rsp + 0x68]
mov r9, rdx
cmp dword [rdx], 0xffffffff
jne 0x548e96
mov rsi, qword [rsp + 0x60]
mov r10, rsi
mov rax, qword [r10]
mov rbx, qword [rsp + 0xe0]
mov rcx, rbx
mov r10d, dword [rbx + 0xb8]
mov r11, qword [rbx + 0xc8]
sub rax, r10
cmp r11, 0xfffffffffffffff8
je 0x5490af
lea r10, [r11 + 8]
mov rbx, rdx
nop dword [rax]
cmp r10, 0xffffffffffffffff
jne 0x548e8d
neg rax
xor edx, edx
jmp 0x548e92
cqo
idiv r10
mov dword [rbx], eax
jmp 0x548ea3
mov rcx, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0x60]
mov rdx, r9
cmp dword [r9], 0
jne 0x548f0d
mov r10d, dword [rsp + 0xe8]
test r10d, r10d
jne 0x548f15
mov rbx, rcx
mov r11d, dword [rcx + 0xb8]
add r11, qword [rcx + 0x68]
mov r12, qword [rcx + 0x60]
cmp r12, r11
jne 0x548f08
mov r11, rsi
mov rax, qword [r11]
mov r11, qword [rcx + 0xc8]
sub rax, r12
cmp r11, 0xfffffffffffffff8
je 0x5490aa
add r11, 8
mov rcx, rdx
cmp r11, 0xffffffffffffffff
jne 0x548efe
neg rax
xor edx, edx
jmp 0x548f03
cqo
idiv r11
mov dword [r9], eax
jmp 0x548f20
mov rcx, rbx
jmp 0x548f15
mov r10d, dword [rsp + 0xe8]
mov rcx, rdx
mov rbx, qword [rsp + 0xe0]
mov rdx, rbx
mov r9d, dword [rdx + 0xb8]
cmp qword [rdx + 0x60], r9
jne 0x548f92
mov rdx, qword [rsp + 0x80]
mov ecx, dword [rdx]
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._pager_truncate
test eax, eax
jne 0x548fdd
mov rbx, qword [rsp + 0xe0]
mov rcx, rbx
mov r8, qword [rsp + 0x80]
mov rdx, r8
mov edx, dword [rdx]
mov dword [rbx + 0x20], edx
mov rbx, rcx
mov rdx, r8
mov edx, dword [rdx]
cmp dword [rcx + 0xbc], edx
jae 0x548f80
mov dword [rcx + 0xbc], edx
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov r10d, dword [rsp + 0xe8]
xor eax, eax
mov edx, dword [rsp + 0x40]
mov edi, dword [rsp + 0x44]
nop dword [rax]
jmp 0x54902f
cmp eax, 0x65
jne 0x549085
mov rbx, qword [rsp + 0xe0]
mov r9, rbx
mov rsi, qword [rsp + 0x60]
mov r10, rsi
mov r10, qword [r10]
mov qword [r9 + 0x60], r10
mov edi, dword [rsp + 0x48]
mov r10d, dword [rsp + 0xe8]
mov edx, dword [rsp + 0x40]
jmp 0x548df0
mov r9, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x44]
jmp 0x548ba7
cmp eax, 0x65
mov ecx, 0
cmove eax, ecx
mov r9, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x44]
nop
jmp 0x548ba7
mov edi, dword [rsp + 0x48]
inc edi
mov eax, dword [rsp + 0x34]
inc eax
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0x60]
mov r10d, dword [rsp + 0xe8]
mov edx, dword [rsp + 0x40]
cmp dword [rcx], eax
jbe 0x548df0
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x34], eax
nop
test edx, edx
je 0x54905b
mov rax, qword [rsp + 0xd8]
call sym.modernc.org_sqlite_lib._pager_reset
mov rbx, qword [rsp + 0xe0]
xor edx, edx
mov dword [rsp + 0x40], edx
lea rcx, [rbx + 0x60]
mov rax, qword [rsp + 0xd8]
xor edi, edi
mov esi, 1
xor r8d, r8d
call sym.modernc.org_sqlite_lib._pager_playback_one_page
test eax, eax
je 0x549005
nop
jmp 0x548fa5
cmp eax, 0x20a
jne 0x54909c
mov r9, qword [rsp + 0x78]
xor eax, eax
mov ecx, dword [rsp + 0x48]
jmp 0x548ba7
mov r9, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x48]
jmp 0x548ba7
call sym.runtime.panicdivide
call sym.runtime.panicdivide
nop
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x3c]
add rsp, 0xc8
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], ecx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov ecx, dword [rsp + 0x18]
jmp sym.modernc.org_sqlite_lib._pager_playback