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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x108
mov eax, dword [0x1011d004]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, ecx
mov dword [esp + 0x18], 0
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax]
push esi
mov esi, dword [ebp + 8]
push edi
cmp byte [ecx + 0x53], 0
mov edi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x3c], 0
jne 0x10059429
cmp dword [eax + 0x24], 0
jg 0x10059429
cmp byte [eax + 0xcc], 1
jne 0x10058488
cmp byte [ebp + 0x28], 2
jne 0x10059429
mov ecx, eax
call fcn.100716c0
test eax, eax
jne 0x10059429
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
call fcn.10058390
test eax, eax
jne 0x10059429
cmp dword [esp + 0x34], eax
je 0x100586b2
lea eax, [esp + 0x50]
mov edx, edi
mov edi, dword [esp + 0x18]
mov ecx, edi
push eax
push esi
call fcn.10053b00
mov edx, eax
add esp, 8
mov dword [esp + 0x2c], edx
test edx, edx
js 0x10059429
mov edx, dword [esp + 0x14]
cmp byte [edx + 0xb1], 0
jne 0x1005851b
mov edx, dword [esp + 0x34]
mov ecx, edi
call fcn.1005c030
cmp dword [esi + 4], 0
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
jne 0x1005851f
test eax, eax
je 0x1005851f
mov ecx, dword [esi + 0x10]
mov eax, dword [eax + 0x3c]
cmp eax, dword [ecx + 0x1c]
mov eax, 1
cmove edx, eax
mov dword [esp + 0x2c], edx
jmp 0x1005851f
mov esi, edx
mov edx, eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x84]
push eax
push str.index
push edx
mov edx, edi
call fcn.10051820
mov eax, dword [esp + 0x40]
lea edx, [esp + 0xc4]
xorps xmm0, xmm0
mov dword [esp + 0xe4], eax
add esp, 0xc
movlpd qword [esp + 0xb8], xmm0
lea ecx, [esp + 0x88]
movlpd qword [esp + 0xc0], xmm0
movlpd qword [esp + 0xc8], xmm0
movlpd qword [esp + 0xd0], xmm0
movlpd qword [esp + 0xdc], xmm0
movlpd qword [esp + 0xe4], xmm0
movlpd qword [esp + 0xec], xmm0
movlpd qword [esp + 0xf4], xmm0
movlpd qword [esp + 0xfc], xmm0
call fcn.1003d8c0
mov eax, dword [esp + 0x34]
xor edx, edx
add eax, 8
mov ecx, edi
push eax
call fcn.10052960
mov edx, eax
add esp, 4
mov dword [esp + 0x1c], edx
test edx, edx
je 0x10059429
cmp dword [esp + 0x2c], 1
jne 0x100585f6
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x1c]
cmp eax, dword [edx + 0x3c]
je 0x100585f6
push dword [edx]
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
push edi
call fcn.10008be0
add esp, 0xc
jmp 0x100593ea
test byte [edx + 0x1c], 0x80
je 0x10058607
mov ecx, edx
call fcn.10053cf0
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + 0x10]
mov edx, 7
shl ecx, 4
mov esi, dword [esi]
add eax, ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], esi
test esi, esi
je 0x1005870e
mov edi, str.sqlite_
nop dword [eax + eax]
mov al, byte [esi]
dec edx
test al, al
je 0x10058662
movzx ecx, byte [edi]
movzx eax, al
mov al, byte [eax + 0x10114750]
cmp al, byte [ecx + 0x10114750]
jne 0x10058662
inc esi
inc edi
test edx, edx
jg 0x10058640
dec edx
test edx, edx
js 0x10058682
movzx eax, byte [edi]
movzx ecx, byte [eax + 0x10114750]
movzx eax, byte [esi]
movzx eax, byte [eax + 0x10114750]
sub eax, ecx
jne 0x1005870a
mov edx, dword [esp + 0x14]
cmp byte [edx + 0xb1], 0
jne 0x10058704
cmp dword [esp + 0x34], 0
je 0x10058704
mov eax, dword [esp + 0x1c]
push dword [eax]
push str.table__s_may_not_be_indexed
push dword [esp + 0x20]
call fcn.10008be0
add esp, 0xc
jmp 0x100593ea
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xe8]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10059429
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], 0xffff8000
test ecx, ecx
je 0x1005860b
mov eax, dword [edx + 0x10]
xor esi, esi
add eax, 0xc
mov dword [esp + 0x2c], esi
cmp dword [eax], ecx
je 0x1005860b
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x100586f3
mov dword [esp + 0x2c], esi
jmp 0x1005860b
mov esi, dword [esp + 0x30]
jmp 0x10058712
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov al, byte [eax + 0x2b]
cmp al, 2
jne 0x10058733
push str.views_may_not_be_indexed
push dword [esp + 0x1c]
call fcn.10008be0
add esp, 8
jmp 0x100593ea
cmp al, 1
jne 0x1005874d
push str.virtual_tables_may_not_be_indexed
push dword [esp + 0x1c]
call fcn.10008be0
add esp, 8
jmp 0x100593ea
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1005889b
mov edi, dword [eax]
mov esi, dword [eax + 4]
test edi, edi
je 0x10058887
xor eax, eax
mov ecx, esi
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edx
call fcn.10005060
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x10058873
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov byte [esi + ecx], 0
mov esi, ecx
call fcn.10008c40
mov eax, dword [esp + 0x1c]
mov edx, esi
mov edi, dword [esp + 0x18]
mov ecx, edi
push dword [eax]
push str.index
call fcn.10053b90
add esp, 8
test eax, eax
jne 0x100593ea
cmp byte [edi + 0xcc], 2
jae 0x10058865
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xb1], 0
jne 0x1005880c
push 0
mov edx, esi
mov ecx, eax
call fcn.100524b0
add esp, 4
test eax, eax
je 0x10058808
push esi
push str.there_is_already_a_table_named__s
push edi
call fcn.10008be0
add esp, 0xc
mov dword [esp + 0x20], esi
jmp 0x100593ea
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov ecx, eax
mov edx, dword [esp + 0x20]
push dword [esi]
call fcn.100529b0
add esp, 4
test eax, eax
je 0x10058869
cmp dword [ebp + 0x24], 0
jne 0x10058846
mov esi, dword [esp + 0x20]
push esi
push str.index__s_already_exists
push edi
call fcn.10008be0
add esp, 0xc
mov dword [esp + 0x20], esi
jmp 0x100593ea
mov edx, dword [esp + 0x2c]
mov ecx, edi
call fcn.1005a700
mov ecx, edi
call fcn.10053dc0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
jmp 0x100593ea
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
jmp 0x100588ea
mov ecx, eax
call fcn.10008c40
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
jmp 0x100593ea
xor ecx, ecx
call fcn.10008c40
mov dword [esp + 0x20], 0
jmp 0x100593ea
mov eax, dword [esp + 0x1c]
mov ecx, 1
mov eax, dword [eax + 8]
test eax, eax
je 0x100588b8
nop dword [eax + eax]
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x100588b0
push ecx
push esi
push str.sqlite_autoindex__s__d
push edx
call fcn.10007ea0
mov esi, eax
add esp, 0x10
mov dword [esp + 0x20], esi
test esi, esi
je 0x100593ea
mov edi, dword [esp + 0x18]
cmp byte [edi + 0xcc], 0
je 0x100588e6
inc byte [esi + 7]
mov esi, dword [esp + 0x24]
cmp byte [edi + 0xcc], 2
jae 0x10058951
mov esi, dword [esi]
mov ecx, str.sqlite_temp_master
cmp dword [esp + 0x2c], 1
mov eax, str.sqlite_master
push esi
cmove eax, ecx
mov edx, 0x12
push 0
push eax
mov ecx, edi
call fcn.10051b80
add esp, 0xc
test eax, eax
jne 0x100593ea
mov eax, dword [esp + 0x1c]
xor edx, edx
cmp dword [esp + 0x2c], 1
mov ecx, dword [esp + 0x20]
push esi
push dword [eax]
sete dl
push ecx
mov ecx, edi
lea edx, [edx*2 + 1]
call fcn.10051b80
add esp, 0xc
test eax, eax
jne 0x100593ea
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x10058a25
mov eax, dword [esp + 0x1c]
movsx ecx, word [eax + 0x22]
mov eax, dword [eax + 4]
add ecx, ecx
or word [eax + ecx*8 - 2], 8
mov eax, dword [eax + ecx*8 - 0x10]
mov dword [esp + 0x30], eax
test eax, eax
jne 0x10058980
xor esi, esi
jmp 0x10058994
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10058985
sub esi, ecx
and esi, 0x3fffffff
mov ecx, dword [esp + 0x14]
lea eax, [esi + 0x35]
push 0
push eax
call fcn.10005060
mov edi, eax
add esp, 8
test edi, edi
je 0x100589e9
push 0x34
push 0
push edi
call sub.VCRUNTIME140.dll_memset
or eax, 0xffffffff
mov byte [edi], 0x3b
mov word [edi + 0x22], ax
add esp, 0xc
lea eax, [edi + 0x34]
mov dword [edi + 8], eax
test esi, esi
je 0x100589de
push esi
push dword [esp + 0x34]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi + 8]
add esp, 0xc
mov byte [eax + esi], 0
mov dword [edi + 0x18], 1
mov eax, dword [esp + 0x18]
mov edx, edi
mov ecx, dword [eax]
call fcn.100433d0
mov edi, eax
mov dword [esp + 0x44], edi
test edi, edi
je 0x100593ea
mov ecx, dword [ebp + 0x20]
xor eax, eax
movzx edx, cl
cmp ecx, 0xffffffff
mov ecx, dword [edi]
cmovne eax, edx
mov dword [esp + 0x30], eax
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x30]
mov byte [edi + eax*4 - 4], cl
jmp 0x10058a52
mov ecx, dword [edi]
mov eax, dword [eax]
cmp eax, dword [ecx + 0x80]
jle 0x10058a44
push str.index
push str.too_many_columns_in__s
push edi
call fcn.10008be0
add esp, 0xc
cmp dword [edi + 0x24], 0
jne 0x100593ea
mov edi, dword [esp + 0x44]
mov esi, dword [edi]
test esi, esi
jle 0x10058a97
lea edx, [edi + 8]
nop dword [eax + eax]
mov ecx, dword [edx]
cmp byte [ecx], 0x70
jne 0x10058a8b
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x10058a80
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10058a71
sub ecx, edi
and ecx, 0x3fffffff
mov eax, dword [esp + 0x38]
inc eax
add eax, ecx
mov dword [esp + 0x38], eax
add edx, 0x14
sub esi, 1
jne 0x10058a60
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x20]
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x10058aa0
mov eax, dword [esp + 0x3c]
sub esi, ecx
and esi, 0x3fffffff
test eax, eax
je 0x10058abd
movzx ecx, word [eax + 0x32]
jmp 0x10058ac2
mov ecx, 1
movzx edx, word [edi]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x3c]
add dx, cx
mov ecx, dword [esp + 0x18]
inc eax
add eax, esi
push eax
call fcn.100582f0
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x53], 0
jne 0x1005939d
mov eax, dword [esp + 0x28]
mov dword [edi], eax
inc eax
add eax, esi
mov dword [esp + 0x28], eax
lea eax, [esi + 1]
push eax
push dword [esp + 0x24]
push dword [edi]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x58]
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x44]
mov byte [edi + 0x36], al
neg eax
mov dword [edi + 0xc], edx
sbb ecx, ecx
mov eax, dword [edi + 0x38]
and eax, 0xfffffff7
and ecx, 8
or ecx, eax
movzx eax, byte [ebp + 0x28]
and eax, 3
and ecx, 0xfffffffc
or ecx, eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x38], ecx
mov ecx, dword [esp + 0x58]
mov eax, dword [eax + 0x10]
mov eax, dword [ecx + eax + 0xc]
mov dword [edi + 0x18], eax
movzx eax, word [esi]
mov word [edi + 0x32], ax
mov ecx, eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x10058b87
mov ecx, dword [esp + 0x18]
push 0
push eax
push 2
call fcn.10040600
mov ecx, dword [esp + 0x60]
add esp, 0xc
mov dword [edi + 0x24], ecx
movzx ecx, word [edi + 0x32]
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x24]
lea edx, [esi + 8]
mov dword [esp + 0x30], edx
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x4c]
mov byte [esp + 0x4b], al
mov eax, dword [esp + 0x18]
cmp byte [eax + 0xcc], 2
jb 0x10058bb4
mov dword [edi + 0x28], esi
mov dword [esp + 0x44], 0
xor esi, esi
xor eax, eax
mov dword [esp + 0x24], esi
cmp ax, cx
jae 0x10058ea8
mov eax, dword [edx]
mov cl, byte [eax]
cmp cl, 0x74
je 0x10058bdb
cmp cl, 0x70
jne 0x10058bde
mov eax, dword [eax + 0xc]
cmp byte [eax], 0x74
jne 0x10058bde
mov byte [eax], 0x3b
mov ecx, dword [esp + 0x1c]
xorps xmm0, xmm0
mov esi, dword [esp + 0x1c]
mov edx, dword [edx]
movaps xmmword [esp + 0x60], xmm0
mov eax, dword [ecx]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xd0], ecx
movaps xmmword [esp + 0x70], xmm0
movlpd qword [esp + 0xbc], xmm0
mov eax, dword [eax]
mov dword [esp + 0xc4], 0
mov dword [esp + 0xcc], 0
movlpd qword [esp + 0xd4], xmm0
movlpd qword [esp + 0xdc], xmm0
movlpd qword [esp + 0xe4], xmm0
movlpd qword [esp + 0xf0], xmm0
movlpd qword [esp + 0xf8], xmm0
movlpd qword [esp + 0x100], xmm0
mov dword [esp + 0xb8], 1
mov dword [esp + 0xec], 0xffffffff
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 0x18]
cmp dword [esi + 0x3c], ecx
mov ecx, 0x10020
mov dword [esp + 0x60], eax
lea eax, [esp + 0xb8]
mov dword [esp + 0x64], eax
mov eax, 0x50020
cmove eax, ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], eax
call fcn.100403f0
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
cmp dword [ecx + 0x24], 0
jne 0x10058efa
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
test eax, eax
je 0x10058ce0
nop dword [eax + eax]
test dword [eax + 4], 0x1000
je 0x10058ce0
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x10058cd0
cmp byte [eax], 0xa6
je 0x10058d22
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx + 0xe8]
je 0x10058eec
cmp dword [edi + 0x28], 0
jne 0x10058d0a
mov eax, dword [esp + 0x44]
mov dword [edi + 0x28], eax
mov dword [esp + 0x44], 0
mov eax, dword [edi + 4]
mov ecx, 0xfffffffe
mov edx, ecx
mov word [eax + esi*2], dx
and dword [edi + 0x38], 0xfffffff7
mov edx, dword [esp + 0x30]
jmp 0x10058d66
movsx ecx, word [eax + 0x20]
mov eax, dword [esp + 0x1c]
test ecx, ecx
jns 0x10058d34
movsx ecx, word [eax + 0x20]
jmp 0x10058d5f
mov edx, dword [eax + 4]
mov eax, ecx
add eax, eax
test byte [edx + eax*8 + 4], 0xf
jne 0x10058d4d
mov edx, dword [esp + 0x1c]
and dword [edi + 0x38], 0xfffffff7
mov edx, dword [edx + 4]
test byte [edx + eax*8 + 0xe], 0x20
mov edx, dword [esp + 0x30]
je 0x10058d5f
or dword [edi + 0x38], 0x400
mov eax, dword [edi + 4]
mov word [eax + esi*2], cx
mov eax, dword [edx]
cmp byte [eax], 0x70
jne 0x10058dab
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10058d78
xor esi, esi
jmp 0x10058d8f
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10058d80
sub esi, edx
and esi, 0x3fffffff
inc esi
push esi
push ecx
push dword [esp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [esp + 0x34]
add esp, 0xc
lea eax, [esi + edx]
mov dword [esp + 0x28], eax
jmp 0x10058de9
test ecx, ecx
js 0x10058df1
mov eax, dword [esp + 0x1c]
shl ecx, 4
add ecx, dword [eax + 4]
movzx edx, word [ecx + 0xe]
test edx, 0x200
je 0x10058df1
mov eax, dword [ecx]
cmp byte [eax], 0
je 0x10058dd6
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x10058dd0
test dl, 4
je 0x10058de6
nop dword [eax + eax]
inc eax
cmp byte [eax], 0
jne 0x10058de0
lea edx, [eax + 1]
mov dword [esp + 0x38], edx
test edx, edx
jne 0x10058dfa
mov edx, str.BINARY
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xb1], 0
jne 0x10058e66
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov al, byte [ecx + 0x50]
mov byte [esp + 0x43], al
mov al, byte [ecx + 0xb1]
mov byte [esp + 0x4a], al
movzx eax, al
push eax
push edx
mov dl, byte [esp + 0x4b]
call fcn.1005b600
add esp, 8
cmp byte [esp + 0x4a], 0
jne 0x10058e58
test eax, eax
je 0x10058e40
cmp dword [eax + 0xc], 0
jne 0x10058e66
mov esi, dword [esp + 0x38]
mov dl, byte [esp + 0x43]
mov ecx, dword [esp + 0x18]
push esi
push eax
call fcn.1005b760
add esp, 8
jmp 0x10058e5c
mov esi, dword [esp + 0x38]
test eax, eax
je 0x10058efa
jmp 0x10058e6a
mov esi, dword [esp + 0x38]
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], esi
xor eax, eax
movzx ecx, byte [edx + 8]
cmp byte [esp + 0x4b], 4
mov esi, dword [esp + 0x24]
cmovb ecx, eax
mov eax, dword [edi + 0x1c]
add edx, 0x14
mov dword [esp + 0x30], edx
mov byte [esi + eax], cl
inc esi
movzx eax, word [edi + 0x32]
mov dword [esp + 0x24], esi
cmp esi, eax
jl 0x10058bc5
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x10058f4a
xor eax, eax
xor esi, esi
cmp ax, word [ecx + 0x32]
jae 0x10058f5e
mov eax, dword [ecx + 4]
movzx edx, word [edi + 0x32]
push esi
push ecx
movzx eax, word [eax + esi*2]
mov ecx, edi
mov dword [esp + 0x30], eax
call fcn.10055200
add esp, 8
test eax, eax
je 0x10058f03
mov eax, 0xffff
add word [edi + 0x34], ax
jmp 0x10058f37
push str.expressions_prohibited_in_PRIMARY_KEY_and_UNIQUE_constraints
push ecx
call fcn.10008be0
add esp, 8
mov esi, dword [esp + 0x14]
jmp 0x1005939f
mov edx, dword [esp + 0x24]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
mov word [eax + edx*2], cx
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 0x20]
mov eax, dword [eax + 0x20]
mov eax, dword [eax + esi*4]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 0x1c]
mov eax, dword [eax + 0x1c]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
inc edx
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x3c]
inc esi
movzx eax, word [ecx + 0x32]
cmp esi, eax
jl 0x10058ec2
jmp 0x10058f5e
mov eax, dword [edi + 4]
or ecx, 0xffffffff
mov word [eax + esi*2], cx
mov eax, dword [edi + 0x20]
mov dword [eax + esi*4], str.BINARY
mov ecx, edi
call fcn.10059570
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xe8], 0
jne 0x10058f79
mov ecx, edi
call fcn.10055120
mov ecx, edi
call fcn.100552a0
cmp dword [esp + 0x34], 0
je 0x10058fd3
mov ecx, dword [esp + 0x1c]
movzx esi, word [edi + 0x34]
movsx eax, word [ecx + 0x22]
cmp esi, eax
jl 0x10058fd3
or dword [edi + 0x38], 0x20
xor edx, edx
movsx eax, word [ecx + 0x22]
mov dword [esp + 0x28], eax
test eax, eax
jle 0x10058fd3
movsx ecx, word [ecx + 0x20]
mov dword [esp + 0x3c], ecx
cmp edx, ecx
je 0x10059041
xor eax, eax
test esi, esi
je 0x10058fcf
mov ecx, dword [edi + 4]
cmp dx, word [ecx]
je 0x10059031
inc eax
add ecx, 2
cmp eax, esi
jl 0x10058fc2
and dword [edi + 0x38], 0xffffffdf
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx + 0xe8]
jne 0x100590e5
mov esi, dword [eax + 8]
mov dword [esp + 0x24], esi
test esi, esi
je 0x100590e5
movzx ecx, word [edi + 0x32]
nop word [eax + eax]
movzx eax, word [esi + 0x32]
cmp ax, cx
jne 0x100590ce
xor edx, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], edx
test eax, eax
je 0x100590c6
mov ecx, dword [edi + 4]
mov eax, dword [esi + 4]
sub eax, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
jmp 0x10059054
movzx eax, ax
test ax, ax
js 0x10058fcf
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
inc edx
cmp edx, eax
jl 0x10058fb1
jmp 0x10058fd3
mov eax, dword [esp + 0x38]
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x100590be
mov eax, dword [esi + 0x20]
mov ecx, dword [edi + 0x20]
mov eax, dword [eax + edx*4]
mov esi, dword [ecx + edx*4]
sub esi, eax
nop dword [eax + eax]
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x100590a1
test edx, edx
jne 0x100590b3
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
inc edx
mov eax, dword [esp + 0x3c]
add ecx, 2
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], ecx
cmp edx, eax
jl 0x10059050
jmp 0x100590c2
movzx ecx, byte [ecx + 0x10114750]
movzx edx, byte [edx + 0x10114750]
sub edx, ecx
jne 0x100590b6
inc eax
jmp 0x10059070
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
movzx ecx, word [edi + 0x32]
cmp edx, eax
je 0x1005914e
mov esi, dword [esi + 0x14]
mov dword [esp + 0x24], esi
test esi, esi
jne 0x10059000
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp byte [ecx + 0xcc], 2
mov esi, dword [esp + 0x14]
jae 0x10059368
cmp byte [esi + 0xb1], 0
je 0x100591e4
cmp dword [esp + 0x34], 0
je 0x100591b8
mov eax, dword [esi + 0xac]
mov ecx, edi
mov dword [edi + 0x2c], eax
call fcn.10070e90
test eax, eax
je 0x100591b8
mov esi, dword [esp + 0x18]
push str.invalid_rootpage
push esi
call fcn.10008be0
add esp, 8
mov ecx, 0x1ca7f
call fcn.100a9cc0
mov dword [esi + 0xc], eax
mov esi, dword [esp + 0x14]
jmp 0x1005939f
mov al, byte [esi + 0x36]
mov cl, byte [edi + 0x36]
cmp al, cl
je 0x10059181
cmp al, 0xb
je 0x1005917b
cmp cl, 0xb
je 0x10059181
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push dword [esp + 0x20]
call fcn.10008be0
mov al, byte [esi + 0x36]
add esp, 0xc
cmp al, 0xb
jne 0x10059181
mov al, byte [edi + 0x36]
mov byte [esi + 0x36], al
cmp byte [ebp + 0x28], 2
jne 0x10059193
mov eax, dword [esi + 0x38]
and eax, 0xfffffffe
or eax, 2
mov dword [esi + 0x38], eax
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0xcc], 2
jb 0x10058efa
mov eax, dword [ecx + 0xec]
mov dword [edi + 0x14], eax
mov dword [ecx + 0xec], edi
jmp 0x100593ea
mov ecx, dword [edi + 0x18]
mov edx, dword [edi]
add ecx, 0x18
push edi
call fcn.1000a550
add esp, 4
test eax, eax
je 0x100591db
push esi
call fcn.100053d0
add esp, 4
jmp 0x1005939f
or dword [esi + 0x18], 1
jmp 0x10059364
test byte [eax + 0x1c], 0x80
je 0x100591f6
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1005936c
inc dword [ecx + 0x2c]
mov esi, dword [ecx + 8]
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x28], eax
test esi, esi
jne 0x1005922b
cmp dword [ecx + 0x74], esi
jne 0x10059218
mov eax, dword [ecx]
test byte [eax + 0x4c], 8
jne 0x10059218
mov byte [ecx + 0x17], 1
call fcn.10028fb0
mov esi, eax
test esi, esi
je 0x10058efa
mov ecx, dword [esp + 0x18]
push dword [esp + 0x2c]
mov edx, 1
call fcn.1005a7f0
add esp, 4
mov edx, 0xb3
mov ecx, esi
call fcn.10029300
push 2
push dword [esp + 0x2c]
mov edx, 0x91
mov dword [edi + 0x2c], eax
push dword [esp + 0x34]
mov ecx, esi
call fcn.10029290
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x100592b8
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0xc4]
mov eax, dword [eax + 0xc0]
add edx, eax
mov eax, dword [esp + 0x50]
mov ecx, edx
mov eax, dword [eax]
sub ecx, eax
cmp byte [edx - 1], 0x3b
mov edx, str._UNIQUE
push eax
lea eax, [ecx - 1]
cmovne eax, ecx
cmp dword [esp + 0x50], 0
push eax
mov eax, 0x101077f8
cmovne eax, edx
push eax
push str.CREATE_s_INDEX__.s
push dword [esp + 0x24]
call fcn.10007ea0
add esp, 0x14
jmp 0x100592ba
xor eax, eax
mov ecx, dword [esp + 0x58]
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
push dword [eax]
mov eax, dword [esp + 0x20]
push dword [edi]
mov eax, dword [eax + 0x10]
push dword [ecx + eax]
push str.INSERT_INTO__Q.sqlite_master_VALUES_index__Q__Q__d__Q__
push dword [esp + 0x30]
call fcn.10052380
mov edx, dword [esp + 0x68]
add esp, 0x1c
test edx, edx
je 0x100592fb
mov ecx, dword [esp + 0x14]
call fcn.10004cc0
cmp dword [esp + 0x34], 0
je 0x10059356
push dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, edi
call fcn.10057d60
mov edx, dword [esp + 0x30]
add esp, 4
mov ecx, dword [esp + 0x18]
call fcn.10054ca0
push 0
push ecx
push dword [edi]
push str.name_q_AND_typeindex
push dword [esp + 0x24]
call fcn.10007ea0
mov edx, dword [esp + 0x40]
add esp, 0x10
mov ecx, esi
push eax
call fcn.10029a50
push 1
push 0
mov edx, 0xa4
mov ecx, esi
call fcn.100293c0
add esp, 0x10
mov edx, dword [edi + 0x2c]
mov ecx, esi
call fcn.10029fc0
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
cmp byte [esi + 0xb1], 0
jne 0x1005938a
test eax, eax
je 0x1005938a
cmp byte [ecx + 0xcc], 2
jb 0x1005939f
mov dword [ecx + 0xec], edi
jmp 0x100593ea
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], edi
jmp 0x100593ea
mov esi, eax
test edi, edi
je 0x100593ea
mov edx, dword [edi + 0x24]
test edx, edx
je 0x100593b1
mov ecx, esi
call fcn.10042580
mov edx, dword [edi + 0x28]
test edx, edx
je 0x100593bf
mov ecx, esi
call fcn.10043810
mov edx, dword [edi + 0x10]
test edx, edx
je 0x100593cd
mov ecx, esi
call fcn.10004cc0
test byte [edi + 0x38], 0x10
je 0x100593e1
mov edx, dword [edi + 0x20]
test edx, edx
je 0x100593e1
mov ecx, esi
call fcn.10004cc0
mov edx, edi
mov ecx, esi
call fcn.10004cc0
mov edx, dword [esp + 0x1c]
add edx, 8
mov ecx, dword [edx]
test ecx, ecx
je 0x10059429
cmp byte [ecx + 0x36], 5
je 0x10059408
lea edx, [ecx + 0x14]
mov ecx, dword [edx]
test ecx, ecx
jne 0x100593f7
jmp 0x10059429
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x10059429
nop
cmp byte [eax + 0x36], 5
je 0x10059429
mov dword [edx], eax
lea edx, [eax + 0x14]
mov eax, dword [edx]
mov dword [ecx + 0x14], eax
mov dword [edx], ecx
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x10059410
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x14]
test eax, eax
je 0x1005943e
mov edx, eax
mov ecx, esi
call fcn.10042580
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1005944f
mov edx, eax
mov ecx, esi
call fcn.10043810
mov edx, dword [esp + 0x34]
mov ecx, esi
call fcn.10059f40
mov edi, dword [esp + 0x20]
test edi, edi
je 0x10059555
cmp dword [esi + 0x210], 0
je 0x1005948c
mov edx, edi
mov ecx, esi
call fcn.10004c70
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
cmp edi, dword [esi + 0x164]
jae 0x100594e8
cmp edi, dword [esi + 0x15c]
jb 0x100594be
mov eax, dword [esi + 0x158]
mov dword [edi], eax
mov dword [esi + 0x158], edi
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
cmp edi, dword [esi + 0x160]
jb 0x100594e8
mov eax, dword [esi + 0x150]
mov dword [edi], eax
mov dword [esi + 0x150], edi
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
cmp dword [0x1011d0f8], 0
je 0x1005954b
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x10059504
push eax
call dword [0x1011d148]
add esp, 4
push edi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push edi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x10059555
push eax
call dword [0x1011d150]
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
push edi
call dword [0x1011d11c]
add esp, 4
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret