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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x8bb040]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0x14], eax
push esi
push edi
mov dword [esp + 0x30], eax
mov edi, edx
mov eax, dword [ebp + 0xc]
mov edx, str.sqlite_temp_master
mov esi, dword [ebx + 0x18]
mov ecx, str.sqlite_master
mov dword [esp + 0x3c], eax
or esi, 0xffffffbf
push 0
lea eax, [esp + 0x60]
mov dword [esp + 0x18], edi
push eax
cmp edi, 1
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x34]
mov dword [esp + 0x28], 0
cmove ecx, edx
mov byte [ebx + 0xb1], 1
push 5
push eax
mov dword [esp + 0x6c], str.table
mov dword [esp + 0x34], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], 0x775a64
mov dword [esp + 0x7c], str.CREATE_TABLE_x_type_text_name_text_tbl_name_text_rootpage_int_sql_text_
mov dword [esp + 0x80], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call fcn.006c5e40
and dword [ebx + 0x18], esi
add esp, 0x10
mov esi, dword [esp + 0x38]
test esi, esi
jne 0x6c6648
mov eax, dword [ebx + 0x10]
mov ecx, edi
shl ecx, 4
mov dword [esp + 0x28], ecx
lea edi, [eax + ecx]
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], edi
test ecx, ecx
jne 0x6c61c7
mov eax, dword [eax + 0x1c]
or word [eax + 0x4e], 1
xor eax, eax
jmp 0x6c6667
cmp byte [ecx + 9], 0
je 0x6c61db
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x6c61db
call fcn.0066a790
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x6c61ec
cmp byte [ecx + 8], 0
jne 0x6c62bb
cmp byte [ecx + 9], 0
jne 0x6c61fc
cmp byte [ecx + 8], 0
jne 0x6c62b3
push 0
xor edx, edx
call fcn.0066dbc0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x6c62b3
mov ecx, eax
mov esi, str.unknown_error
sub ecx, 0x64
je 0x6c6252
sub ecx, 1
je 0x6c624b
sub ecx, 0x19f
je 0x6c6244
movzx eax, al
cmp eax, 0x1d
jae 0x6c6257
mov eax, dword [eax*4 + 0x7faba8]
test eax, eax
je 0x6c6257
mov esi, eax
jmp 0x6c6257
mov esi, str.abort_due_to_ROLLBACK
jmp 0x6c6257
mov esi, str.no_more_rows_available
jmp 0x6c6257
mov esi, str.another_row_available
mov ecx, esi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6c6260
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, ebx
push eax
mov dword [esp + 0x28], eax
call fcn.00654db0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x6c6293
push dword [esp + 0x20]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
test edx, edx
je 0x6c62a4
mov ecx, ebx
call fcn.00654910
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov esi, dword [esp + 0xc]
jmp 0x6c662c
mov dword [esp + 0x20], 1
mov ebx, dword [esp + 0x10]
xor edi, edi
mov esi, dword [ebx + 4]
mov cl, byte [esi + 9]
mov eax, dword [esi + 4]
mov dword [esp + 0xc], eax
test cl, cl
je 0x6c62e9
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x6c62e9
mov ecx, esi
call fcn.0066a790
mov cl, byte [esi + 9]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + edi*4 + 0x28]
bswap eax
mov dword [esp + edi*4 + 0x48], eax
test cl, cl
je 0x6c630a
add dword [esi + 0xc], 0xffffffff
jne 0x6c630a
mov ecx, esi
call fcn.0066a770
inc edi
cmp edi, 5
jl 0x6c62c1
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 0x20]
and eax, 0x2000000
or eax, 0
je 0x6c632d
xor edx, edx
mov dword [esp + 0xc], edx
mov esi, edx
mov ecx, edx
jmp 0x6c6341
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0xc]
mov dword [eax], edx
test ecx, ecx
je 0x6c63d4
cmp dword [esp + 0x14], 0
jne 0x6c63fd
mov edx, dword [ebx + 0x18]
test dl, 0x40
jne 0x6c63fd
and cl, 3
movzx eax, cl
mov ecx, 1
cmove eax, ecx
cmp dword [ebx + 0xbc], 0
mov dword [esp + 0x18], eax
jle 0x6c6396
cmp al, byte [ebx + 0x54]
je 0x6c6396
test dl, 4
jne 0x6c6396
lea esi, [ecx + 5]
jmp 0x6c65df
push 0
lea ecx, [ebx + 0x1b0]
mov byte [ebx + 0x54], al
mov edx, 0x7fc3dc
call fcn.0065a860
add esp, 4
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x6c63c5
mov eax, dword [esp + 0x18]
movzx eax, al
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
add ecx, 0xffffffec
mov dword [ebx + 8], ecx
mov edx, 1
mov ecx, ebx
call fcn.0067f8f0
mov ecx, dword [edi + 0xc]
mov al, byte [ebx + 0x54]
mov byte [ecx + 0x4d], al
mov eax, dword [edi + 0xc]
cmp dword [eax + 0x50], 0
jne 0x6c646b
test esi, esi
jns 0x6c6450
cmp esi, 0x80000000
jne 0x6c644e
mov esi, closesocket
jmp 0x6c645a
and ecx, 3
cmp cl, byte [ebx + 0x54]
je 0x6c63d4
push 0
push 0x44
mov ecx, ebx
call fcn.00654db0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x6c642d
mov ecx, 0x11
mov esi, str.attached_databases_must_use_the_same_text_encoding_as_main_database
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
test edx, edx
je 0x6c6442
mov ecx, ebx
call fcn.00654910
mov eax, dword [esp + 0x18]
mov dword [esi], eax
mov esi, 1
jmp 0x6c65df
neg esi
test esi, esi
mov ecx, 0xfffff830
cmove esi, ecx
mov dword [eax + 0x50], esi
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [edx + 0x50]
call fcn.0066d470
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0xc]
mov byte [eax + 0x4c], cl
mov eax, dword [edi + 0xc]
cmp byte [eax + 0x4c], 0
jne 0x6c6482
mov byte [eax + 0x4c], 1
mov eax, dword [edi + 0xc]
cmp byte [eax + 0x4c], 4
jbe 0x6c64f2
push 0
push 0x18
mov ecx, ebx
call fcn.00654db0
mov esi, eax
add esp, 8
test esi, esi
je 0x6c64d1
mov ecx, dword [str.unsupported_file_format]
mov dword [esi], ecx
mov ecx, dword [0x88a8ec]
mov dword [esi + 4], ecx
mov ecx, dword [0x88a8f0]
mov dword [esi + 8], ecx
mov eax, dword [0x88a8f4]
mov dword [esi + 0xc], eax
mov eax, dword [0x88a8f8]
mov dword [esi + 0x10], eax
mov eax, dword [0x88a8fc]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x6c64e6
mov ecx, ebx
call fcn.00654910
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov esi, 1
jmp 0x6c65df
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x6c6509
cmp ecx, 4
jl 0x6c6509
mov eax, dword [ebx + 0x24]
and dword [ebx + 0x20], 0xfffffffd
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 4]
mov ecx, edx
push dword [esp + 0x24]
add ecx, ecx
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x10]
push dword [eax + ecx*8]
push str.SELECTFROM__w_._s_ORDER_BY_rowid
push ebx
call fcn.00657240
mov esi, dword [ebx + 0x16c]
lea ecx, [esp + 0x3c]
push 0
push ecx
push fcn.006c5e40
push eax
push ebx
mov dword [esp + 0x48], eax
mov dword [ebx + 0x16c], 0
call fcn.006bdcd0
mov edx, dword [esp + 0x48]
mov ecx, eax
add esp, 0x24
mov dword [ebx + 0x16c], esi
test ecx, ecx
cmove ecx, dword [esp + 0x38]
mov dword [esp + 0xc], ecx
test edx, edx
je 0x6c657f
mov ecx, ebx
call fcn.00654910
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
test ecx, ecx
jne 0x6c6594
mov edx, esi
mov ecx, ebx
call fcn.006a2de0
mov ecx, dword [esp + 0xc]
cmp byte [ebx + 0x57], 0
je 0x6c65b3
mov ecx, ebx
mov esi, 7
call fcn.006a5260
mov edi, dword [ebx + 0x10]
add edi, dword [esp + 0x28]
mov dword [esp + 0x10], edi
jmp 0x6c65df
test ecx, ecx
je 0x6c65c9
mov eax, dword [ebx + 0x20]
and eax, 0x8000000
or eax, 0
je 0x6c65db
cmp ecx, 7
je 0x6c65db
mov eax, dword [ebx + 0x10]
add esi, esi
mov eax, dword [eax + esi*8 + 0xc]
or word [eax + 0x4e], 1
xor esi, esi
jmp 0x6c65df
mov esi, dword [esp + 0xc]
cmp dword [esp + 0x20], 0
je 0x6c662c
mov edi, dword [edi + 4]
cmp byte [edi + 9], 0
je 0x6c65ff
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x6c65ff
mov ecx, edi
call fcn.0066a790
xor edx, edx
mov ecx, edi
call fcn.0066eb90
test eax, eax
jne 0x6c6615
xor edx, edx
mov ecx, edi
call fcn.0066ed80
cmp byte [edi + 9], 0
je 0x6c6628
add dword [edi + 0xc], 0xffffffff
jne 0x6c6628
mov ecx, edi
call fcn.0066a770
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 4]
cmp byte [ecx + 9], 0
je 0x6c6640
add dword [ecx + 0xc], 0xffffffff
jne 0x6c6640
call fcn.0066a770
mov edi, dword [esp + 0x14]
test esi, esi
je 0x6c6665
cmp esi, 7
je 0x6c6655
cmp esi, 0xc0a
jne 0x6c665c
mov ecx, ebx
call fcn.00655080
mov edx, edi
mov ecx, ebx
call fcn.006a51f0
mov eax, esi
mov ecx, dword [esp + 0x74]
pop edi
pop esi
mov byte [ebx + 0xb1], 0
pop ebx
xor ecx, esp
call fcn.0073297b
mov esp, ebp
pop ebp
ret