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

Disassembly:
push ebp
mov ebp, edx
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x9c
mov esi, dword [eax + 0x18]
mov byte [eax + 0xa9], 1
mov eax, str.sqlite_master
mov dword [esp + 0x2c], edx
or esi, 0xffffffbf
cmp edx, 1
mov edx, str.sqlite_temp_master
mov dword [esp + 0x30], ecx
cmove eax, edx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 5
mov dword [esp + 0x34], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x5c], str.table
mov dword [esp + 0x84], eax
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
lea eax, [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 0x68], 0x6667f484
mov dword [esp + 0x6c], str.CREATE_TABLE_x_type_text_name_text_tbl_name_text_rootpage_int_sql_text_
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ebx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], 0
mov dword [esp + 0x78], ecx
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
call fcn.666456d0
mov edi, dword [esp + 0x80]
and dword [ebx + 0x18], esi
test edi, edi
jne 0x6662cb00
mov edx, dword [ebx + 0x10]
shl ebp, 4
mov dword [esp + 0x38], ebp
lea esi, [edx + ebp]
mov eax, dword [esi + 4]
test eax, eax
je 0x6662cdf0
cmp byte [eax + 9], 0
je 0x6662ca0c
add dword [eax + 0xc], 1
cmp byte [eax + 0xa], 0
je 0x6662cd10
cmp byte [eax + 8], 0
jne 0x6662cd00
xor ecx, ecx
xor edx, edx
call fcn.665f7b10
mov ebp, eax
test eax, eax
jne 0x6662cab0
mov dword [esp + 0x3c], 1
mov eax, dword [esi + 4]
xor ebp, ebp
lea ecx, [esp + ebp*4 + 0x48]
add ebp, 1
mov edx, ebp
call fcn.66597040
cmp ebp, 5
je 0x6662ca50
mov eax, dword [esi + 4]
jmp 0x6662ca36
test byte [ebx + 0x23], 2
jne 0x6662cb38
mov edx, dword [esp + 0x58]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x48]
mov dword [eax], ecx
test edx, edx
je 0x6662cb69
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x6662cd40
movzx ebp, byte [ebx + 0x50]
and edx, 3
mov ecx, ebp
cmp edx, ebp
je 0x6662cb6d
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
test edx, edx
je 0x6662ca9d
mov eax, ebx
call fcn.665926e0
mov edx, str.attached_databases_must_use_the_same_text_encoding_as_main_database
jmp 0x6662cccf
mov edi, str.no_more_rows_available
cmp eax, 0x65
je 0x6662caca
mov edi, str.abort_due_to_ROLLBACK
cmp eax, 0x204
jne 0x6662ce20
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
test edx, edx
je 0x6662cadb
mov eax, ebx
call fcn.665926e0
mov edx, edi
mov eax, ebx
call fcn.66591c60
mov edi, dword [esp + 0x30]
mov dword [edi], eax
mov eax, dword [esi + 4]
cmp byte [eax + 9], 0
jne 0x6662ce00
mov edi, ebp
lea esi, [esi]
cmp edi, 7
je 0x6662cde0
cmp edi, 0xc0a
je 0x6662cde0
mov edx, dword [esp + 0x2c]
mov eax, ebx
call fcn.66598620
mov byte [ebx + 0xa9], 0
add esp, 0x9c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
movzx ecx, byte [ebx + 0x50]
mov ebp, dword [eax + 0x50]
mov byte [eax + 0x4d], cl
test ebp, ebp
jne 0x6662cba3
mov edx, dword [esp + 0x50]
test edx, edx
jns 0x6662cd90
mov ecx, edx
neg ecx
cmp edx, 0x80000000
mov edx, 0x7fffffff
cmovne edx, ecx
mov dword [eax + 0x50], edx
mov eax, dword [esi + 4]
call fcn.66596fa0
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x4c]
mov byte [eax + 0x4c], dl
test dl, dl
jne 0x6662ccb0
mov byte [eax + 0x4c], 1
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x6662cbc7
cmp edx, 3
jg 0x6662cda0
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + ecx]
mov dword [esp + 4], str.SELECTFROM__w_._s_ORDER_BY_rowid
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.665bc610
mov ecx, dword [ebx + 0x158]
mov dword [esp + 0x10], 0
mov edx, eax
lea eax, [esp + 0x74]
mov dword [esp + 8], fcn.666456d0
mov dword [esp + 4], edx
mov dword [ebx + 0x158], 0
mov dword [esp + 0xc], eax
mov dword [esp], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
call sym.libsqlite3_0.dll_sqlite3_exec
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
test eax, eax
mov ebp, eax
mov dword [ebx + 0x158], ecx
je 0x6662cd28
test edx, edx
je 0x6662cc66
mov eax, ebx
call fcn.665926e0
test ebp, ebp
je 0x6662cdb0
cmp byte [ebx + 0x53], 0
je 0x6662cc78
mov eax, ebx
mov ebp, 7
call fcn.66598530
test byte [ebx + 0x23], 8
jne 0x6662cdc5
mov edi, ebp
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 4]
test edx, edx
jne 0x6662ccec
cmp byte [eax + 9], 0
je 0x6662cc9f
sub dword [eax + 0xc], 1
je 0x6662ce10
test edi, edi
je 0x6662cb20
jmp 0x6662cb00
cmp dl, 4
jbe 0x6662cbb6
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
test edx, edx
je 0x6662ccca
mov eax, ebx
call fcn.665926e0
mov edx, str.unsupported_file_format
mov eax, ebx
call fcn.66591c60
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov edi, 1
test edx, edx
je 0x6662cc8f
call fcn.665f7240
mov eax, dword [esi + 4]
jmp 0x6662cc8f
mov dword [esp + 0x3c], 0
jmp 0x6662ca34
call fcn.6658e4e0
mov eax, dword [esi + 4]
test eax, eax
je 0x6662ca16
jmp 0x6662ca0c
mov ebp, dword [esp + 0x80]
test edx, edx
jne 0x6662cc57
jmp 0x6662cc5e
test byte [ebx + 0x18], 0x40
jne 0x6662ca7b
and edx, 3
mov eax, 1
cmovne eax, edx
xor ecx, ecx
mov edx, str.BINARY
mov byte [ebx + 0x50], al
mov ebp, eax
mov eax, ebx
call fcn.6659c1f0
test eax, eax
je 0x6662cd79
mov ecx, ebp
movzx ebp, cl
lea edx, [ebp + ebp*4]
lea eax, [eax + edx*4 - 0x14]
mov dword [ebx + 8], eax
movzx ecx, byte [ebx + 0x50]
mov eax, dword [esi + 0xc]
jmp 0x6662cb6d
mov ecx, 0xfffff830
cmove edx, ecx
jmp 0x6662cb95
and dword [ebx + 0x20], 0xfffffffd
jmp 0x6662cbc7
mov edx, dword [esp + 0x2c]
mov eax, ebx
call fcn.6662c7f0
cmp byte [ebx + 0x53], 0
jne 0x6662cc6c
mov eax, dword [ebx + 0x10]
mov edx, dword [esp + 0x38]
mov eax, dword [eax + edx + 0xc]
or word [eax + 0x4e], 1
jmp 0x6662cc84
mov dword [esp], ebx
call fcn.6658a200
jmp 0x6662cb15
mov eax, dword [edx + 0x1c]
or word [eax + 0x4e], 1
jmp 0x6662cb20
sub dword [eax + 0xc], 1
jne 0x6662caf7
mov edi, ebp
lea esi, [esi]
call fcn.66582810
jmp 0x6662cc9f
mov edi, str.another_row_available
cmp eax, 0x64
je 0x6662caca
movzx eax, al
mov edi, str.unknown_error
cmp eax, 0x1c
jg 0x6662caca
mov edi, dword [eax*4 + 0x66689700]
mov eax, str.unknown_error
test edi, edi
cmove edi, eax
jmp 0x6662caca