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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
mov eax, dword [0x6b7e64]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x34], eax
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], ecx
mov esi, dword [edi]
mov dword [esp + 0x14], esi
test eax, eax
jne 0x46b2d6
test ecx, ecx
je 0x46c2d2
mov esi, dword [edi + 0xf8]
mov dword [esp + 0x28], esi
test esi, esi
je 0x46c2d2
test ecx, ecx
jne 0x46b352
mov eax, dword [esi]
push 0x5f
push eax
mov dword [esp + 0x18], eax
call fcn.006238a0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x46b34e
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
mov byte [eax], 0
call fcn.00467660
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x20]
mov byte [eax], 0x5f
test edx, edx
je 0x46b34e
cmp byte [edx + 0x2b], 1
jne 0x46b34e
push dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
call fcn.0046b190
mov ecx, dword [esp + 0x30]
add esp, 4
test eax, eax
je 0x46b352
or dword [esi + 0x1c], 0x1000
jmp 0x46b352
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xb1], 0
je 0x46b385
test ecx, ecx
jne 0x46b451
cmp byte [esi + 0x2b], cl
je 0x46b437
cmp dword [eax + 0xac], ecx
jne 0x46b451
mov eax, dword [eax + 0xac]
mov dword [esi + 0x14], eax
mov ecx, dword [ebp + 0xc]
test ecx, 0x10000
je 0x46b402
or dword [esi + 0x1c], 0x10000
xor eax, eax
xor edi, edi
cmp ax, word [esi + 0x22]
jge 0x46b3fe
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov edx, dword [esi + 4]
add edx, ecx
mov ecx, dword [edx + 4]
test cl, 0xf0
je 0x46b473
mov eax, ecx
and al, 0xf0
cmp al, 0x10
jne 0x46b3c4
mov byte [edx + 8], 0x41
test byte [edx + 0xe], 1
je 0x46b3e7
movsx eax, word [esi + 0x20]
cmp eax, edi
je 0x46b3e7
test cl, 0xf
jne 0x46b3e7
and ecx, 0xfffffff2
or ecx, 2
mov dword [edx + 4], ecx
or dword [esi + 0x1c], 0x800
mov ecx, dword [esp + 0x10]
inc edi
movsx eax, word [esi + 0x22]
add ecx, 0x10
mov dword [esp + 0x10], ecx
cmp edi, eax
jl 0x46b3a7
mov ecx, dword [ebp + 0xc]
mov edi, dword [esp + 0x18]
test cl, cl
jns 0x46b518
mov eax, dword [esi + 0x1c]
test al, 8
je 0x46b4df
push str.AUTOINCREMENT_not_allowed_on_WITHOUT_ROWID_tables
push edi
call fcn.00415290
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0061e015
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xac]
mov dword [esi + 0x14], eax
cmp eax, 1
jne 0x46b385
or dword [esi + 0x1c], eax
jmp 0x46b385
push 0x688421
push edi
call fcn.00415290
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0061e015
mov esp, ebp
pop ebp
ret
test byte [edx + 0xe], 4
mov edi, dword [edx]
je 0x46b4b7
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46b480
sub ecx, edx
lea eax, [ecx + 1]
add eax, edi
push eax
push edi
push dword [esi]
push str.unknown_datatype_for__s._s:___s_
push dword [esp + 0x28]
call fcn.00415290
add esp, 0x14
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0061e015
mov esp, ebp
pop ebp
ret
push edi
push dword [esi]
push str.missing_datatype_for__s._s
push dword [esp + 0x24]
call fcn.00415290
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0061e015
mov esp, ebp
pop ebp
ret
test al, 4
jne 0x46b507
push dword [esi]
push str.PRIMARY_KEY_missing_on_table__s
push edi
call fcn.00415290
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0061e015
mov esp, ebp
pop ebp
ret
or eax, 0x280
mov edx, esi
mov ecx, edi
mov dword [esi + 0x1c], eax
call fcn.0046ac60
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x30], 0xffff8000
test edx, edx
je 0x46b54c
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x46b54c
nop dword [eax + eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x46b540
mov dword [esp + 0x30], ecx
mov eax, dword [esi + 0x10]
mov dword [esp + 0x10], eax
test eax, eax
je 0x46b64a
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [esp + 0x88], eax
mov eax, dword [edi]
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x7c], xmm0
mov dword [esp + 0x84], 0
mov dword [esp + 0x8c], 0
movlpd qword [esp + 0x94], xmm0
movlpd qword [esp + 0x9c], xmm0
movlpd qword [esp + 0xa4], xmm0
movlpd qword [esp + 0xb0], xmm0
movlpd qword [esp + 0xb8], xmm0
movlpd qword [esp + 0xc0], xmm0
mov dword [esp + 0x78], 1
mov dword [esp + 0x90], esi
mov dword [esp + 0xac], 0xffffffff
mov eax, dword [eax + 0x10]
mov dword [esp + 0x20], 0x10004
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x78]
cmp edx, ecx
mov dword [esp + 0x44], eax
mov eax, 0x50004
mov dword [esp + 0x40], edi
cmove eax, dword [esp + 0x20]
lea ecx, [esp + 0x40]
xor edx, edx
mov dword [esp + 0x58], eax
call fcn.004535f0
test eax, eax
jne 0x46b62d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x40]
call fcn.004536c0
cmp dword [edi + 0x24], 0
je 0x46b64a
mov edx, dword [esi + 0x10]
test edx, edx
je 0x46b643
mov ecx, dword [esp + 0x14]
call fcn.00456880
mov dword [esi + 0x10], 0
test byte [esi + 0x1c], 0x60
je 0x46b807
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
cmp ax, word [esi + 0x22]
jge 0x46b7df
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 4]
test byte [eax + ecx + 0xe], 0x60
je 0x46b801
movzx eax, word [eax + ecx + 0xc]
test ax, ax
jne 0x46b68c
xor edx, edx
jmp 0x46b6ac
cmp byte [esi + 0x2b], 0
je 0x46b696
xor edx, edx
jmp 0x46b6ac
mov edx, dword [esi + 0x34]
test edx, edx
je 0x46b6ac
cmp dword [edx], eax
jge 0x46b6a5
xor edx, edx
jmp 0x46b6ac
lea eax, [eax + eax*4]
mov edx, dword [edx + eax*4 - 0xc]
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [esp + 0x88], eax
mov eax, dword [edi]
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], 0
movlpd qword [esp + 0x7c], xmm0
mov dword [esp + 0x84], 0
mov dword [esp + 0x8c], 0
movlpd qword [esp + 0x94], xmm0
movlpd qword [esp + 0x9c], xmm0
movlpd qword [esp + 0xa4], xmm0
movlpd qword [esp + 0xb0], xmm0
movlpd qword [esp + 0xb8], xmm0
movlpd qword [esp + 0xc0], xmm0
mov dword [esp + 0x78], 1
mov dword [esp + 0x90], esi
mov dword [esp + 0xac], 0xffffffff
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x78]
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.004535f0
test eax, eax
je 0x46b7b8
mov ecx, dword [esp + 0x14]
push 0
push 0x34
call fcn.00411a60
mov edi, eax
add esp, 8
test edi, edi
je 0x46b79f
push 0x34
push 0
push edi
call fcn.00623f60
add esp, 0xc
mov byte [edi], 0x79
or eax, 0xffffffff
mov dword [edi + 0x18], 1
mov word [edi + 0x22], ax
mov eax, dword [esi + 4]
mov edx, esi
add eax, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00467ee0
add esp, 8
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
movsx eax, word [esi + 0x22]
inc edx
add ecx, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
cmp edx, eax
jl 0x46b670
cmp dword [esp + 0x1c], 0
jne 0x46b807
push str.must_have_at_least_one_non_generated_column
push edi
call fcn.00415290
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0061e015
mov esp, ebp
pop ebp
ret
inc dword [esp + 0x1c]
jmp 0x46b7c0
movsx edx, word [esi + 0x22]
xor eax, eax
mov ecx, dword [esi + 4]
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
cmp edx, 2
jl 0x46b85e
mov esi, dword [esp + 0xc]
add edx, 0xfffffffe
shr edx, 1
inc edx
mov eax, edx
neg eax
lea esi, [esi + eax*2]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x28]
nop dword [eax + eax]
movzx eax, byte [ecx + 9]
add edi, eax
movzx eax, byte [ecx + 0x19]
add dword [esp + 0x10], eax
add ecx, 0x20
sub edx, 1
jne 0x46b840
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test edx, edx
jle 0x46b868
movzx ecx, byte [ecx + 9]
jmp 0x46b86a
xor ecx, ecx
add eax, edi
add eax, ecx
cmp word [esi + 0x20], 0
push 0
lea ecx, [eax + 1]
cmovge ecx, eax
shl ecx, 2
push ecx
call fcn.00417ba0
mov word [esi + 0x28], ax
add esp, 8
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
test eax, eax
je 0x46b90a
mov esi, eax
nop dword [eax + eax]
mov eax, dword [esi + 0xc]
xor edi, edi
movzx edx, word [esi + 0x34]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
test edx, edx
je 0x46b8e5
mov ecx, dword [esi + 4]
mov esi, eax
nop dword [eax]
movzx eax, word [ecx]
test ax, ax
jns 0x46b8cf
mov eax, 1
jmp 0x46b8d7
cwde
add eax, eax
movzx eax, byte [esi + eax*8 + 9]
add edi, eax
add ecx, 2
sub edx, 1
jne 0x46b8c0
mov esi, dword [esp + 0x10]
lea eax, [edi*4]
push 0
push eax
call fcn.00417ba0
mov word [esi + 0x30], ax
add esp, 8
mov esi, dword [esi + 0x14]
mov dword [esp + 0x10], esi
test esi, esi
jne 0x46b8a0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xb1], 0
jne 0x46c225
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx + 8]
test edi, edi
je 0x46b92c
mov dword [esp + 0x10], edi
jmp 0x46b954
cmp dword [ecx + 0x80], 0
jne 0x46b941
mov eax, dword [ecx]
test byte [eax + 0x50], 8
jne 0x46b941
mov byte [ecx + 0x17], 1
call fcn.0043b390
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x46c2d2
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x46b973
push 0
push 0
push 0
mov edx, 0x7a
mov ecx, edi
call fcn.0043b5e0
add esp, 0xc
jmp 0x46b9a6
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 + 0x34], ecx
mov ecx, str.view
cmove ecx, edx
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x38], ecx
je 0x46beee
mov edx, dword [esp + 0x18]
cmp byte [edx + 0xdc], 0
je 0x46ba03
inc dword [edx + 0x24]
mov dword [edx + 0xc], 1
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0061e015
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x2c]
mov ecx, edx
inc eax
mov dword [esp + 0xc], eax
inc eax
mov dword [esp + 0x1c], eax
inc eax
mov dword [edx + 0x2c], 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 + 0x20], eax
cmp dword [edi + 0x70], ecx
jg 0x46ba5b
push dword [esp + 0x30]
mov edx, 0x71
mov ecx, edi
push eax
push 1
call fcn.0043b5e0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [esp + 0x18]
add eax, 0x68
mov dword [esp + 0x24], eax
jmp 0x46ba9b
mov esi, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
lea eax, [edi + 0x68]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x30]
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x71
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 0x10], 0
lea eax, [edi + 0x68]
mov ecx, dword [edi + 0x6c]
test ecx, ecx
jle 0x46bab5
mov eax, dword [eax]
lea ecx, [ecx + ecx*4]
mov edx, 0x10
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x18]
mov dword [edx + 0x28], 2
mov eax, dword [edi + 0x6c]
lea ecx, [eax + 1]
mov dword [esp + 0x20], ecx
cmp dword [edi + 0x70], eax
jg 0x46bae7
push ecx
push 0
push dword [esp + 0x14]
mov edx, 0xb
mov ecx, edi
call fcn.0043b5e0
mov edx, dword [esp + 0x24]
add esp, 0xc
jmp 0x46bb1e
mov esi, dword [esp + 0xc]
mov dword [edi + 0x6c], ecx
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x20]
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [esp + 0x28]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [edx + 0x24], 0
jne 0x46c2d2
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push 0x41
call fcn.004911c0
add esp, 4
test eax, eax
je 0x46c2d2
movzx ecx, word [eax + 0x22]
mov word [esi + 0x24], cx
mov word [esi + 0x22], cx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
xor ecx, ecx
mov word [eax + 0x22], cx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x210], 0
jne 0x46bb70
add dword [eax + 0x18], 0xffffffff
jne 0x46bb77
mov edx, eax
call fcn.00468150
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
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.00499810
mov eax, dword [esp + 0x1c]
add esp, 4
cmp dword [eax + 0x24], 0
jne 0x46c2d2
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x46bbec
push 0
push 0
push dword [esp + 0x14]
mov edx, 0x44
mov ecx, edi
call fcn.0043b5e0
mov edx, dword [esp + 0x30]
add esp, 0xc
jmp 0x46bc26
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov esi, dword [esp + 0xc]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], eax
mov eax, dword [edx]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x44
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 + 0x6c]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x46bc4d
mov eax, 0x6c6388
jmp 0x46bc5c
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edx]
lea eax, [eax + ecx*4]
add eax, 0xfffffff4
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov edx, dword [edi + 0x6c]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], edx
cmp dword [edi + 0x70], edx
jg 0x46bc94
push 0
push 0
push eax
mov edx, 0xc
mov ecx, edi
call fcn.0043b5e0
mov edx, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0xc], eax
jmp 0x46bcce
mov esi, dword [esp + 0x20]
lea ecx, [edx + edx*4]
lea eax, [edx + 1]
mov edx, dword [esp + 0x24]
mov dword [edi + 0x6c], eax
mov eax, dword [edx]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x28]
mov dword [eax + ecx*4], 0xc
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 + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x34], eax
cmp dword [edi + 0x70], ecx
jg 0x46bd01
push dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, edi
push eax
push edx
mov edx, 0x61
call fcn.0043b5e0
add esp, 0xc
jmp 0x46bd33
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x1c]
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.0047c9d0
mov ecx, dword [edi + 0x6c]
add esp, 4
cmp dword [edi + 0x70], ecx
jg 0x46bd64
mov eax, dword [esp + 0x1c]
mov edx, 0x7f
push 0
inc eax
mov ecx, edi
push eax
push 1
call fcn.0043b5e0
add esp, 0xc
jmp 0x46bd9f
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov esi, dword [esp + 0x1c]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], eax
inc esi
mov eax, dword [edx]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
mov edx, dword [esp + 0x24]
cmp dword [edi + 0x70], ecx
jg 0x46bdc7
mov ecx, dword [esp + 0x1c]
mov edx, 0x80
lea eax, [ecx + 1]
push eax
push ecx
push 1
mov ecx, edi
call fcn.0043b5e0
add esp, 0xc
jmp 0x46bdfa
mov esi, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov dword [eax + ecx*4 + 8], esi
inc esi
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x80
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
mov edx, dword [esp + 0x24]
cmp dword [edi + 0x70], ecx
jg 0x46be23
push 0
push dword [esp + 0x10]
mov edx, 9
mov ecx, edi
push 0
call fcn.0043b5e0
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x46be55
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0xc]
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 + 0x34], eax
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x46be6f
mov edx, dword [esp + 0x24]
mov eax, 0x6c6380
jmp 0x46be7b
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x46beaf
push 0
push 0
push 1
mov edx, 0x7a
mov ecx, edi
call fcn.0043b5e0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, esi
call fcn.0046a810
jmp 0x46bf36
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, esi
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 + 0x14]
call fcn.0046a810
jmp 0x46bf36
cmp dword [ebp + 0xc], 0
mov eax, dword [esp + 0x18]
lea edx, [eax + 0xd0]
jne 0x46bf02
mov edx, dword [esp + 0x3c]
mov eax, dword [eax + 0xc8]
mov dword [esp + 0x20], eax
mov eax, dword [edx]
mov ecx, eax
sub ecx, dword [esp + 0x20]
cmp byte [eax], 0x3b
je 0x46bf1c
add ecx, dword [edx + 4]
push dword [esp + 0x20]
push ecx
push dword [esp + 0x3c]
push str.CREATE__s__.s
push dword [esp + 0x24]
call fcn.00414020
add esp, 0x14
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
push dword [ecx + 0x60]
shl edx, 4
push dword [esp + 0x20]
mov dword [esp + 0x14], edx
push dword [ecx + 0x64]
push eax
push eax
mov eax, dword [esp + 0x28]
push dword [esp + 0x4c]
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.00467540
mov eax, dword [esp + 0x40]
add esp, 0x24
test eax, eax
je 0x46bf86
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.004115d0
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0xc]
mov eax, dword [edx]
mov ecx, dword [edx + 8]
mov dword [esp + 0x34], ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + esi + 0xc]
mov esi, dword [eax]
mov eax, dword [ecx + 0x6c]
inc esi
mov dword [esp + 0x38], eax
cmp dword [ecx + 0x70], eax
jg 0x46bfc3
push esi
push 1
push dword [esp + 0x38]
mov edx, 0x64
call fcn.0043b5e0
add esp, 0xc
jmp 0x46bff8
mov edx, dword [esp + 0x30]
inc eax
mov dword [ecx + 0x6c], eax
mov eax, dword [esp + 0x38]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
test byte [esi + 0x1c], 8
je 0x46c033
cmp byte [edx + 0xdc], 0
jne 0x46c033
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
add ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0xc]
cmp dword [eax + 0x48], 0
jne 0x46c033
push dword [ecx]
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
push edx
call fcn.00467540
add esp, 0xc
push 0
push ecx
push dword [esi]
push str.tbl_name_q_AND_type_trigger
push dword [esp + 0x24]
call fcn.00414020
mov edx, dword [esp + 0x44]
add esp, 0x10
mov ecx, edi
push eax
call fcn.0043bd30
add esp, 8
test byte [esi + 0x1c], 0x60
je 0x46c135
mov edx, dword [esp + 0x14]
push dword [esi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + 0x10]
push dword [eax + ecx]
push str.SELECTFROM__w_.__w_
push edx
call fcn.00414020
mov edx, dword [edi + 0x6c]
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp dword [edi + 0x70], edx
jg 0x46c0ac
push 0
push 0
push 1
mov edx, 0x94
mov ecx, edi
call fcn.0043b5e0
mov edx, eax
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, 0x68
jmp 0x46c0e2
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
lea eax, [edi + 0x68]
mov ecx, dword [edi]
cmp byte [ecx + 0x57], 0
je 0x46c0fe
mov edx, dword [esp + 0x1c]
push edx
mov edx, 0xfffffffa
call fcn.0043c1e0
add esp, 4
jmp 0x46c135
test edx, edx
jns 0x46c106
mov edx, dword [edi + 0x6c]
dec edx
mov eax, dword [eax]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov edx, dword [esp + 0x1c]
je 0x46c12a
push 0xfffffffffffffffa
push edx
mov edx, eax
mov ecx, edi
call fcn.0043c370
add esp, 8
jmp 0x46c135
test edx, edx
je 0x46c135
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xfa
mov edx, dword [esp + 0x14]
push dword [esi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + 0x10]
push dword [eax + ecx]
push str.PRAGMA___w_.integrity_check__Q_
push edx
call fcn.00414020
mov edx, dword [edi + 0x6c]
add esp, 0x10
mov dword [esp + 0xc], eax
cmp dword [edi + 0x70], edx
jg 0x46c17f
push 0
push 0
push 1
mov edx, 0x94
mov ecx, edi
call fcn.0043b5e0
mov edx, eax
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, 0x68
jmp 0x46c1b9
mov esi, dword [esp + 0x28]
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
lea eax, [edi + 0x68]
mov ecx, dword [edi]
mov dword [esp + 0x38], ecx
cmp byte [ecx + 0x57], 0
je 0x46c1dd
mov ecx, dword [esp + 0xc]
mov edx, 0xfffffffa
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.0043c1e0
add esp, 4
jmp 0x46c214
test edx, edx
jns 0x46c1e5
mov edx, dword [edi + 0x6c]
dec edx
mov eax, dword [eax]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0xc]
je 0x46c209
push 0xfffffffffffffffa
push ecx
mov edx, eax
mov ecx, edi
call fcn.0043c370
add esp, 8
jmp 0x46c214
test ecx, ecx
je 0x46c214
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfa
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xb1], 0
je 0x46c2a5
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi]
push esi
lea ecx, [ecx + 8]
call fcn.00417ff0
add esp, 4
test eax, eax
je 0x46c257
mov ecx, dword [esp + 0x14]
call fcn.00411d30
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0061e015
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x18]
mov ecx, str.sqlite_sequence
mov eax, dword [esp + 0x14]
mov dword [edi + 0xf8], 0
or dword [eax + 0x18], 1
mov eax, dword [esi]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46c294
test dl, dl
je 0x46c290
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46c294
add eax, 2
add ecx, 2
test dl, dl
jne 0x46c274
xor eax, eax
jmp 0x46c299
sbb eax, eax
or eax, 1
test eax, eax
jne 0x46c2a9
mov eax, dword [esi + 0x3c]
mov dword [eax + 0x48], esi
jmp 0x46c2a9
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x2c], 0
jne 0x46c2d2
cmp byte [esi + 0x2b], 0
jne 0x46c2d2
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
test eax, eax
jne 0x46c2c6
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
sub eax, dword [edi + 0xc8]
add eax, 0xd
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
xor ecx, esp
call fcn.0061e015
mov esp, ebp
pop ebp
ret