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

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov ebx, dword [edi]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], eax
cmp byte [ebx + 0x1e], al
jne 0x491517
cmp byte [edi + 0x210], al
jne 0x491517
push edi
call fcn.0049d786
pop ecx
test eax, eax
jne 0x491517
mov esi, dword [esp + 0x74]
test esi, esi
je 0x491520
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x74]
push dword [esp + 0x74]
push edi
call fcn.004a10ef
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x14], ebp
test ebp, ebp
js 0x491517
cmp byte [ebx + 0x7c], 0
jne 0x4914cd
push esi
push edi
call fcn.004a0531
pop ecx
pop ecx
mov ecx, dword [esp + 0x70]
cmp dword [ecx + 4], 0
jne 0x4914cd
test eax, eax
je 0x4914cd
mov ecx, dword [ebx + 8]
mov eax, dword [eax + 0x44]
push 1
cmp eax, dword [ecx + 0x1c]
pop eax
cmove ebp, eax
mov dword [esp + 0x14], ebp
push dword [esp + 0x1c]
lea eax, [esp + 0x58]
push str.index
push ebp
push edi
push eax
call fcn.004959a0
add esp, 0x14
test eax, eax
je 0x4914f6
lea eax, [esp + 0x54]
push esi
push eax
call fcn.00495a38
pop ecx
pop ecx
push dword [esi + 8]
push dword [esi + 0xc]
push 0
push edi
call fcn.004990f8
mov esi, eax
mov dword [esp + 0x34], eax
add esp, 0x10
test esi, esi
je 0x491517
cmp byte [ebx + 0x1e], 0
je 0x49153f
mov ebp, dword [esp + 0x78]
jmp 0x491c0d
mov esi, dword [edi + 0x1fc]
mov dword [esp + 0x24], esi
test esi, esi
je 0x491517
push dword [esi + 0x44]
push ebx
call fcn.0049eb74
pop ecx
mov ebp, eax
pop ecx
mov dword [esp + 0x14], ebp
mov eax, dword [ebx + 8]
mov ecx, ebp
shl ecx, 4
add eax, ecx
mov dword [esp + 0x3c], ecx
push 7
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
push str.sqlite_
push eax
mov dword [esp + 0x44], eax
call fcn.004754b1
add esp, 0xc
test eax, eax
jne 0x49159b
mov eax, dword [esi]
push 9
add eax, 7
push str.altertab_
push eax
call fcn.004b7a55
add esp, 0xc
test eax, eax
je 0x49159b
push dword [esp + 0x38]
push str.table__s_may_not_be_indexed
push edi
call fcn.00492feb
add esp, 0xc
jmp 0x491517
cmp dword [esi + 0x1c], 0
je 0x4915b3
push str.views_may_not_be_indexed
push edi
call fcn.00492feb
pop ecx
pop ecx
jmp 0x491517
test byte [esi + 0x22], 0x10
je 0x4915c0
push str.virtual_tables_may_not_be_indexed
jmp 0x4915a6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x491652
push eax
push ebx
call fcn.004998df
mov dword [esp + 0x18], eax
pop ecx
pop ecx
test eax, eax
je 0x491517
push eax
push edi
call fcn.00490485
pop ecx
pop ecx
test eax, eax
jne 0x491517
cmp byte [ebx + 0x7c], al
jne 0x491617
push eax
push dword [esp + 0x14]
push ebx
call fcn.0049551c
add esp, 0xc
test eax, eax
je 0x491617
push dword [esp + 0x10]
push str.there_is_already_a_table_named__s
jmp 0x49158d
mov eax, dword [esp + 0x28]
push dword [eax]
push dword [esp + 0x14]
push ebx
call fcn.0049549b
add esp, 0xc
test eax, eax
je 0x491680
cmp dword [esp + 0x8c], 0
jne 0x491646
push dword [esp + 0x10]
push str.index__s_already_exists
jmp 0x49158d
push ebp
push edi
call fcn.00490cc0
jmp 0x4915ac
mov eax, dword [esi + 0x10]
xor ecx, ecx
inc ecx
jmp 0x49165e
mov eax, dword [eax + 0x20]
inc ecx
test eax, eax
jne 0x49165a
mov eax, dword [esi]
push ecx
push eax
push str.sqlite_autoindex__s__d
push ebx
call fcn.00499220
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x491517
mov eax, dword [esp + 0x28]
mov edx, str.sqlite_master
cmp ebp, 1
mov ecx, dword [eax]
mov eax, str.sqlite_temp_master
push ecx
push 0
cmovne eax, edx
mov dword [esp + 0x40], ecx
push eax
push 0x12
push edi
call fcn.0048d627
add esp, 0x14
test eax, eax
jne 0x491517
push 3
pop ecx
push dword [esp + 0x38]
xor edx, edx
push dword [esi]
inc edx
push dword [esp + 0x18]
cmp ebp, edx
mov eax, edx
cmove eax, ecx
push eax
push edi
call fcn.0048d627
add esp, 0x14
test eax, eax
jne 0x491517
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x20], ebp
test ebp, ebp
jne 0x491736
imul ecx, dword [esi + 8], 0x18
mov eax, dword [esi + 0xc]
mov eax, dword [ecx + eax - 0x18]
push eax
mov dword [esp + 0x50], eax
call fcn.004a0cc8
push ebp
push ebp
push edi
mov dword [esp + 0x60], eax
call fcn.00494c27
mov ebp, eax
mov dword [esp + 0x30], eax
add esp, 0x10
test ebp, ebp
je 0x491c0d
push 0
lea eax, [esp + 0x50]
push eax
push ebp
push edi
call fcn.00494e87
mov ecx, dword [ebp + 0xc]
add esp, 0x10
mov al, byte [esp + 0x88]
mov byte [ecx + 0xc], al
mov edx, dword [ebp]
mov dword [esp + 0x38], edx
test edx, edx
jle 0x49177d
mov ebp, dword [ebp + 0xc]
mov ecx, edx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
mov eax, dword [ebp]
test eax, eax
je 0x49176b
mov eax, dword [eax + 0x14]
test eax, eax
je 0x49176b
push dword [eax]
call fcn.004a0cc8
pop ecx
mov ecx, dword [esp + 0x30]
inc ebx
add ebx, eax
add ebp, 0x14
dec ecx
mov dword [esp + 0x30], ecx
jne 0x49174e
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x34]
push dword [esp + 0x10]
call fcn.004a0cc8
mov ecx, eax
imul eax, edx, 0xd
mov dword [esp + 0x34], ecx
add eax, ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x35
add eax, ecx
push eax
push ebx
call fcn.00491eb0
add esp, 0xc
mov ebp, eax
cmp byte [ebx + 0x1e], 0
mov dword [esp + 0x48], ebp
jne 0x491bf2
mov ecx, dword [esp + 0x38]
lea eax, [ebp + 0x30]
mov dword [ebp + 0xc], eax
lea eax, [eax + ecx*4]
add eax, 4
mov dword [ebp + 0x2c], eax
lea eax, [eax + ecx*4]
mov dword [ebp + 8], eax
lea eax, [eax + ecx*4]
add ecx, eax
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [ebp], ecx
lea edx, [eax + 1]
add edx, ecx
inc eax
push eax
push dword [esp + 0x14]
mov dword [esp + 0x34], edx
push ecx
call fcn.004b91d0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
cmp dword [esp + 0x1c], 0
mov edx, dword [esp + 0x3c]
mov dword [ebp + 0x10], esi
mov eax, dword [ecx]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x7c]
mov byte [ebp + 0x18], al
sete al
mov byte [ebp + 0x19], al
mov eax, dword [ebx + 8]
mov eax, dword [edx + eax + 0xc]
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x4c], 4
sbb eax, eax
xor edx, edx
neg eax
mov dword [esp + 0x30], edx
dec eax
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x18], eax
cmp dword [ecx], edx
jle 0x491952
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x38], eax
test eax, eax
jle 0x4918a1
mov esi, dword [esp + 0x44]
mov edi, ecx
mov ebp, dword [esp + 0x18]
mov ebx, eax
push dword [esi]
push dword [ebp + 4]
call fcn.004a0c89
pop ecx
pop ecx
test eax, eax
je 0x491881
inc edi
add esi, 0x18
cmp edi, ebx
jl 0x491869
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
jge 0x491a2b
mov eax, dword [ebp + 8]
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
je 0x4918eb
mov edx, dword [eax + 0x14]
test edx, edx
je 0x4918eb
push dword [edx]
call fcn.004a0cc8
lea esi, [eax + 1]
push esi
push dword [edx]
push dword [esp + 0x38]
call fcn.004b91d0
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov eax, ecx
add ecx, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
jmp 0x491902
mov eax, dword [esi + 0xc]
imul ecx, ecx, 0x18
mov eax, dword [ecx + eax + 0x10]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x491906
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
cmp byte [ebx + 0x7c], 0
jne 0x49191d
push eax
push edi
call fcn.00499087
pop ecx
pop ecx
test eax, eax
je 0x491bf2
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x18]
add dword [esp + 0x18], 0x14
mov cl, byte [eax + 0xc]
mov eax, dword [ebp + 0x28]
and cl, byte [esp + 0x4c]
mov byte [edx + eax], cl
inc edx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], edx
cmp edx, dword [eax]
jl 0x491849
push ebp
call fcn.00492013
pop ecx
cmp esi, dword [edi + 0x1fc]
jne 0x4919f5
mov edx, dword [esi + 0x10]
mov dword [esp + 0x18], edx
test edx, edx
je 0x4919f5
mov eax, dword [ebp + 4]
cmp dword [edx + 4], eax
jne 0x4919ea
xor eax, eax
mov dword [esp + 0x30], eax
cmp eax, dword [edx + 4]
jge 0x4919e5
mov eax, dword [ebp + 8]
mov ebx, dword [edx + 8]
sub eax, ebx
mov edi, dword [esp + 0x30]
mov esi, eax
mov dword [esp + 0x4c], eax
lea ecx, [ebx + edi*4]
mov eax, dword [ecx]
cmp eax, dword [esi + ecx]
jne 0x4919ce
mov eax, dword [edx + 0x2c]
mov ecx, dword [eax + edi*4]
mov eax, dword [ebp + 0x2c]
cmp ecx, dword [eax + edi*4]
je 0x4919c4
push dword [eax + edi*4]
push ecx
call fcn.004a0c89
pop ecx
pop ecx
test eax, eax
jne 0x4919ce
mov edx, dword [esp + 0x18]
inc edi
mov dword [esp + 0x30], edi
cmp edi, dword [edx + 4]
jl 0x491999
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x24]
cmp eax, dword [edx + 4]
je 0x491a4d
mov eax, dword [ebp + 4]
mov edx, dword [edx + 0x20]
mov dword [esp + 0x18], edx
test edx, edx
jne 0x491977
cmp byte [ebx + 0x7c], 0
je 0x491aab
push ebp
push dword [ebp]
call fcn.004a0cc8
pop ecx
push eax
mov eax, dword [ebp + 0x24]
push dword [ebp]
add eax, 0x18
push eax
call fcn.00497628
add esp, 0x10
test eax, eax
je 0x491a8d
xor eax, eax
inc eax
mov byte [ebx + 0x1e], al
jmp 0x491bf2
mov eax, dword [esp + 0x18]
push dword [eax + 4]
push dword [esi]
push str.table__s_has_no_column_named__s
push edi
call fcn.00492feb
xor eax, eax
add esp, 0x10
inc eax
mov byte [edi + 0x12], al
jmp 0x491bf2
mov al, byte [edx + 0x18]
mov cl, byte [ebp + 0x18]
cmp al, cl
je 0x491bf2
cmp al, 0x63
je 0x491a78
cmp cl, 0x63
je 0x491a78
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push edi
call fcn.00492feb
mov edx, dword [esp + 0x24]
add esp, 0xc
cmp byte [edx + 0x18], 0x63
jne 0x491bf2
mov al, byte [ebp + 0x18]
mov byte [edx + 0x18], al
jmp 0x491bf2
or dword [ebx + 0xc], 0x200
mov eax, dword [esp + 0x74]
test eax, eax
je 0x491bc5
mov eax, dword [ebx + 0x78]
mov dword [ebp + 0x14], eax
jmp 0x491bc1
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
push edi
mov dword [esp + 0x6c], eax
call fcn.0049753d
mov dword [esp + 0x38], eax
pop ecx
test eax, eax
je 0x491bf2
push dword [esp + 0x14]
xor eax, eax
inc eax
push eax
push edi
call fcn.0048df88
push dword [esp + 0x74]
push dword [esp + 0x24]
push 0x68
push dword [esp + 0x4c]
call fcn.004a2f7a
add esp, 0x1c
cmp dword [esp + 0x80], 0
je 0x491b2f
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x84]
push dword [ecx]
mov eax, dword [eax]
sub eax, dword [ecx]
mov ecx, str._UNIQUE
inc eax
cmp dword [esp + 0x80], 0
push eax
mov eax, 0x4d4450
cmovne eax, ecx
push eax
push str.CREATE_s_INDEX__.s
push ebx
call fcn.00499220
add esp, 0x14
jmp 0x491b31
xor eax, eax
cmp dword [esp + 0x14], 1
mov edx, str.sqlite_master
push eax
push dword [esp + 0x6c]
mov ecx, str.sqlite_temp_master
mov dword [esp + 0x40], eax
push dword [esi]
mov eax, dword [ebx + 8]
cmovne ecx, edx
push dword [ebp]
push ecx
mov ecx, dword [esp + 0x50]
push dword [ecx + eax]
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
push edi
call fcn.00499909
push dword [esp + 0x58]
push ebx
call fcn.00491da8
mov eax, dword [esp + 0x9c]
add esp, 0x28
test eax, eax
je 0x491bc5
push dword [esp + 0x68]
push ebp
push edi
call fcn.0049d8c7
push dword [esp + 0x20]
push edi
call fcn.0049043a
push dword [ebp]
push str.name_q_AND_typeindex
push ebx
call fcn.00499220
mov edi, dword [esp + 0x54]
push eax
push dword [esp + 0x38]
push edi
call fcn.004a30e0
push 0
push 0x81
push edi
call fcn.004a2f61
add esp, 0x38
mov eax, dword [esp + 0x74]
cmp byte [ebx + 0x7c], 0
jne 0x491bcf
test eax, eax
jne 0x491bf2
cmp dword [esp + 0x7c], 5
jne 0x491be3
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x491be3
cmp byte [ecx + 0x18], 5
jne 0x491c42
mov eax, dword [esi + 0x10]
mov dword [ebp + 0x20], eax
mov dword [esi + 0x10], ebp
mov dword [esp + 0x40], ebp
xor ebp, ebp
test ebp, ebp
je 0x491c09
push dword [ebp + 0x1c]
push ebx
call fcn.00491da8
push ebp
push ebx
call fcn.00491da8
add esp, 0x10
mov ebp, dword [esp + 0x20]
push ebp
push ebx
call fcn.00494d3f
push dword [esp + 0x7c]
push ebx
call fcn.004a022d
push dword [esp + 0x20]
push ebx
call fcn.00491da8
mov eax, dword [esp + 0x58]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov eax, dword [ecx + 0x20]
cmp byte [eax + 0x18], 5
je 0x491c48
mov ecx, eax
cmp dword [ecx + 0x20], 0
jne 0x491c37
mov eax, dword [ecx + 0x20]
mov dword [ebp + 0x20], eax
mov dword [ecx + 0x20], ebp
jmp 0x491bec