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

Disassembly:
sub esp, 0x38
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
mov ebx, dword [esp + 0x54]
push edi
mov edi, dword [ebp]
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], esi
mov al, byte [edi + 0x36]
mov dword [esp + 0x1c], esi
test al, al
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
jne 0x1009dbad
mov al, byte [ebp + 0x1cd]
test al, al
jne 0x1009dbad
push ebp
call fcn.1008f7d0
add esp, 4
test eax, eax
jne 0x1009dbad
cmp ebx, esi
je 0x1009d68c
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
push ebp
call fcn.1009b640
mov esi, eax
add esp, 0x10
test esi, esi
mov dword [esp + 0x50], esi
jl 0x1009dbad
mov al, byte [edi + 0x7d]
test al, al
jne 0x1009d634
push ebx
push ebp
call fcn.1009f0e0
mov ecx, dword [esp + 0x5c]
add esp, 8
mov edx, dword [ecx + 4]
test edx, edx
jne 0x1009d634
test eax, eax
je 0x1009d634
mov edx, dword [edi + 0x10]
mov eax, dword [eax + 0x44]
cmp eax, dword [edx + 0x1c]
jne 0x1009d634
mov esi, 1
mov dword [esp + 0x50], esi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x38]
push ecx
push str.index
push esi
push ebp
push edx
call fcn.1009c980
add esp, 0x14
test eax, eax
je 0x1009d65f
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.1009ca30
add esp, 8
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
push ecx
push edx
push 0
push ebp
call fcn.1008c050
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [esp + 0x54], ebx
je 0x1009dbad
mov al, byte [edi + 0x36]
test al, al
je 0x1009d6b1
jmp 0x1009dbad
mov ebx, dword [ebp + 0x1f4]
test ebx, ebx
mov dword [esp + 0x54], ebx
je 0x1009dbad
mov eax, dword [ebx + 0x44]
push eax
push edi
call fcn.1008f800
mov esi, eax
add esp, 8
mov dword [esp + 0x50], esi
mov edx, dword [edi + 0x10]
mov ecx, dword [ebx]
mov eax, esi
push 7
shl eax, 4
mov dword [esp + 0x2c], eax
add eax, edx
push str.sqlite_
push ecx
mov dword [esp + 0x2c], eax
call fcn.1006b3d0
add esp, 0xc
test eax, eax
jne 0x1009d706
mov eax, dword [ebx]
mov ecx, 9
mov edi, str.altertab_
xor edx, edx
lea esi, [eax + 7]
repe cmpsb byte [esi], byte es:[edi]
je 0x1009d702
push eax
push str.table__s_may_not_be_indexed
push ebp
call fcn.100896b0
add esp, 0xc
jmp 0x1009dbad
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1009d720
push str.views_may_not_be_indexed
push ebp
call fcn.100896b0
add esp, 8
jmp 0x1009dbad
test byte [ebx + 0x22], 0x10
je 0x1009d739
push str.virtual_tables_may_not_be_indexed
push ebp
call fcn.100896b0
add esp, 8
jmp 0x1009dbad
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1009d7de
push eax
push edi
call fcn.1009b5e0
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x1c], esi
je 0x1009dbad
push esi
push ebp
call fcn.1009b6d0
add esp, 8
test eax, eax
jne 0x1009dbad
mov al, byte [edi + 0x7d]
test al, al
jne 0x1009d79a
push 0
push esi
push edi
call fcn.1008bed0
add esp, 0xc
test eax, eax
je 0x1009d79a
push esi
push str.there_is_already_a_table_named__s
push ebp
call fcn.100896b0
add esp, 0xc
jmp 0x1009dbad
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push ecx
push esi
push edi
call fcn.1008c0d0
add esp, 0xc
test eax, eax
je 0x1009d812
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x1009d7cb
push esi
push str.index__s_already_exists
push ebp
call fcn.100896b0
add esp, 0xc
jmp 0x1009dbad
mov edx, dword [esp + 0x50]
push edx
push ebp
call fcn.1009e7b0
add esp, 8
jmp 0x1009dbad
mov eax, dword [ebx + 0x10]
mov ecx, 1
test eax, eax
je 0x1009d7f2
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x1009d7ea
mov eax, dword [ebx]
push ecx
push eax
push str.sqlite_autoindex__s__d
push edi
call fcn.10079e20
mov esi, eax
add esp, 0x10
test esi, esi
mov dword [esp + 0x1c], esi
je 0x1009dbad
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
cmp eax, 1
mov eax, str.sqlite_temp_master
mov edi, dword [ecx]
je 0x1009d82b
mov eax, str.sqlite_master
push edi
push 0
push eax
push 0x12
push ebp
call fcn.1009b170
add esp, 0x14
test eax, eax
jne 0x1009dbad
mov ecx, dword [esp + 0x50]
mov eax, 1
cmp ecx, eax
jne 0x1009d854
mov eax, 3
mov edx, dword [ebx]
push edi
push edx
push esi
push eax
push ebp
call fcn.1009b170
add esp, 0x14
test eax, eax
jne 0x1009dbad
mov esi, dword [esp + 0x5c]
test esi, esi
jne 0x1009d8c2
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*8 - 0x18]
push eax
mov dword [esp + 0x34], eax
call fcn.1006b360
push esi
push esi
push ebp
mov dword [esp + 0x44], eax
call fcn.10094c70
mov esi, eax
add esp, 0x10
test esi, esi
mov dword [esp + 0x5c], esi
je 0x1009dbad
lea edx, [esp + 0x30]
push 0
push edx
push esi
push ebp
call fcn.10094d10
mov eax, dword [esi + 8]
mov cl, byte [esp + 0x7c]
add esp, 0x10
mov byte [eax + 0xc], cl
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
jle 0x1009d8fe
mov ebp, dword [esp + 0x14]
xor edi, edi
mov edx, dword [esi + 8]
mov eax, dword [edi + edx]
test eax, eax
je 0x1009d8f0
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1009d8f0
mov eax, dword [eax]
push eax
call fcn.1006b360
add esp, 4
lea ebp, [eax + ebp + 1]
mov eax, dword [esi]
inc ebx
add edi, 0x14
cmp ebx, eax
jl 0x1009d8d0
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.1006b360
mov edx, dword [esp + 0x60]
mov ebx, eax
mov edi, dword [esp + 0x14]
mov esi, dword [edx]
mov edx, ebx
lea eax, [esi*4 + 0xb]
lea ecx, [esi + esi*8]
and al, 0xf8
add edx, eax
mov eax, dword [esp + 0x18]
add ecx, edx
lea ecx, [ecx + eax + 0x31]
push ecx
push edi
call fcn.1006ea00
mov ebp, eax
mov al, byte [edi + 0x36]
add esp, 0xc
test al, al
jne 0x1009db91
lea edx, [esi*4 + 8]
lea eax, [ebp + 0x30]
and edx, 0xfffffff8
mov dword [ebp + 8], eax
add eax, edx
lea ecx, [ebx + 1]
mov dword [ebp + 0x20], eax
mov edx, ecx
lea eax, [eax + esi*4]
mov dword [esp + 0x70], 0
mov dword [ebp + 4], eax
lea eax, [eax + esi*4]
mov dword [ebp + 0x1c], eax
lea edi, [esi + eax]
mov esi, dword [esp + 0x1c]
shr ecx, 2
mov dword [ebp], edi
lea eax, [edi + ebx + 1]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dl, byte [esp + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
mov byte [ebp + 0x2c], dl
mov edx, dword [esp + 0x10]
mov dword [ebp + 0x24], ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
sete cl
mov byte [ebp + 0x2d], cl
mov ecx, dword [edx + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + ecx + 0xc]
mov edx, dword [esp + 0x20]
mov dword [ebp + 0x18], ecx
mov ecx, dword [edx + 0xc]
mov edx, dword [eax + 8]
mov dword [esp + 0x6c], edx
mov bl, byte [ecx + 0x4c]
mov ecx, dword [eax]
cmp bl, 4
sbb ebx, ebx
neg ebx
dec ebx
test ecx, ecx
jle 0x1009daf4
mov eax, dword [esp + 0x6c]
xor esi, esi
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 8]
mov edi, dword [eax + 0xc]
test ecx, ecx
jle 0x1009da25
mov edx, dword [edi]
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.1006b380
add esp, 8
test eax, eax
je 0x1009da25
mov ecx, dword [esp + 0x54]
inc esi
add edi, 0x18
cmp esi, dword [ecx + 8]
jl 0x1009da04
mov edx, dword [esp + 0x54]
cmp esi, dword [edx + 8]
jge 0x1009db73
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x70]
mov dword [ecx + eax*4], esi
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x1009da89
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x1009da89
mov esi, dword [ecx]
push esi
call fcn.1006b360
mov edi, dword [esp + 0x28]
add esp, 4
inc eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov esi, ecx
add ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x14], ecx
jmp 0x1009daa0
mov edx, dword [edx + 0xc]
lea ecx, [esi + esi*2]
mov esi, dword [edx + ecx*8 + 0x10]
test esi, esi
jne 0x1009daa0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
mov esi, dword [edx]
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx + 0x7d]
test dl, dl
jne 0x1009dac5
mov edx, dword [esp + 0x4c]
push esi
push edx
call fcn.1009c160
add esp, 8
test eax, eax
je 0x1009db91
mov eax, dword [esp + 0x70]
mov ecx, dword [ebp + 0x20]
mov dword [ecx + eax*4], esi
mov esi, dword [esp + 0x6c]
mov ecx, dword [ebp + 0x1c]
mov dl, byte [esi + 0xc]
add esi, 0x14
and dl, bl
mov dword [esp + 0x6c], esi
mov byte [ecx + eax], dl
mov edx, dword [esp + 0x5c]
inc eax
mov ecx, dword [edx]
mov dword [esp + 0x70], eax
cmp eax, ecx
jl 0x1009d9e9
push ebp
call fcn.1008c9f0
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x58]
add esp, 4
cmp ebx, dword [edx + 0x1f4]
jne 0x1009dc19
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x1009dc19
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp + 0x24]
cmp eax, ecx
jne 0x1009db67
xor esi, esi
test eax, eax
jle 0x1009db62
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 4]
mov edx, dword [eax + esi*4]
mov eax, dword [ecx + esi*4]
cmp edx, eax
jne 0x1009db62
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp + 0x20]
mov eax, dword [eax + esi*4]
mov ecx, dword [ecx + esi*4]
cmp eax, ecx
je 0x1009db5a
push ecx
push eax
call fcn.1006b380
add esp, 8
test eax, eax
jne 0x1009db62
mov eax, dword [edi + 0x24]
inc esi
cmp esi, eax
jl 0x1009db2c
cmp esi, dword [edi + 0x24]
je 0x1009dbe1
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x1009db1c
jmp 0x1009dc19
mov eax, dword [esp + 0x20]
mov ecx, dword [edx]
mov esi, dword [esp + 0x4c]
push eax
push ecx
push str.table__s_has_no_column_named__s
push esi
call fcn.100896b0
add esp, 0x10
mov byte [esi + 0x11], 1
test ebp, ebp
je 0x1009dbad
mov ecx, dword [ebp + 0x10]
mov esi, dword [esp + 0x10]
push ecx
push esi
call fcn.1006aec0
push ebp
push esi
call fcn.1006aec0
add esp, 0x10
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x10]
push edx
push esi
call fcn.1008c810
mov eax, dword [esp + 0x60]
push eax
push esi
call fcn.100901b0
mov ecx, dword [esp + 0x2c]
push ecx
push esi
call fcn.1006aec0
mov eax, dword [esp + 0x44]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov al, byte [edi + 0x2c]
mov cl, byte [ebp + 0x2c]
cmp al, cl
je 0x1009db91
cmp al, 0x63
je 0x1009dc08
cmp cl, 0x63
je 0x1009dc08
mov edx, dword [esp + 0x4c]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push edx
call fcn.100896b0
add esp, 0xc
cmp byte [edi + 0x2c], 0x63
jne 0x1009db91
mov al, byte [ebp + 0x2c]
mov byte [edi + 0x2c], al
jmp 0x1009db91
mov esi, dword [esp + 0x10]
mov al, byte [esi + 0x7d]
test al, al
je 0x1009dc72
mov ecx, dword [ebp]
push ebp
push ecx
call fcn.1006b360
mov edx, dword [ebp]
add esp, 4
push eax
mov eax, dword [ebp + 0x18]
add eax, 0x18
push edx
push eax
call fcn.1008c1d0
add esp, 0x10
test eax, eax
je 0x1009dc52
mov byte [esi + 0x36], 1
jmp 0x1009db91
mov ecx, dword [esi + 0x18]
mov eax, dword [esp + 0x58]
or ch, 2
test eax, eax
mov dword [esi + 0x18], ecx
je 0x1009dd92
mov ecx, dword [esi + 0x78]
mov dword [ebp + 0x28], ecx
jmp 0x1009dd92
mov edi, dword [esp + 0x4c]
push edi
mov ecx, dword [edi + 0x4c]
inc ecx
mov dword [edi + 0x4c], ecx
mov ebx, ecx
call fcn.100a5af0
add esp, 4
mov dword [esp + 0x70], eax
test eax, eax
je 0x1009db91
mov edx, dword [esp + 0x50]
push edx
push 1
push edi
call fcn.1009e8a0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x7c]
push ebx
push eax
push 0x68
push ecx
call fcn.10095b10
mov eax, dword [esp + 0x80]
add esp, 0x1c
test eax, eax
je 0x1009dcf7
mov eax, dword [esp + 0x60]
mov ecx, 0x10135594
test eax, eax
je 0x1009dcd3
mov ecx, str._UNIQUE
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov edx, dword [esp + 0x68]
push eax
mov edx, dword [edx]
sub edx, eax
inc edx
push edx
push ecx
push str.CREATE_s_INDEX__.s
push esi
call fcn.10079e20
add esp, 0x14
mov edi, eax
jmp 0x1009dcf9
xor edi, edi
mov eax, dword [esp + 0x50]
cmp eax, 1
mov eax, str.sqlite_temp_master
je 0x1009dd0c
mov eax, str.sqlite_master
mov ecx, dword [esp + 0x54]
push edi
push ebx
mov edx, dword [ecx]
mov ecx, dword [ebp]
push edx
mov edx, dword [esi + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + edx]
mov edx, dword [esp + 0x60]
push ecx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
push edx
call fcn.1009b530
push edi
push esi
call fcn.1006aec0
mov eax, dword [esp + 0x80]
add esp, 0x28
test eax, eax
je 0x1009dd8e
mov edi, dword [esp + 0x4c]
push ebx
push ebp
push edi
call fcn.1009de00
mov ebx, dword [esp + 0x5c]
push ebx
push edi
call fcn.1009c1e0
mov eax, dword [ebp]
push eax
push str.name_q_AND_typeindex
push esi
call fcn.10079e20
push eax
push ebx
mov ebx, dword [esp + 0x98]
push ebx
call fcn.100953a0
push 0
push 0x81
push ebx
call fcn.100965a0
add esp, 0x38
mov ebx, dword [esp + 0x54]
mov al, byte [esi + 0x7d]
test al, al
jne 0x1009dda5
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x1009db91
mov eax, dword [esp + 0x60]
mov edx, 5
cmp eax, edx
jne 0x1009dde5
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x1009dde5
cmp byte [ecx + 0x2c], dl
je 0x1009dde5
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x1009ddd3
cmp byte [eax + 0x2c], dl
je 0x1009ddd3
mov ecx, eax
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x1009ddc5
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x2c], ebp
mov dword [ebp + 0x14], edx
mov dword [ecx + 0x14], ebp
jmp 0x1009dbad
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x2c], ebp
mov dword [ebp + 0x14], eax
mov dword [ebx + 0x10], ebp
jmp 0x1009dbad