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

Disassembly:
push rbp
push rsi
push r13
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x18015a008]
xor rax, rsp
mov qword [rbp + 0x110], rax
xor esi, esi
mov dword [rbp - 0x50], r9d
mov r9, rcx
mov qword [rbp - 0x68], rcx
xor ecx, ecx
mov qword [rbp - 0x58], r8
mov dword [rsp + 0x4c], esi
mov r13d, esi
mov dword [rbp - 0x60], esi
mov r10, qword [r9 + 0x48]
mov qword [rbp - 0x80], r10
mov dword [rbp + 0xf8], ecx
mov byte [rbp + 0xfc], cl
mov dword [rbp - 0x30], esi
mov qword [rbp - 0x20], rsi
test r8, r8
jne 0x18002a21a
lea eax, [rsi + 7]
jmp 0x18002b7bd
movzx ecx, word [r9 + 0x18]
movzx r8d, byte [r9 + 0xc]
mov qword [rsp + 0x278], rbx
mov qword [rsp + 0x238], rdi
mov qword [rsp + 0x230], r12
lea ebx, [r8 + rcx]
mov qword [rsp + 0x228], r14
mov qword [rsp + 0x220], r15
cmp ebx, 2
jae 0x18002a259
mov edx, esi
jmp 0x18002a281
test edx, edx
jne 0x18002a261
mov edx, esi
jmp 0x18002a274
cmp edx, ebx
jne 0x18002a272
mov eax, dword [rbp + 0x180]
lea edx, [rax - 2]
add edx, ebx
jmp 0x18002a27a
dec edx
mov eax, dword [rbp + 0x180]
mov ebx, 2
sub ebx, eax
mov eax, edx
mov dword [rsp + 0x68], edx
sub eax, r8d
mov dword [rsp + 0x70], ebx
add eax, ebx
lea r12d, [rbx + 1]
mov dword [rsp + 0x6c], r12d
cmp eax, ecx
jne 0x18002a2a8
movzx ecx, byte [r9 + 9]
add rcx, 8
jmp 0x18002a2c4
add eax, eax
movsxd rcx, eax
mov rax, qword [r9 + 0x60]
movzx edx, word [rcx + rax]
movzx eax, word [r9 + 0x1a]
ror dx, 8
movzx ecx, dx
and rcx, rax
add rcx, qword [r9 + 0x50]
lea r8, [rbp + 0x58]
movsxd r15, ebx
xor r9d, r9d
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x40], r15
mov edx, dword [rcx]
mov rcx, r10
bswap edx
lea rdi, [r15*8]
mov dword [rbp - 0x78], edx
add r8, rdi
mov dword [rbp - 0x70], edx
mov dword [rsp + 0x20], esi
call fcn.180022590
mov dword [rsp + 0x44], eax
mov r14d, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x18002a488
lea r15, [rbp + r15*4 + 0x40]
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbp + rdi + 0x58]
movsxd r12, ebx
cmp dword [rcx + 0x14], r13d
jge 0x18002a346
call fcn.180021fb0
mov dword [rsp + 0x44], eax
mov r14d, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x18002a49f
mov eax, ebx
sub r15, 4
dec ebx
sub rdi, 8
test eax, eax
je 0x18002a582
mov r14, qword [rbp - 0x68]
movzx edx, byte [r14 + 0xc]
test dl, dl
je 0x18002a3a2
mov eax, dword [rsp + 0x68]
movzx ecx, word [r14 + 0x1c]
add eax, ebx
cmp eax, ecx
jne 0x18002a3a2
mov rdx, qword [r14 + 0x28]
mov rcx, r14
mov qword [rbp + rdi + 0x100], rdx
mov eax, dword [rdx]
bswap eax
mov dword [rbp - 0x78], eax
mov dword [rbp - 0x70], eax
call qword [r14 + 0x78]
movzx eax, ax
mov dword [r15], eax
mov byte [r14 + 0xc], r13b
jmp 0x18002a457
mov rax, qword [r14 + 0x60]
mov ecx, dword [rsp + 0x68]
sub ecx, edx
add ecx, ebx
add ecx, ecx
movsxd rcx, ecx
movzx edx, word [rcx + rax]
mov rcx, r14
movzx eax, word [r14 + 0x1a]
ror dx, 8
movzx esi, dx
and rsi, rax
add rsi, qword [r14 + 0x50]
mov rdx, rsi
mov qword [rbp + rdi + 0x100], rsi
mov eax, dword [rsi]
bswap eax
mov dword [rbp - 0x78], eax
mov dword [rbp - 0x70], eax
call qword [r14 + 0x78]
mov rdx, qword [rbp - 0x80]
movzx r14d, ax
mov dword [r15], r14d
test byte [rdx + 0x28], 0xc
je 0x18002a438
mov rax, qword [rbp - 0x68]
mov ecx, esi
sub ecx, dword [rax + 0x50]
lea eax, [r14 + rcx]
cmp eax, dword [rdx + 0x38]
jg 0x18002a4b7
movsxd rcx, ecx
mov r8d, r14d
add rcx, qword [rbp - 0x58]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbp - 0x68]
mov rax, qword [rbp - 0x58]
sub rax, qword [rcx + 0x50]
add rax, rsi
mov qword [rbp + rdi + 0x100], rax
jmp 0x18002a43c
mov rcx, qword [rbp - 0x68]
movzx eax, byte [rcx + 0xc]
lea r9, [rsp + 0x40]
mov edx, dword [rsp + 0x68]
mov r8d, r14d
sub edx, eax
add edx, ebx
call fcn.180028d40
xor esi, esi
mov edx, dword [rbp - 0x78]
lea r8, [rbp + 0x58]
mov rcx, qword [rbp - 0x80]
xor r9d, r9d
movsxd rax, ebx
mov dword [rsp + 0x20], esi
lea r8, [r8 + rax*8]
call fcn.180022590
mov dword [rsp + 0x44], eax
mov r14d, eax
mov dword [rsp + 0x40], eax
test eax, eax
je 0x18002a320
lea eax, [rbx + 1]
xor edx, edx
movsxd r8, eax
lea rcx, [rbp + 0x58]
shl r8, 3
call sub.VCRUNTIME140.dll_memset
jmp 0x18002a4f9
movsxd r8, ebx
lea rcx, [rbp + 0x58]
xor edx, edx
lea r8, [r8*8]
call sub.VCRUNTIME140.dll_memset
jmp 0x18002a4f9
lea rax, [0x180140714]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11abd
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call sym.QoOBJSl.dll_hqlite3_log
mov r8, r12
lea rcx, [rbp + 0x58]
shl r8, 3
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor esi, esi
movsxd rax, dword [rsp + 0x6c]
mov r15, qword [rsp + 0x220]
mov rdi, rax
mov r12, qword [rsp + 0x230]
test eax, eax
jle 0x18002b72c
mov rbx, rsi
nop dword [rax]
mov r8, qword [rbp + rbx*8 + 0x58]
test r8, r8
je 0x18002b720
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x18002b718
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
movsxd rax, dword [r10 + 0xbc]
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
mov r9, qword [rcx]
imul rdx, rax
call qword [r9 + 0x90]
jmp 0x18002b720
mov rdi, qword [rbp - 0x80]
mov eax, 0xaaaaaaab
mov r14d, dword [rsp + 0x6c]
mov r8d, dword [rdi + 0x34]
lea ecx, [r8 - 8]
mul ecx
mov ebx, edx
shr ebx, 2
add ebx, 4
imul ebx, r14d
add ebx, 3
and ebx, 0xfffffffc
lea eax, [rbx + rbx*4]
lea ecx, [r8 + rax*2]
movsxd rcx, ecx
call fcn.180005840
mov qword [rbp - 0x20], rax
mov rdx, rax
test rax, rax
jne 0x18002a5d0
lea r14d, [rax + 7]
jmp 0x18002a4f9
mov rcx, qword [rbp + 0x58]
xor r12d, r12d
movsxd rax, ebx
mov qword [rbp - 0x28], rcx
mov dword [rsp + 0x60], r12d
movzx r8d, byte [rcx + 8]
movzx r11d, byte [rcx + 3]
lea r9, [rdx + rax*8]
shl r8w, 2
lea rax, [r9 + rax*2]
mov qword [rbp - 0x18], r9
mov qword [rsp + 0x78], rax
mov word [rsp + 0x50], r8w
mov dword [rsp + 0x48], r11d
test r14d, r14d
jle 0x18002a9a9
nop word [rax + rax]
mov r14, qword [rbp + r12*8 + 0x58]
mov rax, qword [rcx + 0x50]
mov rdi, qword [r14 + 0x50]
movzx ebx, word [r14 + 0x12]
movzx ecx, byte [rax]
add rbx, rdi
movzx esi, word [r14 + 0x18]
movzx r15d, word [r14 + 0x1a]
cmp byte [rdi], cl
jne 0x18002a976
movsxd rax, dword [rbp - 0x30]
xor edx, edx
movzx r8d, byte [r14 + 0xc]
add r8, rsi
add r8, r8
lea rcx, [r9 + rax*2]
call sub.VCRUNTIME140.dll_memset
movzx ecx, byte [r14 + 0xc]
test cl, cl
je 0x18002a6f2
movzx eax, word [r14 + 0x1c]
cmp si, ax
jb 0x18002a817
mov r9d, dword [rbp - 0x30]
xor r8d, r8d
mov r10, qword [rbp - 0x20]
cmp r8w, ax
jae 0x18002a6bf
mov edx, eax
movzx eax, word [rbx]
add rbx, 2
ror ax, 8
movzx ecx, ax
and rcx, r15
movsxd rax, r9d
add rcx, rdi
inc r9d
mov qword [r10 + rax*8], rcx
sub rdx, 1
jne 0x18002a692
movzx ecx, byte [r14 + 0xc]
mov dword [rbp - 0x30], r9d
test cl, cl
je 0x18002a6f2
lea rdx, [r14 + 0x28]
nop word [rax + rax]
mov rax, qword [rdx]
lea rdx, [rdx + 8]
movsxd rcx, r9d
inc r8d
inc r9d
mov qword [r10 + rcx*8], rax
movzx eax, byte [r14 + 0xc]
cmp r8d, eax
jl 0x18002a6d0
mov dword [rbp - 0x30], r9d
movzx edx, word [r14 + 0x18]
movzx ecx, word [r14 + 0x12]
add rcx, rdi
lea r8, [rcx + rdx*2]
mov edx, dword [rbp - 0x30]
cmp rbx, r8
jae 0x18002a735
mov r9, qword [rbp - 0x20]
nop
movzx eax, word [rbx]
add rbx, 2
ror ax, 8
movzx ecx, ax
and rcx, r15
movsxd rax, edx
add rcx, rdi
inc edx
mov qword [r9 + rax*8], rcx
cmp rbx, r8
jb 0x18002a710
mov dword [rbp - 0x30], edx
mov r15d, dword [rsp + 0x60]
mov r11d, dword [rsp + 0x48]
mov dword [rbp + r12*4 + 0xc8], edx
cmp r15d, dword [rsp + 0x70]
jge 0x18002a7ef
test r11b, r11b
jne 0x18002a7ef
movzx ecx, word [rbp + r12*4 + 0x40]
mov rax, qword [rbp - 0x18]
mov r8d, ecx
movsxd rdi, edx
mov rdx, qword [rbp + r12*8 + 0x100]
lea rsi, [rax + rdi*2]
movsxd rbx, r13d
add r13d, ecx
add rbx, qword [rsp + 0x78]
mov word [rsi], cx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movzx r8d, word [rsp + 0x50]
mov rdx, qword [rbp - 0x20]
lea rax, [rbx + r8]
mov qword [rdx + rdi*8], rax
sub word [rsi], r8w
cmp byte [r14 + 8], 0
jne 0x18002a7c1
mov rax, qword [r14 + 0x50]
mov rcx, qword [rdx + rdi*8]
inc dword [rbp - 0x30]
mov r11d, dword [rsp + 0x48]
mov eax, dword [rax + 8]
mov dword [rcx], eax
jmp 0x18002a7f5
cmp word [rsi], 4
jae 0x18002a7e5
mov rcx, qword [rsp + 0x78]
movsxd rax, r13d
add rcx, rax
mov byte [rcx], 0
lea rcx, [rcx + 1]
inc word [rsi]
inc r13d
cmp word [rsi], 4
jb 0x18002a7d2
inc dword [rbp - 0x30]
mov r11d, dword [rsp + 0x48]
jmp 0x18002a7f5
movzx r8d, word [rsp + 0x50]
movsxd r14, dword [rsp + 0x6c]
inc r15d
inc r12
mov dword [rsp + 0x60], r15d
cmp r12, r14
jge 0x18002a829
mov rcx, qword [rbp + 0x58]
mov r9, qword [rbp - 0x18]
jmp 0x18002a620
mov ecx, 0x11b18
call fcn.1800c8fa0
mov r14d, eax
jmp 0x18002b175
mov rax, qword [rbp - 0x80]
lea r15, [rbp + 0x20]
xor r9d, r9d
movzx r8d, r8w
mov edx, r9d
mov dword [rsp + 0x70], r8d
mov ecx, r9d
mov qword [rsp + 0x78], rdx
mov r10d, dword [rax + 0x38]
lea r12, [rbp - 0x10]
add r10d, 0xfffffff4
mov dword [rsp + 0x58], ecx
add r10d, r8d
lea r13, [rbp + 0x1c]
mov dword [rsp + 0x54], r10d
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbp + rdx*4 + 0xc8]
mov rbx, qword [rbp + rdx*8 + 0x58]
mov dword [rsp + 0x60], r8d
mov rax, qword [rbx + 0x58]
mov qword [r12], rax
mov dword [r15], r8d
test ecx, ecx
je 0x18002a8a9
cmp r8d, dword [r13]
jne 0x18002a8a9
dec ecx
sub r12, 8
sub r13, 4
mov dword [rsp + 0x58], ecx
sub r15, 4
test r11b, r11b
jne 0x18002a8d3
mov rax, qword [rbp - 0x68]
add r12, 8
inc ecx
add r13, 4
add r15, 4
mov dword [rsp + 0x58], ecx
mov rax, qword [rax + 0x58]
mov qword [r12], rax
lea eax, [r8 + 1]
mov dword [r15], eax
mov edi, r10d
lea rax, [rbp + 0x40]
sub edi, dword [rbx + 0x14]
lea rax, [rax + rdx*4]
cmp byte [rbx + 0xc], 0
mov r14d, r9d
mov qword [rbp + 0x100], rax
mov dword [rax], edi
jbe 0x18002a93c
lea rsi, [rbx + 0x28]
mov rdx, qword [rsi]
mov rcx, rbx
call qword [rbx + 0x78]
movzx eax, ax
inc r14d
add eax, 2
lea rsi, [rsi + 8]
add edi, eax
movzx eax, byte [rbx + 0xc]
cmp r14d, eax
jl 0x18002a8f7
mov rax, qword [rbp + 0x100]
xor r9d, r9d
mov ecx, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x60]
mov r10d, dword [rsp + 0x54]
mov r11d, dword [rsp + 0x48]
mov dword [rax], edi
movsxd r14, dword [rsp + 0x6c]
inc ecx
mov dword [rbp + rdx*4 + 0x70], r8d
add r12, 8
inc rdx
mov dword [rsp + 0x58], ecx
add r13, 4
mov qword [rsp + 0x78], rdx
add r15, 4
cmp rdx, r14
jl 0x18002a870
mov rcx, qword [rbp + 0x58]
xor r12d, r12d
mov r9, qword [rbp - 0x18]
jmp 0x18002a9c1
lea rax, [0x180140714]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11b00
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call sym.QoOBJSl.dll_hqlite3_log
jmp 0x18002b175
mov r10d, dword [rdi + 0x38]
movzx edx, r8w
add r10d, 0xfffffff4
add r10d, edx
mov dword [rsp + 0x70], edx
mov dword [rsp + 0x54], r10d
mov edx, r14d
mov r13d, r12d
mov dword [rsp + 0x58], edx
test r14d, r14d
jle 0x18002abd1
mov ecx, dword [rbp - 0x30]
mov r15d, 1
mov r14, r12
mov edi, dword [rbp + r14 + 0x40]
cmp edi, r10d
jle 0x18002aaa1
nop
cmp r15d, edx
jl 0x18002aa16
lea eax, [r15 + 1]
mov dword [rsp + 0x58], eax
cmp r14, 0xc
jg 0x18002ab67
mov dword [rbp + r14 + 0x44], r12d
mov edi, dword [rbp + r14 + 0x40]
mov dword [rbp + r14 + 0x74], ecx
movsxd rbx, dword [rbp + r14 + 0x70]
movzx eax, word [r9 + rbx*2 - 2]
lea esi, [rbx - 1]
test ax, ax
jne 0x18002aa42
mov edx, esi
lea rcx, [rbp - 0x30]
call fcn.180029210
mov r10d, dword [rsp + 0x54]
mov r9, qword [rbp - 0x18]
mov r11d, dword [rsp + 0x48]
movzx eax, ax
add eax, 2
sub edi, eax
mov dword [rbp + r14 + 0x40], edi
test r11b, r11b
jne 0x18002aa87
cmp ebx, dword [rbp - 0x30]
jge 0x18002aa84
movzx eax, word [r9 + rbx*2]
test ax, ax
jne 0x18002aa77
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.180029210
mov r9, qword [rbp - 0x18]
mov r11d, dword [rsp + 0x48]
mov r10d, dword [rsp + 0x54]
movzx eax, ax
add eax, 2
jmp 0x18002aa87
mov eax, r12d
add dword [rbp + r14 + 0x44], eax
mov ecx, dword [rbp - 0x30]
mov edx, dword [rsp + 0x58]
mov dword [rbp + r14 + 0x70], esi
cmp edi, r10d
jg 0x18002a9f0
movsxd rbx, dword [rbp + r14 + 0x70]
cmp ebx, ecx
jge 0x18002ab22
lea rsi, [r9 + rbx*2]
nop
movzx eax, word [rsi]
test ax, ax
jne 0x18002aacb
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.180029210
mov ecx, dword [rbp - 0x30]
mov r10d, dword [rsp + 0x54]
movzx eax, ax
add eax, 2
add edi, eax
cmp edi, r10d
jg 0x18002ab4a
inc ebx
mov dword [rbp + r14 + 0x40], edi
add rsi, 2
mov dword [rbp + r14 + 0x70], ebx
cmp byte [rsp + 0x48], 0
jne 0x18002ab19
cmp ebx, ecx
jge 0x18002ab16
movzx eax, word [rsi]
test ax, ax
jne 0x18002ab0e
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.180029210
mov ecx, dword [rbp - 0x30]
mov r10d, dword [rsp + 0x54]
movzx eax, ax
add eax, 2
jmp 0x18002ab19
mov eax, r12d
sub dword [rbp + r14 + 0x44], eax
cmp ebx, ecx
jl 0x18002aab0
mov edx, r15d
mov dword [rsp + 0x58], edx
inc r13d
inc r15d
add r14, 4
cmp r13d, edx
jge 0x18002abcd
mov r9, qword [rbp - 0x18]
mov r11d, dword [rsp + 0x48]
jmp 0x18002a9e0
cmp ebx, ecx
jge 0x18002ab22
test r13d, r13d
jle 0x18002ab5a
mov eax, dword [rbp + r14 + 0x6c]
jmp 0x18002ab5d
mov eax, r12d
cmp ebx, eax
jle 0x18002ab9a
mov edx, dword [rsp + 0x58]
jmp 0x18002ab29
lea rax, [0x180140714]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11b7d
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call sym.QoOBJSl.dll_hqlite3_log
jmp 0x18002b175
lea rax, [0x180140714]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11b9e
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call sym.QoOBJSl.dll_hqlite3_log
jmp 0x18002b175
mov rcx, qword [rbp + 0x58]
lea eax, [rdx - 1]
movsxd r13, eax
mov r12, r13
test eax, eax
jle 0x18002acf3
mov rdi, qword [rbp - 0x18]
lea r8, [rbp + 0x70]
mov esi, dword [rbp + r12*4 + 0x40]
sub r8, 4
mov r15d, dword [rbp + r12*4 + 0x3c]
mov qword [rsp + 0x78], r8
mov ecx, dword [r8 + r12*4]
mov dword [rsp + 0x60], ecx
lea ebx, [rcx - 1]
mov eax, ebx
sub eax, dword [rsp + 0x48]
movsxd r14, eax
inc r14
cmp word [rdi + r14*2], 0
lea edx, [rax + 1]
lea r14, [rdi + r14*2]
jne 0x18002ac2c
lea rcx, [rbp - 0x30]
call fcn.180029210
movsxd rax, ebx
lea rdi, [rdi + rax*2]
cmp word [rdi], 0
jne 0x18002ac44
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.180029210
test esi, esi
je 0x18002ac7e
cmp dword [rbp + 0x180], 0
jne 0x18002acb2
mov ecx, dword [rsp + 0x58]
mov eax, 2
dec ecx
mov edx, r15d
cmp r13d, ecx
mov ecx, 0
cmove eax, ecx
lea ecx, [rsi + 2]
sub edx, eax
movzx eax, word [rdi]
sub edx, eax
movzx eax, word [r14]
add ecx, eax
cmp ecx, edx
jg 0x18002acb2
movzx eax, word [r14]
mov ecx, 0xfffffffe
mov r8, qword [rsp + 0x78]
add eax, 2
add esi, eax
mov dword [rsp + 0x60], ebx
movzx eax, word [rdi]
sub r14, 2
sub ecx, eax
sub rdi, 2
add r15d, ecx
mov dword [r8 + r12*4], ebx
mov ecx, ebx
sub ebx, 1
jns 0x18002ac33
jmp 0x18002acbb
mov r8, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x60]
mov dword [rbp + r12*4 + 0x40], esi
mov dword [rbp + r12*4 + 0x3c], r15d
cmp r12, 1
jbe 0x18002acd2
mov eax, dword [r8 + r12*4 - 4]
jmp 0x18002acd4
xor eax, eax
cmp ecx, eax
jle 0x18002adb6
dec r13d
dec r12
test r12, r12
jg 0x18002abe2
mov rcx, qword [rbp + 0x58]
mov edx, dword [rsp + 0x58]
mov rax, qword [rcx + 0x50]
movsxd r13, edx
movzx r15d, byte [rax]
mov dword [rsp + 0x60], r15d
test edx, edx
jle 0x18002af0f
xor r12d, r12d
nop
movsxd rcx, dword [rsp + 0x6c]
cmp r12, rcx
jge 0x18002ae5c
mov rax, qword [rbp + r12*8 + 0x58]
mov qword [rbp + r12*8 + 0x88], rax
mov qword [rbp + r12*8 + 0x58], 0
mov qword [rsp + 0x78], rax
mov r14, qword [rax + 0x70]
test byte [r14 + 0x34], 4
mov rcx, qword [r14 + 0x28]
je 0x18002ae12
mov esi, dword [r14 + 0x30]
cmp dword [rcx + 0x1c], esi
jb 0x18002ae12
movsxd rax, dword [rcx + 0x80]
test eax, eax
je 0x18002adff
xor edi, edi
test eax, eax
jle 0x18002ad9f
mov rbx, qword [rcx + 0x78]
mov r15, rax
add rbx, 0x10
nop dword [rax]
cmp dword [rbx + 8], esi
jb 0x18002ad93
mov rcx, qword [rbx]
mov edx, esi
call fcn.1800114b0
test eax, eax
je 0x18002ade9
inc rdi
add rbx, 0x30
cmp rdi, r15
jl 0x18002ad80
mov r15d, dword [rsp + 0x60]
mov dword [rsp + 0x44], 0
mov r14d, dword [rsp + 0x44]
jmp 0x18002ae45
lea rax, [0x180140714]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11bc8
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call sym.QoOBJSl.dll_hqlite3_log
jmp 0x18002b175
mov rcx, r14
call fcn.1800186c0
mov r15d, dword [rsp + 0x60]
mov r14d, eax
mov dword [rsp + 0x44], eax
jmp 0x18002ae45
xor eax, eax
inc dword [rsp + 0x4c]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], eax
jmp 0x18002af03
mov eax, dword [rcx + 0x2c]
mov dword [rsp + 0x44], eax
test eax, eax
jne 0x18002b16c
mov eax, dword [rcx + 0xbc]
cmp dword [rcx + 0xb8], eax
mov rcx, r14
jbe 0x18002ae39
call fcn.18001a670
jmp 0x18002ae3e
call fcn.18001a440
mov dword [rsp + 0x44], eax
mov r14d, eax
inc dword [rsp + 0x4c]
mov dword [rsp + 0x40], r14d
test r14d, r14d
jne 0x18002b175
jmp 0x18002af03
mov r9d, dword [rbp - 0x78]
lea r8, [rbp - 0x70]
cmp dword [rbp + 0x180], 0
lea rdx, [rsp + 0x78]
mov rdi, qword [rbp - 0x80]
mov ecx, 1
cmovne r9d, ecx
mov byte [rsp + 0x20], 0
mov rcx, rdi
call fcn.1800277f0
mov dword [rsp + 0x44], eax
mov r14d, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x18002b175
mov rbx, qword [rsp + 0x78]
mov edx, r15d
mov rcx, rbx
call fcn.180022320
inc dword [rsp + 0x4c]
mov eax, dword [rbp - 0x30]
mov qword [rbp + r12*8 + 0x88], rbx
mov dword [rbp + r12*4 + 0xc8], eax
cmp byte [rdi + 0x21], r14b
je 0x18002aefd
mov edx, dword [rbx + 4]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8b, 5
mov rax, qword [rbp - 0x68]
mov rcx, rdi
mov r9d, dword [rax + 4]
call fcn.180020d70
mov r14d, dword [rsp + 0x40]
mov dword [rsp + 0x44], r14d
test r14d, r14d
jne 0x18002b175
mov edx, dword [rbp - 0x70]
mov dword [rbp - 0x78], edx
inc r12
cmp r12, r13
jl 0x18002ad10
movsxd rdi, dword [rsp + 0x4c]
mov rsi, rdi
test edi, edi
jle 0x18002b07b
xor r12d, r12d
mov edx, r12d
nop word [rax + rax]
mov rax, qword [rbp + rdx*8 + 0x88]
mov r8d, dword [rax + 4]
mov rax, qword [rax + 0x70]
mov dword [rbp + rdx*4 + 0xe0], r8d
mov dword [rbp + rdx*4 + 0xb0], r8d
movzx ecx, word [rax + 0x34]
mov rax, r12
mov word [rbp + rdx*2 + 0x100], cx
test rdx, rdx
je 0x18002af86
nop dword [rax]
nop dword [rax + rax]
cmp dword [rbp + rax*4 + 0xe0], r8d
je 0x18002b1df
inc rax
cmp rax, rdx
jl 0x18002af70
inc rdx
cmp rdx, rsi
jl 0x18002af30
mov rdi, r12
mov r15d, 1
nop word [rax + rax]
mov r10d, r12d
mov rbx, r12
mov r11d, r15d
mov rcx, r15
cmp r15, rsi
jge 0x18002affe
mov r14d, dword [rsp + 0x54]
mov r9, r12
mov r13d, dword [rsp + 0x70]
nop
mov edx, dword [rbp + r9 + 0xb0]
lea rax, [rcx*4]
cmp dword [rbp + rax + 0xb0], edx
jae 0x18002afdf
mov rbx, rcx
mov r9, rax
mov eax, r11d
cmovae eax, r10d
inc r11d
inc rcx
mov r10d, eax
cmp rcx, rsi
jl 0x18002afc0
mov dword [rsp + 0x70], r13d
mov dword [rsp + 0x54], r14d
mov r14d, dword [rbp + rbx*4 + 0xb0]
mov dword [rbp + rbx*4 + 0xb0], 0xffffffff
cmp rbx, rdi
je 0x18002b066
jle 0x18002b03a
mov rax, qword [rbp - 0x80]
mov edx, dword [rax + 0x40]
mov rax, qword [rbp + rbx*8 + 0x88]
inc edx
add edx, r10d
mov rcx, qword [rax + 0x70]
mov word [rcx + 0x34], r12w
call fcn.180012710
mov rax, qword [rbp + rdi*8 + 0x88]
mov edx, r14d
mov rcx, qword [rax + 0x70]
movzx eax, word [rbp + rbx*2 + 0x100]
mov word [rcx + 0x34], ax
call fcn.180012710
mov rax, qword [rbp + rdi*8 + 0x88]
mov dword [rax + 4], r14d
inc rdi
cmp rdi, rsi
jl 0x18002afa0
mov r15d, dword [rsp + 0x60]
mov edi, dword [rsp + 0x4c]
lea r12, [rsi - 1]
mov rax, qword [rbp + r12*8 + 0x88]
mov ecx, dword [rax + 4]
mov rax, qword [rbp - 0x48]
bswap ecx
mov dword [rax], ecx
test r15b, 8
jne 0x18002b0cb
cmp dword [rsp + 0x6c], edi
je 0x18002b0cb
mov rcx, qword [rbp - 0x40]
lea rdx, [rbp + 0x58]
lea rax, [rbp + 0x88]
cmovge rax, rdx
mov rax, qword [rax + rcx*8]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + r12*8 + 0x88]
mov rcx, qword [rax + 0x50]
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov r10, qword [rbp - 0x80]
cmp byte [r10 + 0x21], 0
je 0x18002b3c8
mov rbx, qword [rbp + 0x88]
xor r14d, r14d
mov r13d, dword [rbp - 0x30]
movzx r15d, word [rbx + 0x18]
movzx eax, byte [rbx + 0xc]
add r15d, eax
test r13d, r13d
jle 0x18002b3d3
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x88]
mov rcx, qword [rbp - 0x20]
lea r8, [rbp + 0x70]
mov qword [rsp + 0x60], rax
xor edi, edi
mov qword [rbp - 0x78], rdx
mov r13, rbx
mov qword [rsp + 0x78], r8
mov qword [rbp - 0x70], rcx
nop word [rax + rax]
mov r12, qword [rcx]
mov r11d, dword [rsp + 0x48]
cmp r14d, r15d
jne 0x18002b24a
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r10d, dword [rsp + 0x70]
test r11b, r11b
sete dl
inc rdi
cmp rdi, rsi
jge 0x18002b212
mov rbx, qword [rbp + rdi*8 + 0x88]
jmp 0x18002b217
inc dword [rsp + 0x4c]
mov r14d, dword [rsp + 0x44]
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x18002a4f7
cmp dword [0x18015a080], 0
je 0x18002b70a
mov rcx, qword [0x18015d358]
test rcx, rcx
je 0x18002b1a1
call qword [0x18015a100]
mov rcx, rbx
call qword [0x18015a0b8]
dec qword [0x18015d0e8]
movsxd rcx, eax
sub qword [0x18015d0a0], rcx
mov rcx, rbx
call qword [0x18015a0a8]
mov rcx, qword [0x18015d358]
test rcx, rcx
je 0x18002a4f7
call qword [0x18015a110]
jmp 0x18002a4f7
lea rax, [0x180140714]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11c12
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call sym.QoOBJSl.dll_hqlite3_log
jmp 0x18002b175
mov rbx, qword [rbp + rdi*8 + 0x58]
movzx eax, word [rbx + 0x18]
movzx ecx, byte [rbx + 0xc]
add eax, edx
add ecx, eax
add r15d, ecx
cmp r14d, r15d
je 0x18002b153
mov rax, qword [rsp + 0x60]
mov rcx, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x78]
mov dword [rsp + 0x70], r10d
mov r10, qword [rbp - 0x80]
mov dword [rsp + 0x54], r9d
cmp r14d, dword [r8]
jne 0x18002b26d
mov r13, qword [rdx + 8]
add rdx, 8
add r8, 4
mov qword [rbp - 0x78], rdx
mov qword [rsp + 0x78], r8
test r11b, r11b
je 0x18002b36a
cmp rdi, rsi
jge 0x18002b28f
mov eax, dword [rbp + rdi*4 + 0xe0]
cmp dword [r13 + 4], eax
jne 0x18002b28f
cmp r12, qword [rbx + 0x50]
jb 0x18002b28f
cmp r12, qword [rbx + 0x58]
jb 0x18002b365
cmp word [rsp + 0x50], 0
jne 0x18002b2be
mov edx, dword [r12]
lea rax, [rsp + 0x40]
mov r9d, dword [r13 + 4]
mov r8b, 5
bswap edx
mov rcx, r10
mov qword [rsp + 0x20], rax
call fcn.180020d70
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
test ax, ax
jne 0x18002b2d7
mov edx, r14d
lea rcx, [rbp - 0x30]
call fcn.180029210
cmp ax, word [r13 + 0x10]
jbe 0x18002b350
cmp dword [rsp + 0x44], 0
jne 0x18002b170
lea r8, [rbp + 0xb0]
mov rdx, r12
mov rcx, r13
call qword [r13 + 0x80]
movzx edx, word [rbp + 0xc4]
cmp edx, dword [rbp + 0xc0]
jae 0x18002b35c
mov rcx, qword [rbx + 0x58]
cmp rcx, r12
jb 0x18002b31e
lea rax, [r12 + rdx]
cmp rcx, rax
jb 0x18002b391
movzx eax, word [rbp + 0xc6]
mov r8b, 3
mov r9d, dword [r13 + 4]
mov rcx, qword [r13 + 0x48]
mov edx, dword [rax + r12 - 4]
lea rax, [rsp + 0x40]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.180020d70
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
jmp 0x18002b354
mov eax, dword [rsp + 0x44]
test eax, eax
jne 0x18002b170
mov r8, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rsp + 0x60]
add rcx, 8
add rax, 2
inc r14d
mov qword [rbp - 0x70], rcx
mov qword [rsp + 0x60], rax
cmp r14d, dword [rbp - 0x30]
jge 0x18002b3c4
mov rdx, qword [rbp - 0x78]
mov r10, qword [rbp - 0x80]
jmp 0x18002b130
lea rax, [0x180140714]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x10244
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call sym.QoOBJSl.dll_hqlite3_log
jmp 0x18002b175
lea r12, [rsi - 1]
mov rbx, qword [rbp + 0x88]
mov r13d, dword [rbp - 0x30]
test r12, r12
jle 0x18002b509
xor r15d, r15d
nop
movsxd rdx, dword [rbp + r15*4 + 0x70]
mov rax, qword [rbp - 0x18]
mov r14, qword [rbp + r15*8 + 0x88]
mov rcx, qword [rbp - 0x20]
movsxd rdi, dword [rbp - 0x60]
movzx eax, word [rax + rdx*2]
add rdi, qword [rbp - 0x58]
mov r9d, eax
add r9d, dword [rsp + 0x70]
cmp byte [r14 + 8], 0
mov rbx, qword [rcx + rdx*8]
jne 0x18002b422
mov rcx, qword [r14 + 0x50]
mov eax, dword [rbx]
mov dword [rcx + 8], eax
jmp 0x18002b4b3
cmp byte [rsp + 0x48], 0
je 0x18002b499
mov rdx, qword [rcx + rdx*8 - 8]
lea r8, [rbp + 0xe0]
mov rcx, r14
call qword [r14 + 0x80]
mov rdx, qword [rbp + 0xe0]
lea rcx, [rdi + 4]
mov rbx, rdi
cmp rdx, 0x7f
ja 0x18002b465
and dl, 0x7f
mov eax, 1
mov byte [rcx], dl
xor edi, edi
lea r9d, [rax + 4]
jmp 0x18002b4b3
cmp rdx, 0x3fff
ja 0x18002b48c
mov rax, rdx
and dl, 0x7f
shr rax, 7
or al, 0x80
mov byte [rcx + 1], dl
mov byte [rcx], al
xor edi, edi
mov eax, 2
lea r9d, [rax + 4]
jmp 0x18002b4b3
call fcn.18000b1e0
xor edi, edi
lea r9d, [rax + 4]
jmp 0x18002b4b3
sub rbx, 4
cmp eax, 4
jne 0x18002b4b3
mov rax, qword [rbp - 0x68]
mov rdx, rbx
mov rcx, rax
call qword [rax + 0x78]
movzx r9d, ax
mov rcx, qword [rbp - 0x68]
lea rax, [rsp + 0x40]
add dword [rbp - 0x60], r9d
mov r8, rbx
mov ebx, dword [rsp + 0x68]
mov edx, ebx
mov qword [rsp + 0x30], rax
mov eax, dword [r14 + 4]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call fcn.180028e70
mov r14d, dword [rsp + 0x40]
test r14d, r14d
jne 0x18002b175
inc ebx
inc r15
mov dword [rsp + 0x68], ebx
cmp r15, r12
jl 0x18002b3e0
mov rbx, qword [rbp + 0x88]
jmp 0x18002b50e
mov r14d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x4c]
mov r12d, 1
sub r12d, r8d
mov qword [rbp - 0x58], r12
cmp r12d, r8d
jge 0x18002b606
mov edi, dword [rbp + 0x70]
mov r15d, dword [rsp + 0x54]
mov eax, r12d
cdq
xor eax, edx
sub eax, edx
movsxd rbx, eax
cmp byte [rbp + rbx + 0xf8], 0
jne 0x18002b5ef
test r12d, r12d
jns 0x18002b560
mov ecx, dword [rbp + rbx*4 + 0x6c]
cmp dword [rbp + rbx*4 + 0xc4], ecx
jl 0x18002b5ef
test eax, eax
jne 0x18002b570
xor eax, eax
mov r9d, edi
mov edx, eax
mov r8d, eax
jmp 0x18002b5ab
xor r12d, r12d
cmp eax, dword [rsp + 0x6c]
mov eax, dword [rsp + 0x48]
jge 0x18002b58e
test al, al
mov edx, r12d
sete dl
add edx, dword [rbp + rbx*4 + 0xc4]
jmp 0x18002b591
mov edx, r13d
mov r9d, dword [rbp + rbx*4 + 0x70]
mov r8d, r12d
mov r12, qword [rbp - 0x58]
test al, al
sete r8b
add r8d, dword [rbp + rbx*4 + 0x6c]
sub r9d, r8d
mov rcx, qword [rbp + rbx*8 + 0x88]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call fcn.180029a50
mov dword [rsp + 0x40], eax
mov r14d, eax
test eax, eax
jne 0x18002b175
mov rax, qword [rbp + rbx*8 + 0x88]
mov ecx, r15d
sub ecx, dword [rbp + rbx*4 + 0x40]
mov r8d, dword [rsp + 0x4c]
mov byte [rbp + rbx + 0xf8], 1
mov dword [rax + 0x14], ecx
inc r12d
mov qword [rbp - 0x58], r12
cmp r12d, r8d
jl 0x18002b531
mov rbx, qword [rbp + 0x88]
cmp dword [rbp - 0x50], 0
je 0x18002b66b
mov rdi, qword [rbp - 0x68]
cmp word [rdi + 0x18], 0
jne 0x18002b66b
movzx eax, byte [rdi + 9]
cmp eax, dword [rbx + 0x14]
jg 0x18002b66b
mov edx, 0xffffffff
mov rcx, rbx
call fcn.180021540
mov rcx, qword [rbp + 0x88]
lea r8, [rsp + 0x40]
mov rdx, rdi
mov dword [rsp + 0x40], eax
call fcn.18002a0c0
mov r14d, dword [rsp + 0x40]
test r14d, r14d
jne 0x18002b6cb
mov rcx, qword [rbp + 0x88]
mov rdx, rcx
mov r8d, dword [rcx + 4]
mov rcx, qword [rcx + 0x48]
call fcn.180028130
mov r14d, eax
jmp 0x18002b6cb
mov r10, qword [rbp - 0x80]
cmp byte [r10 + 0x21], 0
je 0x18002b6cb
cmp word [rsp + 0x50], 0
jne 0x18002b6cb
test rsi, rsi
jle 0x18002b6cb
xor ebx, ebx
nop word [rax + rax]
mov rcx, qword [rbp + rbx*8 + 0x88]
mov r8b, 5
mov rax, qword [rcx + 0x50]
mov r9d, dword [rcx + 4]
mov rcx, r10
mov edx, dword [rax + 8]
lea rax, [rsp + 0x40]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.180020d70
mov r10, qword [rbp - 0x80]
inc rbx
cmp rbx, rsi
jl 0x18002b690
mov r14d, dword [rsp + 0x40]
movsxd rax, dword [rsp + 0x6c]
mov rbx, rax
cmp rsi, rax
jge 0x18002b175
nop dword [rax]
mov rcx, qword [rbp + rsi*8 + 0x58]
test r14d, r14d
jne 0x18002b6fd
mov r8d, dword [rcx + 4]
mov rdx, rcx
mov rcx, qword [rcx + 0x48]
call fcn.180028130
mov r14d, eax
inc rsi
cmp rsi, rbx
jl 0x18002b6e0
jmp 0x18002b175
mov rcx, rbx
call qword [0x18015a0a8]
jmp 0x18002a4f7
mov rcx, r8
call fcn.1800123d0
inc rbx
cmp rbx, rdi
jl 0x18002a520
movsxd rbx, dword [rsp + 0x4c]
mov rdi, qword [rsp + 0x238]
test rbx, rbx
jle 0x18002b7aa
nop
mov r8, qword [rbp + rsi*8 + 0x88]
test r8, r8
je 0x18002b7a2
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x18002b79a
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
movsxd rax, dword [r10 + 0xbc]
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
mov r9, qword [rcx]
imul rdx, rax
call qword [r9 + 0x90]
jmp 0x18002b7a2
mov rcx, r8
call fcn.1800123d0
inc rsi
cmp rsi, rbx
jl 0x18002b740
mov rbx, qword [rsp + 0x278]
mov eax, r14d
mov r14, qword [rsp + 0x228]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.18012ba20
add rsp, 0x240
pop r13
pop rsi
pop rbp
ret