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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x10291210]
xor eax, esp
mov dword [esp + 0x138], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov edx, dword [ebx + 0x34]
push edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x13c], eax
mov byte [esp + 0x140], al
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x34], edx
cmp ecx, eax
jne 0x1018ca49
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.100fd740
mov esp, ebp
pop ebp
ret
movzx ecx, word [ebx + 0x18]
movzx edx, byte [ebx + 0xc]
lea edi, [edx + ecx]
cmp edi, 2
jl 0x1018ca75
cmp esi, eax
je 0x1018ca6d
cmp esi, edi
jne 0x1018ca6a
mov eax, dword [ebp + 0x10]
lea eax, [edi + eax - 2]
jmp 0x1018ca6d
lea eax, [esi - 1]
mov edi, 2
sub edi, dword [ebp + 0x10]
mov dword [esp + 0x50], eax
sub eax, edx
add eax, edi
lea esi, [edi + 1]
mov dword [esp + 0x30], esi
cmp eax, ecx
jne 0x1018ca95
movzx ecx, byte [ebx + 9]
mov edx, dword [ebx + 0x38]
lea eax, [ecx + edx + 8]
jmp 0x1018caac
mov ecx, dword [ebx + 0x40]
mov dx, word [ecx + eax*2]
movzx ecx, word [ebx + 0x1a]
mov ah, dl
mov al, dh
movzx eax, ax
and eax, ecx
add eax, dword [ebx + 0x38]
mov esi, dword [eax]
bswap esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], esi
jmp 0x1018cac0
mov edx, dword [esp + 0x34]
cmp esi, dword [edx + 0x30]
jbe 0x1018caf5
push 0x1027dfdc
push 0x11dac
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.SQLite.Interop.dll_sqlite3_log
mov dword [esp + 0x5c], 0xb
mov eax, dword [esp + 0x5c]
add esp, 0x14
jmp 0x1018cb6d
push 0
lea ecx, [esp + 0x20]
mov eax, edx
mov eax, dword [eax]
mov edx, dword [eax + 0xcc]
push ecx
push esi
push eax
call edx
add esp, 0x10
mov dword [esp + 0x48], eax
test eax, eax
jne 0x1018cb65
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
cmp byte [eax], 0
mov dword [esp + edi*4 + 0x58], eax
jne 0x1018cb6b
cmp esi, dword [eax + 4]
je 0x1018cb4b
mov edx, dword [ecx + 4]
cmp esi, 1
mov dword [eax + 0x38], edx
setne dl
dec dl
mov dword [eax + 0x48], ecx
mov ecx, dword [esp + 0x34]
and dl, 0x64
mov dword [eax + 0x34], ecx
mov dword [eax + 4], esi
mov byte [eax + 9], dl
mov esi, eax
call fcn.1013c1f0
mov dword [esp + 0x48], eax
test eax, eax
je 0x1018cb6b
test esi, esi
je 0x1018cb65
mov eax, esi
call fcn.1013c030
mov eax, dword [esp + 0x48]
jmp 0x1018cb6d
xor eax, eax
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1018cca1
mov eax, dword [esp + edi*4 + 0x58]
cmp dword [eax + 0x14], 0
jge 0x1018cb98
push eax
call fcn.1011dd80
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1018ccbd
mov eax, edi
dec edi
test eax, eax
je 0x1018ccd9
mov al, byte [ebx + 0xc]
test al, al
je 0x1018cbe7
movzx ecx, word [ebx + 0x1c]
mov edx, dword [esp + 0x50]
add edx, edi
cmp edx, ecx
jne 0x1018cbe7
mov eax, dword [ebx + 0x24]
mov esi, dword [eax]
push eax
mov dword [esp + edi*4 + 0x134], eax
mov eax, dword [ebx + 0x4c]
bswap esi
push ebx
mov dword [esp + 0x54], esi
call eax
movzx ecx, ax
add esp, 8
mov dword [esp + edi*4 + 0xc0], ecx
mov byte [ebx + 0xc], 0
jmp 0x1018cac0
mov ecx, dword [ebx + 0x40]
movzx edx, al
mov eax, dword [esp + 0x50]
sub eax, edx
add eax, edi
mov dx, word [ecx + eax*2]
mov ah, dl
mov al, dh
movzx edx, word [ebx + 0x1a]
movzx ecx, ax
mov eax, dword [ebx + 0x38]
and ecx, edx
add eax, ecx
mov ecx, dword [eax]
bswap ecx
push eax
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx + 0x4c]
push ebx
mov dword [esp + edi*4 + 0x138], eax
call ecx
mov edx, dword [esp + 0x3c]
movzx esi, ax
add esp, 8
test byte [edx + 0x18], 0xc
mov dword [esp + edi*4 + 0xc0], esi
je 0x1018cc7b
mov eax, dword [esp + edi*4 + 0x130]
sub eax, dword [ebx + 0x38]
lea ecx, [esi + eax]
cmp ecx, dword [edx + 0x28]
jg 0x1018dc87
mov ecx, dword [esp + edi*4 + 0x130]
push esi
push ecx
mov ecx, dword [esp + 0x70]
add ecx, eax
push ecx
call fcn.100ffb30
mov edx, dword [esp + 0x74]
sub edx, dword [ebx + 0x38]
add esp, 0xc
add edx, dword [esp + edi*4 + 0x130]
mov dword [esp + edi*4 + 0x130], edx
movzx ecx, byte [ebx + 0xc]
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x14]
push eax
sub edx, ecx
push esi
add edx, edi
push edx
mov esi, ebx
call fcn.1012a8f0
mov esi, dword [esp + 0x58]
add esp, 0xc
jmp 0x1018cac0
lea eax, [edi*4 + 4]
push eax
lea ecx, [esp + 0x5c]
push 0
push ecx
call fcn.100ffab0
add esp, 0xc
jmp 0x1018dcd0
lea edx, [edi*4]
push edx
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.100ffab0
add esp, 0xc
jmp 0x1018dcd0
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 0x24]
mov edi, dword [esp + 0x30]
lea edx, [ecx - 8]
mov eax, 0xaaaaaaab
mul edx
mov esi, edx
shr esi, 2
add esi, 4
imul esi, edi
add esi, 3
and esi, 0xfffffffc
lea eax, [esi + esi*2]
lea eax, [ecx + eax*2]
cdq
mov ecx, eax
or ecx, edx
je 0x1018cd18
push edx
push eax
call fcn.10145440
add esp, 8
jmp 0x1018cd1a
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x88], eax
test eax, eax
jne 0x1018cd36
mov dword [esp + 0x14], 7
jmp 0x1018d1b6
lea eax, [eax + esi*4]
lea edx, [eax + esi*2]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x58]
movzx ecx, byte [eax + 8]
add cx, cx
add cx, cx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x84], eax
movzx eax, byte [eax + 3]
movzx edx, cx
mov dword [esp + 0x48], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], 0
test edi, edi
jle 0x1018cf96
jmp 0x1018cd80
mov eax, dword [esp + 0x10]
mov edi, dword [esp + eax*4 + 0x58]
movzx ecx, word [edi + 0x18]
movzx edx, word [edi + 0x1a]
mov ebx, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
lea eax, [esp + eax*4 + 0x58]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x28], edx
mov dl, byte [ebx]
add esi, ebx
cmp dl, byte [ecx]
jne 0x1018d190
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x80]
add eax, eax
push eax
lea eax, [ecx + edx*2]
push 0
push eax
call fcn.100ffab0
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x1018ce78
movzx eax, word [edi + 0x1c]
cmp dword [esp + 0x20], eax
jl 0x1018d21e
test eax, eax
jle 0x1018ce32
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x80]
mov cx, word [esi]
mov dh, cl
add esi, 2
inc eax
mov dl, ch
movzx ecx, word [esp + 0x28]
movzx edx, dx
and edx, ecx
mov ecx, dword [esp + 0x24]
add edx, ebx
dec dword [esp + 0x20]
mov dword [ecx + eax*4 - 4], edx
jne 0x1018ce04
mov dword [esp + 0x80], eax
jmp 0x1018ce3d
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x24]
cmp byte [edi + 0xc], 0
mov dword [esp + 0x3c], 0
jbe 0x1018ce7f
lea edx, [edi + 0x24]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
inc dword [esp + 0x3c]
add dword [esp + 0x18], 4
mov dword [ecx + eax*4], edx
movzx edx, byte [edi + 0xc]
inc eax
cmp dword [esp + 0x3c], edx
jl 0x1018ce52
mov dword [esp + 0x80], eax
jmp 0x1018ce7f
mov eax, dword [esp + 0x80]
movzx edx, word [edi + 0x12]
movzx ecx, word [edi + 0x18]
add edx, ebx
lea ecx, [edx + ecx*2]
mov dword [esp + 0x18], ecx
cmp esi, ecx
jae 0x1018cec6
movzx ecx, word [esp + 0x28]
mov dword [esp + 0x20], ecx
mov dx, word [esi]
mov ch, dl
add esi, 2
inc eax
mov cl, dh
movzx edx, cx
and edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add edx, ebx
mov dword [ecx + eax*4 - 4], edx
cmp esi, dword [esp + 0x18]
jb 0x1018ce9d
mov dword [esp + 0x80], eax
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
dec edx
mov dword [esp + ecx*4 + 0x104], eax
cmp ecx, edx
jge 0x1018cf87
cmp dword [esp + 0x40], 0
jne 0x1018cf87
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x8c]
mov esi, dword [esp + 0x80]
mov eax, ecx
movzx eax, word [esp + eax*4 + 0xc0]
mov ecx, dword [esp + 0x44]
add edx, ecx
add ecx, eax
push eax
mov word [ebx + esi*2], ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + eax*4 + 0x134]
push ecx
push edx
mov dword [esp + 0x2c], edx
call fcn.100ffb30
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x30]
movzx edx, ax
add edx, dword [esp + 0x2c]
add esp, 0xc
mov dword [ecx + esi*4], edx
sub word [ebx + esi*2], ax
cmp byte [edi + 8], 0
jne 0x1018cf58
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + esi*4]
mov edx, dword [eax + 8]
mov dword [ecx], edx
jmp 0x1018cf7b
cmp word [ebx + esi*2], 4
jae 0x1018cf7b
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov byte [ecx + eax], 0
inc word [ebx + esi*2]
inc eax
cmp word [ebx + esi*2], 4
jb 0x1018cf67
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x10]
inc esi
mov dword [esp + 0x80], esi
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x30]
jl 0x1018cd80
mov ecx, dword [esp + 0x34]
movzx eax, word [esp + 0x48]
mov edx, dword [ecx + 0x28]
lea eax, [edx + eax - 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x10], ecx
test eax, eax
jle 0x1018d08a
mov esi, dword [esp + ecx*4 + 0x58]
mov edx, dword [esi + 0x3c]
mov eax, dword [esp + ecx*4 + 0x104]
mov dword [esp + ebx*4 + 0x90], edx
mov dword [esp + ebx*4 + 0xa8], eax
test ebx, ebx
je 0x1018cfe8
cmp eax, dword [esp + ebx*4 + 0xa4]
jne 0x1018cfe8
dec ebx
cmp dword [esp + 0x40], 0
jne 0x1018d006
mov edx, dword [esp + 0x54]
mov edx, dword [edx + 0x3c]
inc ebx
inc eax
mov dword [esp + ebx*4 + 0x90], edx
mov dword [esp + ebx*4 + 0xa8], eax
mov eax, dword [esp + 0x44]
sub eax, dword [esi + 0x14]
cmp byte [esi + 0xc], 0
mov dword [esp + ecx*4 + 0xc0], eax
mov dword [esp + 0x1c], 0
jbe 0x1018d06a
mov edi, eax
lea eax, [esi + 0x24]
mov dword [esp + 0x18], eax
jmp 0x1018d030
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [esi + 0x4c]
push edx
push esi
call eax
movzx edx, byte [esi + 0xc]
add dword [esp + 0x20], 4
movzx ecx, ax
mov eax, dword [esp + 0x24]
inc eax
add esp, 8
lea edi, [edi + ecx + 2]
mov dword [esp + 0x1c], eax
cmp eax, edx
jl 0x1018d030
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xc0], edi
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x104]
mov dword [esp + ecx*4 + 0xd4], eax
mov eax, dword [esp + 0x30]
inc ecx
inc ebx
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x1018cfbe
xor ebx, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], ebx
cmp eax, ebx
jle 0x1018d358
lea eax, [esp + 0xd4]
sub eax, 4
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
jmp 0x1018d0c0
mov ecx, dword [esp + 0x44]
cmp dword [esp + ebx + 0xc0], ecx
jle 0x1018d257
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x3c]
jl 0x1018d102
inc eax
mov dword [esp + 0x3c], eax
cmp eax, 5
jg 0x1018d47e
mov edx, dword [esp + 0x80]
mov dword [esp + ebx + 0xc4], 0
mov dword [esp + ebx + 0xd8], edx
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + ecx + 0xd4]
mov edx, dword [esp + 0x8c]
lea eax, [ebx - 1]
mov dword [esp + 0x1c], eax
movzx eax, word [edx + eax*2]
test ax, ax
jne 0x1018d13b
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x80]
call fcn.1011dac0
mov ecx, dword [esp + 0x24]
movzx eax, ax
movzx eax, ax
add eax, 2
sub dword [esp + ecx + 0xc0], eax
cmp dword [esp + 0x40], 0
jne 0x1018d230
cmp ebx, dword [esp + 0x80]
jge 0x1018d22e
mov eax, dword [esp + 0x8c]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x1018d185
mov edi, ebx
lea esi, [esp + 0x80]
call fcn.1011dac0
mov ecx, dword [esp + 0x24]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x1018d230
push 0x1027dfdc
push 0x1333c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x14
mov dword [esp + 0x14], 0xb
mov esi, dword [esp + 0x88]
test esi, esi
je 0x1018dcd0
cmp dword [0x10292428], 0
je 0x1018dcc6
mov eax, dword [0x10299778]
test eax, eax
je 0x1018d1e5
push eax
call dword [0x10292478]
add esp, 4
push esi
call dword [0x10292454]
sub dword [0x10299710], eax
dec dword [0x10299734]
add esp, 4
push esi
call dword [0x1029244c]
mov eax, dword [0x10299778]
add esp, 4
test eax, eax
je 0x1018dcd0
push eax
call dword [0x10292480]
jmp 0x1018dccd
mov eax, 0x13354
call fcn.1011a6c0
mov dword [esp + 0x14], eax
jmp 0x1018d1b6
xor eax, eax
add dword [esp + ecx + 0xc4], eax
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov dword [esp + ecx + 0xd4], edx
cmp dword [esp + ecx + 0xc0], eax
jg 0x1018d0d1
mov edx, dword [esp + 0x80]
cmp dword [esp + ebx + 0xd4], edx
jge 0x1018d30b
jmp 0x1018d270
mov edi, dword [esp + ebx + 0xd4]
mov ecx, dword [esp + 0x8c]
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x1018d29d
lea esi, [esp + 0x80]
call fcn.1011dac0
mov edx, dword [esp + 0x80]
movzx eax, ax
mov ecx, dword [esp + ebx + 0xc0]
movzx eax, ax
add eax, 2
add ecx, eax
cmp ecx, dword [esp + 0x44]
jg 0x1018d30b
inc edi
cmp dword [esp + 0x40], 0
mov dword [esp + ebx + 0xc0], ecx
mov dword [esp + ebx + 0xd4], edi
jne 0x1018d2fc
cmp edi, edx
jge 0x1018d2fa
mov eax, dword [esp + 0x8c]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x1018d2f2
lea esi, [esp + 0x80]
call fcn.1011dac0
mov edx, dword [esp + 0x80]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x1018d2fc
xor eax, eax
sub dword [esp + ebx + 0xc4], eax
cmp edi, edx
jl 0x1018d270
mov ecx, dword [esp + ebx + 0xd4]
cmp ecx, edx
jl 0x1018d320
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x3c], ecx
jmp 0x1018d33a
cmp dword [esp + 0x10], 0
jle 0x1018d330
mov edx, dword [esp + 0x18]
mov eax, dword [edx + ebx]
jmp 0x1018d332
xor eax, eax
cmp ecx, eax
jle 0x1018d48d
mov eax, dword [esp + 0x10]
inc dword [esp + 0x28]
inc eax
add ebx, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ebx
cmp eax, dword [esp + 0x3c]
jl 0x1018d0c0
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x10], eax
test eax, eax
jle 0x1018d4b8
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + eax*4 + 0xbc]
mov edx, dword [esp + eax*4 + 0xc0]
mov dword [esp + 0x24], esi
lea esi, [esp + 0xd4]
mov ebx, dword [esi + eax*4 - 4]
sub esi, 4
dec ebx
mov edi, ebx
sub edi, dword [esp + 0x40]
mov dword [esp + 0x18], esi
inc edi
lea esi, [edi + edi]
cmp word [esi + ecx], 0
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], esi
jne 0x1018d3cd
lea esi, [esp + 0x80]
call fcn.1011dac0
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], esi
cmp word [ecx + ebx*2], 0
jne 0x1018d3f5
mov edi, ebx
lea esi, [esp + 0x80]
call fcn.1011dac0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x10]
test edx, edx
je 0x1018d42b
cmp dword [ebp + 0x10], 0
jne 0x1018d45d
mov esi, dword [esp + 0x3c]
dec esi
mov edi, eax
sub edi, esi
mov esi, dword [esp + 0x24]
neg edi
sbb edi, edi
and edi, 2
sub esi, edi
movzx edi, word [ecx + ebx*2]
sub esi, edi
mov edi, dword [esp + 0x28]
movzx edi, word [edi + ecx]
lea edi, [edi + edx + 2]
cmp edi, esi
jg 0x1018d45d
mov esi, dword [esp + 0x28]
movzx esi, word [esi + ecx]
sub dword [esp + 0x28], 2
lea edx, [edx + esi + 2]
movzx esi, word [ecx + ebx*2]
mov edi, 0xfffffffe
sub edi, esi
mov esi, dword [esp + 0x18]
add dword [esp + 0x24], edi
mov dword [esi + eax*4], ebx
dec ebx
mov dword [esp + 0x20], edx
jns 0x1018d3d1
mov dword [esp + eax*4 + 0xc0], edx
mov edx, dword [esp + 0x24]
mov dword [esp + eax*4 + 0xbc], edx
cmp eax, 1
jle 0x1018d49c
mov edx, dword [esp + 0x18]
mov edx, dword [edx + eax*4 - 4]
jmp 0x1018d49e
push 0x1027dfdc
push 0x133b9
jmp 0x1018d19a
push 0x1027dfdc
push 0x133da
jmp 0x1018d19a
xor edx, edx
mov esi, dword [esp + 0x18]
cmp dword [esi + eax*4], edx
jle 0x1018d52d
dec eax
mov dword [esp + 0x10], eax
test eax, eax
jg 0x1018d370
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x38]
movzx edx, byte [ecx]
xor edi, edi
mov dword [esp + 0x20], edx
cmp dword [esp + 0x3c], edi
jle 0x1018d624
cmp edi, dword [esp + 0x30]
jge 0x1018d590
mov eax, dword [esp + edi*4 + 0x58]
mov esi, dword [eax + 0x48]
test byte [esi + 0x1c], 4
mov ecx, dword [esi + 0x14]
mov dword [esp + edi*4 + 0x6c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + edi*4 + 0x58], 0
je 0x1018d54d
mov eax, dword [ecx + 0x18]
cmp eax, dword [esi + 0x18]
jb 0x1018d54d
cmp dword [ecx + 0x60], 0
je 0x1018d53c
mov ecx, esi
call fcn.1012c010
test eax, eax
je 0x1018d53c
push esi
call fcn.1015c740
inc dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jmp 0x1018d613
push 0x1027dfdc
push 0x13404
jmp 0x1018d19a
inc dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x14], eax
test eax, eax
jmp 0x1018d613
mov eax, dword [ecx + 0x28]
test eax, eax
jne 0x1018d581
mov edx, dword [ecx + 0x94]
cmp edx, dword [ecx + 0x98]
jbe 0x1018d57a
push esi
call fcn.1016da20
inc dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jmp 0x1018d613
mov eax, esi
call fcn.10167400
inc dword [esp + 0x2c]
mov dword [esp + 0x14], eax
test eax, eax
jmp 0x1018d613
cmp dword [ebp + 0x10], 0
mov eax, 1
jne 0x1018d59f
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x34]
push 0
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
call fcn.10179de0
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1018d1b6
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push edx
call fcn.1013c120
inc dword [esp + 0x30]
mov eax, dword [esp + 0x84]
add esp, 4
cmp byte [ebx + 0x11], 0
mov dword [esp + edi*4 + 0x6c], esi
mov dword [esp + edi*4 + 0x104], eax
je 0x1018d619
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esi + 4]
push 5
mov ecx, ebx
call fcn.1017a6d0
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x1018d1b6
inc edi
cmp edi, dword [esp + 0x3c]
jl 0x1018d4d2
mov esi, dword [esp + 0x2c]
xor eax, eax
test esi, esi
jle 0x1018d677
mov edi, edi
mov ecx, dword [esp + eax*4 + 0x6c]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0x48]
mov cx, word [ecx + 0x1c]
mov word [esp + eax*2 + 0x130], cx
xor ecx, ecx
mov dword [esp + eax*4 + 0x118], edx
mov dword [esp + eax*4 + 0xe8], edx
test eax, eax
jle 0x1018d672
lea ebx, [ebx]
cmp dword [esp + ecx*4 + 0x118], edx
je 0x1018d7f2
inc ecx
cmp ecx, eax
jl 0x1018d660
inc eax
cmp eax, esi
jl 0x1018d630
mov dword [esp + 0x10], 0
test esi, esi
jle 0x1018d741
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
nop
xor ebx, ebx
lea eax, [ebx + 1]
cmp esi, eax
jle 0x1018d6c4
xor edx, edx
jmp 0x1018d6a0
lea ecx, [eax*4]
mov edi, dword [esp + ecx + 0xe8]
cmp edi, dword [esp + edx + 0xe8]
jae 0x1018d6bb
mov ebx, eax
mov edx, ecx
inc eax
cmp eax, esi
jl 0x1018d6a0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + ebx*4 + 0xe8]
mov dword [esp + 0x4c], edx
mov dword [esp + ebx*4 + 0xe8], 0xffffffff
cmp ebx, ecx
je 0x1018d734
jle 0x1018d6fd
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x30]
mov edx, dword [esp + ebx*4 + 0x6c]
mov esi, dword [edx + 0x48]
xor eax, eax
lea edi, [ecx + ebx + 1]
mov word [esi + 0x1c], ax
call fcn.1012c730
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + ecx*4 + 0x6c]
mov eax, dword [eax + 0x48]
mov dx, word [esp + ebx*2 + 0x130]
mov edi, dword [esp + 0x4c]
mov esi, eax
mov word [eax + 0x1c], dx
call fcn.1012c730
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x6c]
mov esi, dword [esp + 0x2c]
mov ecx, edi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, esi
jl 0x1018d690
test byte [esp + 0x20], 8
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + edx*4 + 0x68]
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x38]
bswap ecx
mov dword [esi], ecx
jne 0x1018d77d
mov ecx, dword [esp + 0x30]
cmp edx, ecx
je 0x1018d77d
lea edx, [esp + 0x6c]
jg 0x1018d76d
lea edx, [esp + 0x58]
mov edx, dword [edx + ecx*4 - 4]
mov ecx, dword [edx + 0x38]
mov edx, dword [eax + 0x38]
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x34]
cmp byte [ecx + 0x11], 0
je 0x1018d950
mov esi, dword [esp + 0x6c]
movzx eax, word [esi + 0x18]
movzx edx, byte [esi + 0xc]
xor edi, edi
add eax, edx
mov ebx, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], edi
cmp dword [esp + 0x80], edi
jle 0x1018d950
mov dword [esp + 0x1c], edi
mov edi, edi
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + edi*4]
mov dword [esp + 0x18], ecx
cmp edi, dword [esp + 0x20]
jne 0x1018d823
xor eax, eax
cmp dword [esp + 0x40], eax
sete al
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0x2c]
jge 0x1018d801
mov ebx, dword [esp + ecx*4 + 0x6c]
jmp 0x1018d805
push 0x1027dfdc
push 0x1344e
jmp 0x1018d19a
mov ebx, dword [esp + ecx*4 + 0x58]
movzx ecx, word [ebx + 0x18]
movzx edx, byte [ebx + 0xc]
add ecx, eax
add edx, ecx
mov ecx, dword [esp + 0x20]
add ecx, edx
mov dword [esp + 0x20], ecx
cmp edi, ecx
je 0x1018d7dd
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp edi, dword [esp + eax + 0xd4]
jne 0x1018d854
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
add eax, eax
add eax, eax
cmp dword [esp + 0x40], 0
mov esi, dword [esp + eax + 0x6c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], esi
je 0x1018d942
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x2c]
jge 0x1018d878
mov edx, dword [esi + 4]
cmp edx, dword [esp + eax*4 + 0x118]
jne 0x1018d878
cmp ecx, dword [ebx + 0x38]
jb 0x1018d878
cmp ecx, dword [ebx + 0x3c]
jb 0x1018d942
cmp word [esp + 0x48], 0
jne 0x1018d89f
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x3c]
push 5
bswap eax
call fcn.1017a6d0
add esp, 0xc
mov eax, dword [esp + 0x8c]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x1018d8c2
lea esi, [esp + 0x80]
call fcn.1011dac0
mov esi, dword [esp + 0x24]
movzx eax, ax
cmp ax, word [esi + 0x10]
jbe 0x1018d937
cmp dword [esp + 0x14], 0
jne 0x1018d1b6
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x50]
lea ecx, [esp + 0xe8]
push ecx
push edx
push esi
call eax
movzx ecx, word [esp + 0x104]
add esp, 0xc
cmp ecx, dword [esp + 0xf4]
jae 0x1018d942
mov eax, dword [ebx + 0x3c]
mov edx, dword [esp + 0x18]
cmp eax, edx
jb 0x1018d90f
add ecx, edx
cmp eax, ecx
jb 0x1018d9ba
movzx eax, word [esp + 0xfa]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + ecx - 4]
mov ecx, dword [esi + 0x34]
push edx
push 3
bswap eax
call fcn.1017a6d0
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x1018d1b6
inc edi
cmp edi, dword [esp + 0x80]
jl 0x1018d7c0
mov eax, dword [esp + 0x2c]
dec eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x1018dac7
jmp 0x1018d970
mov ecx, dword [esp + ebx*4 + 0xd4]
mov edx, dword [esp + 0x88]
mov eax, dword [edx + ecx*4]
mov edx, dword [esp + 0x8c]
movzx edx, word [edx + ecx*2]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + ebx*4 + 0x6c]
add esi, dword [esp + 0x64]
mov dword [esp + 0x38], eax
movzx eax, word [esp + 0x48]
add eax, edx
cmp byte [edi + 8], 0
jne 0x1018d9c9
mov ebx, dword [esp + 0x38]
mov ecx, dword [edi + 0x38]
mov edx, dword [ebx]
mov dword [ecx + 8], edx
jmp 0x1018da85
push 0x1027dfdc
push 0x11a94
jmp 0x1018d19a
cmp dword [esp + 0x40], 0
je 0x1018da68
mov edx, dword [esp + 0x88]
lea eax, [esp + 0x118]
push eax
mov eax, dword [edx + ecx*4 - 4]
mov ecx, dword [edi + 0x50]
push eax
push edi
call ecx
mov eax, dword [esp + 0x128]
mov edx, dword [esp + 0x124]
add esp, 0xc
mov ebx, esi
mov ecx, edx
mov dword [esp + 0x134], eax
test eax, eax
ja 0x1018da54
jb 0x1018da15
cmp edx, 0x7f
ja 0x1018da27
and dl, 0x7f
mov eax, 1
mov byte [esi + 4], dl
add eax, 4
xor esi, esi
jmp 0x1018da85
test eax, eax
ja 0x1018da54
jb 0x1018da35
cmp edx, 0x3fff
ja 0x1018da54
shrd edx, eax, 7
shr eax, 7
or dl, 0x80
and cl, 0x7f
mov eax, 2
mov byte [esi + 4], dl
mov byte [esi + 5], cl
add eax, 4
xor esi, esi
jmp 0x1018da85
push eax
push edx
lea ecx, [esi + 4]
call fcn.10120180
add esp, 8
add eax, 4
xor esi, esi
jmp 0x1018da85
mov ebx, dword [esp + 0x38]
sub ebx, 4
cmp edx, 4
jne 0x1018da85
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x4c]
push ebx
push eax
call edx
add esp, 8
movzx eax, ax
mov edx, dword [edi + 4]
add dword [esp + 0x64], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
mov eax, dword [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x20]
add eax, ebx
push eax
mov eax, esi
call fcn.101807c0
add esp, 0x14
cmp dword [esp + 0x14], 0
jne 0x1018d1b6
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, dword [esp + 0x1c]
jl 0x1018d970
mov edi, dword [esp + 0x2c]
mov ecx, 1
sub ecx, edi
mov dword [esp + 0x10], ecx
cmp ecx, edi
jge 0x1018dba9
mov ebx, dword [esp + 0x40]
mov eax, ecx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
cmp byte [esp + esi + 0x13c], 0
jne 0x1018db9c
test ecx, ecx
jns 0x1018db11
mov edx, dword [esp + esi*4 + 0x100]
cmp edx, dword [esp + esi*4 + 0xd0]
jl 0x1018db9c
test esi, esi
jne 0x1018db22
mov eax, dword [esp + 0xd4]
xor edx, edx
xor ecx, ecx
jmp 0x1018db56
cmp esi, dword [esp + 0x30]
jge 0x1018db38
xor edx, edx
test ebx, ebx
sete dl
add edx, dword [esp + esi*4 + 0x100]
jmp 0x1018db3f
mov edx, dword [esp + 0x80]
mov eax, dword [esp + esi*4 + 0xd4]
xor ecx, ecx
test ebx, ebx
sete cl
add ecx, dword [esp + esi*4 + 0xd0]
sub eax, ecx
mov ebx, dword [esp + esi*4 + 0x6c]
lea edi, [esp + 0x80]
push edi
push eax
push ecx
push edx
push ebx
call fcn.10134420
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1018d1b6
mov eax, dword [esp + 0x44]
sub eax, dword [esp + esi*4 + 0xc0]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x14], eax
mov ebx, dword [esp + 0x40]
mov byte [esp + esi + 0x13c], 1
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, edi
jl 0x1018dae2
cmp dword [ebp + 0xc], 0
je 0x1018dc0a
mov eax, dword [esp + 0x54]
cmp word [eax + 0x18], 0
jne 0x1018dc0a
movzx ecx, byte [eax + 9]
mov edx, dword [esp + 0x6c]
cmp ecx, dword [edx + 0x14]
jg 0x1018dc0a
mov eax, edx
push 0xffffffffffffffff
push eax
call fcn.1012ace0
mov esi, dword [esp + 0x74]
mov ebx, dword [esp + 0x5c]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
push ecx
mov eax, esi
call fcn.10185230
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x1018dc48
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x34]
push edx
mov eax, esi
call fcn.1017f220
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x1018dc48
mov ebx, dword [esp + 0x34]
cmp byte [ebx + 0x11], 0
je 0x1018dc48
cmp word [esp + 0x48], 0
jne 0x1018dc48
xor esi, esi
test edi, edi
jle 0x1018dc48
mov eax, dword [esp + esi*4 + 0x6c]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
push 5
bswap eax
mov ecx, ebx
call fcn.1017a6d0
inc esi
add esp, 0xc
cmp esi, edi
jl 0x1018dc22
mov esi, dword [esp + 0x2c]
cmp esi, dword [esp + 0x30]
jge 0x1018d1b6
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov edi, edi
mov eax, dword [esp + esi*4 + 0x58]
test ecx, ecx
jne 0x1018dc79
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [eax + 0x34]
call fcn.1017f220
add esp, 4
mov ecx, eax
inc esi
cmp esi, edi
jl 0x1018dc60
mov dword [esp + 0x14], ecx
jmp 0x1018d1b6
push 0x1027dfdc
push 0x132f9
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x14
lea edx, [edi*4 + 4]
push edx
lea eax, [esp + 0x5c]
push 0
push eax
mov dword [esp + 0x20], 0xb
call fcn.100ffab0
add esp, 0xc
jmp 0x1018dcd0
push esi
call dword [0x1029244c]
add esp, 4
xor edi, edi
cmp dword [esp + 0x30], edi
jle 0x1018dd3d
mov eax, dword [esp + edi*4 + 0x58]
test eax, eax
je 0x1018dd36
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], 0x20
je 0x1018dd31
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [esi]
dec eax
push edx
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x44]
push 0
push eax
call fcn.10100050
push edx
push eax
mov eax, dword [ebx + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x1018dd36
call fcn.1012c920
inc edi
cmp edi, dword [esp + 0x30]
jl 0x1018dcd8
xor edi, edi
cmp dword [esp + 0x2c], edi
jle 0x1018ddaa
mov eax, dword [esp + edi*4 + 0x6c]
test eax, eax
je 0x1018dda3
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], 0x20
je 0x1018dd9e
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [esi]
dec eax
push edx
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x44]
push 0
push eax
call fcn.10100050
push edx
push eax
mov eax, dword [ebx + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x1018dda3
call fcn.1012c920
inc edi
cmp edi, dword [esp + 0x2c]
jl 0x1018dd45
mov ecx, dword [esp + 0x144]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100fd740
mov esp, ebp
pop ebp
ret