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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x58], edx
mov dword [esp + 0x30], eax
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], ecx
mov esi, dword [edi]
mov dword [esp + 0x20], esi
test eax, eax
jne 0x1007d3f6
test ecx, ecx
je 0x1007e338
mov esi, dword [edi + 0xf8]
mov dword [esp + 0x34], esi
test esi, esi
je 0x1007e338
test ecx, ecx
jne 0x1007d472
mov eax, dword [esi]
push 0x5f
push eax
mov dword [esp + 0x1c], eax
call fcn.10138590
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x1007d46e
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push 0
mov byte [eax], 0
call fcn.10079a30
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x18]
mov byte [eax], 0x5f
test edx, edx
je 0x1007d46e
cmp byte [edx + 0x2b], 1
jne 0x1007d46e
push dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
call fcn.1007d2b0
mov ecx, dword [esp + 0x34]
add esp, 4
test eax, eax
je 0x1007d472
or dword [esi + 0x1c], 0x1000
jmp 0x1007d472
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
cmp byte [eax + 0xb1], 0
je 0x1007d4a5
test ecx, ecx
jne 0x1007d57e
cmp byte [esi + 0x2b], cl
je 0x1007d564
cmp dword [eax + 0xac], ecx
jne 0x1007d57e
mov eax, dword [eax + 0xac]
mov dword [esi + 0x14], eax
mov ecx, dword [ebp + 0xc]
test ecx, 0x10000
je 0x1007d52f
or dword [esi + 0x1c], 0x10000
xor eax, eax
mov dword [esp + 0x28], 0
cmp ax, word [esi + 0x22]
jge 0x1007d52f
mov dword [esp + 0x24], eax
nop dword [eax + eax]
mov edx, dword [esi + 4]
add edx, eax
mov ecx, dword [edx + 4]
test cl, 0xf0
je 0x1007d5a0
mov eax, ecx
and al, 0xf0
cmp al, 0x10
jne 0x1007d4ed
mov byte [edx + 8], 0x41
test byte [edx + 0xe], 1
je 0x1007d512
movsx eax, word [esi + 0x20]
cmp eax, dword [esp + 0x28]
je 0x1007d512
test cl, 0xf
jne 0x1007d512
and ecx, 0xfffffff2
or ecx, 2
mov dword [edx + 4], ecx
or dword [esi + 0x1c], 0x800
mov ecx, dword [esp + 0x28]
movsx eax, word [esi + 0x22]
inc ecx
add dword [esp + 0x24], 0x10
cmp ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
jl 0x1007d4d0
mov ecx, dword [ebp + 0xc]
test cl, cl
jns 0x1007d647
mov eax, dword [esi + 0x1c]
test al, 8
je 0x1007d60e
push str.AUTOINCREMENT_not_allowed_on_WITHOUT_ROWID_tables
push edi
call fcn.1002a530
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.10136e2d
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xac]
mov dword [esi + 0x14], eax
cmp eax, 1
jne 0x1007d4a5
or dword [esi + 0x1c], eax
jmp 0x1007d4a5
push 0x10166843
push edi
call fcn.1002a530
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.10136e2d
mov esp, ebp
pop ebp
ret
test byte [edx + 0xe], 4
mov eax, dword [edx]
mov dword [esp + 0x38], eax
je 0x1007d5e9
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007d5b1
sub ecx, edx
mov edx, dword [esp + 0x38]
lea eax, [edx + 1]
add eax, ecx
push eax
push edx
push dword [esi]
push str.unknown_datatype_for__s._s:___s_
push edi
call fcn.1002a530
add esp, 0x14
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.10136e2d
mov esp, ebp
pop ebp
ret
push eax
push dword [esi]
push str.missing_datatype_for__s._s
push edi
call fcn.1002a530
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.10136e2d
mov esp, ebp
pop ebp
ret
test al, 4
jne 0x1007d636
push dword [esi]
push str.PRIMARY_KEY_missing_on_table__s
push edi
call fcn.1002a530
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.10136e2d
mov esp, ebp
pop ebp
ret
or eax, 0x280
mov edx, esi
mov ecx, edi
mov dword [esi + 0x1c], eax
call fcn.1007cdd0
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x2c], 0xffff8000
test ecx, ecx
je 0x1007d67c
mov eax, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x1007d67c
nop word [eax + eax]
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x1007d670
mov dword [esp + 0x2c], edx
mov eax, dword [esi + 0x10]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1007d76f
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [esp + 0x78], eax
mov edx, 0x10004
mov eax, dword [edi]
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x50], xmm0
mov dword [esp + 0x5c], 0
movlpd qword [esp + 0x6c], xmm0
mov dword [esp + 0x74], 0
mov dword [esp + 0x7c], 0
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x8c], xmm0
movlpd qword [esp + 0x94], xmm0
movlpd qword [esp + 0xa0], xmm0
movlpd qword [esp + 0xa8], xmm0
movlpd qword [esp + 0xb0], xmm0
mov dword [esp + 0x68], 1
mov dword [esp + 0x80], esi
mov dword [esp + 0x9c], 0xffffffff
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x68]
cmp dword [esi + 0x3c], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], eax
mov eax, 0x50004
cmove eax, edx
mov dword [esp + 0x40], edi
xor edx, edx
mov dword [esp + 0x58], eax
call fcn.10066100
test eax, eax
jne 0x1007d752
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x40]
call fcn.100661e0
cmp dword [edi + 0x24], 0
je 0x1007d76f
mov edx, dword [esi + 0x10]
test edx, edx
je 0x1007d768
mov ecx, dword [esp + 0x20]
call fcn.10069240
mov dword [esi + 0x10], 0
test byte [esi + 0x1c], 0x60
je 0x1007d928
xor eax, eax
xor edx, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edx
cmp ax, word [esi + 0x22]
jge 0x1007d900
xor ecx, ecx
mov dword [esp + 0x24], ecx
nop word [eax + eax]
mov eax, dword [esi + 4]
test byte [eax + ecx + 0xe], 0x60
je 0x1007d922
movzx eax, word [eax + ecx + 0xc]
test ax, ax
jne 0x1007d7bc
xor edx, edx
jmp 0x1007d7dc
cmp byte [esi + 0x2b], 0
je 0x1007d7c6
xor edx, edx
jmp 0x1007d7dc
mov edx, dword [esi + 0x34]
test edx, edx
je 0x1007d7dc
cmp dword [edx], eax
jge 0x1007d7d5
xor edx, edx
jmp 0x1007d7dc
lea eax, [eax + eax*4]
mov edx, dword [edx + eax*4 - 0xc]
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [esp + 0x78], eax
mov eax, dword [edi]
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x50], xmm0
movlpd qword [esp + 0x6c], xmm0
mov dword [esp + 0x74], 0
mov dword [esp + 0x7c], 0
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x8c], xmm0
movlpd qword [esp + 0x94], xmm0
movlpd qword [esp + 0xa0], xmm0
movlpd qword [esp + 0xa8], xmm0
movlpd qword [esp + 0xb0], xmm0
mov dword [esp + 0x68], 1
mov dword [esp + 0x80], esi
mov dword [esp + 0x9c], 0xffffffff
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x68]
cmp dword [esi + 0x3c], ecx
mov ecx, 0x10008
mov dword [esp + 0x44], eax
mov eax, 0x50008
cmove eax, ecx
mov dword [esp + 0x40], edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], eax
call fcn.10066100
test eax, eax
je 0x1007d8d9
mov ecx, dword [esp + 0x20]
push 0
push 0x34
call fcn.10026f30
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x1007d8c4
push 0x34
push 0
push eax
call fcn.10138870
mov eax, dword [esp + 0x24]
add esp, 0xc
or ecx, 0xffffffff
mov byte [eax], 0x79
mov word [eax + 0x22], cx
mov dword [eax + 0x18], 1
push eax
mov eax, dword [esi + 4]
mov edx, esi
add eax, dword [esp + 0x28]
mov ecx, edi
push eax
call fcn.1007a290
add esp, 8
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
movsx eax, word [esi + 0x22]
inc edx
add ecx, 0x10
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
cmp edx, eax
jl 0x1007d7a0
cmp dword [esp + 0x14], 0
jne 0x1007d928
push str.must_have_at_least_one_non_generated_column
push edi
call fcn.1002a530
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.10136e2d
mov esp, ebp
pop ebp
ret
inc dword [esp + 0x14]
jmp 0x1007d8e1
movsx edi, word [esi + 0x22]
xor eax, eax
mov ecx, dword [esi + 4]
xor edx, edx
mov dword [esp + 0x24], edi
cmp edi, 2
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edx
jl 0x1007d990
movsx edx, word [esi + 0x22]
movsx edi, word [esi + 0x22]
lea edx, [edx - 2]
shr edx, 1
inc edx
mov eax, edx
neg eax
lea edi, [edi + eax*2]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x1c]
nop word [eax + eax]
movzx eax, byte [ecx + 9]
add dword [esp + 0x14], eax
movzx eax, byte [ecx + 0x19]
add ecx, 0x20
add dword [esp + 0x28], eax
sub edx, 1
jne 0x1007d970
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x24], 0
jle 0x1007d99d
movzx ecx, byte [ecx + 9]
jmp 0x1007d99f
xor ecx, ecx
add eax, edx
add eax, ecx
cmp word [esi + 0x20], 0
push 0
lea ecx, [eax + 1]
cmovge ecx, eax
shl ecx, 2
push ecx
call fcn.1002cee0
mov word [esi + 0x28], ax
add esp, 8
mov eax, dword [esi + 8]
test eax, eax
je 0x1007d9e2
mov edi, eax
nop dword [eax]
mov ecx, edi
call fcn.1007cc40
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x1007d9d0
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
cmp byte [ecx + 0xb1], 0
jne 0x1007e290
mov edi, dword [edi + 8]
test edi, edi
jne 0x1007da21
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x80], edi
jne 0x1007da12
mov eax, dword [ecx]
test byte [eax + 0x50], 8
jne 0x1007da12
mov byte [ecx + 0x17], 1
call fcn.1004e770
mov edi, eax
test edi, edi
je 0x1007e338
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x1007da40
push 0
push 0
push 0
mov edx, 0x7a
mov ecx, edi
call fcn.1004e9b0
add esp, 0xc
jmp 0x1007da73
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x7a
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov al, byte [esi + 0x2b]
mov edx, str.TABLE
test al, al
mov ecx, str.VIEW
cmove ecx, edx
mov edx, str.table
mov dword [esp + 0x14], ecx
mov ecx, str.view
cmove ecx, edx
cmp dword [esp + 0x30], 0
mov dword [esp + 0x3c], ecx
je 0x1007df6b
mov edx, dword [esp + 0x1c]
cmp byte [edx + 0xdc], 0
je 0x1007dad0
inc dword [edx + 0x24]
mov dword [edx + 0xc], 1
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.10136e2d
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x2c]
mov ecx, edx
inc eax
mov dword [esp + 0x24], eax
inc eax
mov dword [esp + 0x28], eax
inc eax
mov dword [edx + 0x2c], eax
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x80]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [edi + 0x6c]
mov eax, dword [edx + 0x64]
mov dword [esp + 0x18], eax
cmp dword [edi + 0x70], ecx
jg 0x1007db1d
push dword [esp + 0x2c]
mov edx, 0x71
mov ecx, edi
push eax
push 1
call fcn.1004e9b0
add esp, 0xc
jmp 0x1007db50
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x71
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x6c]
mov edx, dword [esp + 0x1c]
test eax, eax
jle 0x1007db6f
lea ecx, [eax + eax*4]
mov esi, 0x10
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], si
mov esi, dword [esp + 0x34]
mov dword [edx + 0x28], 2
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x18], ecx
lea eax, [ecx + 1]
cmp dword [edi + 0x70], ecx
jg 0x1007db9d
push eax
push 0
push dword [esp + 0x2c]
mov edx, 0xb
mov ecx, edi
call fcn.1004e9b0
add esp, 0xc
jmp 0x1007dbd2
mov edx, dword [esp + 0x24]
lea ecx, [ecx + ecx*4]
mov esi, dword [esp + 0x34]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
inc edx
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x24], 0
jne 0x1007e338
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
push 0x41
call fcn.100a2120
mov edx, eax
add esp, 4
test edx, edx
je 0x1007e338
movzx ecx, word [edx + 0x22]
xor eax, eax
mov word [esi + 0x24], cx
mov word [esi + 0x22], cx
mov ecx, dword [edx + 4]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x20]
mov word [edx + 0x22], ax
mov dword [edx + 4], eax
cmp dword [ecx + 0x210], eax
jne 0x1007dc29
add dword [edx + 0x18], 0xffffffff
jne 0x1007dc2e
call fcn.1007a510
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x44], 0xd
mov dword [esp + 0x4c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call fcn.100aaeb0
mov eax, dword [esp + 0x20]
add esp, 4
cmp dword [eax + 0x24], 0
jne 0x1007e338
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x1007dc9f
push 0
push 0
push dword [esp + 0x2c]
mov edx, 0x44
mov ecx, edi
call fcn.1004e9b0
add esp, 0xc
jmp 0x1007dcd2
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x44
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0xc]
mov byte [eax + 0x13], 0
mov eax, dword [edi + 0xc]
mov dword [eax + 0x1c], 0
mov eax, dword [edi]
mov edx, dword [edi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x1007dcf5
mov eax, 0x1017abe0
jmp 0x1007dd06
mov eax, dword [esp + 0x18]
inc eax
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
lea eax, [eax + ecx*4]
add eax, 0xfffffff4
mov dword [eax], edx
mov edx, dword [edi + 0x6c]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edx
cmp dword [edi + 0x70], edx
jg 0x1007dd36
push 0
push 0
push eax
mov edx, 0xc
mov ecx, edi
call fcn.1004e9b0
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x1007dd69
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x18], eax
cmp dword [edi + 0x70], ecx
jg 0x1007dd94
push dword [esp + 0x28]
mov ecx, edi
push edx
push eax
mov edx, 0x61
call fcn.1004e9b0
add esp, 0xc
jmp 0x1007ddc7
mov esi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x61
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push 0
mov edx, esi
mov ecx, edi
call fcn.1008e840
mov ecx, dword [edi + 0x6c]
add esp, 4
cmp dword [edi + 0x70], ecx
jg 0x1007ddfa
push 0
push dword [esp + 0x18]
mov edx, 0x7f
mov ecx, edi
push 1
call fcn.1004e9b0
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x1007de2d
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x1007de4d
push edx
push dword [esp + 0x2c]
mov edx, 0x80
mov ecx, edi
push 1
call fcn.1004e9b0
add esp, 0xc
jmp 0x1007de80
mov esi, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x80
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x1007dea5
push 0
push dword [esp + 0x28]
mov edx, 9
mov ecx, edi
push 0
call fcn.1004e9b0
mov edx, dword [esp + 0x30]
add esp, 0xc
jmp 0x1007ded8
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 9
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x6c]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x1007deee
mov eax, 0x1017abd8
jmp 0x1007def7
mov eax, dword [edi + 0x68]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x1007df2b
push 0
push 0
push 1
mov edx, 0x7a
mov ecx, edi
call fcn.1004e9b0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov edx, esi
call fcn.1007c920
jmp 0x1007dfb3
lea eax, [ecx + 1]
mov edx, esi
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x7a
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x20]
call fcn.1007c920
jmp 0x1007dfb3
cmp dword [ebp + 0xc], 0
mov eax, dword [esp + 0x1c]
lea edx, [eax + 0xd0]
jne 0x1007df7f
mov edx, dword [esp + 0x38]
mov eax, dword [eax + 0xc8]
mov dword [esp + 0x18], eax
mov eax, dword [edx]
mov ecx, eax
sub ecx, dword [esp + 0x18]
cmp byte [eax], 0x3b
je 0x1007df99
add ecx, dword [edx + 4]
push dword [esp + 0x18]
push ecx
push dword [esp + 0x1c]
push str.CREATE__s__.s
push dword [esp + 0x30]
call fcn.100293f0
add esp, 0x14
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
push dword [ecx + 0x60]
shl edx, 4
push dword [esp + 0x18]
mov dword [esp + 0x20], edx
push dword [ecx + 0x64]
push eax
push eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x50]
mov eax, dword [eax + 0x10]
push dword [edx + eax]
push str.UPDATE__Q.sqlite_master_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
push ecx
call fcn.10079910
mov eax, dword [esp + 0x38]
add esp, 0x24
test eax, eax
je 0x1007e003
mov ecx, dword [esp + 0x20]
mov edx, eax
call fcn.10026a90
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx + 0xc]
mov edx, dword [ecx + 0x6c]
mov eax, dword [eax]
inc eax
mov dword [esp + 0x28], eax
cmp dword [ecx + 0x70], edx
jg 0x1007e040
push eax
push 1
push dword [esp + 0x34]
mov edx, 0x64
call fcn.1004e9b0
add esp, 0xc
jmp 0x1007e077
lea eax, [edx + 1]
mov dword [ecx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
test byte [esi + 0x1c], 8
mov edx, dword [esp + 0x1c]
je 0x1007e0ae
cmp byte [edx + 0xdc], 0
jne 0x1007e0ae
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x10]
add ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xc]
cmp dword [eax + 0x48], 0
jne 0x1007e0ae
push dword [ecx]
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
push edx
call fcn.10079910
add esp, 0xc
push 0
push ecx
push dword [esi]
push str.tbl_name_q_AND_type_trigger
push dword [esp + 0x30]
call fcn.100293f0
mov edx, dword [esp + 0x40]
add esp, 0x10
mov ecx, edi
push eax
call fcn.1004f1e0
add esp, 8
test byte [esi + 0x1c], 0x60
je 0x1007e1ad
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
push dword [esi]
add ecx, ecx
mov eax, dword [edx + 0x10]
push dword [eax + ecx*8]
push str.SELECTFROM__w_.__w_
push edx
call fcn.100293f0
mov edx, dword [edi + 0x6c]
add esp, 0x10
mov dword [esp + 0x14], eax
cmp dword [edi + 0x70], edx
jg 0x1007e122
push 0
push 0
push 1
mov edx, 0x94
mov ecx, edi
call fcn.1004e9b0
add esp, 0xc
mov edx, eax
jmp 0x1007e159
mov esi, dword [esp + 0x34]
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x94
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi]
cmp byte [ecx + 0x57], 0
je 0x1007e175
mov edx, dword [esp + 0x14]
push edx
mov edx, 0xfffffffa
call fcn.1004f6a0
add esp, 4
jmp 0x1007e1ad
test edx, edx
jns 0x1007e17d
mov edx, dword [edi + 0x6c]
dec edx
mov eax, dword [edi + 0x68]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov edx, dword [esp + 0x14]
je 0x1007e1a2
push 0xfffffffffffffffa
push edx
mov edx, eax
mov ecx, edi
call fcn.1004f7a0
add esp, 8
jmp 0x1007e1ad
test edx, edx
je 0x1007e1ad
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xfa
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
push dword [esi]
add edx, edx
mov eax, dword [ecx + 0x10]
push dword [eax + edx*8]
push str.PRAGMA___w_.integrity_check__Q_
push ecx
call fcn.100293f0
mov edx, dword [edi + 0x6c]
add esp, 0x10
mov dword [esp + 0x14], eax
cmp dword [edi + 0x70], edx
jg 0x1007e1f2
push 0
push 0
push 1
mov edx, 0x94
mov ecx, edi
call fcn.1004e9b0
add esp, 0xc
mov edx, eax
jmp 0x1007e229
mov esi, dword [esp + 0x34]
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x94
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x1007e247
mov ecx, dword [esp + 0x14]
mov edx, 0xfffffffa
push ecx
mov ecx, eax
call fcn.1004f6a0
add esp, 4
jmp 0x1007e27f
test edx, edx
jns 0x1007e24f
mov edx, dword [edi + 0x6c]
dec edx
mov eax, dword [edi + 0x68]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x14]
je 0x1007e274
push 0xfffffffffffffffa
push ecx
mov edx, eax
mov ecx, edi
call fcn.1004f7a0
add esp, 8
jmp 0x1007e27f
test ecx, ecx
je 0x1007e27f
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfa
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp byte [ecx + 0xb1], 0
je 0x1007e30f
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi]
push esi
lea ecx, [ecx + 8]
call fcn.1002d320
add esp, 4
test eax, eax
je 0x1007e2c2
mov ecx, dword [esp + 0x20]
call fcn.10027200
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.10136e2d
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov ecx, str.sqlite_sequence
mov dword [edi + 0xf8], 0
or dword [eax + 0x18], 1
mov eax, dword [esi]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1007e300
test dl, dl
je 0x1007e2fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1007e300
add eax, 2
add ecx, 2
test dl, dl
jne 0x1007e2e0
xor eax, eax
jmp 0x1007e305
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1007e30f
mov eax, dword [esi + 0x3c]
mov dword [eax + 0x48], esi
cmp dword [esp + 0x30], 0
jne 0x1007e338
cmp byte [esi + 0x2b], 0
jne 0x1007e338
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
test eax, eax
jne 0x1007e32c
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
sub eax, dword [edi + 0xc8]
add eax, 0xd
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
xor ecx, esp
call fcn.10136e2d
mov esp, ebp
pop ebp
ret