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

Disassembly:
sub esp, 0x144
mov eax, dword [0x100bdc68]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
mov ebx, dword [esp + 0x154]
xor eax, eax
push ebp
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
push 0x40
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x148], eax
mov byte [esp + 0x14c], al
lea eax, [esp + 0x98]
push ebp
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x40], ebp
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x34]
add esp, 0xc
mov dword [esp + 0x30], eax
test ebx, ebx
jne 0x1001d3c8
pop edi
pop ebp
lea eax, [ebx + 7]
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.100aac86
add esp, 0x144
ret
movzx edx, word [edi + 0x18]
movzx ecx, byte [edi + 0xc]
push esi
lea esi, [ecx + edx]
cmp esi, 2
jae 0x1001d3dd
xor ebx, ebx
jmp 0x1001d40f
mov eax, dword [esp + 0x15c]
test eax, eax
jne 0x1001d3ec
xor ebx, ebx
jmp 0x1001d401
cmp eax, esi
jne 0x1001d3fe
mov eax, dword [esp + 0x168]
lea ebx, [eax - 2]
add ebx, esi
jmp 0x1001d408
lea ebx, [eax - 1]
mov eax, dword [esp + 0x168]
mov esi, 2
sub esi, eax
mov dword [esp + 0x50], ebx
lea eax, [esi + 1]
sub ebx, ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x40], eax
lea ecx, [ebx + esi]
cmp ecx, edx
jne 0x1001d430
movzx ecx, byte [edi + 9]
add ecx, 8
jmp 0x1001d444
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x38]
xor edx, edx
mov dword [esp + 0x54], ecx
mov eax, dword [ecx]
bswap eax
mov dword [esp + 0x4c], eax
mov ebx, eax
mov dword [esp + 0x6c], eax
nop dword [eax + eax]
test edx, edx
jne 0x1001d529
mov edi, dword [esp + 0x34]
cmp ebx, dword [edi + 0x30]
jbe 0x1001d496
push 0x100b85cc
push 0x11311
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.sqlite3.dll_sqlite3_log
add esp, 0x14
mov edx, 0xb
jmp 0x1001d515
mov eax, dword [edi]
lea ecx, [esp + 0x2c]
push 0
push ecx
push ebx
push eax
mov eax, dword [eax + 0xdc]
call eax
mov edx, eax
add esp, 0x10
mov dword [esp + 0x14], edx
test edx, edx
jne 0x1001d519
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 8]
mov dword [esp + esi*4 + 0xd8], eax
cmp byte [eax], dl
jne 0x1001d513
push edi
push ebx
push ecx
call fcn.10020250
push dword [esp + esi*4 + 0xe4]
call fcn.1001fa80
mov edx, eax
add esp, 0x10
mov dword [esp + 0x14], edx
test edx, edx
je 0x1001d513
mov eax, dword [esp + esi*4 + 0xd8]
test eax, eax
je 0x1001d519
push dword [eax + 0x48]
call fcn.10068500
mov edx, dword [esp + 0x18]
mov edi, 4
mov eax, esi
mov dword [esp + 0x24], edx
add esp, 4
imul edi, eax
jmp 0x1001d530
xor edx, edx
mov dword [esp + 0x14], edx
mov edi, 4
mov dword [esp + 0x20], edx
mov eax, esi
imul edi, eax
jmp 0x1001d530
lea edi, [esi*4]
test edx, edx
jne 0x1001e7c3
lea ebx, [esp + 0xd8]
mov eax, dword [ebx + edi]
cmp dword [eax + 0x14], edx
jge 0x1001d562
push eax
call fcn.1001f080
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], edx
test edx, edx
jne 0x1001d695
mov ecx, dword [ebx + edi]
mov edi, dword [esp + 0x18]
add edi, 4
movzx ecx, word [ecx + 0x18]
add edi, ecx
mov ecx, esi
dec esi
mov dword [esp + 0x18], edi
test ecx, ecx
je 0x1001d6b3
mov ebx, dword [esp + 0x3c]
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x1001d5d0
mov eax, dword [esp + 0x50]
movzx ecx, word [ebx + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x1001d5d0
mov eax, dword [ebx + 0x24]
push eax
mov dword [esp + esi*4 + 0x7c], eax
push ebx
mov edi, dword [eax]
mov eax, dword [ebx + 0x4c]
bswap edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x74], edi
call eax
mov edx, dword [esp + 0x1c]
add esp, 8
movzx eax, ax
mov byte [ebx + 0xc], 0
mov ebx, edi
mov dword [esp + esi*4 + 0xf8], eax
jmp 0x1001d460
mov ecx, dword [esp + 0x50]
movzx eax, dl
sub ecx, eax
mov eax, dword [ebx + 0x40]
add ecx, esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx edi, cx
and edi, eax
add edi, dword [ebx + 0x38]
push edi
mov dword [esp + esi*4 + 0x7c], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x50], eax
mov ebx, eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [eax + 0x4c]
call eax
movzx edx, ax
add esp, 8
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], edx
mov dword [esp + esi*4 + 0xf8], edx
test byte [eax + 0x18], 0xc
je 0x1001d668
mov eax, dword [esp + 0x3c]
mov ecx, edi
mov ebp, dword [esp + 0x34]
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
cmp eax, dword [ebp + 0x28]
mov ebp, 0
jg 0x1001d668
mov eax, dword [esp + 0x74]
push edx
add eax, ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x48]
add esp, 0xc
mov edx, dword [esp + 0x30]
sub edi, dword [eax + 0x38]
add edi, dword [esp + 0x74]
mov dword [esp + esi*4 + 0x78], edi
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x50]
push eax
push edx
movzx eax, byte [edi + 0xc]
sub ecx, eax
add ecx, esi
push ecx
push edi
call fcn.10027320
mov edx, dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x14], edx
jmp 0x1001d460
push edi
lea eax, [esp + 0xdc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebp, dword [esp + 0x20]
add esp, 0xc
xor edi, edi
jmp 0x1001e7d4
mov eax, dword [esp + 0x34]
lea esi, [edi + 3]
and esi, 0xfffffffc
mov eax, dword [eax + 0x24]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*2]
cdq
push edx
push eax
call fcn.10065ae0
mov edi, eax
add esp, 8
mov dword [esp + 0xa0], edi
test edi, edi
jne 0x1001d6e6
lea ebp, [eax + 7]
jmp 0x1001e7d4
mov ecx, dword [esp + 0xd8]
lea eax, [edi + esi*4]
mov dword [esp + 0xa4], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x24], eax
mov dword [esp + 0x9c], ecx
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x64], eax
mov al, byte [ecx + 2]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x44], eax
cmp dword [esp + 0x40], eax
jle 0x1001d956
mov ebx, dword [esp + 0x98]
nop dword [eax]
shl eax, 2
mov dword [esp + 0x68], eax
mov edi, dword [esp + eax + 0xd8]
mov dword [esp + 0x48], edi
movzx eax, word [edi + 0x18]
mov edx, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov dword [esp + 0x18], eax
add esi, edx
movzx eax, word [edi + 0x1a]
mov ecx, eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x1001dae3
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x18]
add eax, eax
push eax
mov eax, dword [esp + 0xa8]
push 0
lea eax, [eax + ebx*2]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x1001d841
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x18], edx
jb 0x1001dab9
test edx, edx
je 0x1001d808
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, bp
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0xa0]
add ecx, edi
mov dword [eax + ebx*4], ecx
inc ebx
sub edx, 1
jne 0x1001d7d1
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x28], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x1001d841
mov esi, dword [esp + 0xa0]
lea ecx, [edi + 0x24]
nop dword [eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + ebx*4], eax
inc edx
movzx eax, byte [edi + 0xc]
inc ebx
cmp edx, eax
jl 0x1001d820
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x98], ebx
movzx eax, word [edi + 0x12]
add eax, dword [esp + 0x30]
movzx ecx, word [edi + 0x18]
lea edx, [eax + ecx*2]
cmp esi, edx
jae 0x1001d892
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x70]
nop dword [eax]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, bp
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0xa0]
add ecx, edi
mov dword [eax + ebx*4], ecx
inc ebx
cmp esi, edx
jb 0x1001d860
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x98], ebx
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x44]
mov dword [esp + edx + 0x120], ebx
cmp eax, dword [esp + 0x5c]
jge 0x1001d947
cmp byte [esp + 0x13], 0
jne 0x1001d947
movzx eax, word [esp + edx + 0xf8]
mov ecx, dword [esp + 0xa4]
mov esi, dword [esp + 0x24]
push eax
push dword [esp + edx + 0x7c]
add esi, ebp
mov word [ecx + ebx*2], ax
add ebp, eax
push esi
mov dword [esp + 0x44], ebp
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x70]
add esp, 0xc
mov edx, dword [esp + 0xa4]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0xa0]
mov dword [esi + ebx*4], eax
mov ax, word [edx + ebx*2]
sub ax, cx
mov word [edx + ebx*2], ax
cmp byte [edi + 8], 0
movzx ecx, ax
jne 0x1001d91e
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x1001d93b
cmp ecx, 4
jae 0x1001d93b
mov eax, dword [esp + 0x24]
mov byte [eax + ebp], 0
inc ebp
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x1001d927
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0x44]
inc ebx
mov dword [esp + 0x98], ebx
inc eax
mov dword [esp + 0x44], eax
cmp eax, dword [esp + 0x40]
jl 0x1001d740
mov eax, dword [esp + 0x64]
xor ecx, ecx
movzx ebp, ax
xor ebx, ebx
mov eax, dword [esp + 0x34]
add ebp, 0xfffffff4
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebx
add ebp, dword [eax + 0x28]
mov dword [esp + 0x38], ebp
cmp dword [esp + 0x40], ecx
jle 0x1001da50
mov esi, dword [esp + ebx*4 + 0xd8]
mov edx, dword [esp + ebx*4 + 0x120]
mov dword [esp + 0x68], edx
mov eax, dword [esi + 0x3c]
mov dword [esp + ecx*4 + 0xa8], eax
mov dword [esp + ecx*4 + 0xc0], edx
test ecx, ecx
je 0x1001d9b6
cmp edx, dword [esp + ecx*4 + 0xbc]
jne 0x1001d9b6
dec ecx
mov dword [esp + 0x28], ecx
cmp byte [esp + 0x13], 0
jne 0x1001d9da
mov eax, dword [esp + 0x3c]
inc ecx
mov dword [esp + 0x28], ecx
mov eax, dword [eax + 0x3c]
mov dword [esp + ecx*4 + 0xa8], eax
lea eax, [edx + 1]
mov dword [esp + ecx*4 + 0xc0], eax
mov edi, ebp
lea eax, [esp + 0xf8]
sub edi, dword [esi + 0x14]
lea eax, [eax + ebx*4]
xor ebp, ebp
mov dword [esp + 0x5c], eax
cmp byte [esi + 0xc], 0
mov dword [eax], edi
jbe 0x1001da31
lea ebx, [esi + 0x24]
nop word [eax + eax]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
movzx eax, ax
lea ebx, [ebx + 4]
add eax, 2
inc ebp
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ebp, eax
jl 0x1001da00
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x18]
mov dword [eax], edi
mov ebp, dword [esp + 0x38]
inc ecx
mov dword [esp + ebx*4 + 0x10c], edx
inc ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ecx
cmp ebx, dword [esp + 0x40]
jl 0x1001d981
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x10c]
mov ebx, dword [esp + 0x98]
sub edx, 4
mov dword [esp + 0x18], 0
mov eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x48], edx
test ecx, ecx
jle 0x1001dd4d
mov esi, 1
xor edx, edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], edx
nop
lea eax, [esp + 0xf8]
add eax, edx
mov dword [esp + 0x2c], eax
mov edi, dword [eax]
cmp edi, ebp
jle 0x1001dbe9
mov ebx, dword [esp + 0x98]
lea ebp, [esp + 0xfc]
add ebp, edx
jmp 0x1001db19
push 0x100b85cc
push 0x129bb
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.sqlite3.dll_sqlite3_log
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x1001e7d4
push 0x100b85cc
push 0x129a3
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.sqlite3.dll_sqlite3_log
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x1001e7d4
lea eax, [esp + 0xf8]
add eax, edx
cmp esi, dword [esp + 0x24]
jl 0x1001db3f
lea ecx, [esi + 1]
mov dword [esp + 0x24], ecx
cmp ecx, 5
jg 0x1001dcf3
mov dword [ebp], 0
mov edi, dword [eax]
mov dword [esp + edx + 0x110], ebx
lea eax, [esp + 0x10c]
add eax, edx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x44], eax
mov esi, dword [eax]
movzx eax, word [edx + esi*2 - 2]
lea ecx, [esi - 1]
mov dword [esp + 0x5c], ecx
test ax, ax
jne 0x1001db81
push ecx
lea eax, [esp + 0x9c]
push eax
call fcn.10024360
mov edx, dword [esp + 0xac]
add esp, 8
movzx eax, ax
mov ecx, dword [esp + 0x2c]
movzx eax, ax
add eax, 2
sub edi, eax
cmp byte [esp + 0x13], 0
mov dword [ecx], edi
jne 0x1001dbc1
cmp esi, ebx
jge 0x1001dbbf
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x1001dbb7
lea eax, [esp + 0x98]
push esi
push eax
call fcn.10024360
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x1001dbc1
xor eax, eax
mov ecx, dword [esp + 0x44]
add dword [ebp], eax
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov dword [ecx], eax
cmp edi, dword [esp + 0x38]
jg 0x1001db10
mov ebx, dword [esp + 0x98]
jmp 0x1001dbf6
lea ecx, [esp + 0x10c]
add ecx, edx
mov dword [esp + 0x44], ecx
mov esi, dword [ecx]
cmp esi, ebx
jge 0x1001dca6
mov ebp, dword [esp + 0x2c]
nop dword [eax]
nop dword [eax + eax]
mov edx, dword [esp + 0xa4]
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x1001dc3f
lea eax, [esp + 0x98]
push esi
push eax
call fcn.10024360
mov ecx, dword [esp + 0x4c]
add esp, 8
mov edx, dword [esp + 0xa4]
movzx eax, ax
movzx eax, ax
add eax, 2
add edi, eax
cmp edi, dword [esp + 0x38]
jg 0x1001dc9e
inc esi
mov dword [ebp], edi
cmp byte [esp + 0x13], 0
mov dword [ecx], esi
jne 0x1001dc89
cmp esi, ebx
jge 0x1001dc87
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x1001dc7f
lea eax, [esp + 0x98]
push esi
push eax
call fcn.10024360
mov ecx, dword [esp + 0x4c]
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x1001dc89
xor eax, eax
mov edx, dword [esp + 0x28]
sub dword [esp + edx + 0xfc], eax
cmp esi, ebx
jl 0x1001dc10
jmp 0x1001dca2
mov edx, dword [esp + 0x28]
cmp esi, ebx
jl 0x1001dcb6
mov esi, dword [esp + 0x30]
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
jmp 0x1001dcd5
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x1001dcc7
mov eax, dword [esp + 0x48]
mov eax, dword [edx + eax]
jmp 0x1001dcc9
xor eax, eax
cmp esi, eax
jle 0x1001dd23
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
inc ecx
add edx, 4
inc esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], esi
cmp ecx, eax
jge 0x1001dd1d
mov ebp, dword [esp + 0x38]
jmp 0x1001da90
push 0x100b85cc
push 0x12a20
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.sqlite3.dll_sqlite3_log
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x1001e7d4
mov edx, dword [esp + 0x48]
jmp 0x1001dd51
push 0x100b85cc
push 0x12a41
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.sqlite3.dll_sqlite3_log
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x1001e7d4
mov dword [esp + 0x48], edx
dec eax
mov ecx, eax
mov dword [esp + 0x30], eax
test ecx, ecx
jle 0x1001decb
shl ecx, 2
lea eax, [esp + 0xf8]
add eax, ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x44], eax
mov edi, dword [eax]
lea eax, [esp + ecx + 0xf4]
mov ecx, dword [edx + ecx]
mov dword [esp + 0x28], eax
mov eax, dword [eax]
mov dword [esp + 0x18], eax
lea esi, [ecx - 1]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0xa4]
mov eax, esi
sub eax, dword [esp + 0x60]
inc eax
cmp word [ecx + eax*2], 0
lea ebp, [ecx + eax*2]
jne 0x1001ddc1
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.10024360
mov ecx, dword [esp + 0xac]
add esp, 8
mov ebx, dword [esp + 0x18]
jmp 0x1001ddd7
mov ecx, dword [esp + 0xa4]
cmp word [ecx + esi*2], 0
mov dword [esp + 0x70], esi
mov dword [esp + 0x68], esi
jne 0x1001ddf7
lea eax, [esp + 0x98]
push esi
push eax
call fcn.10024360
add esp, 8
test edi, edi
je 0x1001de43
cmp dword [esp + 0x168], 0
mov eax, dword [esp + 0x2c]
mov edx, eax
jne 0x1001de87
mov ecx, dword [esp + 0x24]
mov eax, 2
mov ebx, dword [esp + 0x18]
dec ecx
cmp dword [esp + 0x30], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, ebx
sub ecx, eax
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + esi*2]
sub ecx, eax
movzx eax, word [ebp]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x1001de87
movzx eax, word [ebp]
mov ecx, 0xfffffffe
mov edx, dword [esp + 0x70]
add eax, 2
add edi, eax
sub ebp, 2
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [esp + 0x5c]
add ebx, ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x18], ebx
mov dword [ecx + eax], esi
sub esi, 1
mov eax, dword [esp + 0x68]
mov dword [esp + 0x2c], eax
jns 0x1001ddd0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
mov dword [eax], edi
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov ebx, dword [esp + 0x98]
cmp ecx, 1
jbe 0x1001deb4
mov esi, dword [esp + 0x48]
lea eax, [ecx*4]
mov eax, dword [esi + eax - 4]
jmp 0x1001deb6
xor eax, eax
cmp edx, eax
jle 0x1001df39
mov edx, dword [esp + 0x48]
dec ecx
mov dword [esp + 0x30], ecx
test ecx, ecx
jg 0x1001dd60
mov eax, dword [esp + 0xd8]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x30], eax
lea eax, [esi + 1]
cmp dword [esp + 0x24], esi
jle 0x1001e0a3
nop dword [eax + eax]
cmp esi, dword [esp + 0x40]
jge 0x1001dfd1
mov edi, dword [esp + esi*4 + 0xd8]
mov dword [esp + esi*4 + 0xe4], edi
mov dword [esp + esi*4 + 0xd8], 0
mov dword [esp + 0x2c], edi
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x1001df67
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x1001df67
cmp dword [edx + 0x68], 0
je 0x1001df63
push ecx
call fcn.100936d0
jmp 0x1001df8d
push 0x100b85cc
push 0x12a6b
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.sqlite3.dll_sqlite3_log
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x1001e7d4
xor ebp, ebp
jmp 0x1001df92
mov ebp, dword [edx + 0x2c]
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x1001df96
mov eax, dword [edx + 0x9c]
push ecx
cmp eax, dword [edx + 0xa8]
jbe 0x1001df88
call fcn.1003c330
jmp 0x1001df8d
call fcn.1003d610
add esp, 4
mov ebp, eax
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x15c]
xor ecx, ecx
sub eax, dword [esp + 0x50]
inc dword [esp + 0x1c]
cmp esi, eax
mov eax, dword [edi + 0x48]
sete cl
mov dword [esp + 0x20], ebp
inc ecx
movsx eax, word [eax + 0x1e]
cmp eax, ecx
je 0x1001dfc4
test ebp, ebp
je 0x1001e07b
test ebp, ebp
jne 0x1001e7d0
jmp 0x1001e06a
cmp dword [esp + 0x168], 0
mov ecx, dword [esp + 0x4c]
push 0
cmovne ecx, eax
lea eax, [esp + 0x70]
push ecx
push eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x44]
call fcn.1001a200
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
test ebp, ebp
jne 0x1001e7d0
push dword [esp + 0x30]
mov edi, dword [esp + 0x30]
push edi
call fcn.100aa850
mov ecx, dword [esp + 0x3c]
add esp, 8
inc dword [esp + 0x1c]
mov dword [esp + esi*4 + 0xe4], edi
mov dword [esp + esi*4 + 0x120], ebx
cmp byte [ecx + 0x11], 0
je 0x1001e062
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x40]
push dword [eax + 4]
push 5
push dword [edi + 4]
push ecx
call fcn.1003fdd0
mov ebp, dword [esp + 0x34]
add esp, 0x14
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x1001e7d0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x4c], eax
inc esi
cmp esi, dword [esp + 0x24]
jge 0x1001e0a3
mov eax, 1
jmp 0x1001def0
push 0x100b85cc
push 0x12a8c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.sqlite3.dll_sqlite3_log
add esp, 0x14
mov ebp, 0xb
jmp 0x1001e7d0
mov edx, dword [esp + 0x1c]
xor ecx, ecx
test edx, edx
jle 0x1001e0c6
nop dword [eax]
mov eax, dword [esp + ecx*4 + 0xe4]
mov eax, dword [eax + 4]
mov dword [esp + ecx*4 + 0x134], eax
inc ecx
cmp ecx, edx
jl 0x1001e0b0
lea ebx, [edx - 1]
xor ebp, ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebp
test ebx, ebx
jle 0x1001e1d3
mov eax, ebx
nop dword [eax]
lea edi, [ebp + 1]
mov ebx, ebp
mov dword [esp + 0x60], edi
mov esi, edi
cmp edi, edx
jge 0x1001e1c5
mov ebp, dword [esp + 0x1c]
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0xe4]
mov ecx, esi
mov edx, dword [esp + ebx*4 + 0xe4]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 4]
cmovae ecx, ebx
inc esi
mov ebx, ecx
cmp esi, ebp
jl 0x1001e100
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x2c], ebx
cmp ebx, ebp
je 0x1001e1bd
mov edi, dword [esp + 0x34]
xor edx, edx
mov eax, dword [0x100bc1fc]
mov ecx, dword [esp + ebx*4 + 0xe4]
mov esi, dword [esp + ebp*4 + 0xe4]
div dword [edi + 0x24]
mov ebx, dword [ecx + 4]
mov edx, dword [esi + 0x48]
inc eax
mov ecx, dword [ecx + 0x48]
mov ebp, dword [esi + 4]
push eax
movzx esi, word [edx + 0x1c]
movzx edi, word [ecx + 0x1c]
push edx
mov word [edx + 0x1c], di
call fcn.100692c0
mov eax, dword [esp + 0x34]
push ebp
mov eax, dword [esp + eax*4 + 0xf0]
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], si
call fcn.100692c0
mov esi, dword [esp + 0x28]
push ebx
mov eax, dword [esp + esi*4 + 0xf8]
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], di
call fcn.100692c0
mov eax, dword [esp + esi*4 + 0xfc]
add esp, 0x18
mov edi, dword [esp + 0x60]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + eax*4 + 0xe4]
mov dword [eax + 4], ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ebp, edi
mov dword [esp + 0x18], ebp
cmp ebp, eax
jl 0x1001e0e0
test byte [esp + 0x30], 8
mov eax, dword [esp + edx*4 + 0xe0]
mov ecx, dword [esp + 0x54]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x1001e220
mov ecx, dword [esp + 0x40]
cmp ecx, edx
je 0x1001e220
lea eax, [esp + 0xe4]
lea esi, [esp + 0xd8]
cmovge eax, esi
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + eax*4 + 0xe0]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x98]
cmp byte [eax + 0x11], 0
je 0x1001e436
mov esi, dword [esp + 0xe4]
xor edx, edx
xor edi, edi
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], edx
movzx ebp, word [esi + 0x18]
movzx eax, byte [esi + 0xc]
add ebp, eax
test ebx, ebx
jle 0x1001e436
mov eax, esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], eax
nop dword [eax + eax]
mov ecx, dword [esp + 0xa0]
mov ecx, dword [ecx + edx*4]
mov dword [esp + 0x18], ecx
cmp edx, ebp
jne 0x1001e2c4
mov ebx, dword [esp + 0x1c]
xor eax, eax
cmp byte [esp + 0x13], al
sete al
mov dword [esp + 0x60], eax
inc edi
cmp edi, ebx
jge 0x1001e2a1
mov esi, dword [esp + edi*4 + 0xe4]
jmp 0x1001e2a8
mov esi, dword [esp + edi*4 + 0xd8]
movzx eax, word [esi + 0x18]
add eax, dword [esp + 0x60]
movzx ecx, byte [esi + 0xc]
add ecx, eax
add ebp, ecx
cmp edx, ebp
je 0x1001e293
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
cmp edx, dword [esp + ebx + 0x10c]
mov ebx, dword [esp + 0x98]
jne 0x1001e2fe
mov eax, dword [esp + 0x54]
inc eax
mov dword [esp + 0x54], eax
shl eax, 2
cmp byte [esp + 0x13], 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + eax + 0xe4]
mov dword [esp + 0x24], eax
je 0x1001e429
cmp edi, dword [esp + 0x1c]
jge 0x1001e322
mov eax, dword [eax + 4]
cmp eax, dword [esp + edi*4 + 0x134]
mov eax, dword [esp + 0x24]
jne 0x1001e322
cmp ecx, dword [esi + 0x38]
jb 0x1001e322
cmp ecx, dword [esi + 0x3c]
jb 0x1001e429
cmp word [esp + 0x64], 0
mov ebx, dword [esp + 0x98]
jne 0x1001e358
lea edx, [esp + 0x20]
push edx
push dword [eax + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [esp + 0x44]
call fcn.1003fdd0
mov eax, dword [esp + 0x34]
add esp, 0x14
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + edx*2]
test ax, ax
jne 0x1001e37c
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.10024360
add esp, 8
movzx eax, ax
mov ecx, dword [esp + 0x24]
cmp ax, word [ecx + 0x10]
jbe 0x1001e415
cmp dword [esp + 0x14], 0
jne 0x1001e7cc
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x1c]
mov eax, dword [ecx + 0x50]
push ecx
call eax
movzx eax, word [esp + 0x9c]
add esp, 0xc
cmp eax, dword [esp + 0x8c]
jae 0x1001e421
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x18]
cmp edx, ecx
jb 0x1001e3e3
add eax, ecx
cmp edx, eax
jae 0x1001e3e3
push 0x10fef
call fcn.100523f0
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
jmp 0x1001e419
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
movzx eax, word [esp + 0x96]
push dword [edx + 4]
mov eax, dword [eax + ecx - 4]
push 3
bswap eax
push eax
push dword [edx + 0x34]
call fcn.1003fdd0
mov eax, dword [esp + 0x34]
add esp, 0x14
mov dword [esp + 0x14], eax
jmp 0x1001e419
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1001e7cc
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
inc edx
mov dword [esp + 0x4c], edx
cmp edx, ebx
jl 0x1001e270
xor esi, esi
mov dword [esp + 0x54], esi
cmp dword [esp + 0x28], esi
jle 0x1001e5ec
nop word [eax + eax]
mov ecx, dword [esp + esi*4 + 0xe4]
mov esi, dword [esp + esi*4 + 0x10c]
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x58]
add ebp, dword [esp + 0x74]
mov edi, dword [eax + esi*4]
mov eax, dword [esp + 0xa4]
movzx edx, bx
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x60], ecx
movzx eax, word [eax + esi*2]
add edx, eax
cmp byte [ecx + 8], 0
jne 0x1001e4a2
mov ecx, dword [ecx + 0x38]
mov eax, dword [edi]
mov dword [ecx + 8], eax
jmp 0x1001e54f
cmp byte [esp + 0x13], 0
je 0x1001e536
lea eax, [esp + 0x80]
dec esi
push eax
mov eax, dword [esp + 0xa4]
push dword [eax + esi*4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [esp + 0x90]
mov edi, ebp
mov ecx, dword [esp + 0x8c]
add esp, 0xc
add ebp, 4
test edx, edx
ja 0x1001e524
jb 0x1001e4e7
cmp ecx, 0x7f
ja 0x1001e4f9
mov eax, 1
and cl, 0x7f
mov byte [ebp], cl
xor ebp, ebp
lea edx, [eax + 4]
jmp 0x1001e54f
test edx, edx
ja 0x1001e524
jb 0x1001e507
cmp ecx, 0x3fff
ja 0x1001e524
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebp + 1], cl
or al, 0x80
mov byte [ebp], al
mov eax, 2
xor ebp, ebp
lea edx, [eax + 4]
jmp 0x1001e54f
push edx
push ecx
push ebp
call fcn.10040690
add esp, 0xc
xor ebp, ebp
lea edx, [eax + 4]
jmp 0x1001e54f
sub edi, 4
cmp eax, 4
jne 0x1001e54f
mov eax, dword [esp + 0x3c]
push edi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
add dword [esp + 0x58], edx
xor eax, eax
cmp dword [esp + 0xc0], esi
jg 0x1001e56f
nop
cmp eax, 6
jge 0x1001e56f
inc eax
cmp dword [esp + eax*4 + 0xc0], esi
jle 0x1001e560
mov ecx, dword [esp + eax*4 + 0xa8]
cmp ecx, edi
jb 0x1001e581
lea eax, [edx + edi]
cmp ecx, eax
jb 0x1001e5c4
mov esi, dword [esp + 0x54]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x64]
push dword [eax + 4]
mov eax, dword [esp + 0x58]
push ebp
push edx
push edi
add eax, esi
push eax
push dword [esp + 0x54]
call fcn.10032910
mov ebp, dword [esp + 0x3c]
add esp, 0x1c
test ebp, ebp
jne 0x1001e7d0
inc esi
mov dword [esp + 0x54], esi
cmp esi, dword [esp + 0x28]
jl 0x1001e450
jmp 0x1001e5f0
push 0x100b85cc
push 0x12b54
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.sqlite3.dll_sqlite3_log
add esp, 0x14
mov ebp, 0xb
jmp 0x1001e7d0
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov ecx, 1
sub ecx, edi
mov dword [esp + 0x58], ecx
cmp ecx, edi
jge 0x1001e6e4
nop word [eax + eax]
mov eax, ecx
lea edi, [esp + 0x148]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add edi, ecx
cmp byte [edi], 0
jne 0x1001e6cf
cmp dword [esp + 0x58], 0
lea esi, [ecx*4]
jge 0x1001e64d
mov eax, dword [esp + esi + 0x11c]
cmp eax, dword [esp + esi + 0x108]
jl 0x1001e6cf
test ecx, ecx
jne 0x1001e65c
mov edx, dword [esp + 0x10c]
xor eax, eax
jmp 0x1001e68f
cmp ecx, dword [esp + 0x40]
jge 0x1001e674
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, dword [esp + esi + 0x11c]
jmp 0x1001e676
mov eax, ebx
mov edx, dword [esp + esi + 0x10c]
xor ecx, ecx
cmp byte [esp + 0x13], cl
sete cl
add ecx, dword [esp + esi + 0x108]
sub edx, ecx
lea ebp, [esp + 0x98]
push ebp
push edx
push ecx
push eax
push dword [esp + esi + 0xf4]
call fcn.10027500
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x20], ebp
test ebp, ebp
jne 0x1001e7d0
mov eax, dword [esp + esi + 0xe4]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + esi + 0xf8]
mov byte [edi], 1
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x58], ecx
cmp ecx, edi
jl 0x1001e610
cmp dword [esp + 0x164], 0
je 0x1001e74c
mov ebx, dword [esp + 0x3c]
cmp word [ebx + 0x18], 0
jne 0x1001e74c
mov ecx, dword [esp + 0xe4]
movzx eax, byte [ebx + 9]
cmp eax, dword [ecx + 0x14]
jg 0x1001e74c
push 0xffffffffffffffff
push ecx
call fcn.10026bc0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push ebx
push dword [esp + 0xf4]
call fcn.100260f0
mov ebp, dword [esp + 0x34]
add esp, 0x14
test ebp, ebp
jne 0x1001e794
mov eax, dword [esp + 0xe4]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.1002f230
add esp, 0xc
mov ebp, eax
jmp 0x1001e794
mov ecx, dword [esp + 0x34]
cmp byte [ecx + 0x11], 0
je 0x1001e794
cmp word [esp + 0x64], 0
jne 0x1001e794
xor esi, esi
test edi, edi
jle 0x1001e794
mov eax, dword [esp + esi*4 + 0xe4]
lea edx, [esp + 0x20]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov eax, dword [eax + 8]
bswap eax
push eax
push ecx
call fcn.1003fdd0
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0x14
cmp esi, edi
jl 0x1001e764
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x40]
mov esi, edi
cmp edi, ebx
jge 0x1001e7d4
nop
mov eax, dword [esp + esi*4 + 0xd8]
test ebp, ebp
jne 0x1001e7bc
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.1002f230
add esp, 0xc
mov ebp, eax
inc esi
cmp esi, ebx
jl 0x1001e7a0
jmp 0x1001e7d4
lea eax, [edi + 4]
push eax
jmp 0x1001d696
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa0]
test ebx, ebx
je 0x1001e834
cmp dword [0x100bc0d8], 0
je 0x1001e82a
mov eax, dword [0x100bdd58]
test eax, eax
je 0x1001e7fb
push eax
call dword [0x100bc128]
add esp, 4
push ebx
call dword [0x100bc104]
sub dword [0x100bdcf8], eax
dec dword [0x100bdd1c]
push ebx
call dword [0x100bc0fc]
mov eax, dword [0x100bdd58]
add esp, 8
test eax, eax
je 0x1001e834
push eax
call dword [0x100bc130]
jmp 0x1001e831
push ebx
call dword [0x100bc0fc]
add esp, 4
mov ebx, dword [esp + 0x40]
xor esi, esi
test ebx, ebx
jle 0x1001e85b
nop
mov eax, dword [esp + esi*4 + 0xd8]
test eax, eax
je 0x1001e856
push dword [eax + 0x48]
call fcn.10068500
add esp, 4
inc esi
cmp esi, ebx
jl 0x1001e840
xor esi, esi
test edi, edi
jle 0x1001e87c
mov eax, dword [esp + esi*4 + 0xe4]
test eax, eax
je 0x1001e877
push dword [eax + 0x48]
call fcn.10068500
add esp, 4
inc esi
cmp esi, edi
jl 0x1001e861
mov ecx, dword [esp + 0x150]
mov eax, ebp
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.100aac86
add esp, 0x144
ret