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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x34]
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], edx
jne 0x1006d622
lea eax, [ebx + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx edx, word [eax + 0x10]
movzx edi, byte [eax + 1]
lea esi, [edi + edx]
cmp esi, 2
jge 0x1006d638
mov dword [esp + 0x18], ebx
jmp 0x1006d660
cmp ecx, ebx
jne 0x1006d642
mov dword [esp + 0x18], ebx
jmp 0x1006d656
cmp ecx, esi
jne 0x1006d64f
mov ecx, dword [ebp + 0x14]
lea ecx, [esi + ecx - 2]
jmp 0x1006d652
add ecx, 0xffffffff
mov dword [esp + 0x18], ecx
mov ecx, 2
sub ecx, dword [ebp + 0x14]
mov esi, ecx
lea ecx, [esi + 1]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x18]
sub ecx, edi
add ecx, esi
cmp ecx, edx
jne 0x1006d684
movzx edx, byte [eax + 5]
mov eax, dword [eax + 0x38]
lea ecx, [edx + eax + 8]
mov dword [esp + 0x74], ecx
jmp 0x1006d69d
mov edx, dword [eax + 0x40]
lea ecx, [edx + ecx*2]
movzx edx, byte [ecx + 1]
mov dh, byte [ecx]
movzx ecx, word [eax + 0x12]
and edx, ecx
add edx, dword [eax + 0x38]
mov dword [esp + 0x74], edx
mov eax, dword [esp + 0x74]
movzx ecx, byte [eax + 2]
xor edx, edx
mov dh, byte [eax]
push ebx
mov ebx, dword [esp + 0x2c]
mov dl, byte [eax + 1]
movzx eax, byte [eax + 3]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
lea eax, [esp + esi*4 + 0x7c]
mov edi, edx
push eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], eax
call fcn.100697d0
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
jne 0x1006d885
mov ecx, dword [esp + 0x18]
add ecx, esi
jmp 0x1006d6f4
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
movzx edx, word [eax + 0x10]
movzx eax, byte [eax + 1]
add eax, dword [esp + 0x58]
sub ecx, 1
lea eax, [eax + edx + 1]
mov edx, esi
sub esi, 1
test edx, edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x40], ecx
je 0x1006d8a1
mov edi, dword [ebp + 8]
movzx eax, word [edi + 0x14]
cmp ecx, eax
jne 0x1006d780
cmp byte [edi + 1], 0
je 0x1006d780
mov eax, dword [edi + 0x20]
movzx edx, byte [eax + 2]
xor ecx, ecx
mov ch, byte [eax]
lea ebx, [esi*4]
mov dword [esp + ebx + 0x84], eax
push eax
mov cl, byte [eax + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 3]
shl ecx, 8
or ecx, edx
mov eax, edi
mov dword [esp + 0x38], ecx
call fcn.10020510
movzx eax, ax
add esp, 4
mov dword [esp + ebx + 0x60], eax
mov byte [edi + 1], 0
jmp 0x1006d85e
movzx ecx, byte [edi + 1]
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x40]
sub edx, ecx
add edx, esi
movzx ecx, byte [eax + edx*2 + 1]
mov ch, byte [eax + edx*2]
lea eax, [eax + edx*2]
movzx edx, word [edi + 0x12]
mov eax, dword [edi + 0x38]
lea ebx, [esi*4]
and ecx, edx
movzx edx, byte [eax + ecx + 2]
add eax, ecx
xor ecx, ecx
mov ch, byte [eax]
mov dword [esp + ebx + 0x84], eax
push eax
mov cl, byte [eax + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 3]
shl ecx, 8
or ecx, edx
mov eax, edi
mov dword [esp + 0x38], ecx
call fcn.10020510
mov ecx, dword [esp + 0x2c]
movzx eax, ax
add esp, 4
test byte [ecx + 0x16], 4
mov dword [esp + 0x20], eax
mov dword [esp + ebx + 0x60], eax
je 0x1006d839
mov eax, dword [esp + ebx + 0x84]
sub eax, dword [edi + 0x38]
mov edx, dword [esp + 0x20]
add edx, eax
cmp edx, dword [ecx + 0x24]
jg 0x1006e2be
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + ebx + 0x84]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
add eax, ecx
push eax
call fcn.10008750
mov eax, dword [esp + ebx + 0x90]
sub eax, dword [edi + 0x38]
add esp, 0xc
add eax, dword [ebp + 0xc]
mov dword [esp + ebx + 0x84], eax
movzx ecx, byte [edi + 1]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
sub edx, ecx
add edx, esi
push eax
push edx
mov esi, edi
call fcn.10062650
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov edi, dword [esp + 0x34]
lea eax, [esp + ebx + 0x78]
mov ebx, dword [esp + 0x28]
push 0
push eax
mov dword [esp + 0x28], eax
call fcn.100697d0
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
je 0x1006d6f0
lea eax, [esi*4 + 4]
push eax
lea ecx, [esp + 0x7c]
push 0
push ecx
call fcn.10003bb0
add esp, 0xc
jmp 0x1006e2f6
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x44]
lea esi, [eax + 3]
mov eax, dword [edx + 0x20]
lea ecx, [eax + 0x50]
mov dword [esp + 0x1c], ecx
imul ecx, edi
and esi, 0xfffffffc
lea edx, [esi + esi*2]
add ecx, eax
lea eax, [ecx + edx*2]
call fcn.10025820
test eax, eax
mov dword [esp + 0x38], eax
jne 0x1006d8de
mov dword [esp + 0x14], 7
jmp 0x1006e2f6
lea eax, [eax + esi*4]
mov dword [esp + 0x2c], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x78]
movzx cx, byte [eax + 3]
movzx eax, byte [eax + 4]
add cx, cx
add cx, cx
test edi, edi
movzx edx, cx
mov dword [esp + 0x20], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x10], 0
jle 0x1006daf7
mov ecx, dword [esp + 0x44]
add ecx, 0xffffffff
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], 0
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x20]
add eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x40]
lea ebx, [eax + ecx]
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xa4], ebx
mov eax, dword [esp + eax*4 + 0x78]
mov esi, eax
mov ecx, 0x13
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x4c]
mov dword [ebx + 0x38], ecx
mov edx, dword [edx + 0x20]
mov eax, dword [eax + 0x38]
push edx
push eax
push ecx
call fcn.10008750
mov al, byte [ebx + 1]
movzx esi, word [ebx + 0x10]
movzx ecx, al
add esp, 0xc
add esi, ecx
test al, al
jbe 0x1006d9d1
test esi, esi
mov dword [esp + 0x24], 0
jle 0x1006da43
mov eax, dword [esp + 0x24]
mov edi, ebx
call fcn.10013cd0
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov dword [edx + edi*4], eax
push eax
mov eax, ebx
call fcn.10020510
mov ecx, dword [esp + 0x30]
mov word [ecx + edi*2], ax
mov eax, dword [esp + 0x28]
add eax, 1
add edi, 1
add esp, 4
cmp eax, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], eax
jl 0x1006d990
jmp 0x1006da43
test esi, esi
mov edx, dword [ebx + 0x38]
movzx eax, word [ebx + 0x12]
movzx ecx, word [ebx + 0xc]
mov dword [esp + 0x5c], edx
jle 0x1006da43
movzx eax, ax
movzx edi, cx
mov dword [esp + 0x8c], eax
add edi, edx
mov dword [esp + 0x24], esi
jmp 0x1006da00
movzx ecx, byte [edi + 1]
mov ch, byte [edi]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x3c]
and ecx, dword [esp + 0x8c]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x38]
mov dword [ecx + esi*4], eax
push eax
mov eax, ebx
call fcn.10020510
mov edx, dword [esp + 0x30]
mov word [edx + esi*2], ax
add esi, 1
add esp, 4
add edi, 2
sub dword [esp + 0x24], 1
mov dword [esp + 0x3c], esi
jne 0x1006da00
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x50]
jge 0x1006dade
cmp dword [esp + 0x54], 0
jne 0x1006dade
movzx eax, word [esp + eax*4 + 0x60]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov word [edi + esi*2], ax
movzx eax, ax
add edx, ecx
add ecx, eax
push eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + eax*4 + 0x88]
push ecx
push edx
mov dword [esp + 0x68], edx
call fcn.10008750
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
movzx edx, ax
add edx, dword [esp + 0x68]
add esp, 0xc
mov dword [ecx + esi*4], edx
sub word [edi + esi*2], ax
cmp byte [ebx + 3], 0
movzx eax, word [edi + esi*2]
jne 0x1006dac7
mov eax, dword [ebx + 0x38]
mov ecx, dword [ecx + esi*4]
mov edx, dword [eax + 8]
mov dword [ecx], edx
jmp 0x1006dad3
cmp ax, 4
jae 0x1006dad3
mov word [edi + esi*2], 4
mov eax, dword [esp + 0x10]
add esi, 1
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x58], ecx
add eax, 1
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
jl 0x1006d92d
movzx eax, word [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 0x24]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
lea edx, [ecx + eax - 0xc]
xor ecx, ecx
xor esi, esi
xor eax, eax
test ebx, ebx
mov dword [esp + 0x50], edx
jle 0x1006db5a
lea ecx, [ecx]
movzx edx, word [edi + ecx*2]
lea eax, [eax + edx + 2]
cmp eax, dword [esp + 0x50]
jle 0x1006db53
sub eax, edx
cmp dword [esp + 0x54], 0
mov dword [esp + esi*4 + 0x60], eax
mov dword [esp + esi*4 + 0x90], ecx
je 0x1006db45
sub ecx, 1
add esi, 1
xor eax, eax
cmp esi, 4
jg 0x1006dbf1
add ecx, 1
cmp ecx, ebx
jl 0x1006db20
mov dword [esp + esi*4 + 0x90], ebx
add esi, 1
mov dword [esp + esi*4 + 0x5c], eax
lea ebx, [esi - 1]
test ebx, ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], ebx
jle 0x1006dc32
jmp 0x1006db80
mov eax, dword [esp + ebx*4 + 0x8c]
mov edx, dword [esp + ebx*4 + 0x60]
mov esi, dword [esp + ebx*4 + 0x5c]
sub eax, 1
mov ecx, eax
sub ecx, dword [esp + 0x54]
add ecx, 1
test edx, edx
je 0x1006dbc8
cmp dword [ebp + 0x14], 0
jne 0x1006dc17
movzx edi, word [edi + eax*2]
mov ebx, esi
sub ebx, edi
mov edi, dword [esp + 0x2c]
movzx edi, word [edi + ecx*2]
sub ebx, 2
lea edi, [edi + edx + 2]
cmp edi, ebx
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x10]
jg 0x1006dc17
movzx ecx, word [edi + ecx*2]
movzx eax, word [edi + eax*2]
add dword [esp + ebx*4 + 0x8c], 0xffffffff
lea edx, [edx + ecx + 2]
mov ecx, 0xfffffffe
sub ecx, eax
mov eax, dword [esp + ebx*4 + 0x8c]
add esi, ecx
add eax, 0xffffffff
jmp 0x1006db92
push 0x100b2e14
push 0xe0b6
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x10
mov dword [esp + 0x14], 0xb
jmp 0x1006e2f6
mov dword [esp + ebx*4 + 0x60], edx
mov dword [esp + ebx*4 + 0x5c], esi
sub ebx, 1
test ebx, ebx
mov dword [esp + 0x10], ebx
jg 0x1006db80
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x78]
cmp dword [eax + 0x48], 1
ja 0x1006dc48
push 0x100b2e14
push 0xe0f4
jmp 0x1006dbfb
mov edx, dword [eax + 0x38]
movzx eax, byte [edx]
xor edi, edi
test esi, esi
mov dword [esp + 0x40], eax
jle 0x1006dd0d
lea esp, [esp]
cmp edi, dword [esp + 0x44]
jge 0x1006dc93
mov eax, dword [esp + edi*4 + 0x78]
mov ecx, dword [eax + 0x44]
push ecx
mov dword [esp + edi*4 + 0x64], eax
mov dword [esp + 0x4c], eax
mov dword [esp + edi*4 + 0x7c], 0
call fcn.1003fe40
add dword [esp + 0x34], 1
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jmp 0x1006dcfc
cmp dword [ebp + 0x14], 0
mov eax, 1
jne 0x1006dca2
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
push 0
push eax
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x54]
push eax
push ebx
call fcn.10068a00
add esp, 0x14
test eax, eax
mov dword [esp + 0x14], eax
jne 0x1006e2f6
mov eax, dword [esp + 0x48]
add dword [esp + 0x30], 1
cmp byte [ebx + 0x11], 0
mov dword [esp + edi*4 + 0x60], eax
je 0x1006dd02
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x48]
mov eax, dword [eax + 0x48]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
push 5
call fcn.10067e50
add esp, 8
cmp dword [esp + 0x14], 0
jne 0x1006e2f6
add edi, 1
cmp edi, esi
jl 0x1006dc60
cmp edi, dword [esp + 0x44]
jge 0x1006de19
jmp 0x1006dd20
cmp dword [esp + 0x14], 0
mov esi, dword [esp + edi*4 + 0x78]
jne 0x1006e2f6
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x34]
push eax
push ecx
mov eax, esi
call fcn.10068680
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
jne 0x1006e2f6
test esi, esi
je 0x1006de04
mov eax, dword [esi + 0x44]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x1006dda4
add dword [esi + 0x78], 0xffffffff
mov edx, dword [esi + 0x88]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov ebx, dword [ecx]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
cdq
push edx
push eax
sub ecx, 1
push 0
push ecx
call fcn.10008f60
push edx
mov edx, dword [ebx + 0x48]
push eax
mov eax, dword [esi + 0x3c]
push eax
call edx
add esp, 0x10
jmp 0x1006dda9
call fcn.1001ca10
cmp dword [esi + 0x78], 0
jne 0x1006de04
mov eax, dword [esi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x1006de04
mov al, byte [esi + 0x10]
cmp al, 6
je 0x1006ddfd
test al, al
je 0x1006ddfd
cmp al, 2
jb 0x1006dde9
mov eax, dword [0x100c85ec]
test eax, eax
je 0x1006ddd5
call eax
mov eax, esi
call fcn.10065130
mov eax, dword [0x100c85f0]
test eax, eax
je 0x1006ddfd
call eax
jmp 0x1006ddfd
cmp byte [esi + 4], 0
jne 0x1006ddfd
push 0
push 0
mov eax, esi
call fcn.10026e00
add esp, 8
mov eax, esi
call fcn.1002aab0
mov dword [esp + edi*4 + 0x78], 0
add edi, 1
cmp edi, dword [esp + 0x44]
jl 0x1006dd20
mov eax, dword [esp + 0x1c]
add eax, 0xffffffff
xor ecx, ecx
test eax, eax
jle 0x1006de81
lea eax, [esp + ecx*4 + 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [eax]
mov esi, dword [eax + 0x48]
lea ebx, [ecx + 1]
cmp ebx, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
mov edi, ecx
mov eax, ebx
jge 0x1006de74
mov edx, dword [esp + eax*4 + 0x60]
mov edx, dword [edx + 0x48]
cmp edx, esi
jae 0x1006de53
mov edi, eax
mov esi, edx
add eax, 1
cmp eax, dword [esp + 0x1c]
jl 0x1006de44
cmp edi, ecx
jle 0x1006de74
mov eax, dword [esp + edi*4 + 0x60]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
lea edi, [esp + edi*4 + 0x60]
mov dword [ecx], eax
mov dword [edi], edx
mov eax, dword [esp + 0x1c]
mov ecx, ebx
add eax, 0xffffffff
cmp ecx, eax
jl 0x1006de26
mov edi, dword [esp + 0x30]
mov esi, dword [esp + edi*4 + 0x5c]
mov eax, dword [esi + 0x48]
mov ecx, dword [esp + 0x74]
mov edx, eax
shr edx, 0x18
mov byte [ecx], dl
mov edx, eax
shr edx, 0x10
mov byte [ecx + 1], dl
mov edx, eax
xor ebx, ebx
shr edx, 8
cmp edi, ebx
mov dword [esp + 0x50], esi
mov byte [ecx + 2], dl
mov byte [ecx + 3], al
mov dword [esp + 0x10], ebx
jle 0x1006dff5
lea esp, [esp]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + edi*4 + 0x60]
push eax
call fcn.10062720
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + edi*4 + 0x94]
add esp, 4
lea edx, [ecx + ebx*2]
push edx
lea ecx, [eax + ebx*4]
push ecx
mov edx, edi
sub edx, ebx
push edx
push esi
call fcn.10013b70
mov ebx, edi
add esp, 0x10
cmp ebx, dword [esp + 0x3c]
jge 0x1006dfdc
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + ebx*4]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x1c], ecx
movzx ecx, word [edx + ebx*2]
movzx edx, word [esp + 0x20]
movzx eax, cx
add eax, edx
mov edx, dword [ebp + 0xc]
add edi, edx
cmp byte [esi + 3], 0
jne 0x1006df40
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x38]
mov edx, dword [edx]
mov dword [ecx + 8], edx
jmp 0x1006dfa6
cmp dword [esp + 0x54], 0
je 0x1006df88
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx + ebx*4 - 4]
sub ebx, 1
push esi
lea eax, [esp + 0xb4]
call fcn.100205e0
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
add esp, 4
push edx
push eax
lea ecx, [edi + 4]
mov dword [esp + 0x24], edi
call fcn.10015820
add esp, 8
add eax, 4
xor edi, edi
jmp 0x1006dfa6
sub dword [esp + 0x1c], 4
cmp cx, 4
jne 0x1006dfa6
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
push ecx
call fcn.10020510
add esp, 4
movzx eax, ax
mov ecx, dword [esi + 0x48]
add dword [esp + 0x4c], eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edi
push edx
push ecx
mov ecx, dword [ebp + 8]
call fcn.1006a1d0
add esp, 0x14
cmp dword [esp + 0x14], 0
jne 0x1006e2f6
add ebx, 1
add dword [esp + 0x18], 1
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
jl 0x1006dec0
mov esi, dword [esp + 0x50]
test byte [esp + 0x40], 8
mov eax, dword [ebp + 8]
jne 0x1006e016
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + edx*4 + 0xa0]
mov edx, dword [ecx + 0x38]
mov ecx, dword [esi + 0x38]
mov edx, dword [edx + 8]
mov dword [ecx + 8], edx
cmp dword [ebp + 0x10], 0
mov ebx, dword [esp + 0x60]
je 0x1006e065
cmp word [eax + 0x10], 0
jne 0x1006e065
movzx cx, byte [eax + 5]
cmp cx, word [ebx + 0xe]
ja 0x1006e065
lea edx, [esp + 0x14]
push edx
call fcn.1006c590
add esp, 4
cmp dword [esp + 0x14], 0
jne 0x1006e2f6
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x34]
push eax
push ecx
mov eax, ebx
call fcn.10068680
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x1006e2f6
mov edx, dword [esp + 0x28]
cmp byte [edx + 0x11], 0
je 0x1006e2f6
mov eax, dword [esp + 0xa4]
movzx ecx, byte [eax + 1]
movzx esi, word [eax + 0x10]
add esi, ecx
test ecx, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], ecx
je 0x1006e09e
movzx eax, word [eax + 0x14]
mov dword [esp + 0x18], eax
jmp 0x1006e0a6
mov dword [esp + 0x18], 0xffffffff
xor edi, edi
cmp dword [esp + 0x3c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
jle 0x1006e25f
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x48], edi
xor ecx, ecx
cmp edi, esi
jne 0x1006e11a
cmp dword [esp + 0x54], ecx
sete cl
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + eax*4 + 0xa8]
movzx edx, word [ebx + 0x10]
add eax, 1
mov dword [esp + 0x24], eax
mov al, byte [ebx + 1]
movzx esi, al
add edx, ecx
add esi, edx
add esi, edi
test al, al
mov dword [esp + 0x34], ebx
je 0x1006e112
movzx eax, al
mov dword [esp + 0x4c], eax
movzx eax, word [ebx + 0x14]
add eax, ecx
add eax, edi
mov dword [esp + 0x18], eax
jmp 0x1006e116
mov eax, dword [esp + 0x18]
cmp edi, esi
je 0x1006e0d3
cmp edi, eax
jne 0x1006e137
mov edx, dword [esp + 0x4c]
mov ecx, 1
sub edx, ecx
test edx, edx
mov dword [esp + 0x4c], edx
jle 0x1006e137
add eax, ecx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x48]
cmp edi, dword [esp + edx + 0x90]
jne 0x1006e16a
mov edx, dword [esp + 0x1c]
add edx, 1
mov dword [esp + 0x1c], edx
add edx, edx
add edx, edx
cmp dword [esp + 0x54], 0
mov dword [esp + 0x48], edx
mov edx, dword [esp + edx + 0x60]
mov dword [esp + 0x10], edx
je 0x1006e252
test ecx, ecx
jne 0x1006e17e
mov ecx, dword [ebx + 0x48]
mov edx, dword [esp + 0x10]
cmp ecx, dword [edx + 0x48]
je 0x1006e252
cmp word [esp + 0x20], 0
jne 0x1006e1c9
mov eax, dword [esp + 0x38]
mov eax, dword [eax + edi*4]
movzx edx, byte [eax + 1]
mov dh, byte [eax]
lea ecx, [esp + 0x14]
push ecx
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl edx, 8
or edx, ecx
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx + 0x48]
mov ecx, dword [esp + 0x2c]
shl edx, 8
or edx, eax
push 5
mov eax, edx
call fcn.10067e50
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x2c]
mov cx, word [edx + edi*2]
mov edx, dword [esp + 0x10]
cmp cx, word [edx + 0xa]
jbe 0x1006e252
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + edi*4]
mov dword [esp + 0x40], edx
jne 0x1006e252
mov eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0xb4]
mov ecx, edx
call fcn.100205e0
mov ax, word [esp + 0xcc]
add esp, 4
test ax, ax
je 0x1006e24e
movzx eax, ax
add eax, dword [esp + 0x40]
lea ecx, [esp + 0x14]
movzx edx, byte [eax + 1]
mov dh, byte [eax]
push ecx
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl edx, 8
or edx, ecx
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx + 0x48]
mov ecx, dword [ecx + 0x34]
shl edx, 8
or edx, eax
push 3
mov eax, edx
call fcn.10067e50
mov ebx, dword [esp + 0x3c]
add esp, 8
mov eax, dword [esp + 0x18]
add edi, 1
cmp edi, dword [esp + 0x3c]
jl 0x1006e0c6
cmp word [esp + 0x20], 0
jne 0x1006e2f6
xor esi, esi
cmp dword [esp + 0x30], esi
jle 0x1006e2f6
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + esi*4 + 0x60]
mov eax, dword [ecx + 0x38]
movzx ebx, byte [eax + 0xa]
add eax, 8
lea edx, [esp + 0x14]
push edx
movzx edx, byte [eax + 1]
mov dh, byte [eax]
movzx eax, byte [eax + 3]
push 5
shl edx, 8
or edx, ebx
mov ebx, dword [ecx + 0x48]
mov ecx, dword [esp + 0x30]
shl edx, 8
or edx, eax
mov eax, edx
call fcn.10067e50
add esi, 1
add esp, 8
cmp esi, edi
jl 0x1006e27b
jmp 0x1006e2f6
push 0x100b2e14
push 0xe02b
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call sym.SQLite.Interop.dll_sqlite3_log
lea ecx, [esi*4 + 4]
push ecx
lea edx, [esp + 0x8c]
push 0
push edx
mov dword [esp + 0x30], 0xb
call fcn.10003bb0
add esp, 0x1c
mov esi, dword [esp + 0x38]
call fcn.1001d5d0
xor edi, edi
cmp dword [esp + 0x44], edi
mov dword [esp + 0x10], edi
jle 0x1006e3dd
nop
mov eax, dword [esp + edi*4 + 0x78]
test eax, eax
je 0x1006e3cc
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x1006e36c
add dword [esi + 0x78], 0xffffffff
mov ecx, dword [esi + 0x88]
mov dword [eax + 0xc], ecx
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
mov ebx, dword [edi]
push edx
cdq
push edx
push eax
sub ecx, 1
push 0
push ecx
call fcn.10008f60
push edx
mov edx, dword [ebx + 0x48]
push eax
push edi
call edx
mov edi, dword [esp + 0x20]
add esp, 0x10
jmp 0x1006e371
call fcn.1001ca10
cmp dword [esi + 0x78], 0
jne 0x1006e3cc
mov eax, dword [esi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x1006e3cc
mov al, byte [esi + 0x10]
cmp al, 6
je 0x1006e3c5
test al, al
je 0x1006e3c5
cmp al, 2
jb 0x1006e3b1
mov eax, dword [0x100c85ec]
test eax, eax
je 0x1006e39d
call eax
mov eax, esi
call fcn.10065130
mov eax, dword [0x100c85f0]
test eax, eax
je 0x1006e3c5
call eax
jmp 0x1006e3c5
cmp byte [esi + 4], 0
jne 0x1006e3c5
push 0
push 0
mov eax, esi
call fcn.10026e00
add esp, 8
mov eax, esi
call fcn.1002aab0
add edi, 1
cmp edi, dword [esp + 0x44]
mov dword [esp + 0x10], edi
jl 0x1006e310
xor edi, edi
cmp dword [esp + 0x30], edi
mov dword [esp + 0x10], edi
jle 0x1006e4bd
lea ecx, [ecx]
mov eax, dword [esp + edi*4 + 0x60]
test eax, eax
je 0x1006e4ac
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x1006e44c
add dword [esi + 0x78], 0xffffffff
mov ecx, dword [esi + 0x88]
mov dword [eax + 0xc], ecx
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
mov ebx, dword [edi]
push edx
cdq
push edx
push eax
sub ecx, 1
push 0
push ecx
call fcn.10008f60
push edx
mov edx, dword [ebx + 0x48]
push eax
push edi
call edx
mov edi, dword [esp + 0x20]
add esp, 0x10
jmp 0x1006e451
call fcn.1001ca10
cmp dword [esi + 0x78], 0
jne 0x1006e4ac
mov eax, dword [esi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x1006e4ac
mov al, byte [esi + 0x10]
cmp al, 6
je 0x1006e4a5
test al, al
je 0x1006e4a5
cmp al, 2
jb 0x1006e491
mov eax, dword [0x100c85ec]
test eax, eax
je 0x1006e47d
call eax
mov eax, esi
call fcn.10065130
mov eax, dword [0x100c85f0]
test eax, eax
je 0x1006e4a5
call eax
jmp 0x1006e4a5
cmp byte [esi + 4], 0
jne 0x1006e4a5
push 0
push 0
mov eax, esi
call fcn.10026e00
add esp, 8
mov eax, esi
call fcn.1002aab0
add edi, 1
cmp edi, dword [esp + 0x30]
mov dword [esp + 0x10], edi
jl 0x1006e3f0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret