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

Disassembly:
lea r12, [rsp - 0xc8]
cmp r12, qword [r14 + 0x10]
jbe 0x582312
push rbp
mov rbp, rsp
sub rsp, 0x140
movq qword [rsp + 0x138], xmm15
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x158], rbx
mov qword [rsp + 0x160], rcx
mov byte [rsp + 0x33], 0
mov dword [rsp + 0x40], 0
mov ebx, 0x30
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x88], rax
lea rcx, [sym.modernc.org_sqlite_lib._vdbeCommit.deferwrap1]
mov qword [rsp + 0xc8], rcx
mov rcx, qword [rsp + 0x150]
mov qword [rsp + 0xd0], rcx
lea rdx, [rsp + 0xc8]
mov qword [rsp + 0x138], rdx
mov byte [rsp + 0x33], 1
mov rbx, qword [rsp + 0x158]
mov rax, rcx
mov rcx, qword [rsp + 0x160]
call sym.modernc.org_sqlite_lib._sqlite3VtabSync
mov rcx, qword [rsp + 0x158]
xor edx, edx
xor ebx, ebx
xor esi, esi
jmp 0x5815e0
inc edx
mov rcx, r8
nop
test eax, eax
jne 0x58181f
mov dword [rsp + 0x44], esi
mov r8, rcx
cmp dword [rcx + 0x28], edx
jle 0x581756
mov r9, qword [rcx + 0x20]
movsxd r10, edx
shl r10, 5
add r9, r10
mov r9, qword [r9 + 8]
test r9, r9
je 0x581619
mov r11, r9
movzx r9d, byte [r9 + 0x10]
jmp 0x581620
mov r11, r9
xor r9d, r9d
nop
cmp r9d, 2
je 0x58162a
xor eax, eax
jmp 0x5815da
mov qword [rsp + 0xa8], r11
mov dword [rsp + 0x4c], edx
mov rbx, r11
nop
cmp byte [r11 + 0x11], 0
nop
je 0x581685
inc dword [r11 + 0x14]
mov rdi, rbx
cmp byte [rdi + 0x12], 0
jne 0x581685
mov qword [rsp + 0xa0], r10
mov rax, qword [rsp + 0x150]
nop
call sym.modernc.org_sqlite_lib._btreeLockCarefully
mov edx, dword [rsp + 0x4c]
mov rbx, qword [rsp + 0xa8]
mov esi, dword [rsp + 0x44]
mov r8, qword [rsp + 0x158]
mov r10, qword [rsp + 0xa0]
mov rdi, r8
mov r8, qword [r8 + 0x20]
add r8, r10
movzx r8d, byte [r8 + 0x10]
mov r9, rbx
mov r10, qword [rbx + 8]
nop
mov rbx, qword [r10]
nop
cmp r8d, 1
je 0x5816f1
mov r8, rbx
movzx r10d, byte [r8 + 9]
movsxd rax, r10d
cmp rax, 6
jae 0x5822f4
lea rcx, [0x009b87fc]
movzx r10d, byte [rcx + rax]
test r10b, r10b
je 0x5816f8
cmp byte [r8 + 0x10], 0
je 0x5816db
mov r8d, 1
jmp 0x5816e4
cmp byte [r8 + 0x14], 0
setne r8b
movzx r8d, r8b
test r8d, r8d
jne 0x5816f8
inc esi
jmp 0x5816f8
lea rcx, [0x009b87fc]
mov dword [rsp + 0x44], esi
mov rax, qword [rsp + 0x150]
call sym.modernc.org_sqlite_lib._sqlite3PagerExclusiveLock
mov rbx, qword [rsp + 0xa8]
mov rcx, rbx
nop
cmp byte [rcx + 0x11], 0
je 0x58173c
dec dword [rcx + 0x14]
mov rsi, rbx
cmp dword [rsi + 0x14], 0
jne 0x58173c
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x150]
call sym.modernc.org_sqlite_lib._unlockBtreeMutex
mov eax, dword [rsp + 0x38]
mov edx, dword [rsp + 0x4c]
mov r8, qword [rsp + 0x158]
mov ebx, 1
mov esi, dword [rsp + 0x44]
jmp 0x5815da
test eax, eax
jne 0x58181f
nop
test ebx, ebx
je 0x5817c9
cmp qword [rcx + 0x120], 0
jne 0x581772
xor eax, eax
jmp 0x5817cb
mov rcx, r8
mov rdx, qword [r8 + 0x120]
mov rsi, qword [rdx]
mov rbx, qword [rcx + 0x118]
mov rax, qword [rsp + 0x150]
call rsi
test eax, eax
jne 0x5817a2
mov esi, dword [rsp + 0x44]
mov r8, qword [rsp + 0x158]
jmp 0x5817cb
mov dword [rsp + 0x40], 0x213
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x138]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x40]
add rsp, 0x140
pop rbp
ret
xor eax, eax
mov rbx, r8
mov r9, qword [r8 + 0x20]
mov r9, qword [r9 + 8]
mov r9, qword [r9 + 8]
mov r9, qword [r9]
movzx r10d, byte [r9 + 0x13]
test r10b, r10b
jne 0x5817fe
lea r11, [0x009bd680]
cmp qword [r9], r11
sete r11b
movzx r11d, r11b
test r11d, r11d
je 0x58180b
lea r11, [0x00a30dc8]
add r11, 4
jmp 0x581812
mov r11, qword [r9 + 0xd8]
test r11, r11
jne 0x58181b
xor ecx, ecx
jmp 0x581859
xor ecx, ecx
jmp 0x58184a
mov dword [rsp + 0x40], eax
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x138]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x40]
add rsp, 0x140
pop rbp
ret
lea r11, [r12 + 1]
inc rcx
mov r12, r11
cmp byte [r11], 0
jne 0x581842
and ecx, 0x3fffffff
test ecx, ecx
je 0x581865
nop dword [rax]
cmp esi, 1
jg 0x58186c
xor ecx, ecx
jmp 0x58222d
mov rdx, qword [r8]
test r10b, r10b
jne 0x58188a
lea rsi, [0x009bd680]
cmp qword [r9], rsi
sete sil
movzx esi, sil
test esi, esi
je 0x581897
lea rsi, [0x00a30dc8]
add rsi, 4
jmp 0x58189e
mov rsi, qword [r9 + 0xd8]
mov qword [rsp + 0x70], rdx
mov dword [rsp + 0x5c], eax
mov r8, qword [rsp + 0x88]
mov r9, r8
mov qword [r8], 0
test rsi, rsi
je 0x5818c8
mov rcx, rsi
xor edi, edi
jmp 0x582213
xor ecx, ecx
mov dword [rsp + 0x48], ecx
movups xmmword [rsp + 0x108], xmm15
movups xmmword [rsp + 0x118], xmm15
movups xmmword [rsp + 0x128], xmm15
lea rdx, [0x00728c40]
mov qword [rsp + 0x108], rdx
lea r8, [0x007caab8]
mov qword [rsp + 0x110], r8
mov qword [rsp + 0xc0], rsi
lea rsi, [0x00728cc0]
mov qword [rsp + 0x118], rsi
lea rax, [r9 + 0x18]
mov qword [rsp + 0xa8], rax
lea r8, [rsp + 0xc0]
mov qword [rsp + 0x120], r8
mov qword [rsp + 0x128], rdx
lea rdx, [0x007caab8]
mov qword [rsp + 0x130], rdx
lea rbx, [rsp + 0x108]
mov edi, 3
mov rcx, rdi
call sym.modernc.org_libc.VaList
mov rcx, qword [0x00a30e10]
add rcx, 0x1990
mov rbx, qword [rsp + 0x158]
mov rdi, rax
mov rax, qword [rsp + 0x150]
call sym.modernc.org_sqlite_lib._sqlite3MPrintf
test rax, rax
je 0x5819c2
mov qword [rsp + 0x68], rax
lea rcx, [rax + 4]
mov qword [rsp + 0xa0], rcx
mov r9, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x88]
mov r10d, dword [rsp + 0x5c]
mov edx, 1
xor ebx, ebx
nop
jmp 0x581a15
mov dword [rsp + 0x40], 7
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x138]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x40]
add rsp, 0x140
pop rbp
ret
mov ebx, dword [rsp + 0x34]
inc ebx
mov r11, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xa0]
mov edx, r9d
mov r10d, eax
mov rax, qword [rsp + 0x68]
mov r9, r11
test dl, dl
je 0x581cc7
mov dword [rsp + 0x34], ebx
test ebx, ebx
je 0x581acc
cmp ebx, 0x64
jg 0x581c0f
cmp ebx, 1
jne 0x581acc
movups xmmword [rsp + 0xf8], xmm15
mov qword [rsp + 0xb0], rcx
lea rdx, [0x00728cc0]
mov qword [rsp + 0xf8], rdx
lea rsi, [rsp + 0xb0]
mov qword [rsp + 0x100], rsi
mov rax, qword [rsp + 0xa8]
lea rbx, [rsp + 0xf8]
mov edi, 1
mov rcx, rdi
call sym.modernc.org_libc.VaList
mov rcx, qword [0x00a30e10]
add rcx, 0x19aa
mov ebx, 0xd
mov rdi, rax
mov rax, qword [rsp + 0x150]
call sym.modernc.org_sqlite_lib.Xsqlite3_log
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
mov ebx, dword [rsp + 0x34]
mov rdi, qword [rsp + 0x88]
mov r9, qword [rsp + 0x150]
lea rcx, [rdi + 0xc]
mov qword [rsp + 0x98], rcx
mov rax, r9
mov ebx, 4
call sym.modernc.org_sqlite_lib.Xsqlite3_randomness
mov edx, dword [rsp + 0x48]
movsxd rsi, edx
mov rdi, qword [rsp + 0x68]
lea rsi, [rdi + rsi]
lea rsi, [rsi + 4]
mov qword [rsp + 0x90], rsi
movups xmmword [rsp + 0xd8], xmm15
movups xmmword [rsp + 0xe8], xmm15
mov r8, qword [rsp + 0x98]
mov r9, r8
mov r8d, dword [r8]
shr r8d, 8
and r8d, 0xffffff
mov dword [rsp + 0x64], r8d
lea r8, [0x00728b80]
mov qword [rsp + 0xd8], r8
lea r10, [rsp + 0x64]
mov qword [rsp + 0xe0], r10
movzx r9d, byte [r9]
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0xe8], r8
lea r9, [rsp + 0x60]
mov qword [rsp + 0xf0], r9
mov rax, qword [rsp + 0xa8]
lea rbx, [rsp + 0xd8]
mov ecx, 2
mov rdi, rcx
call sym.modernc.org_libc.VaList
mov rdi, qword [0x00a30e10]
add rdi, 0x19b9
mov ebx, 0xd
mov rcx, qword [rsp + 0x90]
mov rsi, rax
mov rax, qword [rsp + 0x150]
call sym.modernc.org_sqlite_lib.Xsqlite3_snprintf
mov rsi, qword [rsp + 0x88]
lea rdx, [rsi + 8]
mov qword [rsp + 0x78], rdx
mov rbx, qword [rsp + 0x70]
mov rdi, rbx
mov rdi, qword [rdi + 0x38]
mov r8, qword [rdi]
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0xa0]
mov r9, rdi
xor edi, edi
mov rsi, rdx
mov rdx, r9
call r8
test eax, eax
jne 0x581c07
mov r9, qword [rsp + 0x78]
cmp dword [r9], 0
setne r9b
jmp 0x5819e9
xor r9d, r9d
jmp 0x5819e9
mov dword [rsp + 0x58], r10d
movups xmmword [rsp + 0xf8], xmm15
mov qword [rsp + 0xb8], rcx
lea rdx, [0x00728cc0]
mov qword [rsp + 0xf8], rdx
lea rdx, [rsp + 0xb8]
mov qword [rsp + 0x100], rdx
mov rax, qword [rsp + 0xa8]
lea rbx, [rsp + 0xf8]
mov edi, 1
mov rcx, rdi
nop dword [rax]
call sym.modernc.org_libc.VaList
mov rcx, qword [0x00a30e10]
add rcx, 0x199c
mov ebx, 0xd
mov rdi, rax
mov rax, qword [rsp + 0x150]
call sym.modernc.org_sqlite_lib.Xsqlite3_log
mov rax, qword [rsp + 0x150]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xa0]
xor edi, edi
nop
call sym.modernc.org_sqlite_lib._sqlite3OsDelete
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x88]
mov r9, qword [rsp + 0x150]
mov r10d, dword [rsp + 0x58]
test r10d, r10d
jne 0x581d05
mov rax, r9
mov rbx, qword [rsp + 0x70]
mov esi, 0x4016
xor r8d, r8d
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3OsOpenMalloc
mov rcx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x88]
mov r9, qword [rsp + 0x150]
mov r10d, eax
mov rax, qword [rsp + 0x68]
test r10d, r10d
jne 0x581d1a
mov r8, qword [rsp + 0x158]
xor edx, edx
xor ebx, ebx
xor esi, esi
jmp 0x581d5f
mov dword [rsp + 0x38], r10d
nop
mov rbx, qword [rsp + 0x158]
mov rcx, rax
mov rax, r9
call sym.modernc.org_sqlite_lib._sqlite3DbFreeNN
mov edx, dword [rsp + 0x38]
mov dword [rsp + 0x40], edx
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x138]
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 0x40]
add rsp, 0x140
pop rbp
ret
inc edx
mov r8, r10
mov r10, r8
cmp dword [r8 + 0x28], edx
jle 0x581db1
movsxd r11, edx
shl r11, 5
add r11, qword [r8 + 0x20]
mov r8, qword [r11 + 8]
test r8, r8
je 0x581d86
mov r11, r8
movzx r8d, byte [r8 + 0x10]
jmp 0x581d8c
mov r11, r8
xor r8d, r8d
cmp r8d, 2
jne 0x581d5a
mov r8, qword [r11 + 8]
mov r8, qword [r8]
mov r8, qword [r8 + 0xe0]
nop
test r8, r8
je 0x581d5a
mov rsi, r8
xor r11d, r11d
jmp 0x5820e0
mov r8, rdi
mov rbx, qword [rdi]
mov rdi, rbx
cmp qword [rdi], 0
nop
jne 0x581dc6
xor edx, edx
jmp 0x581e07
mov dword [rsp + 0x54], esi
mov rcx, rbx
mov rcx, qword [rcx]
mov rdx, qword [rcx + 0x60]
mov rcx, qword [rdx]
mov rax, r9
call rcx
mov rcx, qword [rsp + 0xa0]
mov esi, dword [rsp + 0x54]
mov r8, qword [rsp + 0x88]
mov r9, qword [rsp + 0x150]
mov r10, qword [rsp + 0x158]
mov edx, eax
mov rax, qword [rsp + 0x68]
bt edx, 0xa
jae 0x581e14
mov edx, 0
jmp 0x581e59
mov dword [rsp + 0x3c], edx
mov rbx, qword [r8]
mov rax, r9
mov ecx, 2
call sym.modernc.org_sqlite_lib._sqlite3OsSync
mov edx, dword [rsp + 0x3c]
bt edx, 0xa
mov rcx, qword [rsp + 0xa0]
mov r8, qword [rsp + 0x88]
mov r9, qword [rsp + 0x150]
mov r10, qword [rsp + 0x158]
mov edx, eax
mov esi, edx
mov rax, qword [rsp + 0x68]
jb 0x581ecc
test edx, edx
je 0x581ecc
mov dword [rsp + 0x50], esi
mov rbx, qword [r8]
mov rax, r9
call sym.modernc.org_sqlite_lib._sqlite3OsCloseFree
mov rax, qword [rsp + 0x150]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xa0]
xor edi, edi
call sym.modernc.org_sqlite_lib._sqlite3OsDelete
nop
mov rax, qword [rsp + 0x150]
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x68]
call sym.modernc.org_sqlite_lib._sqlite3DbFreeNN
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x40], ecx
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rdx]
call rcx
mov eax, dword [rsp + 0x40]
add rsp, 0x140
pop rbp
ret
xor edx, edx
jmp 0x581ed7
inc edx
mov r10, rdi
mov esi, ebx
mov dword [rsp + 0x38], esi
test esi, esi
jne 0x581f3b
mov rdi, r10
cmp dword [r10 + 0x28], edx
jle 0x581f3b
movsxd rsi, edx
shl rsi, 5
add rsi, qword [r10 + 0x20]
mov rbx, qword [rsi + 8]
test rbx, rbx
jne 0x581f02
xor ebx, ebx
nop
jmp 0x581ed0
mov dword [rsp + 0x4c], edx
mov rax, r9
call sym.modernc.org_sqlite_lib._sqlite3BtreeCommitPhaseOne
mov rcx, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x4c]
mov rdi, qword [rsp + 0x158]
mov r8, qword [rsp + 0x88]
mov r9, qword [rsp + 0x150]
mov ebx, eax
mov rax, qword [rsp + 0x68]
jmp 0x581ed0
mov rbx, qword [r8]
mov rax, r9
call sym.modernc.org_sqlite_lib._sqlite3OsCloseFree
mov ecx, dword [rsp + 0x38]
test ecx, ecx
jne 0x581fea
mov rax, qword [rsp + 0x150]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xa0]
mov edi, 1
call sym.modernc.org_sqlite_lib._sqlite3OsDelete
mov dword [rsp + 0x38], eax
nop
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x150]
call sym.modernc.org_sqlite_lib._sqlite3DbFreeNN
mov edx, dword [rsp + 0x38]
test edx, edx
jne 0x581fc7
nop
cmp qword [0x00a30ee0], 0
je 0x581fbb
mov rdx, qword [0x00a30ee0]
mov rcx, qword [rdx]
mov rax, qword [rsp + 0x150]
call rcx
mov edx, dword [rsp + 0x38]
mov rbx, qword [rsp + 0x158]
xor eax, eax
jmp 0x58202e
mov dword [rsp + 0x40], edx
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x138]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x40]
add rsp, 0x140
pop rbp
ret
nop
mov rax, qword [rsp + 0x150]
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x68]
call sym.modernc.org_sqlite_lib._sqlite3DbFreeNN
mov edx, dword [rsp + 0x38]
mov dword [rsp + 0x40], edx
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x138]
mov rsi, qword [rdx]
call rsi
mov eax, dword [rsp + 0x40]
add rsp, 0x140
pop rbp
ret
inc eax
mov rsi, rbx
cmp dword [rsi + 0x28], eax
jle 0x582077
movsxd rdi, eax
shl rdi, 5
add rdi, qword [rsi + 0x20]
mov rsi, qword [rdi + 8]
test rsi, rsi
je 0x58202c
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x150]
mov rbx, rsi
mov ecx, 1
nop
call sym.modernc.org_sqlite_lib._sqlite3BtreeCommitPhaseTwo
mov eax, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x38]
mov rbx, qword [rsp + 0x158]
jmp 0x58202c
nop
cmp qword [0x00a30ee8], 0
je 0x58209e
mov rdx, qword [0x00a30ee8]
mov rcx, qword [rdx]
mov rax, qword [rsp + 0x150]
call rcx
mov rbx, qword [rsp + 0x158]
nop
mov rax, qword [rsp + 0x150]
mov ecx, pe_nt_image_headers64
call sym.modernc.org_sqlite_lib._callFinaliser
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x40], eax
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x138]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x40]
add rsp, 0x140
pop rbp
ret
lea r8, [r12 + 1]
inc r11
mov r12, r8
cmp byte [r8], 0
jne 0x5820d8
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0x80], rbx
mov dword [rsp + 0x4c], edx
mov r10, qword [rdi]
and r11d, 0x3fffffff
lea edi, [r11 + 1]
mov r11, r10
mov r10, qword [r10]
mov rdx, qword [r10 + 0x18]
mov r10, qword [rdx]
mov rax, r9
mov rcx, rsi
mov rsi, rbx
mov rbx, r11
call r10
mov rcx, qword [rsp + 0xa8]
xor edx, edx
jmp 0x58213a
lea rcx, [r8 + 1]
inc rdx
mov r8, rcx
cmp byte [rcx], 0
jne 0x582133
and edx, 0x3fffffff
lea r8d, [rdx + 1]
movsxd r8, r8d
mov r9, qword [rsp + 0x80]
add r8, r9
test eax, eax
jne 0x582191
mov rcx, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x4c]
mov rdi, qword [rsp + 0x88]
mov r9, qword [rsp + 0x150]
mov r10, qword [rsp + 0x158]
mov rbx, r8
mov esi, eax
mov rax, qword [rsp + 0x68]
jmp 0x581d5a
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x88]
mov rbx, qword [rcx]
mov rax, qword [rsp + 0x150]
call sym.modernc.org_sqlite_lib._sqlite3OsCloseFree
mov rax, qword [rsp + 0x150]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xa0]
xor edi, edi
call sym.modernc.org_sqlite_lib._sqlite3OsDelete
nop
mov rax, qword [rsp + 0x150]
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x68]
nop
call sym.modernc.org_sqlite_lib._sqlite3DbFreeNN
mov ecx, dword [rsp + 0x54]
mov dword [rsp + 0x40], ecx
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rdx]
call rcx
mov eax, dword [rsp + 0x40]
add rsp, 0x140
pop rbp
ret
lea rsi, [r8 + 1]
inc rdi
mov r8, rsi
cmp byte [rsi], 0
jne 0x58220c
and edi, 0x3fffffff
mov rsi, rcx
mov ecx, edi
jmp 0x5818ca
inc ecx
test eax, eax
jne 0x582275
mov rsi, rbx
cmp dword [rsi + 0x28], ecx
jle 0x582275
movsxd rdi, ecx
shl rdi, 5
add rdi, qword [rsi + 0x20]
mov rsi, qword [rdi + 8]
test rsi, rsi
jne 0x582251
xor eax, eax
jmp 0x58222b
mov dword [rsp + 0x4c], ecx
mov rax, qword [rsp + 0x150]
mov rbx, rsi
xor ecx, ecx
call sym.modernc.org_sqlite_lib._sqlite3BtreeCommitPhaseOne
mov ecx, dword [rsp + 0x4c]
mov rbx, qword [rsp + 0x158]
jmp 0x58222b
xor ecx, ecx
jmp 0x582280
inc ecx
nop dword [rax + rax]
test eax, eax
jne 0x5820b5
mov rsi, rbx
cmp dword [rsi + 0x28], ecx
jle 0x5822cd
movsxd rdi, ecx
shl rdi, 5
add rdi, qword [rsi + 0x20]
mov rsi, qword [rdi + 8]
nop
test rsi, rsi
jne 0x5822a9
xor eax, eax
jmp 0x582279
mov dword [rsp + 0x4c], ecx
mov rax, qword [rsp + 0x150]
mov rbx, rsi
xor ecx, ecx
call sym.modernc.org_sqlite_lib._sqlite3BtreeCommitPhaseTwo
mov ecx, dword [rsp + 0x4c]
mov rbx, qword [rsp + 0x158]
jmp 0x582279
test eax, eax
jne 0x5820b5
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x150]
mov ecx, pe_nt_image_headers64
call sym.modernc.org_sqlite_lib._callFinaliser
mov eax, dword [rsp + 0x5c]
jmp 0x5820b5
mov ecx, 6
call sym.runtime.panicIndex
nop
nop
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x40]
add rsp, 0x140
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.modernc.org_sqlite_lib._vdbeCommit