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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x16c
mov eax, dword [esp + 0x190]
mov edx, dword [esp + 0x194]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x19c]
mov dword [esp + 0x3c], edx
mov dword [eax], 0
mov eax, dword [esp + 0x180]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x66656f9c
mov dword [esp], eax
call dword [0x6667ce50]
mov eax, dword [esp + 0x180]
mov edx, 0x20
xor ecx, ecx
call fcn.6658bdd0
mov dword [esp + 0x14], eax
test eax, eax
je 0x666576ac
mov ebp, dword [esp + 0x198]
xor eax, eax
test ebp, ebp
setne al
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
lea edx, [eax + 4]
mov dword [eax], 0
and edx, 0xfffffffc
mov dword [eax + 0x1c], 0
sub eax, edx
add eax, 0x20
and eax, 0xfffffffc
mov dword [edx + ebx], ecx
add ebx, 4
cmp ebx, eax
jb 0x66656ff0
lea eax, [esp + 0x50]
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x1c]
xor eax, eax
mov ecx, 0x44
mov edx, dword [esp + 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x180]
mov dword [esp + 0x50], eax
test edx, edx
je 0x66657037
call fcn.665926e0
mov eax, dword [esp + 0x180]
mov dword [esp + 0x4c], 0
cmp byte [eax + 0x5b], 0
je 0x66657420
mov eax, dword [esp + 0x184]
mov ecx, dword [esp + 0x188]
xor edx, edx
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
call fcn.6662d630
mov dword [esp + 0x18], eax
test eax, eax
je 0x6665746f
mov eax, dword [eax + 0x38]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x66657450
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x20], eax
and eax, 0x80
mov dword [esp + 0x2c], eax
jne 0x6665761d
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x66657717
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edi + 0x1c], eax
mov ecx, dword [eax + 0x48]
mov edi, dword [esp + 0x180]
mov edx, dword [edi + 0x10]
test ecx, ecx
je 0x6665770c
cmp ecx, dword [edx + 0xc]
je 0x666570ea
lea eax, [edx + 0x10]
lea esi, [esi]
nop
mov edx, eax
add eax, 0x10
cmp ecx, dword [eax - 4]
jne 0x666570e0
mov eax, dword [edx]
mov edi, dword [esp + 0x14]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x18]
movsx ecx, word [eax + 0x2a]
test ecx, ecx
jle 0x66657378
mov edi, dword [eax + 4]
mov dword [esp + 0x20], esi
xor ebp, ebp
mov esi, ecx
nop
mov ecx, dword [edi]
mov edx, dword [esp + 0x18c]
jmp 0x66657139
movzx ebx, byte [ebx + 0x66690a80]
cmp byte [eax + 0x66690a80], bl
jne 0x66657300
add ecx, 1
add edx, 1
movzx eax, byte [ecx]
movzx ebx, byte [edx]
cmp eax, ebx
jne 0x66657120
test eax, eax
jne 0x66657133
mov edi, dword [esp + 0x198]
mov esi, dword [esp + 0x20]
test edi, edi
jne 0x6665738b
mov eax, dword [esp + 0x1c]
call fcn.6659fe10
mov ebx, eax
mov eax, dword [esp + 0x14]
mov dword [eax + 0x10], ebx
test ebx, ebx
je 0x66657283
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x48]
test edx, edx
je 0x6665775a
mov eax, dword [esp + 0x180]
mov ecx, dword [eax + 0x10]
cmp edx, dword [ecx + 0xc]
je 0x6665769f
mov eax, dword [esp + 0x24]
lea esi, [esi]
add eax, 1
mov esi, eax
shl esi, 4
cmp edx, dword [ecx + esi + 0xc]
jne 0x666571a0
mov edi, eax
mov dword [esp + 0x24], eax
mov eax, 1
mov ecx, edi
shl eax, cl
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 4]
mov esi, dword [edx]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x6c]
cmp eax, dword [ebx + 0x70]
jge 0x66657641
mov edi, dword [ebx + 0x68]
lea edx, [eax + eax*4]
lea ecx, [eax + 1]
mov dword [ebx + 0x6c], ecx
lea edx, [edi + edx*4]
mov edi, dword [esp + 0x24]
mov dword [edx + 0xc], esi
mov dword [edx + 4], edi
mov edi, dword [esp + 0x34]
mov dword [edx + 0x10], 0
mov dword [edx + 8], edi
mov dword [edx], 2
mov edx, dword [ebx]
cmp byte [edx + 0x53], 0
jne 0x6665721f
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
mov edi, dword [esp + 0x20]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], edi
test ecx, ecx
jle 0x66657235
lea eax, [ecx + ecx*4]
mov ecx, dword [ebx + 0x68]
mov esi, 1
lea eax, [ecx + eax*4]
mov word [eax - 0x12], si
mov ecx, 0x666886a8
mov edx, 6
mov eax, ebx
call fcn.665992b0
mov edi, dword [esp + 0x2c]
or dword [ebx + 0x9c], edi
mov esi, eax
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x66657272
mov edx, dword [ebx]
shl eax, 4
add eax, dword [edx + 0x10]
mov eax, dword [eax + 4]
cmp byte [eax + 9], 0
je 0x66657272
or dword [ebx + 0xa0], edi
mov eax, dword [esp + 0x180]
cmp byte [eax + 0x53], 0
je 0x6665757b
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x180]
mov word [eax + 8], bp
mov dword [eax + 0x14], edi
cmp byte [edi + 0x5b], 0
mov eax, edi
je 0x6665742a
mov eax, dword [esp + 0x180]
cmp byte [eax + 0x53], 0
jne 0x66657440
lea eax, [esp + 0x4c]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
call fcn.66656d90
add dword [esp + 0x28], 1
mov esi, eax
mov dword [esp + 0x30], 0x11
mov eax, dword [esp + 0x28]
cmp esi, 0x11
jne 0x666572eb
cmp eax, 0x32
jne 0x66657012
test esi, esi
je 0x66657742
mov ebx, 1
jmp 0x666574b6
add ebp, 1
add edi, 0x14
cmp ebp, esi
jne 0x66657110
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x66657322
mov eax, dword [esp + 0x180]
call fcn.665926e0
mov eax, dword [esp + 0x18c]
mov dword [esp + 4], str.no_such_column:___s_
mov dword [esp + 8], eax
mov eax, dword [esp + 0x180]
mov dword [esp], eax
call fcn.665bc610
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x180]
cmp byte [eax + 0x5b], 0
jne 0x666574ac
mov eax, dword [esp + 0x180]
mov ebx, 1
mov esi, 1
call fcn.66592000
jmp 0x666574b6
je 0x6665730e
mov edi, dword [esp + 0x198]
xor ebp, ebp
test edi, edi
je 0x6665715a
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 8]
mov eax, dword [esp + 0x180]
test byte [eax + 0x21], 0x40
jne 0x66657664
test edi, edi
je 0x6665715a
lea esi, [esi]
nop
movzx edx, word [edi + 0x32]
test dx, dx
je 0x666573e8
mov eax, dword [edi + 4]
lea ebx, [eax + edx*2]
jmp 0x666573d5
cmp cx, 0xfffe
je 0x666573dc
add eax, 2
cmp ebx, eax
je 0x666573e8
movsx ecx, word [eax]
cmp ecx, ebp
jne 0x666573c8
add eax, 2
mov esi, str.indexed
cmp ebx, eax
jne 0x666573d5
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x666573b0
test esi, esi
je 0x6665715a
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x6665740b
mov eax, dword [esp + 0x180]
call fcn.665926e0
mov dword [esp + 8], esi
mov dword [esp + 4], str.cannot_open__s_column_for_writing
jmp 0x66657335
call fcn.665936c0
jmp 0x66657050
call fcn.66592000
mov eax, dword [esp + 0x180]
cmp byte [eax + 0x53], 0
je 0x666572b2
mov esi, dword [esp + 0x30]
jmp 0x666572eb
mov eax, dword [esp + 0x188]
mov dword [esp + 4], str.cannot_open_virtual_table:__s
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.665b3dd0
mov eax, dword [esp + 0x54]
test eax, eax
je 0x6665749b
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x6665748f
mov eax, dword [esp + 0x180]
call fcn.665926e0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x180]
cmp byte [eax + 0x5b], 0
je 0x66657359
mov ebx, 1
mov esi, 1
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x10]
test edi, edi
je 0x666574e1
mov eax, dword [edi + 0x14]
cmp eax, 0x2df20da3
je 0x66657700
cmp eax, 0x319c2973
je 0x66657700
mov eax, edi
call fcn.6659aa20
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x180]
call fcn.665926e0
mov edx, dword [esp + 0x4c]
mov ecx, 0
mov eax, 0x6667eaa2
mov dword [esp + 4], esi
test edx, edx
mov dword [esp + 0xc], edx
cmove eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x180]
mov dword [esp], eax
call fcn.665b31b0
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x66657533
mov eax, dword [esp + 0x180]
call fcn.665926e0
mov eax, dword [esp + 0x1c]
call fcn.665979f0
mov eax, dword [esp + 0x180]
cmp byte [eax + 0x53], 0
jne 0x666576e2
xor edi, edi
test bl, bl
jne 0x666576e2
mov eax, dword [esp + 0x180]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x6665756e
mov dword [esp], eax
call dword [0x6667ce58]
add esp, 0x16c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebx]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0xc], ecx
mov ecx, dword [edi]
mov dword [esi + 8], eax
cmp byte [edx + 0x53], 0
jne 0x666575c5
mov eax, dword [ebx + 0x68]
mov dword [esp], 0
lea edx, [eax + 0x28]
mov eax, ebx
call fcn.6659ab00
mov eax, dword [esp + 0x180]
cmp byte [eax + 0x53], 0
jne 0x66657283
mov eax, dword [edi + 0x1c]
mov edx, dword [esp + 0x198]
test edx, edx
je 0x666575d4
mov byte [esi + 0x14], 0x62
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x24]
mov byte [esi + 0x15], 0xfd
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x18]
movsx eax, word [eax + 0x2a]
lea edx, [eax + 1]
mov dword [esi + 0x44], eax
xor eax, eax
mov dword [esi + 0x24], edx
mov edx, dword [esp + 0x1c]
mov word [esp + 0x114], ax
mov eax, ebx
mov dword [esp + 0x7c], 1
mov dword [esp + 0x78], 1
call fcn.665a5860
jmp 0x66657283
mov eax, dword [esp + 0x188]
mov dword [esp + 4], str.cannot_open_table_without_rowid:__s
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.665b3dd0
jmp 0x6665746f
mov eax, dword [esp + 0x34]
mov dword [esp + 4], esi
mov edx, 2
mov ecx, dword [esp + 0x24]
mov dword [esp], eax
mov eax, ebx
call fcn.6659fd40
mov ecx, dword [ebx + 0x6c]
jmp 0x66657203
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x10]
test edx, edx
je 0x6665773b
mov ecx, dword [edx + 0x14]
xor eax, eax
test ecx, ecx
jle 0x66657693
lea esi, [esi]
cmp dword [edx + eax*8 + 0x24], ebp
mov ebx, str.foreign_key
cmove esi, ebx
add eax, 1
cmp eax, ecx
jne 0x66657680
mov edx, dword [edx + 4]
test edx, edx
jne 0x66657673
jmp 0x666573eb
mov dword [esp + 0x2c], 1
jmp 0x666571c1
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x50]
mov ecx, 0x44
mov dword [esp + 0x1c], edi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x180]
cmp byte [eax + 0x53], 0
jne 0x666576f7
mov eax, dword [esp + 0x19c]
mov edi, dword [esp + 0x14]
xor ebx, ebx
xor esi, esi
mov dword [eax], edi
jmp 0x666574f1
mov eax, dword [esp + 0x180]
mov edx, esi
call fcn.66593f80
mov edi, eax
jmp 0x66657557
xor ebx, ebx
xor esi, esi
jmp 0x666574f1
mov eax, edi
call fcn.665fb340
jmp 0x666574da
sub edx, 0x80000
jmp 0x666570ea
mov eax, dword [esp + 0x188]
mov dword [esp + 4], str.cannot_open_view:__s
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.665b3dd0
jmp 0x6665746f
xor esi, esi
jmp 0x666573a3
mov eax, dword [esp + 0x180]
cmp byte [eax + 0x53], 0
je 0x666576cc
xor ebx, ebx
jmp 0x666574b6
mov dword [esp + 0x24], 0xffff8000
jmp 0x666571c1