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

Disassembly:
lea r12, [rsp - 0x70]
cmp r12, qword [r14 + 0x10]
jbe 0x6132bb
push rbp
mov rbp, rsp
sub rsp, 0xe8
movq qword [rsp + 0xe0], xmm15
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rbx
mov dword [rsp + 0x108], ecx
mov qword [rsp + 0x110], rdi
mov dword [rsp + 0x118], esi
mov byte [rsp + 0x33], 0
mov dword [rsp + 0x38], 0
mov ebx, 0x90
nop dword [rax]
call sym.modernc.org_libc._TLS_.Alloc
lea rcx, [sym.modernc.org_sqlite_lib._sqlite3InitOne.deferwrap1]
mov qword [rsp + 0xb0], rcx
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0xb8], rcx
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0xe0], rdx
mov byte [rsp + 0x33], 1
mov rdx, qword [rsp + 0x100]
mov rsi, rdx
mov edi, dword [rdx + 0x2c]
mov byte [rdx + 0xc5], 1
mov rbx, rax
mov rdx, qword [0x00a30e10]
add rdx, 0x28fc
mov qword [rax], rdx
mov edx, dword [rsp + 0x108]
cmp edx, 1
jne 0x612a5e
mov r8, qword [0x00a30e10]
add r8, 0x1ee2
jmp 0x612a6c
mov r8, qword [0x00a30e10]
add r8, 0x1d0f
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x50], r8
or edi, 0xffffffbf
mov dword [rsp + 0x44], edi
mov r9, rbx
mov qword [r9 + 8], r8
mov r9, rbx
mov r10, qword [r9 + 8]
mov qword [r9 + 0x10], r10
mov r9, rbx
mov r10, qword [0x00a30e10]
add r10, 0x255c
mov qword [r9 + 0x18], r10
mov r9, rbx
mov r10, qword [0x00a30e10]
add r10, 0x4ec7
mov qword [r9 + 0x20], r10
mov r9, rbx
mov qword [r9 + 0x28], 0
lea r9, [rbx + 0x48]
mov qword [rsp + 0x80], r9
mov r10, r9
mov qword [r9], rsi
mov r9, r10
mov dword [r10 + 0x10], edx
mov r10, r9
mov dword [r9 + 0x14], 0
mov r9, r10
mov r11, qword [rsp + 0x110]
mov qword [r10 + 8], r11
mov r10, r9
mov r12d, dword [rsp + 0x118]
mov dword [r9 + 0x18], r12d
mov r9, r10
mov dword [r10 + 0x1c], 0
mov r10, r9
mov dword [r9 + 0x20], 0
mov rax, rcx
mov ecx, 5
mov r9, rbx
mov rbx, r10
mov rdi, r9
xor esi, esi
call sym.modernc.org_sqlite_lib._sqlite3InitCallback
mov rcx, qword [rsp + 0x100]
lea rdx, [rcx + 0x2c]
mov r8d, dword [rsp + 0x44]
and dword [rdx], r8d
mov rdx, qword [rsp + 0x80]
mov r8, rdx
mov edx, dword [rdx + 0x14]
nop dword [rax]
test edx, edx
jne 0x612cb1
mov rbx, rcx
mov rsi, qword [rcx + 0x20]
mov ecx, dword [rsp + 0x108]
movsxd r9, ecx
shl r9, 5
lea r10, [r9 + rsi]
mov r11, r10
mov r10, qword [r10 + 8]
test r10, r10
je 0x612c98
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x70], r9
mov rsi, r10
nop
cmp byte [r10 + 0x11], 0
je 0x612be6
inc dword [r10 + 0x14]
mov r10, rsi
cmp byte [rsi + 0x12], 0
jne 0x612be6
mov rax, qword [rsp + 0xf8]
mov rbx, r10
nop
call sym.modernc.org_sqlite_lib._btreeLockCarefully
mov ecx, dword [rsp + 0x108]
mov rbx, qword [rsp + 0x100]
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0x70]
mov r11, qword [rsp + 0x78]
mov rsi, r11
mov r10, qword [r11 + 8]
test r10, r10
je 0x612bfc
mov r11, r10
movzx r10d, byte [r10 + 0x10]
jmp 0x612c02
mov r11, r10
xor r10d, r10d
test r10d, r10d
je 0x612c0b
xor eax, eax
jmp 0x612c4a
mov rax, qword [rsp + 0xf8]
mov rbx, r11
xor ecx, ecx
xor edi, edi
call sym.modernc.org_sqlite_lib._sqlite3BtreeBeginTrans
nop
test eax, eax
jne 0x612c55
mov ecx, dword [rsp + 0x108]
mov rbx, qword [rsp + 0x100]
mov rsi, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0x70]
mov eax, 1
mov dword [rsp + 0x3c], eax
xor edx, edx
jmp 0x612df9
mov dword [rsp + 0x34], eax
mov ebx, eax
mov rax, qword [rsp + 0xf8]
call sym.modernc.org_sqlite_lib._sqlite3ErrStr
mov rbx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x100]
mov rdi, rax
mov rax, qword [rsp + 0xf8]
call sym.modernc.org_sqlite_lib._sqlite3SetString
xor eax, eax
mov rcx, qword [rsp + 0x78]
mov edx, dword [rsp + 0x34]
jmp 0x612d3b
add rsi, 0x20
mov rsi, qword [rsi + 0x18]
add rsi, 0x72
movzx edi, word [rsi]
or edi, 1
mov word [rsi], di
xor edx, edx
jmp 0x612cc0
mov ecx, dword [rsp + 0x108]
mov rbx, qword [rsp + 0x100]
test edx, edx
je 0x612d11
mov dword [rsp + 0x34], edx
cmp edx, 7
je 0x612cd5
cmp edx, 0xc0a
jne 0x612cf4
mov rax, qword [rsp + 0xf8]
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3OomFault
mov ecx, dword [rsp + 0x108]
mov rbx, qword [rsp + 0x100]
mov rax, qword [rsp + 0xf8]
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3ResetOneSchema
mov edx, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x100]
mov byte [rbx + 0xc5], 0
mov dword [rsp + 0x38], edx
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0xe0]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x38]
add rsp, 0xe8
pop rbp
ret
mov dword [rsp + 0x34], edx
nop
test eax, eax
je 0x612d63
mov qword [rsp + 0x60], rcx
mov rbx, qword [rcx + 8]
mov rax, qword [rsp + 0xf8]
call sym.modernc.org_sqlite_lib._sqlite3BtreeCommit
mov rcx, qword [rsp + 0x60]
mov edx, dword [rsp + 0x34]
mov rbx, qword [rcx + 8]
mov rsi, rbx
cmp byte [rsi + 0x11], 0
je 0x612d8d
dec dword [rsi + 0x14]
mov rsi, rbx
cmp dword [rsi + 0x14], 0
jne 0x612d8d
mov rax, qword [rsp + 0xf8]
call sym.modernc.org_sqlite_lib._unlockBtreeMutex
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x108]
mov rbx, qword [rsp + 0x100]
nop dword [rax]
jmp 0x612cc0
mov rbx, qword [rsi + 8]
lea ecx, [rdx + 1]
mov dword [rsp + 0x40], ecx
movsxd rdx, edx
mov rsi, qword [rsp + 0x88]
lea rdi, [rsi + rdx*4]
lea rdi, [rdi + 0x30]
mov rax, qword [rsp + 0xf8]
call sym.modernc.org_sqlite_lib._sqlite3BtreeGetMeta
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x108]
mov rbx, qword [rsp + 0x100]
mov rsi, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0x70]
mov edx, dword [rsp + 0x40]
cmp edx, 5
jl 0x612da5
mov r10, rbx
mov r10, qword [r10 + 0x30]
bt r10d, 0x19
jae 0x612e54
mov rbx, qword [rsp + 0x88]
lea rdx, [rbx + 0x30]
mov rax, qword [rsp + 0xf8]
xor ecx, ecx
mov edi, 0x14
mov rbx, rdx
call sym.modernc.org_libc.Xmemset
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x108]
mov rbx, qword [rsp + 0x100]
mov rsi, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0x70]
mov r10, rsi
mov rsi, qword [rsi + 0x18]
mov r11, qword [rsp + 0x88]
lea r12, [r11 + 0x30]
mov qword [rsp + 0x68], r12
mov r13, r12
mov r12d, dword [r12]
mov dword [rsi], r12d
mov rsi, r13
mov r12d, dword [r13 + 0x10]
nop dword [rax]
test r12d, r12d
je 0x612f78
test ecx, ecx
jne 0x612f2d
mov r13, rbx
mov r15d, dword [r13 + 0x2c]
bt r15d, 6
nop dword [rax]
jb 0x612f2d
movzx edi, r12b
mov r12d, edi
and edi, 3
test r12d, 3
jne 0x612ebe
mov edi, 1
cmp dword [r13 + 0xd8], 0
jle 0x612eea
movzx r12d, dil
movzx r13d, byte [r13 + 0x64]
cmp r13d, r12d
je 0x612eea
bt r15d, 2
jb 0x612eea
mov rcx, r10
mov edx, 6
jmp 0x612d3b
mov rax, qword [rsp + 0xf8]
mov ecx, edi
call sym.modernc.org_sqlite_lib._sqlite3SetTextEncoding
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x108]
mov rdx, qword [rsp + 0x100]
mov rsi, qword [rsp + 0x68]
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0x70]
mov r10, qword [rsp + 0x78]
mov r11, qword [rsp + 0x88]
jmp 0x612f7b
and r12d, 3
mov rdx, rbx
movzx r13d, byte [rbx + 0x64]
cmp r13d, r12d
je 0x612f7b
mov rdi, qword [0x00a30e10]
add rdi, 0x34d9
mov rax, qword [rsp + 0xf8]
mov rbx, qword [rsp + 0x110]
mov rcx, rdx
nop
call sym.modernc.org_sqlite_lib._sqlite3SetString
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x78]
mov edx, 1
jmp 0x612d3b
mov rdx, rbx
mov r12, r10
mov r10, qword [r10 + 0x18]
mov r13, rdx
movzx edx, byte [rdx + 0x64]
mov byte [r10 + 0x71], dl
mov rdx, r12
mov r10, qword [r12 + 0x18]
cmp dword [r10 + 0x74], 0
jne 0x61300d
mov esi, dword [rsi + 8]
nop
test esi, esi
jge 0x612fb5
cmp esi, 0x80000000
jne 0x612fb3
mov esi, 0x7fffffff
jmp 0x612fb5
neg esi
test esi, esi
mov edi, 0xfffff830
cmove esi, edi
mov dword [r10 + 0x74], esi
mov rbx, qword [rdx + 8]
mov rdx, qword [rdx + 0x18]
mov ecx, dword [rdx + 0x74]
mov rax, qword [rsp + 0xf8]
call sym.modernc.org_sqlite_lib._sqlite3BtreeSetCacheSize
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x108]
mov rdx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0x70]
mov r11, qword [rsp + 0x88]
mov r13, qword [rsp + 0x100]
mov r10, rdx
mov rdx, qword [rdx + 0x18]
mov r12, rsi
mov esi, dword [rsi + 4]
mov byte [rdx + 0x70], sil
mov rdx, r10
mov rsi, qword [r10 + 0x18]
movzx r10d, byte [rsi + 0x70]
test r10d, r10d
jne 0x613033
mov byte [rsi + 0x70], 1
mov rsi, rdx
mov rdx, qword [rdx + 0x18]
movzx edx, byte [rdx + 0x70]
nop
cmp edx, 4
jg 0x613270
test ecx, ecx
jne 0x61305d
cmp dword [r12 + 4], 4
jl 0x61305d
lea rdx, [r13 + 0x30]
and qword [rdx], 0xfffffffffffffffd
mov rsi, qword [rsi + 8]
lea rax, [r11 + 0x78]
mov rsi, qword [rsi + 8]
mov esi, dword [rsi + 0x40]
mov dword [r8 + 0x20], esi
movups xmmword [rsp + 0xc0], xmm15
movups xmmword [rsp + 0xd0], xmm15
mov r8, qword [r13 + 0x20]
add r8, r9
mov r8, qword [r8]
mov qword [rsp + 0x98], r8
lea r8, [0x00728cc0]
mov qword [rsp + 0xc0], r8
lea r11, [rsp + 0x98]
mov qword [rsp + 0xc8], r11
mov r11, qword [rsp + 0x50]
mov qword [rsp + 0x90], r11
mov qword [rsp + 0xd0], r8
lea r8, [rsp + 0x90]
mov qword [rsp + 0xd8], r8
lea rbx, [rsp + 0xc0]
mov ecx, 2
mov rdi, rcx
call sym.modernc.org_libc.VaList
mov rcx, qword [0x00a30e10]
add rcx, 0x4f27
mov rbx, qword [rsp + 0x100]
mov rdi, rax
mov rax, qword [rsp + 0xf8]
call sym.modernc.org_sqlite_lib._sqlite3MPrintf
mov qword [rsp + 0x48], rax
mov rbx, qword [rsp + 0x100]
mov rdx, rbx
mov rsi, qword [rdx + 0x218]
mov qword [rsp + 0x58], rsi
mov qword [rdx + 0x218], 0
lea rdx, [0x00737200]
mov qword [rsp + 0xa0], rdx
lea rdx, sym.modernc.org_sqlite_lib._sqlite3InitCallback
mov qword [rsp + 0xa8], rdx
mov rdi, qword [rsp + 0xa8]
mov rcx, rax
xor r8d, r8d
mov rax, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0x80]
call sym.modernc.org_sqlite_lib.Xsqlite3_exec
mov rbx, qword [rsp + 0x100]
mov rdx, rbx
mov rsi, qword [rsp + 0x58]
mov qword [rdx + 0x218], rsi
test eax, eax
jne 0x6131a1
mov rsi, qword [rsp + 0x80]
mov eax, dword [rsi + 0x14]
mov dword [rsp + 0x34], eax
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x6131c9
mov rax, qword [rsp + 0xf8]
call sym.modernc.org_sqlite_lib._sqlite3DbFreeNN
mov eax, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x100]
test eax, eax
jne 0x6131f1
mov rax, qword [rsp + 0xf8]
mov ecx, dword [rsp + 0x108]
nop dword [rax]
call sym.modernc.org_sqlite_lib._sqlite3AnalysisLoad
mov eax, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x100]
mov rsi, rbx
cmp byte [rsi + 0x67], 0
jne 0x613233
test eax, eax
je 0x61320d
mov rdi, qword [rsi + 0x30]
bt edi, 0x1b
jae 0x61322c
cmp eax, 7
je 0x61322c
mov rsi, qword [rsi + 0x20]
mov rdi, qword [rsp + 0x70]
add rsi, rdi
mov rsi, qword [rsi + 0x18]
add rsi, 0x72
movzx edi, word [rsi]
or edi, 1
mov word [rsi], di
xor eax, eax
mov r10, qword [rsp + 0x78]
jmp 0x613262
mov rax, qword [rsp + 0xf8]
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib._sqlite3ResetAllSchemasOfConnection
mov rbx, qword [rsp + 0x100]
mov rcx, rbx
mov rcx, qword [rcx + 0x20]
mov rdx, qword [rsp + 0x70]
lea r10, [rcx + rdx]
mov eax, 7
mov rcx, r10
mov edx, eax
mov eax, dword [rsp + 0x3c]
jmp 0x612d3b
mov rdi, qword [0x00a30e10]
add rdi, 0x4f0f
mov rax, qword [rsp + 0xf8]
mov rbx, qword [rsp + 0x110]
mov rcx, r13
call sym.modernc.org_sqlite_lib._sqlite3SetString
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x78]
mov edx, 1
jmp 0x612d3b
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], ecx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov ecx, dword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov esi, dword [rsp + 0x28]
jmp sym.modernc.org_sqlite_lib._sqlite3InitOne