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

Disassembly:
push ebp
mov ebp, eax
add eax, 0x24
push edi
push esi
mov esi, edx
push ebx
mov ebx, ecx
add ecx, 1
sub esp, 0x9c
mov edi, dword [eax - 0x24]
lea edx, [esp + 0x78]
mov dword [esp + 0x68], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
call fcn.665da050
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x66660644
mov edx, dword [esp + 0xb0]
and edx, 1
test ebx, ebx
jne 0x66660660
mov eax, dword [edi + 0x18]
mov dword [esp + 0x20], eax
test edx, edx
jne 0x666606dc
xor esi, esi
cmp edx, dword [esp + 0x20]
mov dword [esp + 0x20], edx
jg 0x6666072a
mov eax, ebp
call fcn.6665cd60
mov edx, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [esp + 0x78]
add edx, 0x30
mov byte [eax], dl
test ebx, ebx
je 0x66660620
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0xb0]
mov edx, ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], 0xffffffff
or ecx, 0x10
mov dword [esp + 8], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
mov eax, ebp
call fcn.6665f720
mov eax, dword [ebx]
sub eax, 1
mov dword [ebx], eax
test eax, eax
jg 0x66660620
mov edi, dword [ebx + 0x14]
lea esi, [ebx + 0x20]
test edi, edi
jle 0x66660615
mov edi, dword [esp + 0x2c]
lea esi, [esi]
lea esi, [esi]
mov eax, dword [esi]
add edi, 1
add esi, 0xc
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_free
cmp edi, dword [ebx + 0x14]
jl 0x66660600
mov dword [esp], ebx
call sym.libsqlite3_0.dll_sqlite3_free
lea esi, [esi]
mov edx, dword [ebp + 0x24]
mov eax, dword [esp + 0x68]
test edx, edx
jne 0x666608e8
mov edx, dword [esp + 0xb8]
mov dword [edx], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_free
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x24], 0
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x78]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
add eax, 1
mov dword [esp + 0x20], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 0x18]
mov dword [esp + 0x20], eax
test edx, edx
je 0x6666056a
test ebx, ebx
jle 0x66660f5a
xor ecx, ecx
xor edx, edx
jmp 0x666606ad
mov edx, eax
add ecx, 1
cmp ebx, eax
jle 0x66660f53
cmp byte [esi + edx], 0xbf
lea eax, [edx + 1]
jbe 0x666606a0
cmp ebx, eax
jle 0x666606d9
lea esi, [esi]
movsx edx, byte [esi + eax]
and edx, 0xc0
cmp edx, 0x80
jne 0x666606a0
add eax, 1
cmp ebx, eax
jne 0x666606c0
lea ebx, [ecx + 1]
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x66660d20
mov dword [esp + 0x30], ebp
mov ecx, dword [edi + 0x1c]
xor esi, esi
mov edx, 1
lea edi, [ebx + 1]
mov ebp, eax
jmp 0x66660710
cmp edi, eax
cmove esi, edx
add edx, 1
cmp edx, ebp
jg 0x66660a20
mov eax, dword [ecx + edx*4 - 4]
cmp eax, ebx
jne 0x66660700
cmp edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x20], edx
jle 0x6666057a
mov eax, dword [ebp]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x20], eax
cmp eax, 1
je 0x66660938
mov dword [esp + 0x40], 0x665da5a0
mov eax, 0x5a0
xor edx, edx
mov dword [esp + 0x44], 0x665da710
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x30], 0x78
mov ecx, dword [ebp + 0x24]
test ecx, ecx
jne 0x66660960
mov ecx, edx
mov edx, eax
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x78]
call fcn.665cc500
mov dword [esp + 0x48], eax
mov ebx, eax
mov eax, ebp
call fcn.6665cd60
mov dword [esp + 0x34], eax
test ebx, ebx
je 0x66660973
test eax, eax
je 0x666609c1
mov dword [esp + 0x6c], 0
lea ebx, [esp + 0x6c]
mov dword [esp + 0x70], 1
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x66660b32
lea eax, [esi + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, 0x38
mov byte [edi], al
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov eax, ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], edi
call fcn.6665f720
mov eax, dword [ebp + 0x24]
mov edx, dword [esp + 0x6c]
test eax, eax
je 0x66660af7
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x28], ebp
lea edx, [edi + edi*2]
mov edi, ecx
lea esi, [edx*4]
add ecx, esi
mov dword [esp + 0x40], esi
xor esi, esi
mov ebx, ecx
nop
mov edx, esi
test eax, eax
jne 0x66660892
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
lea eax, [esp + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [esp + 0x44]
call eax
mov edx, dword [esp + 0x38]
add esi, dword [esp + 0x20]
mov ebp, edi
cmp esi, edx
jle 0x666608c7
lea esi, [esi]
mov eax, dword [ebp]
add ebp, 0xc
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_free
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp ebx, ebp
jne 0x666608a0
mov eax, dword [esp + 0x40]
add edi, eax
add ebx, eax
cmp dword [esp + 0x30], esi
jle 0x66660a40
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x24]
jmp 0x66660860
test eax, eax
je 0x6666090a
mov ebx, dword [eax + 0x18]
call fcn.66593730
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x6666090a
mov dword [ebx + 0x28], 0
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_blob_close
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x68], 0
test eax, eax
je 0x6666062f
mov dword [ebp + 0x28], 0
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_blob_close
mov eax, dword [esp + 0x68]
jmp 0x6666062f
mov dword [esp + 0x40], 0x665db4e0
mov eax, 0x180
xor edx, edx
mov dword [esp + 0x44], 0x665daf40
mov dword [esp + 0x30], 0x20
jmp 0x66660764
mov eax, ebp
call fcn.6665cd60
mov dword [esp + 0x48], 0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x666609c1
mov edi, dword [esp + 0x34]
mov eax, dword [edi]
mov dword [esp + 0x20], eax
sub eax, 1
mov dword [edi], eax
test eax, eax
jg 0x666609c1
lea ebx, [edi + 0x20]
mov edi, dword [edi + 0x14]
test edi, edi
jle 0x666609b5
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
mov eax, dword [ebx]
add esi, 1
add ebx, 0xc
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_free
cmp esi, dword [edi + 0x14]
jl 0x666609a0
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_free
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_free
mov esi, dword [ebp + 0x24]
mov eax, dword [esp + 0x68]
test esi, esi
jne 0x666608e8
mov edx, eax
mov eax, dword [esp + 0x24]
call fcn.665db300
mov ebx, dword [ebp + 0x24]
mov eax, dword [esp + 0x68]
test ebx, ebx
jne 0x666608e8
mov edx, dword [eax + 0x48]
movzx edx, word [edx + 4]
imul edx, edx, 0x58
mov ecx, dword [eax + edx + 0x5c]
test ecx, ecx
je 0x6666062f
lea edx, [eax + edx + 0x50]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [eax + 0x2c]
jmp 0x66660620
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x20], eax
cmp eax, 1
jne 0x6666073d
jmp 0x66660938
mov eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0x28]
test eax, eax
je 0x66660a51
call fcn.66593730
mov ebx, dword [ebp + 0x24]
test ebx, ebx
jne 0x66660ae3
mov eax, dword [esp + 0x88]
xor edx, edx
mov ecx, edx
add eax, 0x14
mov edx, eax
mov eax, dword [esp + 0x24]
call fcn.665cc500
mov ebx, eax
test eax, eax
je 0x66660ae3
lea edx, [eax + 0xc]
mov dword [eax], edx
mov eax, dword [esp + 0x88]
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
test eax, eax
jne 0x66660d27
mov edx, 2
mov eax, ebp
call fcn.665cd0b0
mov esi, eax
test eax, eax
je 0x66660adb
mov dword [eax + 0xac], 1
mov ecx, dword [ebx + 8]
test ecx, ecx
jg 0x66660d5f
mov byte [eax + 0x10], 1
mov eax, dword [ebp]
cmp dword [eax + 0x30], 1
je 0x66660dcf
mov dword [esi + 0xc0], 0x6665c5f0
mov dword [esp + 0x68], esi
mov dword [esp], ebx
call sym.libsqlite3_0.dll_sqlite3_free
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_free
jmp 0x6666097b
mov eax, dword [esp + 0x24]
call fcn.665db300
mov eax, dword [ebp + 0x24]
mov edx, dword [esp + 0x6c]
test eax, eax
jne 0x6666083c
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], edi
lea eax, [eax + eax*2]
shl eax, 2
mov dword [esp + 0x4c], eax
cmp byte [edx + 0x10], 0
je 0x66660c40
xor eax, eax
jmp 0x6666083c
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov ecx, 0x30
mov dword [esp + 0x74], 0
mov byte [edi], 0x30
mov dword [esp + 8], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x14], ebx
mov dword [esp], eax
mov eax, ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], edi
call fcn.6665f720
mov edx, dword [ebp + 0x24]
mov eax, dword [esp + 0x6c]
test edx, edx
jne 0x66660c2e
mov edx, eax
mov eax, dword [esp + 0x24]
call fcn.665db300
mov ecx, dword [ebp + 0x24]
mov eax, dword [esp + 0x6c]
test ecx, ecx
jne 0x66660c2e
cmp byte [eax + 0x10], 0
jne 0x66660c36
mov edx, dword [eax + 0x48]
movzx edx, word [edx + 4]
mov dword [esp], eax
imul edx, edx, 0x58
lea edx, [eax + edx + 0x50]
mov dword [esp + 4], edx
call dword [eax + 0x2c]
mov eax, dword [esp + 0x6c]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x66660c0b
lea ecx, [esp + 0x84]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov eax, dword [eax]
sub eax, dword [esp + 0x38]
mov dword [esp], ebp
sbb edx, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [esp + 0x40]
call eax
mov eax, dword [esp + 0x6c]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
mov edx, dword [ebp + 0x24]
test edx, edx
jne 0x66660c36
lea ecx, [esp + 0x74]
mov edx, eax
mov eax, ebp
call fcn.6658e3e0
mov ecx, dword [ebp + 0x24]
mov eax, dword [esp + 0x6c]
test ecx, ecx
je 0x66660ba0
test eax, eax
je 0x666607ee
call fcn.66593730
jmp 0x666607ee
mov eax, dword [edx + 0x48]
movzx eax, word [eax + 4]
imul eax, eax, 0x58
lea ecx, [edx + eax]
lea eax, [edx + eax + 0x50]
mov esi, dword [ecx + 0x90]
mov ebx, dword [ecx + 0x8c]
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [edx + 0x2c]
mov edi, dword [esp + 0x70]
test edi, edi
je 0x66660c99
cmp dword [esp + 0x28], esi
jg 0x66660f44
mov eax, dword [esp + 0x28]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x66660f44
mov ebx, dword [esp + 0x6c]
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x66660cf2
mov eax, dword [ebx]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov edx, dword [ebx + 4]
cmp esi, eax
mov ecx, edi
sbb ecx, edx
jge 0x66660d43
sub eax, esi
sbb edx, edi
lea edi, [esp + 0x84]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], edx
mov dword [esp + 0x10], edi
mov dword [esp], ebp
call eax
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x6666083c
mov edx, ebx
mov eax, ebp
lea ecx, [esp + 0x70]
call fcn.6658e3e0
mov eax, dword [ebp + 0x24]
mov edx, dword [esp + 0x6c]
test eax, eax
je 0x66660b21
jmp 0x6666083c
xor esi, esi
jmp 0x6666072a
mov dword [esp + 8], eax
mov eax, dword [esp + 0x84]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
jmp 0x66660a95
mov ecx, dword [esp + 0x88]
test ecx, ecx
jg 0x66660df7
sub eax, dword [esp + 0x38]
sbb edx, dword [esp + 0x3c]
jmp 0x66660cc1
mov dword [eax + 0xb4], ebx
lea edx, [eax + 0xf0]
lea edi, [eax + 0xa8]
mov eax, dword [ebx]
call fcn.66585c70
mov edx, 1
movzx eax, al
mov dword [esi + 0xbc], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0xd0], eax
mov eax, dword [esi + 0x48]
mov word [eax + 4], dx
test byte [esp + 0xb0], 2
jne 0x66660dde
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x66660db1
mov eax, dword [ebp]
mov edx, edi
call fcn.6658c9a0
test byte [esi + 0xac], 2
je 0x66660f4c
mov dword [esi + 0xc0], 0x6665cce0
xor ebx, ebx
jmp 0x66660ad7
mov dword [esi + 0xc0], 0x6665c940
jmp 0x66660ad7
or dword [esi + 0xac], 2
mov edx, edi
mov eax, ebp
mov dword [esi + 0x34], 1
call fcn.665cc2a0
jmp 0x66660db1
mov esi, dword [ebp + 0x24]
test esi, esi
jne 0x66660cc1
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x38], ebp
xor edi, edi
mov ebp, eax
mov esi, edi
cmp edi, ebx
jge 0x66660f09
mov eax, ebp
mov edx, edi
jmp 0x66660e36
add edx, 1
add eax, 0xc
cmp edx, ebx
je 0x66660ed0
cmp dword [eax + 4], 0
jne 0x66660e28
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x58], edx
mov edx, dword [eax]
mov dword [esp + 0x84], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x88], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov dword [eax], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x88], 0
mov dword [eax + 8], edx
cmp ebx, dword [esp + 0x5c]
je 0x66660ed0
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0x24]
test edx, edx
jne 0x66660f34
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x88]
add ebp, dword [esp + 0x4c]
add edi, eax
add ebx, eax
test ecx, ecx
jne 0x66660e12
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x38]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
jmp 0x66660cc1
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x44]
call eax
lea eax, [ebp + 4]
add esi, 1
mov dword [eax], 0
add eax, 0xc
cmp esi, ebx
jl 0x66660ef7
jmp 0x66660e94
jne 0x66660e94
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
lea eax, [esp + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x44]
call eax
jmp 0x66660e94
mov ebx, dword [esp + 0x6c]
mov ebp, eax
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
jmp 0x66660cc1
mov eax, dword [ebp + 0x24]
jmp 0x6666083c
xor ebx, ebx
jmp 0x66660ac0
mov ebx, ecx
jmp 0x666606dc
xor ebx, ebx
jmp 0x666606dc