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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x10125170]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
mov eax, ecx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
xor ebx, ebx
push edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x9c], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x124], 0
mov byte [esp + 0x128], 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x30], ecx
test esi, esi
jne 0x100cf191
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.10001186
mov esp, ebp
pop ebp
ret
movzx edi, word [eax + 0x16]
movzx ecx, byte [eax + 0xc]
lea esi, [ecx + edi]
cmp esi, 2
jge 0x100cf1a5
xor edx, edx
jmp 0x100cf1c2
test edx, edx
je 0x100cf1b8
cmp edx, esi
jne 0x100cf1b7
mov eax, dword [ebp + 0x10]
lea edx, [eax - 2]
add edx, esi
jmp 0x100cf1bb
dec edx
mov eax, dword [ebp + 0x10]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x44], eax
mov eax, edx
sub eax, ecx
mov dword [esp + 0x6c], edx
lea ecx, [eax + esi]
cmp ecx, edi
jne 0x100cf1ea
mov eax, dword [esp + 0x38]
movzx ecx, byte [eax + 9]
mov eax, dword [eax + 0x38]
add ecx, 8
add ecx, eax
jmp 0x100cf205
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x38]
mov edi, dword [ecx]
bswap edi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x74], edi
mov dword [esp + 0x5c], edi
mov eax, dword [esp + 0x30]
cmp edi, dword [eax + 0x30]
jbe 0x100cf246
push 0x1010288c
push 0xf134
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 edi, 0xb
jmp 0x100cf2c6
mov eax, dword [eax]
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
mov eax, dword [eax + 0xc8]
call eax
mov edi, eax
add esp, 0x10
mov dword [esp + 0x10], edi
test edi, edi
jne 0x100cf2ca
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
mov dword [esp + esi*4 + 0x7c], eax
cmp byte [eax], 0
jne 0x100cf2c4
mov ecx, dword [edx + 8]
mov edi, dword [esp + 0x74]
cmp edi, dword [ecx + 4]
je 0x100cf2a2
mov eax, dword [edx + 4]
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x30]
cmp edi, 1
mov dword [ecx + 0x34], eax
setne al
dec al
and al, 0x64
mov dword [ecx + 0x48], edx
mov dword [ecx + 4], edi
mov byte [ecx + 9], al
mov ecx, dword [esp + esi*4 + 0x7c]
call fcn.100d5de0
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x100cf2c4
mov ecx, dword [esp + esi*4 + 0x7c]
test ecx, ecx
je 0x100cf2ca
call fcn.100d5a50
jmp 0x100cf2ca
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
test edi, edi
jne 0x100cf449
mov eax, dword [esp + esi*4 + 0x7c]
movzx ecx, word [eax + 0x16]
movzx eax, byte [eax + 0xc]
inc eax
add eax, dword [esp + 0x1c]
add ecx, eax
mov eax, esi
dec esi
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x100cf4cb
mov edi, dword [esp + 0x38]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x100cf34c
movzx ecx, word [edi + 0x1a]
mov eax, dword [esp + 0x6c]
add eax, esi
cmp eax, ecx
jne 0x100cf34c
mov eax, dword [edi + 0x24]
push eax
mov edi, dword [eax]
bswap edi
mov dword [esp + esi*4 + 0x114], eax
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x64], edi
call eax
movzx eax, ax
mov dword [esp + esi*4 + 0xa8], eax
mov eax, dword [esp + 0x40]
add esp, 8
mov byte [eax + 0xc], 0
jmp 0x100cf215
mov ecx, dword [esp + 0x6c]
movzx eax, dl
sub ecx, eax
mov eax, dword [edi + 0x40]
add ecx, esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x18]
movzx ecx, cx
and ecx, eax
mov eax, dword [edi + 0x38]
mov edi, dword [eax + ecx]
add eax, ecx
push eax
bswap edi
mov dword [esp + esi*4 + 0x114], eax
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x64], edi
call eax
movzx edx, ax
mov eax, dword [esp + 0x38]
add esp, 8
test byte [eax + 0x18], 0xc
mov dword [esp + 0x40], edx
mov dword [esp + esi*4 + 0xa0], edx
je 0x100cf400
mov edi, dword [esp + esi*4 + 0x110]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
mov ecx, edi
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
cmp eax, dword [ebx + 0x28]
mov ebx, 0
jg 0x100cf423
mov eax, dword [esp + 0x9c]
push edx
add eax, ecx
push edi
push eax
call fcn.100086a0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0xa8]
sub eax, dword [ecx + 0x38]
mov edx, dword [esp + 0x4c]
add esp, 0xc
add eax, edi
mov edi, dword [esp + 0x74]
mov dword [esp + esi*4 + 0x110], eax
jmp 0x100cf404
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
movzx eax, byte [ecx + 0xc]
push edx
mov edx, dword [esp + 0x74]
sub edx, eax
add edx, esi
call fcn.100d11f0
add esp, 8
jmp 0x100cf215
push 0x1010288c
push 0x1058f
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 + 0x10], 0xb
lea eax, [esi*4 + 4]
push eax
lea eax, [esp + 0x80]
push 0
push eax
call fcn.10003750
add esp, 0xc
xor ebx, ebx
cmp dword [esp + 0x44], ebx
jle 0x100d04ae
nop
mov edx, dword [esp + ebx*4 + 0x7c]
test edx, edx
je 0x100d04a3
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100d049c
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
mov edi, dword [esi]
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.100070f0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x100d04a3
mov eax, dword [esp + 0x30]
lea esi, [ecx + 3]
mov eax, dword [eax + 0x24]
and esi, 0xfffffffc
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*2]
cdq
mov ecx, eax
or ecx, edx
je 0x100cf4f1
push edx
push eax
call fcn.100ecdb0
add esp, 8
jmp 0x100cf4f3
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], eax
test eax, eax
jne 0x100cf50c
mov dword [esp + 0x10], 7
jmp 0x100d0423
mov ecx, dword [esp + 0x7c]
lea eax, [eax + esi*4]
mov dword [esp + 0x58], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x14], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x78], eax
movzx eax, byte [ecx + 3]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x28], eax
cmp dword [esp + 0x44], eax
jle 0x100cf742
lea esp, [esp]
shl eax, 2
mov dword [esp + 0x40], eax
mov edi, dword [esp + eax + 0x7c]
mov dword [esp + 0x70], edi
movzx eax, word [edi + 0x18]
mov edx, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
add esi, edx
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
mov dword [esp + 0x48], edx
mov dword [esp + 0x1c], esi
cmp al, byte [ecx]
jne 0x100cf8de
movzx eax, byte [edi + 0xc]
movzx ecx, word [edi + 0x16]
add ecx, eax
mov eax, dword [esp + 0x58]
add ecx, ecx
push ecx
lea eax, [eax + ebx*2]
push 0
push eax
call fcn.10003750
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x100cf622
movzx edx, word [edi + 0x1a]
test edx, edx
jle 0x100cf5f6
mov edi, dword [esp + 0x3c]
lea ebx, [ebx]
mov ax, word [esi]
mov ebx, dword [esp + 0x2c]
mov ch, al
add esi, 2
mov cl, ah
movzx eax, cx
movzx ecx, bx
mov ebx, dword [esp + 0x34]
and eax, ecx
add eax, dword [esp + 0x48]
inc ebx
mov dword [edi + ebx*4 - 4], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], ebx
dec edx
jne 0x100cf5c0
mov edi, dword [esp + 0x70]
mov dword [esp + 0x1c], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x100cf622
mov esi, dword [esp + 0x3c]
lea ecx, [edi + 0x24]
mov eax, dword [ecx]
mov dword [esi + ebx*4], eax
movzx eax, byte [edi + 0xc]
inc ebx
inc edx
mov dword [esp + 0x4c], ebx
lea ecx, [ecx + 4]
cmp edx, eax
jl 0x100cf604
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x34], ebx
movzx eax, word [edi + 0x12]
movzx ecx, word [edi + 0x16]
add eax, dword [esp + 0x48]
lea edx, [eax + ecx*2]
cmp esi, edx
jae 0x100cf673
mov edi, dword [esp + 0x3c]
lea esp, [esp]
mov ax, word [esi]
mov ebx, dword [esp + 0x2c]
mov ch, al
add esi, 2
mov cl, ah
movzx eax, cx
movzx ecx, bx
mov ebx, dword [esp + 0x34]
and eax, ecx
add eax, dword [esp + 0x48]
inc ebx
mov dword [edi + ebx*4 - 4], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], ebx
cmp esi, edx
jb 0x100cf640
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
dec eax
mov dword [esp + ecx + 0xe4], ebx
cmp dword [esp + 0x28], eax
jge 0x100cf72f
cmp dword [esp + 0x64], 0
jne 0x100cf72f
movzx eax, word [esp + ecx + 0xa0]
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x14]
mov word [ecx + ebx*2], ax
mov ecx, dword [esp + 0x20]
add esi, ecx
push eax
add ecx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], ecx
push dword [esp + eax + 0x114]
push esi
call fcn.100086a0
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x64]
lea ecx, [eax + ebx*4]
mov eax, dword [esp + 0x84]
movzx eax, ax
add eax, esi
mov dword [ecx], eax
mov eax, dword [esp + 0x84]
sub word [edx + ebx*2], ax
add esp, 0xc
cmp byte [edi + 8], 0
jne 0x100cf703
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x100cf726
cmp word [edx + ebx*2], 4
jae 0x100cf726
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0
inc word [edx + ebx*2]
inc eax
cmp word [edx + ebx*2], 4
jb 0x100cf712
mov dword [esp + 0x20], eax
inc ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x44]
jl 0x100cf550
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x44]
movzx esi, ax
mov eax, dword [esp + 0x30]
add esi, 0xfffffff4
mov eax, dword [eax + 0x28]
add esi, eax
xor edx, edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edx
test ecx, ecx
jle 0x100cf7fc
lea esi, [esp + 0xe4]
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x3c]
nop
mov esi, dword [esp + edx*4 + 0x7c]
mov edi, ecx
movzx eax, word [esi + 0x14]
sub edi, eax
cmp byte [esi + 0xc], 0
lea eax, [esp + 0xa0]
mov dword [esp + 0x14], 0
lea eax, [eax + edx*4]
mov dword [esp + 0x70], eax
mov dword [eax], edi
jbe 0x100cf7e5
lea ebx, [esi + 0x24]
lea ecx, [ecx]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [esp + 0x1c]
movzx eax, ax
add eax, 2
add edi, eax
movzx eax, byte [esi + 0xc]
inc ecx
add esp, 8
mov dword [esp + 0x14], ecx
lea ebx, [ebx + 4]
cmp ecx, eax
jl 0x100cf7b0
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [eax], edi
inc edx
mov dword [esp + 0x40], edx
cmp edx, dword [esp + 0x44]
jl 0x100cf780
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov eax, ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], 0
test ecx, ecx
jle 0x100cfa43
xor edx, edx
lea ecx, [esp + 0xb4]
mov edi, 1
sub ecx, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
nop
cmp dword [esp + edx + 0xa0], esi
jle 0x100cf932
lea ecx, [ecx]
cmp edi, eax
jl 0x100cf866
lea eax, [edi + 1]
mov dword [esp + 0x48], eax
cmp eax, 5
jg 0x100cfb34
mov dword [esp + edx + 0xa4], 0
mov dword [esp + edx + 0xb8], ebx
mov esi, dword [esp + edx + 0xb4]
mov ecx, dword [esp + 0x58]
lea edi, [esi - 1]
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x100cf89b
mov edx, edi
lea ecx, [esp + 0x4c]
call fcn.100d1030
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x58]
movzx eax, ax
mov dword [esp + 0x34], ebx
movzx eax, ax
add eax, 2
sub dword [esp + edx + 0xa0], eax
cmp dword [esp + 0x64], 0
jne 0x100cf90b
cmp esi, ebx
jge 0x100cf909
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x100cf8d2
mov edx, esi
lea ecx, [esp + 0x4c]
call fcn.100d1030
mov ebx, dword [esp + 0x4c]
movzx eax, ax
mov dword [esp + 0x34], ebx
mov edx, dword [esp + 0x20]
movzx eax, ax
add eax, 2
jmp 0x100cf90b
push 0x1010288c
push 0x105d0
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 + 0x10], 0xb
jmp 0x100d0423
xor eax, eax
add dword [esp + edx + 0xa4], eax
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
mov dword [esp + edx + 0xb4], edi
mov edi, dword [esp + 0x2c]
cmp dword [esp + edx + 0xa0], esi
jg 0x100cf840
cmp dword [esp + edx + 0xb4], ebx
jge 0x100cf9f5
mov edi, dword [esp + 0x58]
jmp 0x100cf950
mov esi, dword [esp + edx + 0xb4]
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x100cf97a
mov edx, esi
lea ecx, [esp + 0x4c]
call fcn.100d1030
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x58]
movzx eax, ax
movzx ecx, ax
mov eax, dword [esp + edx + 0xa0]
add ecx, 2
add eax, ecx
cmp eax, dword [esp + 0x3c]
jg 0x100cf9e5
inc esi
cmp dword [esp + 0x64], 0
mov dword [esp + edx + 0xa0], eax
mov dword [esp + edx + 0xb4], esi
jne 0x100cf9d6
cmp esi, ebx
jge 0x100cf9d4
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x100cf9c8
mov edx, esi
lea ecx, [esp + 0x4c]
call fcn.100d1030
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x58]
movzx eax, ax
mov edx, dword [esp + 0x20]
movzx ecx, ax
add ecx, 2
jmp 0x100cf9d6
xor ecx, ecx
sub dword [esp + edx + 0xa4], ecx
cmp esi, ebx
jl 0x100cf950
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + edx + 0xb4]
cmp ecx, ebx
jl 0x100cfa08
mov eax, edi
mov dword [esp + 0x48], eax
jmp 0x100cfa26
cmp dword [esp + 0x28], 0
jle 0x100cfa18
mov eax, dword [esp + 0x14]
mov eax, dword [eax + edx]
jmp 0x100cfa1a
xor eax, eax
cmp ecx, eax
jle 0x100cfb5f
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
inc ecx
add edx, 4
inc edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], edi
cmp ecx, eax
jl 0x100cf830
dec eax
mov ecx, eax
mov dword [esp + 0x1c], eax
test ecx, ecx
jle 0x100cfbd7
shl ecx, 2
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + ecx + 0x9c]
mov edi, dword [esp + ecx + 0xa0]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xb4]
sub eax, 4
mov dword [esp + 0x28], eax
mov esi, dword [ecx + eax]
mov eax, dword [esp + 0x58]
dec esi
mov edx, esi
sub edx, dword [esp + 0x64]
inc edx
lea ebx, [edx + edx]
cmp word [ebx + eax], 0
jne 0x100cfaa0
lea ecx, [esp + 0x4c]
call fcn.100d1030
jmp 0x100cfaa0
mov edx, dword [esp + 0x58]
cmp word [edx + esi*2], 0
jne 0x100cfaba
mov edx, esi
lea ecx, [esp + 0x4c]
call fcn.100d1030
mov edx, dword [esp + 0x58]
test edi, edi
je 0x100cfaff
cmp dword [ebp + 0x10], 0
jne 0x100cfb8a
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x58]
dec ecx
cmp dword [esp + 0x1c], ecx
mov ecx, 0
mov eax, 2
cmove eax, ecx
mov ecx, dword [esp + 0x20]
sub ecx, eax
movzx eax, word [edx + esi*2]
sub ecx, eax
movzx eax, word [ebx + edx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x100cfb8a
movzx eax, word [ebx + edx]
add eax, 2
add edi, eax
movzx eax, word [edx + esi*2]
mov edx, dword [esp + 0x2c]
mov ecx, 0xfffffffe
sub ecx, eax
mov eax, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x28]
sub ebx, 2
mov dword [edx + ecx], esi
dec esi
mov dword [esp + 0x20], eax
jns 0x100cfaa0
jmp 0x100cfb92
push 0x1010288c
push 0x1063d
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 + 0x10], 0xb
jmp 0x100d0423
push 0x1010288c
push 0x1065e
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 + 0x10], 0xb
jmp 0x100d0423
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + edx + 0xa0], edi
mov dword [esp + edx + 0x9c], eax
cmp ecx, 1
jle 0x100cfbb3
mov eax, dword [esp + 0x28]
mov eax, dword [edx + eax - 4]
jmp 0x100cfbb5
xor eax, eax
mov esi, dword [esp + 0x28]
cmp dword [edx + esi], eax
jle 0x100cfc47
dec ecx
mov dword [esp + 0x1c], ecx
test ecx, ecx
jg 0x100cfa52
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x7c]
xor edi, edi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x40], eax
lea eax, [edi + 1]
cmp dword [esp + 0x48], edi
jle 0x100cfd63
cmp edi, dword [esp + 0x44]
jge 0x100cfcc4
mov eax, dword [esp + edi*4 + 0x7c]
mov dword [esp + edi*4 + 0x88], eax
mov dword [esp + edi*4 + 0x7c], 0
mov esi, dword [eax + 0x48]
mov dword [esp + 0x14], eax
test byte [esi + 0x1c], 4
mov ecx, dword [esi + 0x14]
je 0x100cfc84
mov eax, dword [ecx + 0x18]
cmp eax, dword [esi + 0x18]
jb 0x100cfc84
cmp dword [ecx + 0x60], 0
je 0x100cfc80
mov ecx, esi
call fcn.100e0e80
test eax, eax
je 0x100cfc72
mov ecx, esi
call fcn.100dd450
mov dword [esp + 0x10], eax
jmp 0x100cfcaf
push 0x1010288c
push 0x10688
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 + 0x10], 0xb
jmp 0x100d0423
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
jmp 0x100cfcaf
xor eax, eax
jmp 0x100cfcab
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100cfcaf
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
mov ecx, esi
jbe 0x100cfca6
call fcn.100dbe60
jmp 0x100cfcab
call fcn.100dc0b0
mov dword [esp + 0x10], eax
inc dword [esp + 0x24]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x100d0423
jmp 0x100cfd53
cmp dword [ebp + 0x10], 0
mov ecx, dword [esp + 0x74]
cmovne ecx, eax
push 0
push ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x64]
push eax
lea edx, [esp + 0x20]
call fcn.100d1ae0
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
test eax, eax
jne 0x100d0423
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov ecx, esi
call fcn.100d5d10
mov ecx, dword [esp + 0x30]
inc dword [esp + 0x24]
mov dword [esp + edi*4 + 0x88], esi
cmp byte [ecx + 0x11], 0
mov dword [esp + edi*4 + 0xe4], ebx
je 0x100cfd4b
mov edx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
push dword [eax + 4]
push 5
call fcn.100d6f60
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100d0423
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x74], eax
inc edi
mov eax, 1
cmp edi, dword [esp + 0x48]
jl 0x100cfbf4
mov edi, dword [esp + 0x24]
xor ecx, ecx
test edi, edi
jle 0x100cfdb7
lea ecx, [ecx]
mov eax, dword [esp + ecx*4 + 0x88]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [esp + ecx*4 + 0xf8], edx
mov ax, word [eax + 0x1c]
mov word [esp + ecx*2 + 0x110], ax
xor eax, eax
mov dword [esp + ecx*4 + 0xc8], edx
test ecx, ecx
jle 0x100cfdb2
lea ecx, [ecx]
cmp dword [esp + eax*4 + 0xf8], edx
je 0x100cff39
inc eax
cmp eax, ecx
jl 0x100cfda0
inc ecx
cmp ecx, edi
jl 0x100cfd70
xor esi, esi
mov dword [esp + 0x14], esi
test edi, edi
jle 0x100cfe7f
mov ebx, dword [esp + 0x24]
xor edi, edi
lea ecx, [edi + 1]
cmp ebx, ecx
jle 0x100cfe04
xor esi, esi
jmp 0x100cfde0
lea edx, [ecx*4]
mov eax, dword [esp + edx + 0xc8]
cmp eax, dword [esp + esi + 0xc8]
jae 0x100cfdfb
mov edi, ecx
mov esi, edx
inc ecx
cmp ecx, ebx
jl 0x100cfde0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + edi*4 + 0xc8]
mov dword [esp + 0x14], eax
mov dword [esp + edi*4 + 0xc8], 0xffffffff
cmp edi, esi
je 0x100cfe6a
jle 0x100cfe3f
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x30]
mov eax, dword [esp + edi*4 + 0x88]
inc edx
mov ecx, dword [eax + 0x48]
xor eax, eax
add edx, edi
mov word [ecx + 0x1c], ax
call fcn.100e2d00
mov eax, dword [esp + esi*4 + 0x88]
mov ecx, dword [eax + 0x48]
mov ax, word [esp + edi*2 + 0x110]
mov edi, dword [esp + 0x14]
mov edx, edi
mov word [ecx + 0x1c], ax
call fcn.100e2d00
mov eax, dword [esp + esi*4 + 0x88]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x24]
inc esi
mov dword [esp + 0x14], esi
cmp esi, edi
jl 0x100cfdc5
mov ebx, dword [esp + 0x34]
test byte [esp + 0x40], 8
mov eax, dword [esp + edi*4 + 0x84]
mov ecx, dword [esp + 0x60]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x100cfec7
mov ecx, dword [esp + 0x44]
cmp ecx, edi
je 0x100cfec7
lea edx, [esp + 0x7c]
cmp edi, ecx
lea eax, [esp + 0x88]
cmovle eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + edi*4 + 0x84]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x30]
cmp byte [edx + 0x11], 0
je 0x100d00b3
mov esi, dword [esp + 0x88]
xor edi, edi
mov eax, dword [esi + 0x38]
movzx ecx, word [esi + 0x16]
mov dword [esp + 0x40], eax
movzx eax, byte [esi + 0xc]
add ecx, eax
mov eax, dword [edx + 0x28]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x28], ecx
test ebx, ebx
jle 0x100d00ba
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x54]
mov edx, dword [eax + edi*4]
mov dword [esp + 0x2c], edx
cmp edi, dword [esp + 0x1c]
jne 0x100cff94
inc ecx
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0x24]
jge 0x100cff64
mov edx, dword [esp + ecx*4 + 0x88]
jmp 0x100cff68
push 0x1010288c
push 0x106d2
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 + 0x10], 0xb
jmp 0x100d0423
mov edx, dword [esp + ecx*4 + 0x7c]
movzx eax, byte [edx + 0xc]
movzx ecx, word [edx + 0x16]
add ecx, eax
xor eax, eax
cmp dword [esp + 0x64], eax
sete al
add eax, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
cmp edi, dword [esp + eax + 0xb4]
jne 0x100cffc3
mov eax, dword [esp + 0x60]
inc eax
mov dword [esp + 0x60], eax
shl eax, 2
cmp dword [esp + 0x64], 0
mov esi, dword [esp + eax + 0x88]
mov dword [esp + 0x14], eax
je 0x100d00a6
cmp ecx, dword [esp + 0x24]
jge 0x100cffe9
mov eax, dword [esi + 4]
cmp eax, dword [esp + ecx*4 + 0xf8]
jne 0x100cffe9
mov eax, dword [esp + 0x40]
cmp edx, eax
jb 0x100cffe9
add eax, dword [esp + 0x70]
cmp edx, eax
jb 0x100d00a6
cmp word [esp + 0x78], 0
jne 0x100d0013
mov edx, dword [edx]
bswap edx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x18]
push eax
push dword [esi + 4]
push 5
call fcn.100d6f60
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x100d0032
mov edx, edi
lea ecx, [esp + 0x4c]
call fcn.100d1030
mov ebx, dword [esp + 0x4c]
movzx eax, ax
cmp ax, word [esi + 0x10]
jbe 0x100d009a
cmp dword [esp + 0x10], 0
jne 0x100d0423
lea eax, [esp + 0xc8]
push eax
push dword [esp + 0x30]
mov eax, dword [esi + 0x50]
push esi
call eax
movzx eax, word [esp + 0xe4]
add esp, 0xc
cmp eax, dword [esp + 0xd4]
jae 0x100d00a6
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x18]
push eax
movzx eax, word [esp + 0xde]
push dword [esi + 4]
mov edx, dword [eax + edx - 4]
push 3
bswap edx
call fcn.100d6f60
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x100d009e
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100d0423
mov ecx, dword [esp + 0x28]
inc edi
cmp edi, ebx
jl 0x100cff14
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0x24]
dec eax
xor edi, edi
test eax, eax
jle 0x100d0244
lea esp, [esp]
mov eax, dword [esp + edi*4 + 0x88]
mov ecx, dword [esp + edi*4 + 0xb4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x54]
mov esi, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x58]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x78]
movzx edx, ax
mov dword [esp + 0x14], eax
movzx eax, cx
mov ecx, dword [esp + 0x5c]
add edx, eax
mov eax, dword [esp + 0x9c]
add eax, dword [esp + 0x68]
cmp byte [ecx + 8], 0
mov dword [esp + 0x1c], eax
jne 0x100d0130
mov eax, ecx
mov ecx, dword [eax + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x100d01f5
cmp dword [esp + 0x64], 0
je 0x100d01d9
lea eax, [esp + 0xf8]
push eax
mov eax, dword [esp + 0x64]
push dword [eax - 4]
mov eax, dword [esp + 0x64]
push eax
mov eax, dword [eax + 0x50]
call eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x108]
mov ecx, dword [esp + 0x104]
mov esi, eax
add eax, 4
add esp, 0xc
mov dword [esp + 0x114], edx
mov dword [esp + 0x60], eax
test edx, edx
ja 0x100d01c6
jb 0x100d0184
cmp ecx, 0x7f
ja 0x100d0195
and cl, 0x7f
mov byte [eax], cl
mov eax, 1
lea edx, [eax + 4]
xor eax, eax
jmp 0x100d01f9
test edx, edx
ja 0x100d01c6
jb 0x100d01a3
cmp ecx, 0x3fff
ja 0x100d01c6
mov eax, ecx
shrd eax, edx, 7
shr edx, 7
mov edx, dword [esp + 0x60]
or al, 0x80
mov byte [edx], al
and cl, 0x7f
mov eax, 2
mov byte [edx + 1], cl
lea edx, [eax + 4]
xor eax, eax
jmp 0x100d01f9
push edx
push ecx
mov ecx, eax
call fcn.100e8c40
add esp, 8
lea edx, [eax + 4]
xor eax, eax
jmp 0x100d01f9
sub esi, 4
cmp word [esp + 0x14], 4
jne 0x100d01f9
mov eax, dword [esp + 0x38]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov eax, dword [esp + 0x1c]
add dword [esp + 0x68], edx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x60]
push dword [ecx + 4]
mov ecx, dword [esp + 0x40]
push eax
push edx
mov edx, dword [esp + 0x7c]
push esi
lea edx, [edx + edi]
call fcn.100d10c0
mov eax, dword [esp + 0x2c]
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100d0423
mov eax, dword [esp + 0x24]
inc edi
dec eax
cmp edi, eax
jl 0x100d00d0
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x24]
mov eax, 1
sub eax, edi
mov dword [esp + 0x68], eax
cmp eax, edi
jge 0x100d033e
jmp 0x100d0260
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
lea edi, [esp + 0x124]
add edi, ecx
cmp byte [edi], 0
jne 0x100d0322
cmp dword [esp + 0x68], 0
jge 0x100d0294
mov eax, dword [esp + ecx*4 + 0xe0]
cmp eax, dword [esp + ecx*4 + 0xb0]
jl 0x100d0322
test ecx, ecx
jne 0x100d02a5
mov edx, dword [esp + 0xb4]
xor ebx, ebx
xor eax, eax
jmp 0x100d02d4
cmp ecx, dword [esp + 0x44]
jge 0x100d02bb
xor ebx, ebx
cmp dword [esp + 0x64], ebx
sete bl
add ebx, dword [esp + ecx*4 + 0xe0]
mov edx, dword [esp + ecx*4 + 0xb4]
xor eax, eax
cmp dword [esp + 0x64], eax
sete al
add eax, dword [esp + ecx*4 + 0xb0]
sub edx, eax
lea esi, [ecx*4]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + esi + 0x8c]
push edx
push eax
mov edx, ebx
call fcn.100d0790
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
test eax, eax
jne 0x100d0423
mov cx, word [esp + 0x3c]
sub cx, word [esp + esi + 0xa0]
mov eax, dword [esp + esi + 0x88]
mov ebx, dword [esp + 0x4c]
mov byte [edi], 1
mov word [eax + 0x14], cx
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x24]
inc eax
mov dword [esp + 0x68], eax
cmp eax, edi
jl 0x100d0260
mov esi, dword [esp + 0x88]
cmp dword [ebp + 0xc], 0
je 0x100d03a6
mov ebx, dword [esp + 0x38]
cmp word [ebx + 0x16], 0
jne 0x100d03a6
movzx eax, byte [ebx + 9]
cmp ax, word [esi + 0x14]
ja 0x100d03a6
or edx, 0xffffffff
mov ecx, esi
call fcn.100d6750
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov edx, ebx
call fcn.100d0540
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100d03f8
mov ecx, dword [esp + 0x88]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.100d18a0
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x100d03f8
mov ecx, dword [esp + 0x30]
cmp byte [ecx + 0x11], 0
je 0x100d03f4
cmp word [esp + 0x78], 0
jne 0x100d03f4
xor esi, esi
test edi, edi
jle 0x100d03f4
mov edi, edi
mov eax, dword [esp + esi*4 + 0x88]
lea edx, [esp + 0x18]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.100d6f60
mov ecx, dword [esp + 0x3c]
inc esi
add esp, 0xc
cmp esi, edi
jl 0x100d03c0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jmp 0x100d03f8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x44]
mov esi, edi
cmp edi, ebx
jge 0x100d0423
mov ecx, dword [esp + esi*4 + 0x7c]
test eax, eax
jne 0x100d041a
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.100d18a0
add esp, 4
inc esi
cmp esi, ebx
jl 0x100d0402
mov dword [esp + 0x10], eax
cmp dword [esp + 0x54], 0
je 0x100cf463
cmp dword [0x101272c0], 0
je 0x100d048a
mov eax, dword [0x10128368]
test eax, eax
je 0x100d044a
push eax
call dword [0x1012731c]
add esp, 4
mov esi, dword [esp + 0x54]
push esi
call dword [0x101272f8]
sub dword [0x10128398], eax
dec dword [0x101283bc]
add esp, 4
push esi
call dword [0x101272f0]
mov eax, dword [0x10128368]
add esp, 4
test eax, eax
je 0x100cf463
push eax
call dword [0x10127324]
add esp, 4
jmp 0x100cf463
push dword [esp + 0x54]
call dword [0x101272f0]
add esp, 4
jmp 0x100cf463
mov ecx, edx
call fcn.100e2fe0
inc ebx
cmp ebx, dword [esp + 0x44]
jl 0x100cf470
xor ebx, ebx
cmp dword [esp + 0x24], ebx
jle 0x100d0521
jmp 0x100d04c0
mov edx, dword [esp + ebx*4 + 0x88]
test edx, edx
je 0x100d051a
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100d0513
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
mov edi, dword [esi]
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.100070f0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x100d051a
mov ecx, edx
call fcn.100e2fe0
inc ebx
cmp ebx, dword [esp + 0x24]
jl 0x100d04c0
mov ecx, dword [esp + 0x12c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10001186
mov esp, ebp
pop ebp
ret