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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x54]
mov ebp, dword [edi]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
cmp byte [ebp + 0x1e], bl
jne 0x4c3e73
cmp byte [edi + 0x1f8], bl
jne 0x4c3e73
cmp byte [ebp + 0x78], bl
jne 0x4c35d6
lea eax, [edi + 8]
push eax
mov esi, ebp
call fcn.004bea70
add esp, 4
cmp eax, ebx
je 0x4c35d6
inc dword [edi + 0x40]
mov dword [edi + 4], eax
jmp 0x4c3e73
cmp dword [esp + 0x60], ebx
je 0x4c3693
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
lea ecx, [esp + 0x1c]
mov eax, esi
call fcn.00491a00
mov dword [esp + 0x18], eax
test eax, eax
jl 0x4c3e73
cmp byte [ebp + 0x78], 0
jne 0x4c3631
mov ecx, dword [esp + 0x60]
mov eax, ebx
call fcn.004bfae0
cmp dword [esi + 4], 0
jne 0x4c3631
test eax, eax
je 0x4c3631
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x48]
cmp edx, dword [ecx + 0x1c]
jne 0x4c3631
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push str.index
mov esi, ebx
lea ecx, [esp + 0x48]
call fcn.004836b0
add esp, 8
test eax, eax
je 0x4c3663
mov ecx, dword [esp + 0x60]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004988e0
add esp, 8
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 8]
push ecx
push 0
mov edi, esi
call fcn.004bf230
mov ebx, eax
add esp, 8
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x4c3e73
cmp byte [ebp + 0x1e], 0
je 0x4c36b3
jmp 0x4c3e73
mov ebx, dword [edi + 0x1e0]
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x4c3e73
mov esi, dword [ebx + 0x48]
mov ecx, ebp
call fcn.004846c0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov esi, dword [ebp + 8]
mov edi, dword [ebx + 4]
shl eax, 4
add esi, eax
mov dword [esp + 0x30], eax
mov eax, 7
mov edx, str.sqlite_
mov ecx, edi
mov dword [esp + 0x2c], esi
call fcn.0047d270
test eax, eax
jne 0x4c3725
mov eax, 9
mov ecx, str.altertab_
lea edx, [edi + 7]
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4c370a
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4c36f0
mov al, byte [ecx]
cmp al, byte [edx]
je 0x4c3721
mov esi, dword [esp + 0x54]
push edi
push str.table__s_may_not_be_indexed
call fcn.0048ef40
add esp, 8
jmp 0x4c3e73
mov esi, dword [esp + 0x2c]
cmp dword [ebx + 0x1c], 0
je 0x4c373e
mov esi, dword [esp + 0x54]
push str.views_may_not_be_indexed
call fcn.0048ef40
jmp 0x4c3e70
test byte [ebx + 0x22], 0x10
je 0x4c3757
mov esi, dword [esp + 0x54]
push str.virtual_tables_may_not_be_indexed
call fcn.0048ef40
jmp 0x4c3e70
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c37ea
push ebp
call fcn.0048be70
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
je 0x4c3e73
mov eax, dword [esp + 0x54]
call fcn.00491a60
test eax, eax
jne 0x4c3e73
cmp byte [ebp + 0x78], al
jne 0x4c37b6
push eax
push edi
push ebp
call fcn.00483740
add esp, 0xc
test eax, eax
je 0x4c37b6
mov esi, dword [esp + 0x54]
push edi
push str.there_is_already_a_table_named__s
call fcn.0048ef40
add esp, 8
jmp 0x4c3e73
mov ecx, dword [esi]
push ecx
push edi
mov ecx, ebp
call fcn.00483840
add esp, 8
test eax, eax
je 0x4c381d
cmp dword [esp + 0x78], 0
jne 0x4c3e73
mov esi, dword [esp + 0x54]
push edi
push str.index__s_already_exists
call fcn.0048ef40
add esp, 8
jmp 0x4c3e73
mov eax, dword [ebx + 0x14]
mov ecx, 1
test eax, eax
je 0x4c37fe
mov eax, dword [eax + 0x20]
inc ecx
test eax, eax
jne 0x4c37f6
push ecx
push edi
push str.sqlite_autoindex__s__d
mov edi, ebp
call fcn.0048ed80
mov edi, eax
add esp, 0xc
mov dword [esp + 0x20], edi
test edi, edi
je 0x4c3e73
cmp dword [esp + 0x18], 1
mov ebp, dword [esi]
mov eax, str.sqlite_temp_master
je 0x4c3830
mov eax, str.sqlite_master
mov esi, dword [esp + 0x54]
push ebp
push 0
push eax
push 0x12
mov eax, esi
call fcn.004918c0
add esp, 0x10
test eax, eax
jne 0x4c3e73
mov eax, 1
cmp dword [esp + 0x18], eax
jne 0x4c385c
mov eax, 3
mov edx, dword [ebx + 4]
push ebp
push edx
push edi
push eax
mov eax, esi
call fcn.004918c0
add esp, 0x10
test eax, eax
jne 0x4c3e73
cmp dword [esp + 0x64], eax
jne 0x4c38c9
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
lea eax, [eax + eax*2]
mov ecx, dword [ecx + eax*8 - 0x18]
mov dword [esp + 0x38], ecx
call fcn.0047d100
mov dword [esp + 0x3c], eax
xor edi, edi
xor ecx, ecx
mov eax, esi
call fcn.00491060
mov edi, eax
mov dword [esp + 0x64], edi
test edi, edi
je 0x4c3e73
push 0
push esi
lea edx, [esp + 0x40]
mov ecx, edi
call fcn.0048b210
mov edx, dword [edi + 0xc]
mov al, byte [esp + 0x7c]
add esp, 8
mov byte [edx + 0xc], al
mov eax, dword [esp + 0x64]
mov esi, dword [eax]
test esi, esi
jle 0x4c3904
mov edx, dword [eax + 0xc]
mov ebx, dword [esp + 0x24]
mov edi, esi
lea esp, [esp]
mov eax, dword [edx]
test eax, eax
je 0x4c38f8
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4c38f8
mov ecx, dword [eax]
call fcn.0047d100
lea ebx, [ebx + eax + 1]
add edx, 0x14
sub edi, 1
jne 0x4c38e0
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x20]
call fcn.0047d100
mov edx, dword [esp + 0x24]
mov ecx, esi
imul ecx, ecx, 0xd
mov ebx, eax
mov eax, dword [esp + 0x10]
add ecx, ebx
lea edi, [ecx + edx + 0x35]
call fcn.0048dea0
mov ebp, eax
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x1e], 0
jne 0x4c3b22
mov edx, dword [esp + 0x20]
lea eax, [ebp + 0x30]
mov dword [ebp + 0x2c], eax
lea eax, [eax + esi*4]
mov dword [ebp + 8], eax
lea eax, [eax + esi*4]
mov dword [ebp + 0xc], eax
lea eax, [eax + esi*4 + 4]
mov dword [ebp + 0x28], eax
add eax, esi
lea ecx, [eax + ebx + 1]
inc ebx
push ebx
push edx
push eax
mov dword [ebp], eax
mov dword [esp + 0x34], ecx
call fcn.0050bbc0
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x20]
mov dl, byte [esp + 0x74]
mov esi, dword [esp + 0x1c]
mov dword [ebp + 0x10], edi
mov ecx, dword [eax]
mov dword [ebp + 4], ecx
add esp, 0xc
cmp dword [esp + 0x1c], 0
mov byte [ebp + 0x18], dl
sete cl
mov byte [ebp + 0x19], cl
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + edx + 0xc]
mov ecx, dword [esp + 0x2c]
mov dword [ebp + 0x24], edx
mov edx, dword [ecx + 0xc]
cmp byte [edx + 0x38], 4
sbb ecx, ecx
neg ecx
dec ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0xc]
xor ebx, ebx
cmp dword [eax], ebx
mov dword [esp + 0x24], ecx
jle 0x4c3ab9
jmp 0x4c39d0
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
xor edi, edi
mov dword [esp + 0x34], eax
test eax, eax
jle 0x4c3a0c
nop
mov edx, dword [esi]
mov ecx, dword [esp + 0x2c]
call fcn.0047d220
test eax, eax
je 0x4c3a0c
mov ecx, dword [esp + 0x14]
inc edi
add esi, 0x18
cmp edi, dword [ecx + 0xc]
jl 0x4c39f0
cmp edi, dword [esp + 0x34]
jge 0x4c3b04
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x24]
mov dword [edx + ebx*4], edi
mov eax, dword [eax]
test eax, eax
je 0x4c3a4c
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4c3a4c
mov ecx, dword [eax]
call fcn.0047d100
mov esi, dword [esp + 0x28]
mov edi, eax
inc edi
push edi
push ecx
push esi
call fcn.0050bbc0
add esp, 0xc
add dword [esp + 0x28], edi
jmp 0x4c3a67
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
lea ecx, [edi + edi*2]
mov esi, dword [eax + ecx*8 + 0x10]
test esi, esi
jne 0x4c3a67
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x2c]
mov esi, dword [edx]
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x78], 0
jne 0x4c3a86
mov eax, dword [esp + 0x54]
push esi
call fcn.004a3390
add esp, 4
test eax, eax
je 0x4c3b22
mov ecx, dword [ebp + 0x2c]
mov dword [ecx + ebx*4], esi
mov esi, dword [esp + 0x24]
mov dl, byte [esi + 0xc]
and dl, byte [esp + 0x38]
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x64]
mov byte [ebx + eax], dl
inc ebx
add esi, 0x14
cmp ebx, dword [ecx]
mov dword [esp + 0x24], esi
jl 0x4c39d0
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov edx, ebp
call fcn.00483b60
mov edx, dword [esp + 0x54]
cmp edi, dword [edx + 0x1e0]
jne 0x4c3bb5
mov ebx, dword [edi + 0x14]
test ebx, ebx
je 0x4c3bb5
jmp 0x4c3ae0
mov eax, dword [ebx + 4]
cmp eax, dword [ebp + 4]
jne 0x4c3ba2
xor edi, edi
test eax, eax
jle 0x4c3b9d
mov esi, dword [ebp + 8]
mov ecx, dword [ebx + 8]
sub ecx, esi
mov dword [esp + 0x38], ecx
jmp 0x4c3b74
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x54]
push edx
push ecx
push str.table__s_has_no_column_named__s
call fcn.0048ef40
add esp, 0xc
test ebp, ebp
je 0x4c3e73
mov eax, dword [ebp + 0x1c]
push eax
call fcn.0047ceb0
mov eax, dword [esp + 0x14]
add esp, 4
cmp ebp, dword [eax + 0xe8]
jb 0x4c3e6a
cmp ebp, dword [eax + 0xec]
jae 0x4c3e6a
mov ecx, dword [eax + 0xe4]
mov dword [ebp], ecx
dec dword [eax + 0xdc]
mov dword [eax + 0xe4], ebp
jmp 0x4c3e73
mov ecx, dword [esp + 0x38]
lea eax, [esi + edi*4]
mov ecx, dword [ecx + eax]
cmp ecx, dword [eax]
jne 0x4c3b9d
mov edx, dword [ebx + 0x2c]
mov ecx, dword [edx + edi*4]
mov eax, dword [ebp + 0x2c]
mov edx, dword [eax + edi*4]
cmp ecx, edx
je 0x4c3b97
call fcn.0047d220
test eax, eax
jne 0x4c3b9d
inc edi
cmp edi, dword [ebx + 4]
jl 0x4c3b70
cmp edi, dword [ebx + 4]
je 0x4c3be0
mov ebx, dword [ebx + 0x20]
test ebx, ebx
jne 0x4c3ae0
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp byte [esi + 0x78], 0
je 0x4c3c39
mov ecx, dword [ebp]
push ebp
call fcn.0047d100
push ecx
mov ecx, dword [ebp + 0x24]
add ecx, 0x14
call fcn.00487f30
add esp, 8
test eax, eax
je 0x4c3c1f
mov byte [esi + 0x1e], 1
jmp 0x4c3b22
mov al, byte [ebx + 0x18]
mov cl, byte [ebp + 0x18]
cmp al, cl
je 0x4c3b22
cmp al, 0x63
je 0x4c3c0a
cmp cl, 0x63
je 0x4c3c0a
mov esi, dword [esp + 0x54]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.0048ef40
add esp, 8
cmp byte [ebx + 0x18], 0x63
jne 0x4c3b22
mov cl, byte [ebp + 0x18]
mov byte [ebx + 0x18], cl
jmp 0x4c3b22
or dword [esi + 0xc], 0x10
cmp dword [esp + 0x60], 0
je 0x4c3e16
mov edx, dword [esi + 0x74]
mov dword [ebp + 0x14], edx
jmp 0x4c3e16
mov edi, dword [esp + 0x54]
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov dword [esp + 0x28], eax
call fcn.00493fa0
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4c3b22
mov ebx, dword [esp + 0x18]
mov esi, edi
call fcn.004ade30
mov edx, 1
mov ecx, ebx
shl edx, cl
or dword [esi + 0x150], edx
cmp byte [esi + 0x13], 0
jne 0x4c3c86
mov eax, dword [esi + 0xc]
push ebx
push 0x2b
call fcn.0048a080
add esp, 8
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push ebx
push 0x22
call fcn.0048a0d0
add esp, 0xc
cmp dword [esp + 0x6c], 0
je 0x4c3cd9
cmp dword [esp + 0x68], 0
mov ecx, 0x561cc7
je 0x4c3cb2
mov ecx, str._UNIQUE
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edi, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x74]
mov edx, dword [edx]
sub edx, dword [eax]
inc edx
push edx
push ecx
push str.CREATE_s_INDEX__.s
call fcn.0048ed80
add esp, 0x10
mov esi, eax
jmp 0x4c3cdf
mov edi, dword [esp + 0x10]
xor esi, esi
cmp dword [esp + 0x18], 1
mov eax, str.sqlite_temp_master
je 0x4c3cf0
mov eax, str.sqlite_master
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x54]
push esi
push ecx
mov ecx, dword [edx + 4]
mov edx, dword [ebp]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
mov eax, dword [edi + 8]
mov edx, dword [ecx + eax]
push edx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
call fcn.00491950
push esi
push edi
call fcn.0047cf30
add esp, 0x24
cmp dword [esp + 0x60], 0
je 0x4c3e0e
mov eax, dword [esp + 0x28]
push eax
push ebp
mov esi, ebx
push esi
call fcn.004b1ce0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0048bf60
mov edx, dword [ebp]
mov edi, dword [esp + 0x20]
push edx
push str.name_q
call fcn.0048ed80
mov esi, dword [esp + 0x44]
mov ebx, dword [esi + 0xc]
add esp, 0x18
cmp dword [esi + 0x10], ebx
mov dword [esp + 0x54], eax
jg 0x4c3d80
mov edi, esi
call fcn.00489f50
test eax, eax
je 0x4c3d80
mov eax, 1
jmp 0x4c3dac
mov ecx, dword [esi + 0x14]
inc dword [esi + 0xc]
mov edx, dword [esp + 0x18]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax], 0x1f
mov byte [eax + 3], cl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [esi + 0x6e], cl
mov eax, ebx
mov ebx, dword [esi + 0x14]
mov edi, dword [esi]
test ebx, ebx
je 0x4c3df4
cmp byte [edi + 0x1e], 0
jne 0x4c3df4
test eax, eax
jge 0x4c3dc3
mov eax, dword [esi + 0xc]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*4 + 0x10]
lea ebx, [ebx + eax*4]
movsx eax, byte [ebx + 1]
call fcn.0048a410
mov eax, dword [esp + 0x54]
xor ecx, ecx
mov dword [ebx + 0x10], ecx
cmp eax, ecx
jne 0x4c3deb
mov dword [ebx + 0x10], ecx
mov byte [ebx + 1], cl
jmp 0x4c3e00
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], 0xff
jmp 0x4c3e00
mov ecx, dword [esp + 0x54]
or eax, 0xffffffff
call fcn.0048a410
push 0
push 0xe
mov eax, esi
call fcn.0048a080
add esp, 8
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [esi + 0x78], 0
jne 0x4c3e27
cmp dword [esp + 0x60], 0
jne 0x4c3b22
mov edx, 5
cmp dword [esp + 0x68], edx
jne 0x4c3e5f
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4c3e5f
cmp byte [eax + 0x18], dl
je 0x4c3e5f
cmp dword [eax + 0x20], 0
je 0x4c3e54
mov ecx, dword [eax + 0x20]
cmp byte [ecx + 0x18], dl
je 0x4c3e54
mov eax, ecx
cmp dword [eax + 0x20], 0
jne 0x4c3e44
mov ecx, dword [eax + 0x20]
mov dword [ebp + 0x20], ecx
mov dword [eax + 0x20], ebp
jmp 0x4c3e73
mov edx, dword [edi + 0x14]
mov dword [ebp + 0x20], edx
mov dword [edi + 0x14], ebp
jmp 0x4c3e73
push ebp
call fcn.0047ceb0
add esp, 4
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x10]
call fcn.00482f10
mov edx, dword [esp + 0x60]
push edx
mov eax, esi
call fcn.00483d30
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x4c3ec3
cmp eax, dword [esi + 0xe8]
jb 0x4c3ec3
cmp eax, dword [esi + 0xec]
jae 0x4c3ec3
mov ecx, dword [esi + 0xe4]
pop edi
mov dword [eax], ecx
dec dword [esi + 0xdc]
mov dword [esi + 0xe4], eax
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push eax
call fcn.0047ceb0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret