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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1010e07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x64], edx
xor edx, edx
push edi
mov edi, dword [eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x3c], edx
cmp dword [eax + 0x18], edx
jne 0x1002d9a5
cmp dword [0x10112c64], edx
je 0x1002d448
cmp dword [0x10112c70], edx
jg 0x1002d9a5
test ecx, ecx
je 0x1002d4eb
lea edx, [ebp - 0x48]
mov ecx, ebx
mov edi, eax
call fcn.1002b140
mov edi, eax
mov dword [ebp - 0x40], edi
test edi, edi
js 0x1002d9a5
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x28]
push eax
push ecx
call fcn.100497d0
add esp, 8
test ebx, ebx
je 0x1002d4a0
test dword [ebx + 4], 0xfffffffe
jne 0x1002d4a0
test eax, eax
je 0x1002d4a0
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 0x3c]
cmp edx, dword [ecx + 0x2c]
jne 0x1002d4a0
mov edi, 1
mov dword [ebp - 0x40], edi
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x28]
push eax
push str.index
mov ecx, edi
lea eax, [ebp - 0x74]
call fcn.1003d810
mov ebx, dword [ebp - 0x44]
add esp, 8
test eax, eax
je 0x1002d4cd
lea ecx, [ebp - 0x74]
push ebx
push ecx
call fcn.1003d850
add esp, 8
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push edx
push eax
push esi
call fcn.1002a0a0
add esp, 0xc
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1002d9a5
jmp 0x1002d512
mov ecx, eax
mov eax, dword [ecx + 0xa4]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1002d9a5
mov edx, eax
mov esi, dword [edx + 0x3c]
mov ecx, edi
call fcn.10018cd0
mov esi, dword [ebp - 0x28]
mov edi, eax
mov dword [ebp - 0x40], edi
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx + 4]
lea eax, [edi + edi*2]
add eax, eax
add eax, eax
add eax, eax
add ecx, eax
cmp dword [esi + 0x18], 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x38], ecx
jne 0x1002d9a5
mov esi, dword [ebp - 0x2c]
cmp byte [esi + 0x1c], 0
je 0x1002d555
mov edx, dword [esi]
mov eax, dword [ebp - 0x28]
push edx
push str.table__s_may_not_be_indexed
push eax
call fcn.1001a430
add esp, 0xc
jmp 0x1002d9a5
cmp dword [esi + 0x18], 0
je 0x1002d571
mov ecx, dword [ebp - 0x28]
push str.views_may_not_be_indexed
push ecx
call fcn.1001a430
add esp, 8
jmp 0x1002d9a5
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x1002d632
call fcn.1002af60
mov edx, dword [ebp - 0x28]
push edx
mov dword [ebp - 0x34], eax
call fcn.10018ad0
add esp, 4
test eax, eax
jne 0x1002d9a5
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x1002d9a5
mov esi, dword [ebp - 0x28]
call fcn.1002b180
test eax, eax
jne 0x1002d9a5
mov edi, dword [ebp - 0x30]
cmp byte [edi + 0x44], al
jne 0x1002d688
push esi
call fcn.10018ad0
add esp, 4
test eax, eax
jne 0x1002d9a5
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x34]
push ecx
push edx
push edi
call fcn.1002a120
add esp, 0xc
test eax, eax
je 0x1002d608
cmp dword [ebp + 0x24], 0
jne 0x1002d9a5
mov eax, dword [ebp - 0x34]
push eax
push str.index__s_already_exists
push esi
call fcn.1001a430
add esp, 0xc
jmp 0x1002d9a5
mov ecx, dword [ebp - 0x34]
push 0
push ecx
push edi
call fcn.10029fa0
add esp, 0xc
test eax, eax
je 0x1002d688
mov edx, dword [ebp - 0x34]
push edx
push str.there_is_already_a_table_named__s
push esi
call fcn.1001a430
add esp, 0xc
jmp 0x1002d9a5
mov eax, dword [esi + 0x10]
mov ecx, 1
test eax, eax
je 0x1002d648
mov edi, edi
mov eax, dword [eax + 0x20]
inc ecx
test eax, eax
jne 0x1002d640
push ecx
lea eax, [ebp - 0x24]
push 0x100f2aac
push eax
call fcn.100b4e34
add esp, 0xc
push 0
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x34], 0
mov edx, dword [esi]
push edx
lea eax, [ebp - 0x34]
push str.sqlite_autoindex_
push eax
call fcn.1001a240
add esp, 0x14
cmp dword [ebp - 0x34], 0
je 0x1002d9a5
mov esi, dword [ebp - 0x28]
cmp dword [ebp - 0x40], 1
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ecx]
mov eax, str.sqlite_temp_master
je 0x1002d69d
mov eax, str.sqlite_master
push ebx
push 0
push eax
push 0x12
mov edi, esi
call fcn.10049740
add esp, 0x10
test eax, eax
jne 0x1002d9a5
mov eax, 1
cmp dword [ebp - 0x40], eax
jne 0x1002d6c4
mov eax, 3
mov ecx, dword [ebp - 0x34]
push ebx
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebx]
push edx
push ecx
push eax
mov edi, esi
call fcn.10049740
add esp, 0x10
test eax, eax
jne 0x1002d9a5
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x1002d73a
mov eax, dword [ebx + 4]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
mov eax, dword [eax + edx*4 - 0x14]
mov dword [ebp - 0x58], eax
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d700
sub eax, edx
mov edx, dword [ebp - 0x54]
lea ecx, [eax + eax]
and edx, 1
or ecx, edx
push 0
push 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], ecx
call fcn.10046c20
add esp, 8
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x1002d9a5
mov ecx, dword [eax + 0xc]
mov dl, byte [ebp + 0x20]
mov byte [ecx + 8], dl
mov esi, dword [eax]
test esi, esi
jle 0x1002d76c
mov edi, dword [eax + 0xc]
mov ebx, esi
mov eax, dword [edi]
test eax, eax
je 0x1002d766
mov eax, dword [eax + 4]
mov eax, dword [eax]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d753
mov ecx, dword [ebp - 0x3c]
sub eax, edx
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x3c], edx
add edi, 0xc
dec ebx
jne 0x1002d745
mov eax, dword [ebp - 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d772
mov ecx, dword [ebp - 0x3c]
sub eax, edx
mov edi, eax
mov eax, esi
imul eax, eax, 0xd
add eax, edi
lea edx, [eax + ecx + 0x35]
push 1
push edx
call fcn.1001a0a0
add esp, 8
mov ebx, eax
call fcn.1001afc0
test eax, eax
jne 0x1002d988
lea eax, [ebx + 0x30]
mov dword [ebx + 0x2c], eax
lea eax, [eax + esi*4]
mov dword [ebx + 8], eax
lea eax, [eax + esi*4]
mov dword [ebx + 0xc], eax
lea eax, [eax + esi*4 + 4]
mov dword [ebx + 0x28], eax
add eax, esi
lea ecx, [eax + edi + 1]
mov dword [ebx], eax
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x34]
mov esi, eax
mov edi, edi
mov al, byte [ecx]
mov byte [esi], al
inc ecx
inc esi
test al, al
jne 0x1002d7d0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x48], 0
mov dword [ebx + 0x10], edx
mov ecx, dword [eax]
mov dl, byte [ebp + 0x14]
mov dword [ebx + 4], ecx
mov byte [ebx + 0x18], dl
mov edx, dword [ebp - 0x30]
sete cl
mov byte [ebx + 0x19], cl
mov ecx, dword [edx + 4]
mov edx, dword [ebp - 0x60]
mov ecx, dword [edx + ecx + 0x14]
mov edx, dword [ebp - 0x38]
mov dword [ebx + 0x24], ecx
mov ecx, dword [edx + 0x14]
cmp byte [ecx + 0x78], 4
mov edx, dword [eax + 0xc]
sbb ecx, ecx
neg ecx
dec ecx
cmp dword [eax], 0
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], edx
jle 0x1002d90e
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax + 8]
xor esi, esi
mov dword [ebp - 0x50], ecx
cmp dword [eax + 4], esi
jle 0x1002d860
mov edx, dword [edi]
mov ecx, dword [ebp - 0x50]
call fcn.1001a540
test eax, eax
je 0x1002d860
mov edx, dword [ebp - 0x2c]
inc esi
add edi, 0x14
cmp esi, dword [edx + 4]
jl 0x1002d846
mov ecx, dword [ebp - 0x2c]
cmp esi, dword [ecx + 4]
jge 0x1002d96d
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0x38]
mov dword [eax + edx*4], esi
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
test eax, eax
je 0x1002d8a9
mov edi, dword [ebp - 0x5c]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
mov esi, edi
mov al, byte [ecx]
mov byte [esi], al
inc ecx
inc esi
test al, al
jne 0x1002d888
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d897
sub eax, edx
lea edx, [edi + eax + 1]
mov dword [ebp - 0x5c], edx
jmp 0x1002d8bf
mov ecx, dword [ecx + 8]
lea eax, [esi + esi*4]
mov edi, dword [ecx + eax*4 + 0xc]
test edi, edi
jne 0x1002d8bf
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x18]
mov edi, dword [eax]
mov ecx, dword [ebp - 0x30]
cmp byte [ecx + 0x44], 0
jne 0x1002d8e1
mov edx, dword [ebp - 0x28]
push edx
or eax, 0xffffffff
mov ecx, edi
call fcn.1002bb40
add esp, 4
test eax, eax
je 0x1002d988
mov esi, dword [ebp - 0x38]
mov eax, dword [ebx + 0x2c]
mov dword [eax + esi*4], edi
mov edi, dword [ebp - 0x3c]
mov cl, byte [edi + 8]
and cl, byte [ebp - 0x54]
mov edx, dword [ebx + 0x28]
mov eax, dword [ebp - 0x4c]
mov byte [esi + edx], cl
inc esi
add edi, 0xc
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edi
cmp esi, dword [eax]
jl 0x1002d830
mov edx, ebx
call fcn.1002dcd0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [edx + 0xa4]
jne 0x1002da32
mov ecx, eax
mov edi, dword [ecx + 0x10]
test edi, edi
je 0x1002da32
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 4]
jne 0x1002da27
xor edx, edx
mov dword [ebp - 0x38], edx
test eax, eax
jle 0x1002da22
mov esi, dword [ebx + 0x2c]
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebx + 8]
sub eax, esi
mov dword [ebp - 0x5c], eax
mov eax, dword [edi + 8]
sub eax, esi
sub ecx, esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
jmp 0x1002d9e6
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
push ecx
mov ecx, dword [ebp - 0x28]
push eax
push str.table__s_has_no_column_named__s
push ecx
call fcn.1001a430
add esp, 0x10
test ebx, ebx
je 0x1002d9a5
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1002d99c
push eax
call fcn.100b3828
add esp, 4
push ebx
call fcn.100b3828
add esp, 4
mov ebx, dword [ebp - 0x4c]
call fcn.10046d60
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.1002e330
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
je 0x1002d9c9
push eax
call fcn.100b3828
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b2b2c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + esi]
cmp eax, dword [ecx + esi]
jne 0x1002da22
mov ecx, dword [edi + 0x28]
mov eax, dword [ebx + 0x28]
mov cl, byte [edx + ecx]
cmp cl, byte [edx + eax]
jne 0x1002da22
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + esi]
mov eax, dword [esi]
cmp ecx, eax
je 0x1002da16
mov edx, eax
call fcn.1001a540
mov edx, dword [ebp - 0x38]
test eax, eax
jne 0x1002da22
inc edx
add esi, 4
mov dword [ebp - 0x38], edx
cmp edx, dword [edi + 4]
jl 0x1002d9e0
cmp edx, dword [edi + 4]
je 0x1002da86
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x1002d934
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0x44], 0
je 0x1002dac5
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002da46
mov ecx, dword [ebx + 0x24]
sub eax, esi
push ebx
inc eax
push edx
add ecx, 0x20
call fcn.10025460
add esp, 8
test eax, eax
jne 0x1002d988
mov eax, dword [ebp - 0x30]
or dword [eax + 8], 0x10
cmp dword [ebp - 0x44], 0
je 0x1002dc01
mov ecx, eax
mov edx, dword [ecx + 0x40]
mov dword [ebx + 0x14], edx
jmp 0x1002dc01
mov al, byte [edi + 0x18]
mov cl, byte [ebx + 0x18]
cmp al, cl
je 0x1002d988
cmp al, 0x63
je 0x1002dab0
cmp cl, 0x63
je 0x1002dab0
mov ecx, dword [ebp - 0x28]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push ecx
call fcn.1001a430
add esp, 0xc
cmp byte [edi + 0x18], 0x63
jne 0x1002d988
mov dl, byte [ebx + 0x18]
mov byte [edi + 0x18], dl
jmp 0x1002d988
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + 0x20]
lea eax, [edi + 1]
mov dword [ebp - 0x54], edi
mov dword [esi + 0x20], eax
call fcn.10043470
mov esi, eax
test esi, esi
je 0x1002d988
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
push 1
call fcn.1002e8a0
mov ecx, dword [ebp - 0x40]
add esp, 4
push 0
push ecx
push 0x2c
mov eax, esi
call fcn.10026710
add esp, 0xc
push 0
push edi
push 0x6c
mov eax, esi
call fcn.10026710
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x1002db4f
mov edx, dword [ebp - 0x64]
test edx, edx
je 0x1002db4f
cmp dword [ebp + 0x14], 0
mov ecx, 0x100eac18
je 0x1002db31
mov ecx, str._UNIQUE
mov eax, dword [ebp - 0x48]
mov edi, dword [eax]
mov edx, dword [edx]
sub edx, edi
push edi
inc edx
push edx
push ecx
push str.CREATE_s_INDEX__.s
call fcn.10033150
add esp, 0x10
mov edi, eax
jmp 0x1002db51
xor edi, edi
cmp dword [ebp - 0x40], 1
mov eax, str.sqlite_temp_master
je 0x1002db61
mov eax, str.sqlite_master
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov ecx, dword [ebx]
push edi
push edx
mov edx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x60]
push eax
mov eax, dword [edx + 4]
mov edx, dword [ecx + eax]
mov eax, dword [ebp - 0x28]
push edx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q_0__Q__
push eax
call fcn.10029ee0
add esp, 0x1c
push 0
push 1
push 0x1a
mov eax, esi
call fcn.10026710
add esp, 0xc
test edi, edi
je 0x1002dba7
push edi
call fcn.100b3828
add esp, 4
cmp dword [ebp - 0x44], 0
je 0x1002dc01
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x28]
push ecx
push ebx
push edx
call fcn.1002d080
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
add esp, 0xc
push edi
mov eax, esi
call fcn.1002bbe0
mov eax, dword [ebx]
add esp, 4
push 0xffffffffffffffff
push ecx
push eax
push str.name_q
call fcn.10033150
add esp, 0xc
push eax
xor eax, eax
mov ecx, edi
lea edx, [eax + 0x76]
mov edi, esi
call fcn.10026780
push 0
push 0
push 0x12
mov eax, esi
call fcn.10026710
add esp, 0x14
mov ecx, dword [ebp - 0x30]
cmp byte [ecx + 0x44], 0
jne 0x1002dc14
cmp dword [ebp - 0x44], 0
jne 0x1002d988
mov ecx, dword [ebp - 0x2c]
mov edx, 5
cmp dword [ebp + 0x14], edx
jne 0x1002dc51
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x1002dc51
cmp byte [eax + 0x18], dl
je 0x1002dc51
cmp dword [eax + 0x20], 0
je 0x1002dc43
mov ecx, dword [eax + 0x20]
cmp byte [ecx + 0x18], dl
je 0x1002dc43
mov eax, ecx
cmp dword [eax + 0x20], 0
jne 0x1002dc33
mov edx, dword [eax + 0x20]
mov dword [ebx + 0x20], edx
mov dword [eax + 0x20], ebx
jmp 0x1002d9a5
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x20], eax
mov dword [ecx + 0x10], ebx
jmp 0x1002d9a5